Skip to content

richard512/NodeJS_Arduino_RC_Car

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJS Arduino RC Car

Touchpad Control Video

The Idea

Drive a $9 RC Car with your Web Browser!

Web interface --> Node.js --> Serial port --> Arduino --> RC Controller --> RC Car

Parts List

Instructions

  • 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 in app.coffee to your serial device (Probably a USB to Serial Converter)
  • Run coffee app.coffee
  • Go to http://localhost:5000
  • Drive!

Arduino Commands

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

The MIT License (MIT)

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.

About

Arduino powered, web browser controlled $9 RC Car

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 42.9%
  • C++ 19.2%
  • Other 16.6%
  • CoffeeScript 11.9%
  • CSS 9.4%