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…
Parents
  • 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
Reply
  • 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
Children
No Data
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