AngusMcDoon
Well-Known Member
Angus.
How do I control the LED brightness. I have tried powering up the LEDs with 5v which works but no control.
All the best
Tom
You need a MOSFET transistor. At the moment you have the anode of the backlight going to 5V. Instead it needs to go through the MOSFET, the gate of the MOSFET connected to pin B0 on the Discovery board. I have not chosen a suitable transistor yet, just used one I had in my bits box, which although does the job, is over-sized for this application.
I'm not an expert on this, but RS part 719-2281 looks like it will do the job and will fit in a breadboard. The display datasheet says that the backlight takes a maximum of 440 mA. I'll post the connections needed later.