I have a project where I have a bunch of motion sensors that will be distributed over a distance of 40m. I want to connect them all back to an arduino but I need to know how long a 5V logic signal can travel unbuffered? (the motion sensors are open collector and will simply pull a logic line low when triggered)
I am assuming I will need to put in a buffer circuit at some set interval but I am not sure how frequent.
Each sensor requires 12v power so I will already be runnin 12v to each.
If it's a low frequency signal then 40m should be no problem. Simply run a pull-up resistor (say 1kΩ to 5V) at each sensor output. To minimize noise pickup you may want to run shielded wire.
If it's a low frequency signal then 40m should be no problem. Simply run a pull-up resistor (say 1kΩ to 5V) at each sensor output. To minimize noise pickup you may want to run shielded wire.
I have a project where I have a bunch of motion sensors that will be distributed over a distance of 40m. I want to connect them all back to an arduino but I need to know how long a 5V logic signal can travel unbuffered? (the motion sensors are open collector and will simply pull a logic line low when triggered)
I am assuming I will need to put in a buffer circuit at some set interval but I am not sure how frequent.
Each sensor requires 12v power so I will already be runnin 12v to each.
Since you have ~250msec to detect the signal, I would run the signal line back to the uP along with the power and ground (three conductor cable). Shielding would be a plus, but not absolutely required. Put the pull-up resistor at the uP end, not the sensor end. Add some software filtering in the uP code that detects a level change that lasts more than some minimum time, like 250msec.
That's for high frequency operation. For low frequencies there's no limit (as long as you aren't concerned about possible multiple signals from the reflection, which is the case here).
If the sensors are REALLY that "strewn around" hookup a transistor as a switch and use it to OOK a 12V o/p signal (you are feeding 12V anyways .. so use that)
The only way common mode will be a problem is if the sensors develop a voltage across the ground line. This is easy to figure out.
How much 12V current will each motion sensor consume? How many? What gauge wire? I assume this is a bus and they are all on a common "ground". Is the cable multi-core (e.g. cat-5) and can you use multiple wires in parallel as your ground?
If it's a low frequency signal then 40m should be no problem. Simply run a pull-up resistor (say 1kΩ to 5V) at each sensor output. To minimize noise pickup you may want to run shielded wire.
That's for high frequency operation. For low frequencies there's no limit (as long as you aren't concerned about possible multiple signals from the reflection, which is the case here).