Skip to content
Using Node.js, Socket.IO, and serialPort to allow the Raspberry Pi and Arduino to communicate with one another.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ArduinoNodeJS
pages
pics
README.md
index.js
requestHandlers.js
route.js
server.js
tcpserver.js
twitter.js

README.md

PI2Arduino

This project is at its early stages of development. Many tutorials are already out there to get the Raspberry Pi and Arduino to communicate. My goal is to create a heavily commented structure of what is needed. I went with using Node.js because I wanted to make the Arduino respond to Twitter. That was my first though, but now that I have looking into it it seems that there is more potential then just Twitter.

Shout Outs

NodeJS communicate to arduino; Without Barry Van Dam files, this would have taken me a whole lot longer. Take a look at his settup. It is a little more complex than this but only due to the fact that I am not have the Arduino talk to the Raspberry Pi right now (I don't see the need yet).

Raspberry Pi setup web server using NodeJS; This tutorial help me get Node.js installed on the Raspberry Pi (only I insalled the source and complied it). If you do compile it give yourself about 2 or 3 hours till it is done (it was worth it to me).

NodeJS book; After everything installed I don't like copying and pasting code (if I don't understand it). This book helped me understand a great deal on how Node.js works and how to do some pretty neat things with it.

Twitter API; This is where I will learn a little bit about the Twitter API and how to use it in Node.js.

Current Standings

I currently have 4 buttons in an html file that are used to controll the color of my RGB LED(common anode) that is connected to my Arduino.

Prerequisits

  1. Arduino Uno (I am using R3)
  2. Raspberry Pi (Model B) that is already booted
  3. Node.js, Socket.IO, and serialPort installed on the Raspberry Pi (Will Cover tutorial later)

Pictures of my setup

Screenshot

Screenshot

You can’t perform that action at this time.