-
Mark posted a new activity comment 8 years ago
Do you have some sketches or schematics available of the hardware? I wonder how you wired SDI to the Arduino.
-
Mark became a registered member 8 years ago
Mark posted a new activity comment 8 years ago
Do you have some sketches or schematics available of the hardware? I wonder how you wired SDI to the Arduino.
Mark became a registered member 8 years ago
Wiring the sensor to the Arduino board is fairly simple, just connect the SDI12 sensor data line to a free data pin (like D7), connect the sensor power wire to Vcc, and sensor ground to GND. Then just use the sample code provided with the SDI12 library to poll the sensor for data and/or change the channel number. To use a pushbutton on the box…[Read more]
Shannon, I would love a copy of your example code for both SDI12 and serial for the Decagon sensors. I’ve got several CTD-10’s that I”m including in a wireless sensor network and would like to use them with an Arduino Mega, but we haven’t worked with SDI12 yet. Thus the code would be greatly appreciated.
Thanks,
Stephanie
If you’re using CTD-10 sensors, you’ll need a way to connect their 3.5mm stereo plug to your Mega. Once you’ve done that, the code is pretty straightforward. I recently posted an example sketch (http://envirodiy.org/topic/arduino-datalogger/#post-1834) that polls 6 different Decagon 5TM soil moisture sensors that are all connected to the same…[Read more]