Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrupted data on SDI-12 interface #60

Open
tsujido3r opened this issue Apr 8, 2020 · 2 comments
Open

Corrupted data on SDI-12 interface #60

tsujido3r opened this issue Apr 8, 2020 · 2 comments

Comments

@tsujido3r
Copy link

tsujido3r commented Apr 8, 2020

While trying SDI-12 library with 2 Arduino nano boards, one as an SDI-12 slave and another as a Datalogger, I am getting junk values on the device serial monitor while requesting for data (D0!)

I am using the default examples:
Datalogger - f_basic_data_request
Sensor - h_SDI-12_slave_implementation

image

Any idea on what could be causing these errors? I am not sure if it's on the SDI data line or data corruption or the serial print issues.

@tsujido3r tsujido3r changed the title Corrupted data on the line or the serial print! Corrupted data on SDI-12 interface Apr 8, 2020
@SRGDamia1
Copy link
Contributor

Hm. Do you have any pull-ups on the data line? Maybe the internal pull-ups aren't enough to overcome noise. Do you have long cables between the two boards? Can you shorten them? Do you have any SDI-12 sensors you can test against? Does it work when talking to one of those?

@tsujido3r
Copy link
Author

I suppose you meant the pulldown, its around 1M ohm. The cable is not long, it's just a jumper cable 10cm in length. That's why I suspect the memory overruns or excessive/incorrect use of String as the main culprit, rather than the line noise.

Currently, I don't have SDI-12 sensor to test against, sorry. Would it be possible for you to test these two applications against each other(as a sensor and datalogger) in two different arduino dev boards? If you could also verify this, it will be really helpful.

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants