• 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 fingerprint sensor maximum cable length , arduino sensor cable length , long cables for arduino

This Article Has Been Shared 877 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 (24.3K 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

  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023
  • What is Vehicular Ad-Hoc Network? January 24, 2023
  • Difference Between Panel Light, COB Light, Track Light January 21, 2023

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, January 29, 2023, https://thecustomizewindows.com/2021/04/what-is-the-maximum-cable-length-between-arduino-esp32-and-a-sensor/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

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

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

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT