Project Ultrasonic Radar with micro:bit and p5.js
ฝัง
- เผยแพร่เมื่อ 2 ต.ค. 2024
- Shown here is the Tomato Cube's latest DIY project kit - A cool-looking radar using micro:bit & P5.js 🎉
This miniature "Radar" system uses the BBC micro:bit (both v1/2) as the brain, a servo motor to sweep the area in front of it and an Ultrasonic Sensor to determine the distance towards any object within range.
We rely on a piece of p5.js code which runs within web browser 🌎 to render the Radar's display. This p5.js code is compatible with any modern Windows, Mac, or Linux (or Android) computers capable of running a recent version of Google's Chrome browser or its derivative.
Although we use our new MakeCode Arcade Shield for this video, this project can be achieved with only a standalone micro:bit using a few crocodile clips with wire.
☝🏻Here are the parts/components you need to complete the project:
1. BBC micro:bit v1/v2.
2. 3.3v compatible Ultrasonic Sensor module.
3. 3.3v compatible Servo Motor.
4. Wires needed to hook up all the components to the micro:bit.
You can also get all the tested & curated components/parts needed to successfully complete the project from our online store 🛒:
tomatocube.com... (Micro:Bit Project Kit - Metal Eyelet version)
*👨💻Disclaimer: This product is neither a real radar nor operates based on Doppler’s principles. It simply relies on the reflected sound wave in the ultrasonic frequency range.