Raspberry Pi Car

CONTENTS

What to you need
Preparation
Burn the image on the sd
> Linux
Wifi Configuration
> Model A
> Model B
Log in thought Secure Shell (SSH)


WHAT DO YOU NEED

Raspberry Pi
Webcam
SD 8 GB
A car’s frame
Two motors
WiFi adapter
Eight AA batteries
Motorcontroller
Wires


DOWNLOAD

Download the iso from here and extract it.


BURN THE IMAGE ON THE SD CARD

LINUX (USING DD)

Extract the image, with:
$ unrar car.rar
Then write the image:
# dd bs=4M if=~/car.img of=/dev/sdX
Where X is the letter of your sd card! 

WIFI CONFIGURATION

MODEL A

Unfortunatly Raspberry Pi Model A doesn’t have an ethernet adapter like the B one, so we can’t connect it throught ethernet to setup our WiFi. There are two options available:

HDMI WAY

Connect your Raspberry to a monitor thought HDMI and run Wpa Gui (it’s on the desktop)
Select your WiFi Adapter (should be plugged in) and then Scan
Click on your network and insert your password, then click Save
Wpa-Gui should attempt to connect to your network automatically.
Now you can unplug HDMI and reboot your Pi.

SERIAL WAY – TTL CONNECTION 3.3V

If you have a serial adapter maybe this is the best way to go:
Connect your Raspberry Pi thought Serial Port on GPIO and connect the other side to your adapter.
Install and setup minicom on your computer using this configuration 115200 8 N 1.
Log in thought SSH (default username and password is pi:raspberry)
Run a terminal and type: wifi
It will start a simple script that will configure your wifi network.

MODEL B

Connect your Raspberry Pi thought ethernet cable.
Log in thought SSH (default username and password is pi:raspberry)
Run a terminal and type: wifi
It will start a simple script that will configure your wifi network.

LOG IN THOUGHT SECURE SHELL (SSH)

How to login through SSH:
$ ssh -l username -p X 192.168.X.X

Change username with pi and insert your ssh port (if you are using the default port there is no need to use -p), finally change the ip with your raspberry pi one. There is an example below:

$ ssh -l pi 192.168.1.163


Now you are ready to use your Car! Once you have configured Wifi, connect your Pi to the motorcontroller. We have created a video that shows how to do that:


Apache will start automatically, then open a browser and go to the ip you assigned to the Raspberry Pi! You will find a simple interface, that includes the controller in Node.Js and a real time image through motion!

Have fun!

How to install Google Coder on Archlinux ARM – Raspberry Pi

Hey everyone 😉

Today I’ll explain you how to install Coder on Archlinux ARM running on a Raspberry Pi.

First of all you need to install nodejs, it’s in the official repositories…to simply run:

pacman -S nodejs

as root and you are ready to go.

Then go to your /home directory and run: (make sure git is installed!) and:

git clone git://github.com/googlecreativelab/coder
cd coder/coder-base
npm install

If you prefer to run Coder on a different port than 80/443 (for example if you are running a web server on your Pi) you can edit coder/coder-base/config.js this way:

exports.listenIP = null; //Defaults to *
exports.listenPort = ‘9181’; //the SSL port things run on
exports.httpListenPort = ‘9180’; //this will all be redirected to SSL
exports.cacheApps = true;
exports.httpVisiblePort = ‘9080’; //forwarded http port the user sees
exports.httpsVisiblePort = ‘9443’; //forwarded https port the user sees

Now there is a little problem… basically Coder assumes that an account named “pi” exists and it tries to set a password related to that account..

Simply go to coder/coder-base/sudo_scripts and edit setpipass, remove the “/usr/bin/passwd pi” line and save the file.

 Then run as root:

cd coder/coder-base
npm start

Now open your browser on your computer and visit: https://RASPIPADDRESS:9181/
You are ready to set your Coder password and start coding!

AUTOSTART

If you want to make Coder to run at system startup since Archlinux has implemented systemd you can create a new unit like the one below and then enable it:

[Unit]
Description=Google Coder
After=network.target

[Service]
Type=simple
WorkingDirectory=/home/YOURUSERNAME/coder/coder-base
ExecStart=/bin/npm start
Restart=always

[Install]

WantedBy=multi-user.target

My Raspberry Pi Project – GPIO

Hi Guys 😉

Today I’ll introduce you my Raspberry Pi Project.

It’s basically a Python2 Script which controls an LCD Display, A Button, a LED and a Temperature Sensor.
It prints a lot of informations about the system, check for running services, air terperature and humidity on the LCD.

Check it out 😉

And Here you can find the script: https://app.box.com/s/x5pqbtmpz7ms75w9gr27