element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Arduino relay board distance limitations
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 5 replies
  • Answers 2 answers
  • Subscribers 393 subscribers
  • Views 886 views
  • Users 0 members are here
  • arduino
Related

Arduino relay board distance limitations

Former Member
Former Member over 9 years ago

I'm completely new to Arduino, but diving in head first. I presently have multiple isolated control boxes of timers and relays controlling a number of things around my home and hobby farm such as outdoor lighting at dusk, automatic feeding of horses 4 times a day, exhaust fans, opening and closing windows in the barn depending on temp and humidity. Well I think it's time I consolidated all these isolated devices into one controller and get with the times...... My first question is the operating distance a relay module can safely operate over 22 ga twisted pair wire. As I am bringing everything back to a central point in my home, my analog experience tells me to calculate voltage drop. I can remotely power each relay board, but the high/low digital signal is where I get lost. I don't know the current, and not sure if it's even relative with a digital signal. So...... I would appreciate any knowledge you can share with me regarding the maximum distance over 22ga twisted pair you can safely operate a relay module. I have one location of a pump, that is 900m away, will it work???? Can this be compared to DSL internet where the modem can be 7 or 8 km's from the exchange equipment and the digital signal is fine????

 

 

Love to hear your comments on this and any experience you've had.

  • Sign in to reply
  • Cancel

Top Replies

  • mcb1
    mcb1 over 9 years ago +2 suggested
    My first question is the operating distance a relay module can safely operate over 22 ga twisted pair wire The answer to that depends on the current required to operate the relay coil. Obviously the more…
  • Former Member
    Former Member over 9 years ago +1 suggested
    Hi I wouldn't opt for either of these two methods although they may work when you running fairly long distances I would personally consider using RS485 as the protocol to communicate btw smaller devices…
  • Robert Peter Oakes
    0 Robert Peter Oakes over 9 years ago

    I would suggest that you dont try to consolidate all the actual physical control points at the house but instead keep the switches / Reslays at the point of control. Upgrade them for sure to use Arduino, ESP8266 or other modules more suited to automated and modern control systems

     

    Have a House placed master controller for sure, running on a Raspberry PI 2 with 7" LCD would be awsome

     

    The control points though especially given 900M dstance would be better communicated with using either CAT3 or 5 twisted pair ethernet or RS485 serial communications, both of which are good for this distance (There up to 1200M or more)

     

    even WIFI is only typically good for about 300M with no obstructions though a sub Ghz radio link may easily cover the distance, for instance the TI sub GHz radio modules or many other types you can find arround the EBays and AlliExpresses of the world

     

    If you can provide a sketch of you proposed control system, (A Map of the farm so to speak) showing distances and the types of things your controlling, then I will be in a much better position to help

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mcb1
    0 mcb1 over 9 years ago

    My first question is the operating distance a relay module can safely operate over 22 ga twisted pair wire

    The answer to that depends on the current required to operate the relay coil.

    Obviously the more powerful the relay, the larger the coil.

     

    You could trigger an optocoupler, which then operates the relay on the board.

    It seems you can provide power to the board, but the control wire size is limited.

     

    To give an idea, I have some trip systems at the skifield that are 1km away from the switch.

    Bascally 5v is fed into Pin1 (Anode) of an optocoupler, and Pin 2 (Cathode) travels 1km up the wire, then the switch shorts this to the ground wire, which is also at the original source point (effectively a 2km round trip) using telephone cable.

    image

    Mark

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago in reply to mcb1

    Thanks Mark! That is exactly what I was looking for. My intention was to use an 8 channel optocoupler relay board, so the relays themselves can be powered remotely. If you are currently running 2km of wire, mine should be fine as well.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • mcb1
    0 mcb1 over 9 years ago in reply to Former Member

    01221

    There are some things to watch for on commercial opto relay boards.

     

    They are really designed for 12v trigger, and some may not function using 5v switching.

     

    It is relatively simple to either bridge the on board LED (not the best) or add a lower value resistor across the series resistor (usually a 1k).

    Terry King has the details on his site.

    Opto-Isolated 8 Channel Relay Board(Price reduced again)

     

    BTW the varistor is across the switch contact to prevent lightning from causing any issues if the switch is open.

    During the off season we tend to unplug the board, but you might want to consider lightning as it can cause one 'ground' to rise above another 'ground'.

     

    Mark

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago

    Hi

     

    I wouldn't opt for either  of these two methods although they may work when you running fairly long distances  I would personally  consider  using RS485  as the protocol to communicate btw smaller devices and processors  a cheaper method  more reliable method of doing this

     

    If you were considering wireless communications you would be far better with physical hardware connections  Its far more reliable than esp8266 at present although this implements a full tcp ip stack you have to consider that you would be using UDP over cat 5  which is the useless datagram protocol as some correctly  describe this as Restful services with json integrating serial port applications using client server technology via web page interface  might be another option but agin unless you've spent some time with this It is unfortunately a question of time  with very in depth theory required

     

    A much stronger alternative is often described as the DCI Bus

     

    The idea of using an op-to coupler is  good design but id apply this to  each receiver  on the output side which sits on your multi-point Rs485 design to drive your relays rather than your input side

     

    That way you can have each microchip addressable

     

    Ideally my suggestion would be to use a master and slave routine on this with the master controller sending out your serial packets which contain destination address op code and CRC checksum with an ack once your relay has been activated 

     

    Hence you then also  have some form of fault diagnosis  in other words has the relay been actuated via ack

    Here is some more info on rs485  with schematics for you to study and implement in your design  https://www.dcisite.be/dcibus.html

     

    When producing your final relay driver board and micro receiver on each be very careful about track spacing and also induced RF via the relay coil Ive found this to be quite a problem on previous designs so good decoupling is needed as well as reverse emf protection to prevent destruction of relay driver stage and also upsetting the ports of the cpu

     

    Thats the best advice I can provide based on practical designs that Ive produced myself

     

    For further reading on the RS485 interface please see the following

     

     

     

    RS485, specifications and in depth tutorial

     

    I wish you luck with your project

     

    Mark Harrington

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube