• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » What is the Maximum Cable Length Between Arduino/ESP32 and a Sensor

By Abhishek Ghosh April 8, 2021 6:25 pm Updated on April 8, 2021

What is the Maximum Cable Length Between Arduino/ESP32 and a Sensor

Advertisement

After reading our guide on How to Interface a Piano/Rocker Switch (SPST) With ESP32 Arduino, one reader has asked whether it is possible to keep all his ESP32 with relays and indicators at one room and connect the switches, sensors of the whole house via cables. That is possible to deploy but various hardware components will be required. Also, coding may need some change. I believe that so huge work is practical for one sensor but not for a bunch of switches. The software-based IoT hubs avoid the complexities of communication.

The length of the cable will depend on the type of signal transmitted such as whether it is analogue or digital, its frequency, low/high impedance of the signal source, the type of cable used and so on. For I²C, the length is better to be within 3 meters. The length can be made as long as 300 meters.

With a 22AWG cable length of 50 meters and a 100mA current, the voltage drop would be around 1 V. The capacitance of any cable will affect the rise and fall times of the signals. That can affect the measured duration of the pulse received from the sensor. As for the analogue signals, it may be important to add a capacitor to decouple the power to the sensor at its terminals. But, really I wouldn’t add capacitor alone to the sensor line. I will also add a resistor before the filter capacitor. In the case of an SPST switch, following this way you can practically use a 100 meter shielded cable (like CAT 5e cables or cables that are used for phone lines).

Advertisement

---

For longer distances, and to save from electrical noise, differential signalling is often used. RS-422 systems can transmit data at rates as high as 10 Mbit/s or may be sent on cables as long as 1,500 meters at lower rates. PES-2607 is an RS422/RS485 Expansion Board for Arduino Uno. There are few articles on this internet on how to interface RS485 modules with ESP32 and write the code. There are different error detection algorithms and schemes for such kind of setup. There is Reed–Solomon error correction library for Arduino/ESP32. I discussed about Kalman filter, which can be tested.

What is the Maximum Cable Length Between Arduino ESP32 and a Sensor

But, the space on ESP32 is too little. It is so small space that I had to edit the code for Detect Smartwatch With ESP32 on IBM Watson IoT Widget, even after Solving ESP32 Sketch Too Big Error. If you use a lot of pins then the code probably will become enough big not to fit on an ESP32. The idea was great but difficult to implement using wires. Instead, you can have a “physical control panel” connected over Wi-Fi or the internet.

Using one ESP32 per room is the usual norm. It is possible to use one ESP32 for two adjacent rooms, corridors etc as the length of the cable will not exceed 10 feet.

Tagged With arduino sensor cable length , long cables for arduino

This Article Has Been Shared 677 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to What is the Maximum Cable Length Between Arduino/ESP32 and a Sensor

  • How to Invert Signal for Arduino (HIGH to LOW or the Reverse)

    Such need is common when then need interfacing for IoT with household gadgets. Here is How to Invert Signal for Arduino (HIGH to LOW or the Reverse).

  • ESP32 Arduino IBM Watson IoT Pulse Sensor Amped

    Here is Simple ESP32 Arduino IBM Watson IoT Pulse Monitor With Easy Coding and Default Graphing Widgets of IBM Watson IoT. It is usable for testing purpose.

  • Alexa with ESP32 Arduino and Watson IoT Platform : Fundamentals

    Here is How Combine Alexa with ESP32 Arduino and Watson IoT Platform to Control DIY Smart Home IoT Switch Board or Anything We Want.

  • Pulse Oximeter with ESP32 and MAX30102

    The MAX30100 IC is an integrated pulse oximetry module two LEDs, a photodetector, optimized optics, and low-noise analogue signal processing designed for the wearable devices and medical devices. The MAX30102 IC is an upgrade to The MAX30100 and The MAX30101 IC. Here is the datasheet of MAX30102 (website of MAXIM). The PDF will give you […]

  • How to Interface a Piano/Rocker Switch (SPST) With ESP32 Arduino

    We are talking about the regular white colour rocker switches which are commonly used across the globe. They came into the market in the 70s replacing the tumbler switches made up of Bakelite and China clay. They are SPST switches ( read our old article Type of switches to know more). They have different names […]

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (22.1K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Types of Blackjack Variants: Discover the Different Versions of the Game May 23, 2022
  • How Cloud, Robotics And Sensor Technologies Are Changing The Business Landscape May 23, 2022
  • Modernizing Your Business With a Hybrid Cloud Strategy May 22, 2022
  • Big Data in Sports May 20, 2022
  • FaaS Versus PaaS Deployment: What You Should Know May 18, 2022

About This Article

Cite this article as: Abhishek Ghosh, "What is the Maximum Cable Length Between Arduino/ESP32 and a Sensor," in The Customize Windows, April 8, 2021, May 24, 2022, https://thecustomizewindows.com/2021/04/what-is-the-maximum-cable-length-between-arduino-esp32-and-a-sensor/.

Source:The Customize Windows, JiMA.in

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Privacy Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2022 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy