0
\$\begingroup\$

I am looking to use a 5050 RGB LED strip to show either green, blue, and red depending on the battery I want two monitors voltage. If I take my LED strip and connect 12 volts to it and then ground one of the RGB pads the corresponding color lights up. I need to make a circuit or use an Arduino or Raspberry Pi to monitor the battery's voltage and send 12 volts to the corresponding pad to show green, blue, or red depending on the voltage coming from the battery. This is assuming that I have the right idea. If this will not work the way I am thinking or there is a easier way of doing this I am open to suggestions.

The battery I'm trying to monitor is a 12v 3s 6p 18650 pack. I can power the circuit from a different Source if needed. The LED strip is only going to be maybe 2 1/2ft long.

If someone could please explain how I can achieve or point me in the right direction I would greatly appreciate it.

THANKS

\$\endgroup\$
  • 1
    \$\begingroup\$ Welcome to EE.SE. Your question is very vague. What do you mean by "depending on the voltage"? Why don't you just write the code for the Arduino and be done with it? In other words, what exactly is your question? \$\endgroup\$ – Elliot Alderson Jan 23 at 2:05
  • \$\begingroup\$ for instance if the battery is between 12.6v & 11.5v Green led, 11.5 & 10.5 yellow led, below 10.5 red led.... i am not sure how to make the code / script for the Arduino to do this. I have found similar info on doing this with a Arduino but not together. Arduino battery voltage monitor and Arduino controlled RGB strips but not the two together. \$\endgroup\$ – Jon Coop Jan 23 at 2:36
  • 3
    \$\begingroup\$ Learning how to put two pieces of code together is an essential skill. Almost the essential skill, because engineering is all about breaking big problems down into multiple smaller ones. Sounds like you are in a great place, spend some time understanding how each works and then think about how they can be combined. Happy learning! \$\endgroup\$ – Chris Stratton Jan 23 at 5:47

Your Answer

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

Browse other questions tagged or ask your own question.