Git Product home page Git Product logo

Comments (5)

SRGDamia1 avatar SRGDamia1 commented on August 30, 2024

I've never tried the internal oscillator. It must be a bit inaccurate. You can try tweaking the bits per tick settings a bit to compensate.

from arduino-sdi-12.

SRGDamia1 avatar SRGDamia1 commented on August 30, 2024

If you have an oscilloscope you could use that to test how inaccurate the internal crystal is so you know how much to adjust the timing by. You might also be able to see how much millis() differs from a stopwatch.

Also, double check that the prescaler settings are right for the internal oscillator. They might not be the same as when using a crystal.

from arduino-sdi-12.

mkals avatar mkals commented on August 30, 2024

Thanks a lot for the suggestions!

I used a scope when I calibrated the oscillator. When I make the ATmega328p running the internal oscillator generate a SDI-12 message, it looks identical to the signal generated by any other SDI-12 device.

Checking the prescaler is a great idea! I will look into that this afternoon.

from arduino-sdi-12.

mkals avatar mkals commented on August 30, 2024

From what I can see, the prescaler should not be impacted by the selection of an internal or external clock source. I will re-spin my boards to add an external oscillator, as I cannot afford to spend more time trying to get this to work. Thanks for the suggestions!

from arduino-sdi-12.

SRGDamia1 avatar SRGDamia1 commented on August 30, 2024

Sorry!

You may be able to get it to work by going back to version 1.1.0, which was dependent on micros() instead of the timer/prescaler. I don't know how micros() is affected by internal clock accuracy.

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.