Ok so I am hooking up a processor to a circuit and the processor needs around 5 volts. My input that I am going to be giving it however is 24volt power supply.
I'm using a regulator to bring it down to 5 volts so that's not a problem. However the processor is going to control 10 leds through one output. All other outputs are used and it leaves this one to control 10 leds. Each led needs a voltage drop of 2.4 volts and around 20mA.
Problem is, when I turn the output high, it only supplies 5v. What can I do to make sure my led's are getting the full 24 volts from the power supply when the output of the channel goes high, and make sure we are getting 20mA per led. Thanks!
I'm using a regulator to bring it down to 5 volts so that's not a problem. However the processor is going to control 10 leds through one output. All other outputs are used and it leaves this one to control 10 leds. Each led needs a voltage drop of 2.4 volts and around 20mA.
Problem is, when I turn the output high, it only supplies 5v. What can I do to make sure my led's are getting the full 24 volts from the power supply when the output of the channel goes high, and make sure we are getting 20mA per led. Thanks!