Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By danbicks
#31590 Hi Guys,

Did anyone manage to find or create a library for the ultrasonic sensors that works with the standard ESP Arduino IDE not NodeMCU!

I have read through lots of posts but can't seem to find one that is ready to go.

Cheers people

Dans
User avatar
By danbicks
#31608
mrburnette wrote:Maybe
http://www.esp8266.com/viewtopic.php?f=11&t=1503

Ray


Hi Ray,

I have downloaded this although it has not been prepared for the ESP IDE environment. It may work within Eclipse but would require me re writing my routines in Eclipse to use this library.

Thanks anyway Bud.

Dans
User avatar
By mrburnette
#31616 Sorry 'bout that, my bad....

Just a thought.... i reviewed a LUA implementation of the HC-SR04 and my thinking at the moment is that making that implementation work under the ESP8266 ArduinoGUI is problematic.

Rather, I think a tiny85 managing the sonic sensor would be a good way to decouple the critical timing from the ESP8266. There are several examples of the t85 and the HC-SR04,one shown here:
http://projectsfromtech.blogspot.com/2014/01/i2c-hc-sr04-sonar-module-attiny85-i2c.html

You could easily use software serial on the t85 to send the results to the ESP. A send-only lib is available that requires only 1 pin onmthe t85:
http://forum.arduino.cc/index.php?topic=112013.0

Ray