loading

Step 7: Installing Node.js

The code for Noodle is built with two parts: a Node.js server that handles task management and the user interface, and Python functions that interface to the Pi hardware. The Pi already includes Python, but we need to install Node.

We followed some of the instructions from here:
http://blog.rueedlinger.ch/2013/03/raspberry-pi-and-nodejs-basic-setup/

First we entered the following series of commands at the command line to download Node, decompress the archive, create a directory for it, and move it to that directory:

cd ~/Desktop
wget http://nodejs.org/dist/v0.10.22/node-v0.10.22-linux-arm-pi.tar.gz
tar xvzf node-v0.10.22-linux-arm-pi.tar.gz
sudo mkdir /opt/node
sudo cp -r node-v0.10.22-linux-arm-pi/* /opt/node

Finally, we edit the file “/etc/profile” by adding the following two lines before the “export PATH” line:

NODE_JS_HOME="/opt/node"
PATH="$PATH:$NODE_JS_HOME/bin"
export PATH

This makes it possible for the command line to know where to find node when we type “node”.

The tutorial above has some good advice about using a static IP address from your Pi also. Here’s a tutorial that’s only about using a static IP:
http://www.raspberryshake.com/raspberry-pistatic-ip-address/

This is helpful because it means the Pi will have the same address when you turn it off and turn it back on. Otherwise, it might receive a different address from your router. Another approach instead of using a static IP is to set up the “raspberrypi.local” address, which is much easier to remember than an IP address:
http://www.howtogeek.com/167190/how-and-why-to-assign-the-.local-domain-to-your-raspberry-pi/

Not all networks support the .local domain. For example, when we were working at Pier 9 we couldn’t access the Pi using “raspberrypi.local”.
<p>can you answer me please i am in eighth grade and I am making this for language arts. ASAP</p>
<p>how long did this take you</p>
<p>may price more than 10 k INR</p>
<p>What is the total price of this?</p>
<p>i really like the design. very well made! </p>
<p>ain't there a video for it? i wanna see it moving @_@ please :|</p>
Does someone have the message: &quot;Cannot read property 'HITId' of undefined&quot; when executing app.js ?
<p>Have you ever considered turning this into Wheatley from Portal 2? that is my ultimate goal for this.</p>
<p>I did some computer vision on the raspberry pi. For instance face detection and feature tracking. I am working on improving it until it is not using all of the raspi computation power, which is currently the case.</p>
<p>Great project and instructions.</p><p>Im confused on how the noodle actually processes events. What is the response time? Can I make it automated or does it have to have a real person always?</p>
<p>Response time from Mechanical Turk is around 5 minutes, but if you follow this Instructable in general and then substitute your own Turk form that posts directly you a dtabase/service you have set up, then you can get the response time down much lower (maybe 30 seconds).</p><p>Some basic things can be done automatically (like motion detection or basic speech to text) but we were focusing on the manual things.</p>
<p>Am sorry if i skipped but i found no video of your robot. A video would be really nice.</p>
<p>There isn't a video, mainly because the pictures are more representative :) The video would mostly show it playing sounds or putting pictures on the screen, or doing something more digital with the network.</p>
<p>brilliant!</p>
this is amazing! It never ceases to amaze me what people can do with a raspberry pi - you are a genius
<p>Need a video of the robot please!</p>
Oh,so intreseting
<p>Great job!</p>
<p>Amazing. You should enter in a contest. You'll be sure to win something</p>
Love it.

About This Instructable

102,492views

571favorites

License:

More by lmccart:Noodle: a crowdsourced robot 
Add instructable to: