Skip to content
This repository

Boat + duino + node.js

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 public
Octocat-spinner-32 BoatTest.pde
Octocat-spinner-32 Boatduinode.pde
Octocat-spinner-32 README
Octocat-spinner-32 boatduinode.js
Octocat-spinner-32 boatduinode.rb
Octocat-spinner-32 web_socket.rb
README
Boatduinode!

Hardware description: https://github.com/supertunaman/Boatduinode/wiki/Hardware
Video of BoatTest.pde: http://vimeo.com/20106407
Video of Boatduinode in action: http://vimeo.com/20150885

I'm using this same repo for deployment, so excuse the mess. Let me show you 
around.

boatduinode.js - the node.js app, which handles connections and commands and such
boatduinode.rb - the ruby script which acts as a client for the node.js app, and translates commands from there into serial commands
Boatduinode.pde - receives serial commands and interfaces with the RC remote
BoatTest.pde   - simple arduino sketch that pilots the boat in a most drunken manner
web_socket.rb  - smallish websocket lib for boatduinode.rb

Some notes:

The app uses socket.io, which doesn't seem to be well-implemented in ruby 
anywhere (certainly not client-side). As such, the script simply picks out 
commands it's looking for and relays the rest. This suffices, as all I needed 
was to receive five different commands and respond to the heartbeats. Node.js 
doesn't seem to care beyond that in this case.

The motors turn on when I pull the pins LOW, and off when they're pulled HIGH.
Go figure.

Something went wrong with that request. Please try again.