AngusMcDoon
Well-Known Member
I will try the LCD in the sunlight tomorrow and try to post some pics taken with a decent camera..and eventually with the backlight...reading through your code it looks like Pwm for the backlight?
LEDs cannot be brightness controlled by varying their voltage. Instead you switch them off part of the time, just very quickly, i.e. thousands of times a seconds. The less on compared to off means less light output on average. The PWM output line from the processor can drive a small single LED, but not the backlight for this display as it takes too much current. Instead use the PWM output to feed into the gate of a power MOSFET transistor. This will switch the current to the LED backlight. I haven't chosen a suitable one yet. I have tried it, but with a MOSFET that switches amps that I happened to have. We need one that can switch about 250mA, which will be cheaper than the one I use. Have a search on RS for a 250mA MOSFET. Should be about 20p in small numbers.