-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Matteo De Carlo edited this page May 9, 2016
·
12 revisions
Welcome to the robot-baby wiki!
- format sd-card with latest version of raspian-lite (jessie as I write this)
- modify
/etc/network/interfaces
to
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
- modify
/etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="WIFI network name"
#psk="your password"
psk=your psk if you don't want to save the password in a file
}
and modify /etc/hostname
so that you can quickly recognize the robot after login
Make sure that your system is up to date
$ apt-get update && apt-get upgrade
through the command raspi-config
do the following operations
- expand filesystem
- enable camera
- advanced options
- memory split → 32MB for the graphic card (the minimum to boot)
- enable i2c
Remeber to reboot after finishing with raspi-config
With apt-get install add this packages:
- git
- python3
- i2c-tools
- python3-smbus
- python3-rpi.gpio
- python3-numpy
- python3-scipy
- python3-pip
Install non packaged dependencies (this can take several minutes):
$ wget abyz.co.uk/rpi/pigpio/pigpio.tar
$ tar xf pigpio.tar
$ cd PIGPIO
$ make
$ sudo make install
Once installed, you can run sudo ./x_pigpio
to test if every works as supposed to.
Now modify the file /etc/rc.local
to have the pigpiod run on startup. Add this line to the file:
/usr/local/bin/pigpiod &
If you have problems with the pigpiod, try this parameter instead
/usr/local/bin/pigpiod -a1 &
$ git clone https://github.com/ci-group/robot-baby.git
$ cd ~/robot-baby/Mating
$ sudo pip3 install -e .