DIY Raspberry Pi PICO Robot: Automated Control with Tiny Microcontrollers - Just $5.50!
Vložit
- čas přidán 6. 09. 2024
- #raspberrypi #raspberrypipico #robot #diy #Python #TomatoIndustry #IOT
Created an automatic detection robot using Raspberry Pi PICO.
Source Code (Blog):
tomatokogyo.co...
The ultrasonic sensor calculates the echo at the speed of sound to measure the distance. When it falls below 25 centimeters, it changes the movement of the caterpillar and makes a turn.
Special thanks to MetaEle Laboratory for the ultrasonic sensor source code.
hellobreak.net...
When detecting obstacles during straight movement, the LED switches.
Robot Overview:
Control: Raspberry Pi PICO (¥550) - Switch Science
Driver: Motor Driver DRV8833 (¥300) - Electronic Workshop
Ultrasonic Unit: SR-04 (¥300) - Electronic Workshop
Motor: Tamiya Set, surplus from something (¥2,800) - Toy Store
Mobile Battery 5V3A Large Capacity Type * For control
Power Unit 1.5V × 4 series 6V * For motor power
LED 5mm Blue, Yellow
Description:
1. Startup:
The program starts when power is supplied to the Raspberry Pi PICO. The blue LED lights up, indicating power input.
2. Operation:
The control turns on the motor power, and the crawler moves forward.
3. Obstacle Detection:
The ultrasonic sensor measures the distance at regular intervals. It continues to move straight.
4. Obstacle Evasion:
When it detects an obstacle within 25cm, it detects an obstacle and initiates a backward movement to retreat from the obstacle. It performs a simultaneous sharp turn with the crawler moving left forward and the crawler moving right backward.
#raspberrypi #raspberrypipico #robot #diy #Python #TomatoIndustry #IOT #automation #microcontrollers #electronics #coding #engineering #sensor #ultrasonicsensor #motor #technology #programming #innovation #electronicsproject