Arduino Sonar
Overview
I like to play with electronics and project bridged into web development! My sonar project was comprised of an arduino with a servo and sonic sensor.
The sensor rotates back and forth 180 degrees on a plane, taking regular readings. The arduino was then connected to a serial port, allowing it to send JSON data to my PC live!
I built a UI in HTML and NodeJS, using a web socket to stream data to the client. I took a radar interface for inspiration, and it represents the sonar data really well!
Tech Stack
- Arduino
- C++ (.ino)
- NodeJS
Features
- Servo and sonic sensor combination.
- JSON data constructed on the Arduino.
- NodeJS and client socket connection.
- Live sonic sensor data.
- Radar-like UI.
- Test file for preview and arduino-less development.