Hello,
I am wondering what I can use to make my raspberry pi look for a certain resistor connected to a GPIO pin. I spent some time looking, but I can't really find anything. It does not need to look for an exact resistor amount, just close enough.
The reason being I need (imagine you have two contacts):
Open circuit = bad
Shorted circuit = bad (circuit needs to be able to withstand being shorted)
Specific resistor = good
I know if send 12v through the resistor, I can end up with 6v.
Then if I read (same two contacts):
12v it is open (bad)
0v it is shorted (bad)
6v it has resistor (good)
Then I would need to get this down to 3.3-5v for the gpio of the raspberry pi. I just don't know what type of chip(s) I need. I looked at octocouplers and comparators, but I don't think they would work. I would essentially need an octocoupler or relay that only works at 6v. Then again, I may be looking at this all wrong and I don't even have to work with different voltages.
If anyone has a suggestion I would greatly appreciate it!
I am wondering what I can use to make my raspberry pi look for a certain resistor connected to a GPIO pin. I spent some time looking, but I can't really find anything. It does not need to look for an exact resistor amount, just close enough.
The reason being I need (imagine you have two contacts):
Open circuit = bad
Shorted circuit = bad (circuit needs to be able to withstand being shorted)
Specific resistor = good
I know if send 12v through the resistor, I can end up with 6v.
Then if I read (same two contacts):
12v it is open (bad)
0v it is shorted (bad)
6v it has resistor (good)
Then I would need to get this down to 3.3-5v for the gpio of the raspberry pi. I just don't know what type of chip(s) I need. I looked at octocouplers and comparators, but I don't think they would work. I would essentially need an octocoupler or relay that only works at 6v. Then again, I may be looking at this all wrong and I don't even have to work with different voltages.
If anyone has a suggestion I would greatly appreciate it!