Telescoping EMT Conduit Pole Extension Sensing Methods + Photoresistor Implementation

by Penguingineer in Circuits > Arduino

1602 Views, 10 Favorites, 0 Comments

Telescoping EMT Conduit Pole Extension Sensing Methods + Photoresistor Implementation

IMG_20220130_004638.jpg
Photoresistor Extension Sensing EMT Conduit Telescoping Pole Demo
1 x pc 1-2 to 3-4 and 3-4 to 1 plus conduit.jpg

This article is part of a series discussing methods for adding sensing capabilities to a DIY telescoping pole project made from EMT conduit. Our previous article presented a strain-gauge based method for measuring the tip force on an EMT conduit pole. Now, the following article shares:

  • Seven different methods for sensing the extension length of a telescoping pole made from EMT conduit!
  • An in-depth look at the photoresistor-based technique among that list of methods.


While the extension length of a telescoping pole can be simply measured using a tape measure, a system for continuously logging such measurements is useful for many different telescoping pole applications and projects:

  1. Know if the pole has slipped
  2. Set a repeatable length (e.g. deployable fruit picker)
  3. Flagpole height measurement, at full mast, half mast, or anywhere in-between
  4. Set the height of an archery or hunting target
  5. Use the telescoping pole itself as a measuring stick
  6. And more!

This article will show you how to add extension-sensing to an EMT conduit telescoping pole by utilizing low-cost, off-the-shelf components:

  • EMT conduit telescoping coupling
  • 1", 3/4", and 1/2" EMT conduit from your local hardware store
  • Photoresistor/light dependent resistor (LDR)
  • An Arduino microcontroller
  • And some additional electronics!

Supplies

To create this DIY telescoping pole from EMT conduit with extension-sensing capabilities, you will require the following tools and supplies.

Disclosure: Some of the links in this article are affiliate links. This means that, at zero cost to you, I will earn an affiliate commission if you click through the link and finalize a purchase.

  1. 1 x Arduino Nano clone
  2. 2 x Light-detecting resistors (LDRs)/Photodiodes
  3. 1 x ADS1115 analog-to-digital converter (ADC)
  4. 1 x Ultra-bright clear green emitting LED from Lighthouse LEDs
  5. 1 x 10mm THT LED panel holder
  6. 1 x Stranded wire assortment
  7. 1 x 400-Point Solderless breadboard
  8. 1 x Assorted resistors kit
  9. 1 x Soldering iron
  10. 1 x Telescoping coupling/clamp for 1/2" to 3/4" EMT conduit
  11. 1 x Telescoping coupling/clamp for 3/4" to 1" EMT conduit
  12. 1 x Rotary cutting tool
  13. 1 x Rotary deburring tool
  14. 1 x 5-foot piece of 1/2" EMT conduit
  15. 1 x 5-foot piece of 3/4" EMT conduit
  16. 1 x 5-foot piece of 1" EMT conduit
  17. (Optional) 1 x JST-SM connectors assortment
  18. (Optional) 1 x IWISS wire-crimping tool
  19. (Optional) 1 x FDM 3D printer
  20. (Optional) 1 x 1.75mm black PLA filament

Choose Your Sensing Method

Extension Sensing - All Diagrams Combined V2 - Draft 28 Jan 2022.png
Extension Sensing Separate Diagrams - Rolling Wheel.png
Extension Sensing Separate Diagrams - String Potentiometer.png
Extension Sensing Separate Diagrams - Non-Reflectance Light Sensing.png
Extension Sensing Separate Diagrams - Inductive Sensing.png
Extension Sensing Separate Diagrams - Capacitive Sensing.png
Extension Sensing Separate Diagrams - Conductive Elastic Cord.png
Extension Sensing Separate Diagrams - Reflectance Sensor.png

There are many methods to add extension sensing capabilities to a telescoping pole. We summarized seven unique sensing methods in our infographic image above, comparing the pros and cons between the different methods. More details regarding each method are shared below. Feel free to save our infographic image as a reference for whenever your next DIY telescoping pole project requires an extension-sensing solution!


Method 1 - Rolling Wheel

  1. This sensing method relies on tracking the number of turns a contacting wheel has undergone against the pole.
  2. Two types of sensors are readily available for purchase, and are compatible with an Arduino microcontroller. The extension distance of the pole is related to the number of turns of the contact wheel, which is tracked by one of the two sensor choices below.
  3. Rotary encoder
  4. Encoders such as the above output two pulse signals (channel A and B), which are read and processed by the Arduino using a library such as this, to determine the current position of the encoder based on the sum of the detected pulses along with their direction (clockwise or counterclockwise.)
  5. Encoders can rotate continuously, without needing to worry about hitting a hard stop. These sensors measure the change in the position of the wheel, not its absolute position.
  6. Multi-turn potentiometer
  7. The resistance of a potentiometer varies linearly with the number of times the potentiometer has turned.
  8. One drawback of using a potentiometer as a contact wheel sensor is that a hard stop limit may be hit during operation. However, unlike an encoder, the potentiometer measures the absolute rotational position of the wheel, so extension measurements are not dependent on the history of wheel movement.


Method 2 - String potentiometer/draw wire sensor

  1. A wire is attached to the tip of the telescoping pole, and a spring element (such as those found inside a badge reel) retracts the cord when the pole is shortened.
  2. As in method #1 above, a rotational sensor such as a rotary encoder or a multi-turn potentiometer, is again used measure the length of the pole.
  3. Off-the-shelf draw wire sensors exist, and they can be expensive, but some offer very large measurement ranges which may be required for your particular project:
  4. 2000mm (78 inch) sensor
  5. 4000mm (157 inch) sensor
  6. Cost-friendlier draw wire sensors require DIY solutions, such as the following shared on YouTube:
  7. https://youtu.be/rGB2NAki0PI
  8. https://youtu.be/NsgG6o2HFr4


Method 3 - Non-reflectance light sensing (the chosen method for this article)

  1. This sensing method uses a light emitting diode (LED) in the base of the pole, and a light sensor mounted in the tip of the pole, to measure the pole's length.
  2. Two types of low-cost light sensors are:
  3. Photoresistor/light dependent resistor (LDR)
  4. The electrical resistance changes in the presence of light. Therefore, use this sensor in a voltage divider circuit to read it using an Arduino.
  5. Assortment kits such as this provide multiple photoresistors with varying degrees of sensitivity and response time, depending on your specific project's needs.
  6. Photodiode - can be used in one of two modes (more details here). An operational amplifier is required for both modes of operation.
  7. Photovoltaic mode - used for applications where the intensity of the light is very low, i.e. when your LED is dim, or is far away from the photodiode.
  8. Photoconductive mode - used when a faster sensor response is desired.
  9. The LED which shines on the sensor should be chosen to match the most sensitive wavelength of the sensor. For example, if a sensor is most sensitive to a light wavelength of 940nm, then the LED should also output 940nm.
  10. Here is an example assortment of photodiode/LED pairs with matching wavelengths.
  11. Low-cost photoresistors are typically more sensitive to green light than to red or blue light, so a green LED is most suitable for typical photoresistors.
  12. This assorted kit, for example, is rated for a wavelength of 540nm (i.e. green light.)


Method 4 - Inductive sensing

  1. The total inductance of a wire coil is measured to determine your telescoping pole's extension. The outer tube must be made of a non-metallic material such as plastic, and the inner tube must be made of a metallic material (e.g. EMT conduit.)
  2. As the inner tube moves through the center of the wire coil, its inductance changes. That change in inductance can be measured using a circuit such as the one presented by YouTuber Electronoobs.
  3. In a nutshell, the wire coil is connected in parallel to a capacitor and is powered by the Arduino. When the power from the Arduino is removed, the wire coil and capacitor will oscillate.
  4. An LM339N chip is used to turn those oscillations into on-off (i.e. binary/digital) pulses. A frequency divider chip such as the 74HC04 line is used to decrease the frequency of the pulses so that the Arduino can more easily count them.
  5. The frequency of the pulses counted by the Arduino is related to the position of the inner tube inside the wire coil, and therefore to the pole's extension.
  6. The equation for the inductance of an inductor coil can be found here.


Method 5 - Capacitive strip

  1. The capacitance between two long electrode strips is affected by the presence of an inner tube (which can be EMT conduit or another material), again through the surface of an outer, non-metallic tube.
  2. In addition to the long pair of electrodes that runs lengthwise along the outer tube, two additional electrodes are positioned:
  3. Where the inner tube is always present, near the telescoping coupling.
  4. Where the inner tube will never be present, near the base of the outer tube.
  5. The electrodes can be made simply from adhesive-backed copper tape. Wires are soldered directly to the tape and connected to a capacitance-detecting circuit such as the FDC1004.
  6. The electrodes will have a voltage potential across them. Therefore, if a user is expected to handle the pole, or if the pole will be used outdoors, the electrodes should be electrically insulated to prevent shorts.
  7. For safety, only low voltages should be used to power the electrodes!
  8. If only the extension of the pole is to be measured, other objects must be kept away from the electrodes, because they are affected by the presence of all nearby objects, not just the inner tube.
  9. Alternatively, this property can be taken advantage of - for a pole of unchanging length, the presence of a user, animal or other object near the base of the pole can be detected.


Method 6 - Conductive elastic cord

  1. A stretchable conductive cord is anchored to the base and the tip of the pole.
  2. As the conductive cord stretches, its resistance changes. The cord, acting as a resistor, is measured with a simple voltage divider circuit. A given resistance value corresponds to a given pole length.
  3. The concept is straightforward, and it can be hidden inside the telescoping pole, but it has its limitations:
  4. The conductive cord must be electrically insulated from the EMT conduit inside which it is housed, or else that contact will affect the cord resistance measurements.
  5. The cord's mechanical properties (e.g. it's ability to spring back quickly) may change over time, making the repeatability of sensor readings questionable.
  6. The length of the cord and the pole must be carefully chosen to function within the bounds of the cord's stretching limit (e.g. up to 200% stretch.)


Method 7 - Reflectance sensor

  1. A signal that is emitted from the base of the pole and, reflected off of a panel at the tip of the pole.
  2. Three types of possible reflectance sensors include:
  3. Ultrasonic sound sensor - emits ultrasonic soundwaves. Examples:
  4. HC-SR04
  5. JSN-SR04T
  6. Time of Flight (TOF) sensor - measures the time required for an emitted light pulse to bounce off of its target, in order to determine the distance to the target. Examples:
  7. VL53L0X
  8. TOF10120
  9. Infrared light reflectance sensor - outputs invisible infrared (IR) light, the intensity of which decreases as the target distance increases. The reflected light is measured using a photodiode. An example IR reflectance sensor:
  10. GP2Y0A02YK0F
  11. While these sensors are commonly used in beginner Arduino projects, their wide emitting angle make them a challenge for use with telescoping poles, because the reflecting panel at the pole tip must be large enough to properly reflect back to the sensor and thus be detected.

Assemble Your Telescoping Pole

IMG_20220130_004638.jpg
EMT Conduit Cutting Diagram 10 Sep 2020 - White Background.png
How to Install Coupling 11 Sep 2020 - White Background.png

For this article, we explore the non-reflectance light sensing (photoresistor) method for a DIY telescoping pole made from EMT conduit. The general working principle is:

  1. A green LED is installed in the base of the pole.
  2. A pair of photoresistors is installed in a cap at the tip of the pole.
  3. The sensor readings change depending on their distance to the LED - we can therefore use the readings to determine the extension distance of the telescoping pole.

The tip of the EMT conduit telescoping pole can both rotate as well as extend/retract, but we only want to measure the extension, not the rotation angle. In order to decouple the tip extension from its rotation angle, 2 x light-detecting resistors (LDRs/photoresistors) are installed in the tip, 180 degrees out of phase from one another, and the average of the two sensor readings is read by the Arduino microcontroller. The two photoresistors, being diametrically opposed in the tip cap, will theoretically together provide an output that is independent of the tip's rotation angle, removing its effect on the final reading.

The first step in creating this project is to construct the telescoping pole. Creating a telescoping pole from EMT conduit is easy using the Elation Sports Technologies telescoping coupling system. Here's how we did it:

First, prepare the pieces of EMT conduit which will telescope inside of one another:

  1. Wear protective equipment (e.g. safety glasses). Safety first!
  2. Mark the desired cut length for the EMT conduit using a marker. For this article, we used three 5-foot lengths of 1", 3/4", and 1/2" EMT conduit.
  3. Use a rotary cutting tool to cut the conduit to length.
  4. Remove the sharp edge on the cut using a metal wire, or a rotary deburring tool or reamer.
  5. Process the conduit as desired (paint, powder coat, etc.)

Assemble your telescoping pole - creating a telescoping pole from EMT conduit is easy using the telescoping coupling/clamp system from Elation Sports Technologies:

  1. Press-fit the inner sleeve onto the smaller piece of conduit.
  2. Install the injection-molded coupling/clamp onto the larger piece of conduit using a Phillips head screwdriver.
  3. Extend the pole to the desired length by sliding the smaller piece of conduit, and then tightening the hand knob.

Next, we will prepare the electronics and mount them to the pole.



Prepare the Electronics

Photoresistors Schematic.PNG
1-2 EMT Double Photoresistor Mount 180 Phase v2.PNG
1 EMT 10mm THT LED Mount v5.PNG
1 EMT Solderless Breadboard Mount v3.PNG
IMG_20220130_005924.jpg
IMG_20211025_144131.jpg
IMG_20211025_144127.jpg
IMG_20220130_005022.jpg
IMG_20220130_113314.jpg
IMG_20220130_114406.jpg
IMG_20220130_114651.jpg
IMG_20211212_122318.jpg

LED and Photoresistors Installation

To install the LED and LDRs/photoresistors into the telescoping pole, several mounts will need to be 3D-printed. All the models can be downloaded for free from Thingiverse, here. Assembly steps:

  1. 3D-print the LED and photoresistor mounts, and the solderless breadboard mount for the Arduino microcontroller.
  2. Install the LED and photoresistors into their mounts and add hot glue to secure them.
  3. Solder wires to the leads on the LED and photoresistors, add heat shrink to insulate the soldered connections, and then crimp JST-SM connectors to those wires so they can be easily connected/disconnected.
  4. Install the LED and photoresistor mounts onto the base and the tip of the telescoping pole, and if needed, secure them with a dab of hot glue or with tape.
  5. Connect the remainder of the components as indicated in the schematic.

The purpose of the ADS1115 (analog-to-digital converter/ADC) is to provide higher resolution (16-bit, or 65536 units of resolution) measurements from the photoresistors, as opposed to using the Arduino's on-board ADC can provide (10-bit, or 1024 units of resolution.)

Set Up Codes for Collecting and Processing Sensor Data

Photoresistor Data Flow Diagram.png

The Arduino Nano runs a code that continuously takes measurements from the 2 x photoresistors, and outputs that data to a PC over Serial protocol via a USB-mini cable. The PC runs a Python script that records the Arduino's output data. Alternatively, the Arduino software's Serial Monitor can be used to see that output data.

The scripts and example data are available on GitHub:

  1. Sensing_Pole_Extension_Photoresistor_Clean.ino
  2. The code running on the Arduino Nano, which reads the data from the ADS1115 (analog-to-digital converter) leading from the 2 x photoresistors.
  3. The Arduino is connected to your PC via a USB-mini cable.
  4. Serial_Logger_Clean.py
  5. Python script running on PC, which logs all the data being output by the Arduino over Serial communication
  6. Photoresistor Calibration Data.csv
  7. A table (.csv file) of data, assembled by the user and listing the 2 x photoresistor readings for different pole extension lengths.
  8. This file is an example of how the data should be formatted to be read by the next Python script in this list.
  9. Sensing Telescoping Pole Extension Photoresistor Calibration - Clean.py
  10. Python script that reads in the calibration data and determines the linear fit coefficients (i.e. the calibration coefficients.) Those coefficient values are output to the next item in this list, a short .csv file.
  11. Calibration Fit Parameters.csv
  12. Calibration linear fit coefficients.
  13. Log_19Dec2021_1444PM.csv
  14. The photoresistor data collected from the Arduino during operation of the telescoping pole following the calibration step. If the pole was calibrated correctly, then this new photoresistor data can be processed to determine the pole's extension over time.
  15. Photoresistor Extension Sensing Pole Demonstration - Clean.py
  16. Processes the above photoresistor usage data, and generates a plot of the pole extension over time.
  17. Also creates an animated bar chart of the data (as seen in the video linked in this article.) Requires that the video processing tool FFMPEG be downloaded - it can be found via a quick Google search, or directly downloaded from their original website: www.ffmpeg.org

Calibrate the Sensors

Extension Calibration.png

Here are the calibration steps, which are used to relate the photoresistor readings to the extension length of the telescoping pole:

  1. Mark extension positions along the tip of the telescoping pole, for example at 5, 10, 15, 20, and 25 inches of extension.
  2. Plug the Arduino into the PC, and verify that data is being received by the PC.
  3. For each extension length, record the readings from the two photoresistors.
  4. Take the average of the photoresistor measurement values, and plot them against the extension length - that plot should appear linear (i.e. look like a straight line.)
  5. Take a linear fit of that data - the Python code (item #4 above) posted in the Github link can perform the linear fit. The coefficients that define this linear fit are all that are required to the photoresistor readings to the pole's extension.


The linear equation relating the pole extension (E) to the average photoresistor reading (R) is defined as follows:

E = m*R + b

where:

m = the first linear fit coefficient, representing the slope of the line

b = the second linear fit coefficient, representing the value where the line crosses the zero-reading axis.


Example calibration data and the associated plot are shown above. Note that the average of photoresistor #1 (blue) and photoresistor #2 (orange), form a near-perfect averaged line (green.)

The linear fit coefficients for the example calibration data are:

m = 0.010678

b = -24.98


With the calibration function and its coefficients defined, we can now determine the telescoping pole length from the photoresistor readings!

Demonstration

Extension Demo Data Plot.png
Photoresistor Extension Sensing EMT Conduit Telescoping Pole Demo

To demonstrate that the calibration was successful, we recorded a video and collected photoresistor readings while arbitrarily extending, retracting, and twisting the telescoping pole. The plot shares the output from the two photoresistors over time. The demo video can be found above, and also on the official Elation Sports Technologies YouTube channel!

The telescoping couplings used to create this project are available for purchase now from Elation Sports Technologies!

Check out our other Instructables articles:

Our website's blog posts offer more inspiration for your next EMT conduit project!


Austin Allen is the Founder and Owner at Elation Sports Technologies LLC, which specializes in the development of novel sports and recreational products.