First step is to flash your (at least) 8GB micro SD card with the latest Jessie. Currently that’s the 2015-11-21 version.
To setup a PiZero, because it only has one USB port, you need a powered (at least) 4 port USB hub, a mini HDMI to HDMI adapter, and a micro USB to USB A adapter. With that you can set up a PiZero with keyboard, mouse, WiFi dongle and screen, and so get it connected to the internet.
Once connected the next step is to change the various bits of system configuration:
- expand file system
- set minimal GPU memory as she’ll be headless
- christen her – zoe in my case
- enable I2C
- boot to console login prompt
- overclocking – mine seems happy in Turbo mode @ 1GHz! – CPU temperature showing 38.4 degrees
I’ve found the only way I can guarantee each of these steps works is to reboot between each.
Next step is to update the code to the latest
sudo apt-get update sudo apt-get dist-upgrade
Next install the various tools required
sudo apt-get install i2c-tools python-smbus python-dev
Next install the RPIO library – ignore the build warnings
git clone https://github.com/metachris/RPIO.git cd RPIO sudo python setup.py install cd ..
If you are installing onto a RPi B2 (the 4 core), then you need to replace the RPIO/source/c_gpio/cpuinfo.c with this one before building:
Next install my performance enhanced GPIO library from GitHub
git clone https://github.com/PiStuffing/Quadcopter cd Quadcopter tar xvf GPIO.tgz cd GPIO cd source touch * cd .. sudo python setup.py install cd ..
I think that’s everything. Next step is to get and populate the pHat – it’ll be a couple of weeks before I get hold of this, so don’t hold your breath for the next update.