I have an old alarm system I would like to connect to a raspberry pi,
the alarm system uses a voltage of 4.5v for digital 0 and 9v for digital 1
I need somehow to reduce 4.5v to close to 0 volts and 9v to 3.3v for digital 1 of the raspberry pi.
Voltage divider circuit with a zener is the best I could do but it doesn't achieve the close to 0
Any help would be appreciated.
the alarm system uses a voltage of 4.5v for digital 0 and 9v for digital 1
I need somehow to reduce 4.5v to close to 0 volts and 9v to 3.3v for digital 1 of the raspberry pi.
Voltage divider circuit with a zener is the best I could do but it doesn't achieve the close to 0
Any help would be appreciated.