Take the 2-minute tour ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

I am using this LCD:

enter image description here

Plus I am using an Arduino. I am trying to hook this up but without a 10K pot. How is this possible? Every tutorial I found involved the 10K potentiometer

share|improve this question
add comment

10 Answers 10

You could start by using the variable resistor to find the sweet spot for the screen contrast, then use a multimeter to measure the resistance at that point, that should give you a good value for a fixed resistor. Otherwise you could look at using a digital potentiometer chip that could set the screen contrast and could be controlled by the Arduino

share|improve this answer
add comment

Just PWM something to make a contrast that suit your needs. hook up the pot pin of the LCD to a PWM pin of the arduino, sending a stable 0-127 signal. Just try.

share|improve this answer
add comment

Is there any reason why you don't want to use the 10k pot? It really is needed for the screen contrast control. If you don't have a 10k, you could experiment with a variety of fixed resistors to get the required contrast level.

share|improve this answer
    
Yeah...just spend the $0.50 and buy one... –  davr May 9 '10 at 15:28
4  
In all fairness to the OP, they may not be in the position to purchase or locate one without great distance or expense. I live in Brisbane CBD, 3rd largest city in Australia... and usually have to have everything delivered. –  tronixstuff May 10 '10 at 2:01
add comment

Just do a voltage divider between GND and Vcc with two 4.7kOhm, and connect the divider center with the LCD contrast pin. Every LCD I've used works perfectly and with the right contrast.

share|improve this answer
    
Yes, try this. A pot is just an adjustable voltage divider, and you can approximate that with two resistors with values chosen to make a "fixed" pot. By using two 4.7k resistors like Axeman says, it's like having a pot stuck at the midpoint. –  todbot May 10 '10 at 19:48
add comment

I run mine with a single 1k5 resistor to ground. Seems to be good. Play around with different sizes if you have.

share|improve this answer
add comment

I see good reasons for wanting to connect LCD without potentiometer or even fixed resistors at all: when you just want to test a new piece; when you're in hurry, in place lacking anything but wires, or when you just don't want to bother with the question how to connect that resistor so it wasn't fragile, ugly, etc.

My experiences:

If you don't connect that LCD terminal (V0), you don't see anything.

If you connect V0 to GND, you still will be able to see if it works and discern characters (they would be very blurry though, looking from an angle helps).

If you connect V0 to +5V, you don't see anything.

Connecting V0 to GND via 1-1.5K resistor, as mentioned above, gives pretty good contrast.

If you use 5K, you get "inverted" effect (when characters are darker than background, contrast is not ideal in this case though).

I also get the same effect when powering my (enhanced) Arduino and LCD from 3.3V (and putting V0 directly to GND).

My LCD is marked J1602A and is few-bucks from eBay.

share|improve this answer
add comment

The same as leppie's answer, but a 1K resistor to ground. Something in that range should do the trick, depends on the lighting of the environment where you're using it.

share|improve this answer
add comment

I used a 3.9K resistor between V0 and GND. And the LCD was clearly visible.

share|improve this answer
add comment

I have tried various solutions, those work:

Solution 1)

You can connect V0 pin to GND using just a resistor 2k-3k works fine for all LCDs I tested.

Solution 2)

You can also control the contrast from your arduino PWM, just connect PWM pin directly to V0 pin and set PWM to between 60 to 120, to prevent flickering you need to change timer prescaler from default 64 to 1 or 8. If you are using pin 3 (timer 2) using this command:

TCCR2B = TCCR2B & 0b11111000 | 0b01;

No other components are necessary.

Solution 3)

If you can't change the prescaler and don't like he flickering you can build a low pass filter using a capacitor and a resistor. Connect 10uF capacitor to GND and V0, then connect 470 ohm resistor between PWM pin and V0. Set PWM between 60 and 120

Solution 4)

Use potenciometer, you don't need 10k, Just anything above 5k will work fine, Even 1M will work.

share|improve this answer
add comment

Connect 470..1K from Vo to GND and 3K..5.1K from Vo to VCC. For most LCDs works perfect.

share|improve this answer
add comment

protected by Kortuk Oct 10 '13 at 14:04

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.