Drive a $9 RC Car with your Web Browser!
Web interface --> Node.js --> Serial port --> Arduino --> RC Controller --> RC Car
- New Bright 1:24 Scale Radio Control Sports Car
- Arduino Uno
- USB to Serial Converter
- Soldering iron, solder, breadboard, and wires
- Do the Hardware Hack
- Hook up your USB to Serial Converter
- Load the Basic Arduino Code and confirm that it works
- Load the Advanced Arduino Code and confirm that it works
- Make sure you have NodeJS and npm, then go to the NodeJS dir in command line
- npm install coffee-script haml-coffee express.io express express-partials serialport
- Change
portName
inapp.coffee
to your serial device (Probably a USB to Serial Converter) - Run
coffee app.coffee
- Go to http://localhost:5000
- Drive!
The Arduino will accept the following commands over a serial port connection:
- 0 - forward + left
- 1 - forward
- 2 - forward + right
- 3 - backward + left
- 4 - backward
- 5 - backward + right
- 6 - switches all off
Copyright © 2014 Andrew Chalkley http://forefront.io
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.