jrodrigotech / ultrasonic-hc-sr04 Goto Github PK
View Code? Open in Web Editor NEWUltrasonic HC-SR04 library for Arduino IDE
Home Page: http://www.ardublog.com/library-for-arduino-ultrasonic-ranging-hc-sr04/
Ultrasonic HC-SR04 library for Arduino IDE
Home Page: http://www.ardublog.com/library-for-arduino-ultrasonic-ranging-hc-sr04/
I hope it is not too late for saying this:
I published this library on PlatformIO registry under some fork adaptations. You should take a look on the URL content below:
https://registry.platformio.org/libraries/brunolnetto/Ultrasonic-HC-SR04
Hello,
I have a little question for you about data protection.
Can I please use your code on my thesis. --> Of course, I will mark you as creator of this wonderful solution.
Best wishes
zKingFabzz
I just used pins such as D5, D6 instead of 5 and 6.
And just hooked the sensor up to 5v and ground from another source, ignoring pin 4 and 7.
In the Library file there is written like
#ifdef ARDUINO>=100
#include<Arduino.h>
Arduino should greater than from what, I didn't get it?
When I try to import the library i get :"Specified folder/zip file does not contain a valid library"
In the Ultrasonic.h file, line 31:
long duration,distacne_cm,distance_inc;
There is a typo spelling 'distance_cm'
Change it for:
long duration,distance_cm,distance_inc;
It also is present in the Ultrasonic.cpp file, lines 50,51:
distacne_cm = duration /29 / 2 ; return distacne_cm;
Change it for:
distance_cm = duration /29 / 2 ; return distance_cm;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.