Hello
I am trying to find the best solution to interface a 9-30V input signal to logic level so I can read the input on my AVR.
I am building a flasher unit that can be powered between 9-30V which will also power 2-4 beacons.
The beacons are enabled from a 555 timer switching a 9-30V trigger.
The beacons return a 9-30V input signal that tells the flasher unit if there is an LED fault.
To get the voltage from 9-30V to 5V the best solution I have come across is to use a optoisolator.
Because all the beacons are powered from the same source as the flasher unit the grounds will not be isolated.
So I was wondering if it is ok to use the same ground on both sides of the optoisolator?
Then the 9-30V fault signal will still have a reference to ground and will also still be isolated from the AVR if a technician wires it up incorrectly?
The only other way I have thought of is to use a zener diode so when there is an input voltage it is always clamped down to 5.1V instead of 9-30V?
I have managed to increase voltages but am having a hard time decreasing them, I can't use a voltage divider as the input voltage can vary and couldnt find a way of doing it using a transistor? so thought maybe zener diode?
Any advice appreicated
Thanks
I am trying to find the best solution to interface a 9-30V input signal to logic level so I can read the input on my AVR.
I am building a flasher unit that can be powered between 9-30V which will also power 2-4 beacons.
The beacons are enabled from a 555 timer switching a 9-30V trigger.
The beacons return a 9-30V input signal that tells the flasher unit if there is an LED fault.
To get the voltage from 9-30V to 5V the best solution I have come across is to use a optoisolator.
Because all the beacons are powered from the same source as the flasher unit the grounds will not be isolated.
So I was wondering if it is ok to use the same ground on both sides of the optoisolator?
Then the 9-30V fault signal will still have a reference to ground and will also still be isolated from the AVR if a technician wires it up incorrectly?
The only other way I have thought of is to use a zener diode so when there is an input voltage it is always clamped down to 5.1V instead of 9-30V?
I have managed to increase voltages but am having a hard time decreasing them, I can't use a voltage divider as the input voltage can vary and couldnt find a way of doing it using a transistor? so thought maybe zener diode?
Any advice appreicated
Thanks
Attachments
-
354.2 KB Views: 13