Radar
An electron app, providing a visual indicator of obstacles observed by an ultra-sonic sensor. An arduino project, using the following hardware parts:
- Ultra-sonic sensor
- Arduino
- Servo
- Breadboard
- Laptop Computer
and software parts:
- Electron
- Johnny-Five
- JavaScript
- PingFirmata
Demo
Here's a twitter video demo.
Circuit Diagram
Here's the circuit diagram, done with tinkercad.
The only difference is that the sonar is attached to the top of the servo.
Setup
- Flash the PingFirmata program unto your Arduino device. You'll need the Arduino IDE for this.
- Clone this Repository.
- Run
npm install
- Run
./node_modules/.bin/electron-rebuild
- Run
npm start
Enjoy!
References
The CSS for this is from this codepen.