I am trying to find a way to replace a reed relay with solid state components.
I have a 12 volt input coming from a remote switch. The system currently turns on a relay that will pull the pic input to ground. The pic input is normally pulled up to 5v.
I think I can use the bottom circuit with a CMOS 4069 inverter to take the 12v input and generate a 5v ttl output. In this circuit the inverter input is pulled low to give me the high output to the PIC. When the switch is pressed the inverter input goes high (+12vdc) and causes the output to go low (<.5vdc) and pull the pic input to ground.
Looking at the data sheet I think I actually have to supply the cmos with 12vdc but this would then give a Vout High of 14.95 volts.
If I keep the CMOS with a 5vdc supply should I use a voltage divider on the input of the CMOS to get the voltage in the 0-5vdc range?
Or is there a better way of doing this? The relay coil adds noise, need a diode for emf and also has a limited mechanical life span, thus I am looking at a more robust solid state design.
Thanks
I have a 12 volt input coming from a remote switch. The system currently turns on a relay that will pull the pic input to ground. The pic input is normally pulled up to 5v.
I think I can use the bottom circuit with a CMOS 4069 inverter to take the 12v input and generate a 5v ttl output. In this circuit the inverter input is pulled low to give me the high output to the PIC. When the switch is pressed the inverter input goes high (+12vdc) and causes the output to go low (<.5vdc) and pull the pic input to ground.
Looking at the data sheet I think I actually have to supply the cmos with 12vdc but this would then give a Vout High of 14.95 volts.
If I keep the CMOS with a 5vdc supply should I use a voltage divider on the input of the CMOS to get the voltage in the 0-5vdc range?
Or is there a better way of doing this? The relay coil adds noise, need a diode for emf and also has a limited mechanical life span, thus I am looking at a more robust solid state design.
Thanks