Languages
[Edit]
EN

Raspberry PI - how to use ultrasonic rangefinder with c++ (cpp)?

4 points
Created by:
Teilsa
1315

1. Connect rangefinder to Raspberry PI:

Edit

Raspberry PI B+

2. Download and install PiGPIO library to use GPIO:

Edit

Note: for more details read official webpage: http://abyz.me.uk/rpi/pigpio/download.html

3. Create program.cpp file:

Edit

4. Complile program

Edit

5. Run program

Edit

Note: be sure that program has execution permissions; otherwise run:

6. For QtCreator IDE pro file configuration can be used:

Edit
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join