EnviroDIY / Arduino-SDI-12

An Arduino library for SDI-12 communication with a wide variety of environmental sensors. This library provides a general software solution, without requiring any additional hardware.
https://github.com/EnviroDIY/Arduino-SDI-12/wiki
BSD 3-Clause "New" or "Revised" License
158 stars 100 forks source link

Example with SDI-12 Sonde #58

Closed augustodejesus closed 4 years ago

augustodejesus commented 4 years ago

I am trying to use your library to develop a datalogger that controls the 6600 V2 probe from YSI. I tried to use the example a from your library, wild card, but got no answers. I have the following question: My probe is powered by 12 volts, and the power pin provides only 5 volts. Can I feed it externally, excluding the following section of the code that feeds the probe?

if(POWER_PIN > 0){ Serial.println("Powering up sensors..."); pinMode(POWER_PIN, OUTPUT); digitalWrite(POWER_PIN, HIGH); delay(200);

PS: If you can do that, is it necessary for the arduino to share the same external power?

Attached is a printout of the Arduino's serial response to the code.

I apologize if the doubts are simple, I have been trying to communicate my probe with the Arduino for a considerable time and I can't.

Sincerely, Augusto Almeida image

Kevin-M-Smith commented 4 years ago

Hi @AugustoAlmeida13,

Does your setup look like this? (Imagine SDI-12 Probe is YSI instead)

augustodejesus commented 4 years ago

Hi @AugustoAlmeida13,

Does your setup look like this? (Imagine SDI-12 Probe is YSI instead)

I believe so, but shouldn't the ground from the external source be the same as the Arduino's?

Kevin-M-Smith commented 4 years ago

I would try grounding the sensor to the board as shown (if possible). I don't know the exact details of your setup - but a common ground connection that is closer to the data signal can improve signal quality (compared to relying on a common ground further away).

augustodejesus commented 4 years ago

I fed the arduino externally with 12 V and fed the probe to the Vin and GND pins, as you did in one of the links in the examples. It still didn't work, but I believe it is something related to the probe configuration, I will contact the manufacturer and get answers. Thank you very much for your willingness.

Sincerely, Augusto Almeida

Kevin-M-Smith commented 4 years ago

Hi @AugustoAlmeida13,

I wasn't suggesting the probe should be powered by 5 volts from the Arduino, I was just suggesting to try connecting the probe's ground to the Arduino GND pin. It is possible the probe requires the full 12 volts to function.

Best of luck!