Skip to content

This is a controller I wrote for my Parallax Activitybot to allow it to be controlled over bluetooth from a web page connected through a NodeJS app.

License

Notifications You must be signed in to change notification settings

dlhinkley/activitybot-bluetooth-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

activitybot-bluetooth-controller

This is a controller I wrote for my Parallax Activitybot to allow it to be controlled over bluetooth from a web page connected through a NodeJS app.

How it works

The Activitybot has the RN-42 bluetooth interface. The NodeJS app uses Eelco's [node-bluetooth-serial-port (https://github.com/eelcocramer/node-bluetooth-serial-port)] NodeJS module to connect to the robot. It also uses Alaa-eddine K's [eureca.io (http://eureca.io/)] to handle communication between the NodeJS App and the web page.

Requirements

Installation

  • Install SimpleIDE
  • Change to SimpleIDE workspace (i.e. ..../SimpleIDE)
  • git clone https://github.com/dlhinkley/activitybot-bluetooth-controller.git
  • Load the code at robot/activityBot.side into Activity Bot
  • cd activitybot-bluetooth-controller/controller
  • npm install
  • node --harmony-proxies index.js

Running

  • Turn on Activity Bot
  • node --harmony-proxies index.js
  • Open a browser and visit http://localhost:8000
  • Wait for Status to change to "Connected"
  • Drive the robot using the controls

RN-42 Schematic

+--------------+ | RN-42 GND +--- GND | VIN +--- 3.3V | RST +--- P0 | RX +--- P1 | TX +--- P2 | RTS +--- P3 | CTS +--- P4 +--------------+

About

This is a controller I wrote for my Parallax Activitybot to allow it to be controlled over bluetooth from a web page connected through a NodeJS app.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published