Go Down

Topic: Input read (Read 293 times) previous topic - next topic


I have a LED strip connected to a 12v source with a switch button between them. When you press the button the LED will light up. At the same time, i want to input this button to an arduino and read whether it's on or off.
How should i do this?


Connect a voltage divider & common ground to a digital or analog in. You could use GOOGLE 'how to read 12V with arduino' for instructions!
Mrs Drew
http://www.uk-pcb.co.uk - UK PCB Fab Company
I will design & code for you, but I will also charge you (PM me)
If you don't like my answers, realize : I'm not being cheeky, I'm Just trying to prompt you to use your own brain/google etc.


If you need complete isolation, use an optocoupler.

Similar to this:

No technical PMs.
The last thing you did is where you should start looking.

Go Up