Author Topic: Arduino with LCD 20x4 Display  (Read 2280 times)

0 Members and 1 Guest are viewing this topic.

Offline MatthewBTopic starter

  • Newbie
  • Posts: 1
  • Country: au
Arduino with LCD 20x4 Display
« on: March 01, 2016, 05:29:15 pm »
I've wired up an LCD 20x4 display to my arduino but have only now realised that I require some method of diming to be able to actually read the screen, supposedly. Instead of a variable dimmer, could I possibly use a resistor to keep it at a constant level so that it is backlit but I can also read the text, if so, what resistance would accomplish an acceptable level of readability?
 

Offline Divvi

  • Contributor
  • Posts: 19
Re: Arduino with LCD 20x4 Display
« Reply #1 on: March 01, 2016, 06:37:30 pm »
Yes, just replace the potentiality with a fixed-value voltage divider:

 

Offline AlxDroidDev

  • Frequent Contributor
  • **
  • Posts: 471
  • Country: br
    • Arduino Web Brasil
Re: Arduino with LCD 20x4 Display
« Reply #2 on: March 01, 2016, 06:56:08 pm »
I've wired up an LCD 20x4 display to my arduino but have only now realised that I require some method of diming to be able to actually read the screen, supposedly. Instead of a variable dimmer, could I possibly use a resistor to keep it at a constant level so that it is backlit but I can also read the text, if so, what resistance would accomplish an acceptable level of readability?

Use an RC filter to set the voltage of the backlight, and control the filter through a PWM pin. This way you can programatically set whatever voltage you want on the backlight (from 0 to 5V) simply by using "AnalogWrite(Dn, val)" where Dn is the digital PWM pin and val is a value from 0 to 255 (meaning 0V to 5V).

This is a kind of "poor man's DAC", but it is good enough for these applications where a precise output voltage is not needed.

http://provideyourown.com/2011/analogwrite-convert-pwm-to-voltage/
"The nice thing about standards is that you have so many to choose from." (Andrew S. Tanenbaum)
 


Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: Arduino with LCD 20x4 Display
« Reply #4 on: March 01, 2016, 11:59:22 pm »
Without knowing exactly what LCD you are talking about and what dimming you are attempting to achieve, there really ia no answer to your question.
================================
https://dannyelectronics.wordpress.com/
 

Offline collingtech

  • Contributor
  • !
  • Posts: 13
  • Country: br
Re: Arduino with LCD 20x4 Display
« Reply #5 on: March 02, 2016, 02:16:52 am »
yep put a model /brand , will help a lot
 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: Arduino with LCD 20x4 Display
« Reply #6 on: March 02, 2016, 02:59:26 am »
If the display is transmissive you need the B/L on.

If transflective one or the other or both, ambient light, B/L.

If reflective you need ambient light.

If B/L is LED best way to control brightness is a PWM driving a pin switching power
to the LED chain.

If pin is the contrast pin, a simple pot to Vdd, wiper to pin, other side grounded.


Regards, Dana.
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf