Git Product home page Git Product logo

Comments (4)

bleckers avatar bleckers commented on July 26, 2024

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.

SRGDamia1 avatar SRGDamia1 commented on July 26, 2024

So, is this something to fix or not?

from arduino-sdi-12.

bleckers avatar bleckers commented on July 26, 2024

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.

SRGDamia1 avatar SRGDamia1 commented on July 26, 2024

I haven't had any problems recently with my Feather M0.

Level converters are often a hassle.

from arduino-sdi-12.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.