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 Using Cat5 Cable for communications with Arduino
  • 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 Verified Answer
  • Replies 10 replies
  • Answers 2 answers
  • Subscribers 392 subscribers
  • Views 1479 views
  • Users 0 members are here
  • 595
  • led
  • arduino
  • home
  • automation
Related

Using Cat5 Cable for communications with Arduino

funinalaska
funinalaska over 11 years ago

I am working on a home automation wiring project.

Before I go too far I have one major question.

I am planning to use a series of 8 channel relay boards to control lighting.

I plan to distribute these relays in 3 different areas in the house.

My question is what kind of wire length can I have between my arduino control center and my satellite relay panels?

I am planning to use 595 shift registers so I can reduce my communications lines between the arduino and the relay panels.

Before anyone asks, yes my relays are all opto isolated for safety and the relays will also be switching low voltage not service live voltage.

I am planning to use an arduino mega.

I would like to distribute these 3 relay panels as well as at least 2 hard wired control interfaces in addition to the relay panels, but I am still trying to find exactly how I want to do those.

  • Sign in to reply
  • Cancel
Parents
  • Robert Peter Oakes
    0 Robert Peter Oakes over 11 years ago

    You need to remember that Cat5 cable is a transmission line and has a characteristic impedance of 100ohms

     

    If your driving a signal through a long length you need to drive with the right impedance (100ohm source impedance) and also terminate correctly (100ohm load). If not you will get reflections and things will end in tears

     

    Do you have power at the relay end or are you also planning on delivering the power over the same Cat5 cable, if so you also need to consider that you will drop voltage over its length also and it will be susceptible to noise if not correctly terminated

     

    If you are placing a low end controller with each relay board, you could use an Ethernet adapter for communications and also have the option to remote temperature and humidity sense among other things.

     

    Just a though

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • funinalaska
    0 funinalaska over 11 years ago in reply to Robert Peter Oakes

    I was not planning to put a controller at each point

    these relay panels will be located in areas where I will not be interested in having sensors or additional processing.

    That being said I have considered it however I do not currently have a large enough quantity of controllers or ethernet adapters to do what I would like to do.

    The panels will each have 12v and 5v supplied locally so the only thing I need in the communication cable is the signal and the ground.

    I would consider using other cable, possibly standard 4 conductor phone wire instead if that would make the signal more reliable.

    the greatest run I am looking at will be right around 30 feet. probably a little less.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 11 years ago in reply to funinalaska

    no matter what cable you use it will need to be terminated correctly if you want it to be reliable. Cat5 is reliable and a known characteristic (100Ohm), as I said you just need to drive it correctly

     

    Using an RS485 line driver at each end may do the trick but you may be up to the cost of a low cost Uno and ENC Ethernet card so not worth the effort ?

     

    just a thought

     

    regards

     

    Peter

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • Robert Peter Oakes
    0 Robert Peter Oakes over 11 years ago in reply to funinalaska

    no matter what cable you use it will need to be terminated correctly if you want it to be reliable. Cat5 is reliable and a known characteristic (100Ohm), as I said you just need to drive it correctly

     

    Using an RS485 line driver at each end may do the trick but you may be up to the cost of a low cost Uno and ENC Ethernet card so not worth the effort ?

     

    just a thought

     

    regards

     

    Peter

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
  • funinalaska
    0 funinalaska over 11 years ago in reply to Robert Peter Oakes

    I was going through my stuff and found (I forgot I had) a bunch of Arduino Pro Minis

    These are the ones without USB.

    I have not tinkered with them yet, I also do have 2 ENC Ethernet cards I forgot I bought.

    One is the normal ENC28J60 and the other is a mini ENC28J60

    I also have not yet had a chance to tinker with either of these.

    My understand is these are 3.3v ONLY.

    Which means I will need to get a level converter for each of them.

    I do have one 3.3v Pro Mini but I was holding that for another project that will be using all 3.3v components.

    Maybe I will use that board to tinker with the ENC just to get an understanding of how they work.

    Can you point me toward a good but cheap logic lever converter that will work with the ENC?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 11 years ago in reply to funinalaska

    I think you may find the ENC boards are 5V tolerant on the data lines, you just need 3V3 on the Power. I have never used a level converter on the UNOs I have plugged the ENC into

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • funinalaska
    0 funinalaska over 11 years ago in reply to Robert Peter Oakes

    Ok, well that makes things a whole lot easier.

    Now all I need to do is learn a WHOLE LOT about getting my Arduino Mega to communicate commands to the other boards.

    Since I know almost nothing about networking this should get interesting.

    I guess my first step should be making sure that my ENC boards and my Pro Mini boards are all working.

    I also need to figure out how to upload sketches to the minis using arduino UNO as the interface

    So I guess I have a lot of work to do, well it will come along eventually.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 11 years ago in reply to funinalaska

    Whole bunch of good stuff here, need some time to watch it and try out the code but it should help alot

     

    http://www.element14.com/community/groups/arduino/blog/2014/06/09/fast-track-to-arduino-programming

     

    There my tutorials and I do cover off using the Ethernet (ENC and WIZNET) and also responding to commands and sending responses over serial and Ethernet.

     

    Enjoy

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • funinalaska
    0 funinalaska over 11 years ago in reply to Robert Peter Oakes

    I will definitely be looking at those tutorials.

    First I need to figure out what I am doing with the Pro Minis.

    I bought a bunch of them at the beginning of the year for a project I was doing for someone

    I have about 5 left, Now I just need to remember how to program them.

    Then I need to look at those ENC boards.

    I need to make sure the 2 I have will work with what I am using, then I will start looking at your stuff

    the final will be a main central control (an arduino mega with a 5100 shield) and 2 pro minis with ENC boards running the relays.

    Eventually I am going to get a couple more of the ENC boards and use a couple more of the Pro Minis for control interfaces in remote locations.

    This will be a complex project but it is very easily broken into smaller components so i will work on each smaller component and make sure I have one thing working before moving on to another interconnecting piece. I am actually going to save the central control till last as that will be the most difficult for me as far as the programming goes.

    It will be a long process.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 11 years ago in reply to funinalaska

    I have a project I've been working on for a while now with a friend of mine in the UK, we have over 10 remote sensor nodes to a master controller with power control, Temp sensing, humidity (Inside and Out), PWM, Infra-red remote and everything, including the use of ENC and the NRF24L01 boards for talking to the nodes rather than the ENC (NRF don't need the wires and are real cheap)

     

     

    oh and Tablet / Smart Phone remote access (UK to Spain for instance)

     

    So if you get stuck, feel free to ask away

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • funinalaska
    0 funinalaska over 11 years ago in reply to Robert Peter Oakes

    I realized I have a few NRF24L01 boards and I may make use of them for my remote control panels.

    I have yet to successfully get them working, maybe I have not yet found the right tutorial.

    Hoping yours will make things make more sense to me.

    I also have a couple 433mhz transmitters and receivers.

    I would consider using those as well, but not sure exactly what for yet.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify 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