Hi! I've got a bunch of 1-wire I/O devices, and wrote software to talk to them, and that's all working great. However, I couldn't find simple information on how to connect inputs to the DS2406. I'm not an engineer, so the data sheets are fine for TMEX programming, but I don't know the electrical side.
I have input boards from Embedded Data Systems. I have 3 inputs connected to my garage doors, and they seem to work fine as follows:
- 100k resistor between the input and Ground
- +5 running through a normally closed magnetic sensor on the garage door back to the input
This keeps the input high, and when the door opens and the circuit is broken, the input state changes and my software picks it up. It also seems to work with the resistor between +5 and the input, and running the ground through the sensor. Is either way preferred? Is this even correct?
Now the real issue: Detecting a quick contact closure using the latch input. I have a driveway sensor that momentarily closes a relay. When I do a setup similar to the above through the NO relay, the closures are missed. If I hold a wire across the contacts for about a second, the input is detected. Shouldn't the latch input detect a momentary closure? It certainly did during my testing & development.
I found that if I didn't have the resistor in place, the latch would trip periodically on its own. It also seemed less reliable running the +5 through the relay, so I have the resistor between the input and +5, and am running ground through the relay.
Hope all this makes sense.
Thanks!
Seth
I have input boards from Embedded Data Systems. I have 3 inputs connected to my garage doors, and they seem to work fine as follows:
- 100k resistor between the input and Ground
- +5 running through a normally closed magnetic sensor on the garage door back to the input
This keeps the input high, and when the door opens and the circuit is broken, the input state changes and my software picks it up. It also seems to work with the resistor between +5 and the input, and running the ground through the sensor. Is either way preferred? Is this even correct?
Now the real issue: Detecting a quick contact closure using the latch input. I have a driveway sensor that momentarily closes a relay. When I do a setup similar to the above through the NO relay, the closures are missed. If I hold a wire across the contacts for about a second, the input is detected. Shouldn't the latch input detect a momentary closure? It certainly did during my testing & development.
I found that if I didn't have the resistor in place, the latch would trip periodically on its own. It also seemed less reliable running the +5 through the relay, so I have the resistor between the input and +5, and am running ground through the relay.
Hope all this makes sense.
Thanks!
Seth