Arduino > Arduino

Floating pin grounding

(1/1)

Hants:
What would be the best way to connect indicator lamp to arduino' digital pin?

When playing on the breadboard it is pretty obvious that we need to use a pull-down resistor, but how to combine GND with +12V signal?
After many minutes of thinking - I came up with idea:



Is it correct?

Monkeh:
Try a voltage divider..

Hants:
Not very safe..

I have just discovered optocouplers! :-)

Navigation

[0] Message Index

Go to full version