Giter VIP home page Giter VIP logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
Finally i change on the NewPing.h the bellow:

#define US_ROUNDTRIP_CM 29 //57      // Microseconds (uS) it takes sound to 
travel round-trip 1cm (2cm total), uses integer to save compiled code space.

And now measure correct, please confirm if that effect only to this 
sonar.ping_cm() or it is for other subs too.

Thank you in advance.

Best Regards,
Tasos

Original comment by [email protected] on 2 Jan 2013 at 8:15

from arduino-new-ping.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
You changed US_ROUNDTRIP_CM from 57 to 29 and your result is now 10cm instead 
of 5cm but your modification is wrong because sound needs more than 29 
microseconds to travel 2cm.

Original comment by jrizzo on 4 Jul 2013 at 7:01

from arduino-new-ping.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
Testing NewPing and Ultrasonic I get different values. Ultrasonic result is 
correct (299cm) but NewPing is wrong (306cm). If I change US_ROUNDTRIP_CM from 
57 to 58 I get the same result with both libraries.

Original comment by jrizzo on 4 Jul 2013 at 7:07

from arduino-new-ping.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
It depends on your temperature.  For me, 57 is more accurate which is why it's 
the default.  I made it easily user configurable so each user could set the 
value they wanted for their environment.  Also, if accuracy is something you 
need, you shouldn't be using the ping_cm() method at all.  It's designed to be 
quick, small, and accurate for most people.  But, if you need better accuracy, 
use the ping() method, a temperature sensor, and your own logic to convert time 
to distance based on the current temperature, altitude, humidity, etc.

Original comment by eckel.tim on 15 Jul 2013 at 2:01

from arduino-new-ping.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
[deleted comment]

from arduino-new-ping.

GoogleCodeExporter avatar GoogleCodeExporter commented on May 22, 2024
Please report this in a more appropriate place.

Original comment by eckel.tim on 19 Sep 2013 at 6:58

  • Changed state: Invalid

from arduino-new-ping.

Related Issues (13)

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.