I've allready got a little standalone control panel running, controlling six outputs and showing some txt in a 16X2 LCD. (based on Atmega 328 chip)
Now I come up with the idea of controlling the backlight in software, and i got a working program running on a UNO.
It controls the LED backligt with PWM pin 10.
Now when I inplement it in my stand alone project, do I then need to hook up the AREF pin to VCC and AREF GND pin to GND ?
Or is it just needed when reading anlog values ?
Thanks for the (hopefully) upcomming help and sorry if its a dumb question.
Aref does not need to be connected if you are not using the analogue inputs.
However do not use pins directly to run the backlight. Use a transistor in between as the backlights typically pull many times the current that a pin can handle.
I understand that the pins max out around 40 ma whereas with the LCDs that I use, their backlight pulls around 180 ma. This would burn out the pin and damage the 328.
Check your datasheets to be certain.
lemming:
Aref does not need to be connected if you are not using the analogue inputs.
However do not use pins directly to run the backlight. Use a transistor in between as the backlights typically pull many times the current that a pin can handle.
I understand that the pins max out around 40 ma whereas with the LCDs that I use, their backlight pulls around 180 ma. This would burn out the pin and damage the 328.
Check your datasheets to be certain.
Yes, I know, it would probably let out the magic smoke :). I will drive it using a Mosfet.