0
\$\begingroup\$

I have an infrared LED that uses the 5V port for power. However, I've read that you need to use the 5V pin to use AA batteries. Is it possible to wire the LED or the batteries to a different pin, or do I need to stick to USB power?

\$\endgroup\$
6
  • \$\begingroup\$ Any reason you can't connect both to the 5V pin? \$\endgroup\$ – Stiddily Jan 13 at 16:55
  • \$\begingroup\$ So power can go in the 5V and out of it too? In that case, that's exactly what I want. \$\endgroup\$ – ma1234 Jan 13 at 19:07
  • \$\begingroup\$ usb is 5v too, you can use it if in doubt. \$\endgroup\$ – dandavis Jan 13 at 19:47
  • \$\begingroup\$ USB wouldn't drain the battery any more than connect to the 5V pin, right? \$\endgroup\$ – ma1234 Jan 13 at 20:15
  • \$\begingroup\$ Yes, you can connect both to the 5V pin (with a current limiting resistor for the LED). The LED will always be on in this case though. Is that what you want? Or do you want the ability to turn the LED on and off? \$\endgroup\$ – Stiddily Jan 15 at 13:33
0
\$\begingroup\$

According to this answer, I can just rewire the LED to use Ground instead. As a result, the 5v pin is now free for the AA batteries.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.