HC-SRO4 code problems

I'm working on a distence meter with the HC-SRO4 and every libery i try doesn't work. do you have any tips?

Yes, I have tips.

  1. Post your code that does not work.

  2. Post some images of your project.

  3. Post a schematic.

  4. I have a selection of solder tips in my toolbox.

  5. I have tips on the trekking poles I use for backpacking.

  6. Most of the ESP32's API works under the Arduino IDE.

  7. Other tips to follow when more information has been provided.

Welcome to the forum

What do you mean by "doesn't work." ?

The libraries will come with examples. Post a sketch that you have tried, a schematic of your project (a photo of a pencil and paper drawing is good enough) and the full error messages if you get any as well as details of the Arduino board and sensor that you are using

Hi, @indigoswift38
Welcome to the forum.

Please read the post at the start of any forum , entitled "How to use this Forum".

This will help with advice on how to present your code and problems.

What Arduino controller are you using?
Have you tired NewPing library and its examples?

Thanks.. Tom... :smiley: :+1: :coffee: :australia:

Hi, @indigoswift38 . Welcome to the forum. Tell us a bit about your experience with Arduino and electronics. Tell us what board you are using. Post the sketch you have written so far.

It is more likely that your ultrasonic rangefinder is broken than lots of libraries aren't working.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.