Lazy dog rover, using onion omega2
I have a pug called "Zeus", who is super lazy to walk (after 15 mins walk). The purpose of this rover is to drive him when he feels tired of walking
- Onion Omega2
- Onion Omega2 PWM board
- L298N DC Motor board
- Lipo battery 3.7v 1000mAh x 2
- LED x 3
- 200 Ω resistors x 3
- 3D printed wheels, rims, and board
- Battery juice pack 5v 1000mAh, to power Onion Omega2 for stable performance
At a minimum, you will need the following tools installed:
- Git
- Gulp
- Bower
- Node v4.3.1 and npm v2.14.12 (what's available in Onion Omega2)
- Onion Omega2 or Pi or any other single board computers
- run
npm install
andbower install
- run
gulp serve
to view the controller UI on local machine, don't forget to update websocket server address inapp/index.html
- run
gulp build
- scp both
dist
andserver
directory to the micro computer - ssh into the micro computer and run
node [code_directory]/server/app.js
- Server is an node app, that will run both http and websocket server
- Connect to board wifi (set as ap mode)
- Load controller UI from browser
http://[ip address]:8080
- Using websocket to communicate with the board, send command to move forward, backward, left, right, stop
TO DO
Thank you skezo for being an awesome teacher