Difference between revisions of "SDI-12"
(Created page with "This page is for discussing usage of SDI-12 on BoSL loggers and sensors. ==== Turbidity sensor ==== As an initial test I updated the turbidity sensor to use SDI-12. As all t...") |
|||
Line 3: | Line 3: | ||
==== Turbidity sensor ==== | ==== Turbidity sensor ==== | ||
− | As an initial test I updated the turbidity sensor to use SDI-12. As all the components on the turbidity sensor are 5 V compatible this was quite an easy task, involving only firmware changes and recalibration of the sensors. | + | As an initial test I updated the turbidity sensor to use SDI-12. As all the components on the turbidity sensor are 5 V compatible this was quite an easy task, involving only firmware changes and recalibration of the sensors (the relationship remains linear). |
[[File:Turbidity firmware SDI-12.ino]] is the firmware developed for the SDI-12 turbidity sensor. The SDI-12 sensor address is '5' and I have been using the "M" measurement command, though "C" should work too. When data is collected with "D0" the first returned value is Turbscan() and the second is TurbscanwoLED(). It uses about 11mA while idle and 90 mA when taking a measurement. | [[File:Turbidity firmware SDI-12.ino]] is the firmware developed for the SDI-12 turbidity sensor. The SDI-12 sensor address is '5' and I have been using the "M" measurement command, though "C" should work too. When data is collected with "D0" the first returned value is Turbscan() and the second is TurbscanwoLED(). It uses about 11mA while idle and 90 mA when taking a measurement. | ||
The turbidity sensor should be wired as: | The turbidity sensor should be wired as: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- |
Revision as of 00:39, 9 February 2024
This page is for discussing usage of SDI-12 on BoSL loggers and sensors.
Turbidity sensor
As an initial test I updated the turbidity sensor to use SDI-12. As all the components on the turbidity sensor are 5 V compatible this was quite an easy task, involving only firmware changes and recalibration of the sensors (the relationship remains linear). File:Turbidity firmware SDI-12.ino is the firmware developed for the SDI-12 turbidity sensor. The SDI-12 sensor address is '5' and I have been using the "M" measurement command, though "C" should work too. When data is collected with "D0" the first returned value is Turbscan() and the second is TurbscanwoLED(). It uses about 11mA while idle and 90 mA when taking a measurement.
The turbidity sensor should be wired as:
Turbidity sensor | SDI-12 |
---|---|
RED | 5 V |
BLACK | GND |
GREEN | SDI-12 DATA |
YELLOW | NO CONNECT |
White | NO CONNECT |