By design, the Plantmate Capacitive Soil Moisture Sensor cable is 85cm long with a micro USB adapter. Some DIY users may want to extend the cable to fit their own project.
Is it possible to extend the cable to 33-feet? Let’s find out if it is possible.
The cable that I am going to use is a 28AWG 33feet/10m conductor 3 core(red, blue, and black) cable.
The microcontroller is an Arduino Nano.
First of all, I’m going to connect the sensor to the USB adapter then connect to an Arduino Nano and run a very sample code to get the data while the sensor is air dry and the data while it is completely in water.
The water is tap water at room temperature.
Secondly, cut the USB-End of the sensor, solder it to the 33 feet cable, connect it to the Arduino Nano, run the same code to get another set of the data.
Compare the 2 sets of data, we will find out the differences between no-extension and extension.
1. Connect the Arduino nano to the sensor:
2. Upload the code below to the Nano:
int sensor = A1; void setup() { pinMode(sensor, INPUT); Serial.begin(9600); } void loop() { Serial.println(analogRead(sensor)); delay(500); }
3. Open the Serial Monitor on Arduino IDE to get the data set of air-dry and in-water:
Range: 588 - 297 = 291
4. Cut off the sensor USB-end:
5. Connect the extension cable to the sensor cable:
6. Solder the cables:
7. Hot glue and adhesive heat shrink tubing it:
8. Connect the cable to Arduino Nano and run the same code above:
9. Open the Serial Monitor on Arduino IDE to get the other data set of air-dry and in-water:
Range: 584 - 297 = 287
Summary:
- No-extension Range: 588-297 = 291
- Extension Range: 584-297 = 287
Those two data sets are slightly different.
If eliminate the deviation, it is totally possible to extend the Plantmate Capacitive Soil Moisture Sensor cable to 33-feet(10 meters) long.