Skip to main content
2 of 2
removed signature, fixed some spelling, adding more information from the OP's comments
m.Alin
  • 10.8k
  • 20
  • 65
  • 89

How can I use a 12 V input on a digital Arduino pin?

I am creating a controller for a 12 V system using an Arduino Uno microcrontroller. For the outputs I am using a relay shield to switch the 12 V components. I have a 12 V toggle switch that turns on some 12 V components in the system and I want to use a trigger signal off of this same switch to send to an Arduino digital input. I know that the Arduino can only handle 5 V max. What would be the best way to step down the 12 V coming off of the switch to the 5 V for the input?

EDIT: The system is for use in a car. Would the amperage of the car battery need to be lowered somehow as to not blow up the components?

D.W.
  • 643
  • 1
  • 6
  • 9