Comments (4)
Turns out it's something up with passing the object in that example.
If you change the example to pass the object as a pointer (and use the different begin function):
SDI12 mySDI12;
pinMode(sensorPins[pin], INPUT);
mySDI12.begin(sensorPins[pin]);
Serial.print("Checking pin ");
Serial.print(sensorPins[pin]);
Serial.println("...");
scanAddressSpace(&mySDI12);
mySDI12.end();
And also change the supporting functions to pass in as pointer (e.g. void printInfo(SDI12 * sdi, char i){) as well as how you reference the sdi object (from . to ->) it works just fine and dandy.
There must be something up possibly with the newer versions of the compiler.
from arduino-sdi-12.
So, is this something to fix or not?
from arduino-sdi-12.
I reopened this issue with something that was slightly related. But it turned out after getting the original issue with the pointers sorted, plugging the Arduino into a daughterboard with level converters caused this related issue. It was outputting a 48MHz signal which I thought might have been related to the clock gen/TC, but it turns out it was the level converter (TXB0108) causing problems.
As for what caused this original issue. Is it reproducible on other SAMD boards with the examples and the latest SAMD libraries/compilers?
from arduino-sdi-12.
I haven't had any problems recently with my Feather M0.
Level converters are often a hassle.
from arduino-sdi-12.
Related Issues (20)
- Question. HOT 2
- new tinyAVR boards support. tips?
- ESPhome HOT 4
- Missing check for 8.33mS marking before checking address for sdi12 slave/sensor HOT 1
- Able to adjust Break and Marking timing from Arduino code
- Support for Arduino R4 Renesas chip? HOT 1
- Doesn't work on Arduino GIGA R1
- Do you have any plans to support stm32 platform ? HOT 2
- ESP32- Core panic when using in conjunction with the "preferences" library. HOT 1
- NRF52 Support HOT 1
- IDE 2.0 compilation problem HOT 1
- Sparkfun Artemis and CS320 pyranometer HOT 16
- SDI12 - ESP32 NOT OPEN BUS HOT 9
- Watchdog Problem SAMD21 HOT 4
- Adding a Direction Control Pin HOT 11
- ASR6501 - Cubecell support HOT 2
- Can not read measurements HOT 8
- Do you have any plans to support rp2040 platform ? HOT 1
- Documentation missing? HOT 3
- SDI12 with SoftwareSerial (Stopgap Fix not working) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino-sdi-12.