| sonar from a HC-SR04 sensor (ultrasonic sensor) with a raspberry |
- raspberry
- screen (to support pygame UI output)
- wires
- HC-SR04 sensor
- servo motor
You can build the support with laser-cut mdf (like us) or with 3D printing.
All files in the folder files
.
- servo
pulse
goes to GPIO19 - HC-SR04
trigger
goes to GPIO18 - HC-SR04
echo
goes to GPIO24 through resistor (see scheme)
Of course those are just the default values in the script, edit them at will.
The idea behind this project is to have a radar render of items detected by the ultrasonic sensor through a servo motor moving from 0 to 180 degrees.
- Sonar Logo : sonar by Ian Rahmadi Kurniawan from the Noun Project
- Servo motor control : https://raspberry-pi.fr
- HC-SR04 control : https://raspberrypi-tutorials.fr