Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/supertunaman/Boatduinode
Boat + duino + node.js
https://github.com/supertunaman/Boatduinode
Last synced: 13 days ago
JSON representation
Boat + duino + node.js
- Host: GitHub
- URL: https://github.com/supertunaman/Boatduinode
- Owner: supertunaman
- Created: 2011-02-18T22:11:06.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2012-01-03T16:28:26.000Z (almost 13 years ago)
- Last Synced: 2023-04-16T12:40:28.160Z (over 1 year ago)
- Language: Ruby
- Homepage: http://ta.gd/boatduinode
- Size: 714 KB
- Stars: 20
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
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/20150885I'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.rbSome 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.