I have a switch that has 24 Volts that I need to feed into an Arduino. I also need an LED to show the status of the 24v signal. Will the attached circuit do the job, or is there an easier way to do it?
Attachments
-
160.5 KB Views: 582
Ah, okay. That makes sense. Thanks!LED cathode to ground. 1k resistor to LED anode. 5K resistor in series to 1k to 24v. Take 5v from junction of 5k and 1k.
Scott,
Hoping to be enlightened ...
Phil
You should know more about the zener.I don't really understand the purpose of the Zener diode and the capacitor. Are they to protect against surges?
The output will be fixed under 5.1V,Also, I am perplexed by the resistances. If R2 is 330 ohms, doesn't R1 have to be around 1220 ohms to result in a 5.1V signal for the Arduino?