1-Wire input question with DS2406

SethP

Member
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
 
Partially solved...the "delayed latch" was a software problem on my end. The sensor does correctly pick up an instaneous input and latch.

So, my questions then are just what the best ways to wire this is.

Thanks!

Seth
 
Thank you. That is exactly what I was looking for. Question: You show 10k resistors between the PIO & +; do you think I'll run into any issues with the 100k resistors I have in place now?

Also, I just received two of your relay boards, and I really like them. They should be controlling some skylight shades as soon as I can get the wires run.

Thanks!

Seth

Seth,

Have a look at the wiring diagram in the response for #29 at TEMP08 FAQ

Mitch
 
Back
Top