Author Topic: Arduino connected to remote motion sensor (~10m)  (Read 1529 times)

0 Members and 1 Guest are viewing this topic.

Offline c64Topic starter

  • Frequent Contributor
  • **
  • Posts: 311
  • Country: au
Arduino connected to remote motion sensor (~10m)
« on: December 25, 2023, 03:02:19 am »
I want to install quite a few motion detection sensors around the house, inside and outside. Thinking about PIR HC-SR501. To minimize amount of wires used (and not enough pins anyway), I plan to have one Arduino in the center, connected to multiple others, which are in turn connected to multiple PIR sensors. Wires will be long, probably up to 10m or maybe even 20m. Can I use just standard wiring (maybe with some pull-up or pull-down resistors) or need to have some 50Ω or 75Ω drivers and cables? Any extra protection required, like diodes?

Also, is it OK to power them all from one power supply connected to the central arduino?
 

Offline coromonadalix

  • Super Contributor
  • ***
  • Posts: 7380
  • Country: ca
Re: Arduino connected to remote motion sensor (~10m)
« Reply #1 on: December 25, 2023, 04:17:46 am »
well you have arduinos with lan, and you can or could use rs485 ...

and in lan you could use poe "power over ethernet"  enabled stuff

esp32  or some raspi with wifi


many possibilities
« Last Edit: December 25, 2023, 04:19:17 am by coromonadalix »
 
The following users thanked this post: c64

Online Ian.M

  • Super Contributor
  • ***
  • Posts: 13412
Re: Arduino connected to remote motion sensor (~10m)
« Reply #2 on: December 25, 2023, 04:49:15 am »
The 'simple' approach of running single-ended logic level signals to/from bare I/O pins over multicore wiring and distributing 5V and (signal/power) Gnd via the same is fraught with problems.  Induced transient currents will commonly exceed I/O pin internal clamping diode ratings, requiring far more complex circuits to externally clamp and current limit incoming signals, and overload protected external drivers for outgoing signals.  The voltage drops in the power and ground distribution must also be considered - voltage drop in power is manageable by local regulation from a higher voltage, but voltage drop in Gnd directly compromises your logic low thresholds, reducing noise immunity, causing an incorrect state to be detected.   One can use local flyback converters for power so power and signal grounds can be isolated, but generally its easier to simply use differential signalling, which (with good choice of transceivers) can tolerate a moderate ground offset + reduce sensitivity to common mode noise.
 
The following users thanked this post: c64

Offline ArdWar

  • Frequent Contributor
  • **
  • Posts: 721
  • Country: sc
Re: Arduino connected to remote motion sensor (~10m)
« Reply #3 on: December 25, 2023, 09:48:56 am »
If you insist on using low wire count connection you can try design the remote system as 4-20mA transmitter circuit. Design it properly and you can even power the circuit and transmit the signal simultaneously using only two wire, but that's quite a lot of thinkering needed and I doubt arduino can even fit within the power budget here.

I'd simply use differential signaling. Beware of induced common mode voltage tho.
 
The following users thanked this post: c64

Offline zapta

  • Super Contributor
  • ***
  • Posts: 6405
  • Country: 00
Re: Arduino connected to remote motion sensor (~10m)
« Reply #4 on: December 25, 2023, 02:27:04 pm »
Have you consisted a wireless link for the data?
 
The following users thanked this post: c64

Offline ajb

  • Super Contributor
  • ***
  • Posts: 2828
  • Country: us
Re: Arduino connected to remote motion sensor (~10m)
« Reply #5 on: December 25, 2023, 06:59:54 pm »
You don't need anything fancy for the PIR sensors at 20m.  Input protection at the Arduino end is never a bad idea (external clamp diodes, rc filter), at the PIR end you might benefit from a series resistor on the signal output and some extra bulk capacitance on the power lines if there isn't enough on the board.

For Arduino-to-Arduino connectioms, it depends on the data rate required.  A simple UART link over RS485 would be a good solution for up to a few Mbps (depending on which kind of "Arduino", UART will max out at a few 100kbps anyway), and allow you to daisy chain from one device to another. Signal cabling for that should be twisted pair, Cat 5 or similar with one pair for data and the other three pairs ganged together for power can work well.  RS485 transceivers are generally somewhat robust, likely good enough for a home installation as they are, but a couple of TVS diodes at each node wouldn't be a bad idea.
 
The following users thanked this post: c64

Offline c64Topic starter

  • Frequent Contributor
  • **
  • Posts: 311
  • Country: au
Re: Arduino connected to remote motion sensor (~10m)
« Reply #6 on: December 25, 2023, 10:34:27 pm »
Have you consisted a wireless link for the data?
I'm open for suggestions
 

Offline tooki

  • Super Contributor
  • ***
  • Posts: 13590
  • Country: ch
Re: Arduino connected to remote motion sensor (~10m)
« Reply #7 on: December 26, 2023, 11:43:07 am »
ESP32 supports WiFi and ESP-NOW, its own lightweight wireless protocol, natively. (Hardware is built in.) Or LoRa, which is pretty much designed for this type of application.
 
The following users thanked this post: c64

Offline coromonadalix

  • Super Contributor
  • ***
  • Posts: 7380
  • Country: ca
Re: Arduino connected to remote motion sensor (~10m)
« Reply #8 on: December 28, 2023, 09:03:19 pm »
xbee's
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf