14
\$\begingroup\$

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

\$\endgroup\$

10 Answers 10

10
\$\begingroup\$

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

\$\endgroup\$
10
\$\begingroup\$

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.

\$\endgroup\$
6
\$\begingroup\$

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.

\$\endgroup\$
1
  • \$\begingroup\$ 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. \$\endgroup\$
    – todbot
    Commented May 10, 2010 at 19:48
6
\$\begingroup\$

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.

\$\endgroup\$
5
\$\begingroup\$

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.

\$\endgroup\$
2
  • \$\begingroup\$ Yeah...just spend the $0.50 and buy one... \$\endgroup\$
    – davr
    Commented May 9, 2010 at 15:28
  • 6
    \$\begingroup\$ 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. \$\endgroup\$
    – user1307
    Commented May 10, 2010 at 2:01
2
\$\begingroup\$

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.

\$\endgroup\$
0
1
\$\begingroup\$

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

\$\endgroup\$
0
\$\begingroup\$

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

\$\endgroup\$
0
\$\begingroup\$

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.

\$\endgroup\$
0
\$\begingroup\$

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

\$\endgroup\$

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