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
Here's a twitter video demo.
Here's the circuit diagram, done with tinkercad.
The only difference is that the sonar is attached to the top of the servo.
- 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!
The CSS for this is from this codepen.