True's beaked whale.jpg

Western spotted skunk

Hooded skunk

Yellow-throated Marten

Wolverine

True's beaked whale.jpg

Western spotted skunk

Hooded skunk

Yellow-throated Marten

Wolverine

Raspberry Pi Setup

1) SD card.

Download SD card formatter for OS X: sdcard.org
Run it, using ‘Overwrite’ option. This takes a long time.

Then download a Raspberry Pi OS. I downloaded NOOB. Unzip it. Copy all the files in the unzip dir to the SD card.

2) Insert SD card, plug in HDMI to monitor, cell phone charger to power, mouse to USB port.

On power up, select the debian OS install. After it installs, the Pi reboot. Unplug the mouse and plug in a keyboard. Finish the setup using the menu. After setup, it drops the user to a command line.

3) Setup the WiFi. I want it to connect by DHCP using WEP automatically.
in /etc/network/interfaces, enter:

auto lo

iface lo inet loopback
iface eth0 inet dhcp

auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wireless-essid edimaxx
wireless-key s:xxxx
iface default inet dhcp

See WiFi configfor other encryption setups.

Type:
sleep 5 (amp)(amp) service networking restart

Unplug the keyboard and plug in the Wi-Pi Wifi dongle.
Networking restarts, the dongle is recognized and the blue power light comes on. It recognizes and logs in to the router.

Connect to the Pi by SSH:
ssh pi (at) 192.168.2.128

4) Set up the bluetooth keyboard (Rii mini RT-MWK02+):
apt-get update
apt-get install bluetooth bluez-utils blueman
apt-get install bluez-compat

But the rest isn’t clear–a need a GUI or keyboard to setup the bluetooth keyboard.

5) Fixing error from loss of power / bad shutdown.

Compile dostools from source to have the fix supported:

git clone http://daniel-baumann.ch/git/software/dosfstools.git
Cloning into 'dosfstools'...
cd dosfstools
make

sudo ./fsck.fat -trawl /dev/mmcblk0p5

5) Camera
Plug in camera with blue back side of the connector against the white connector lock.

Camera docs
raspistill docs page

sudo apt-get install imagemagick
sudo apt-get install fbi links2

6) Allow scp of images without a login.
On the Pi:
ssh-keygen

Copy the .ssh/id_rsa.pub key to ~/.ssh/authorized_keys on the destination computer.
Make sure perms are set:
chmod 0600 ~/.ssh/authorized_keys

7) WiFi disconnects when it loses connection. Add a cron script to restart it.

WiFi cron script

Start cron logging to check that this works:

sudo vi /etc/rsyslog.conf

and uncomment the line

# cron.* /var/log/cron.log

After that, you need to restart rsyslog via

/etc/init.d/rsyslog restart

and you will find the cron logs in /var/log/cron.log

8) Stop screen sleeping.

/etc/lightdm/lightdm.conf

Add the following lines to the [SeatDefaults] section:

# don’t sleep the screen
xserver-command=X -s 0 dpms

9) Install python libs.

sudo apt-get install python-dev
sudo apt-get install python-rpi.gpio

10) Camera streaming.
Add to /boot/config.txt
#Turn off camera LED
disable_camera_led=1

Streaming instructions link

Install VLC on Pi:
sudo apt-get install vlc

Install VLC Beta on an Android device.

To start streaming:
aspivid -o – -t 99999 -hf -w 640 -h 360 -fps 25|cvlc stream:///dev/stdin –sout ‘#standard{access=http,mux=ts,dst=:8090}’ :demux=h264

And on the Android device in VLC, open network stream:
http://192.168.2.128:8090

11) Camera pictures on a phone.

Pi Sight (Android), BerryCam (iOS)

12) I2C EEPROM access

Installed Speer

git clone https://github.com/nharrer/speer.git

I²C is not enabled by default in Raspbian. Enabling i2c:

a) Add the i2c modules i2c-bcm2708 and i2c-dev. Edit /etc/modules:
sudo nano /etc/modules

Add:
i2c-bcm2708
i2c-dev

b) Now comment out the module in /etc/modprobe.d/raspi-blacklist.conf (only necessary if the files exists):
sudo nano /etc/modprobe.d/raspi-blacklist.conf

Put a # in front of the following line:
blacklist spi-bcm2708

Pinout for CLP-415NW EEPROM cartridge has four contacts:
Nnnn Gnd, SCL, SDA, Vcc (3.3v needed, 5v tolerant)

c) apt-get install python-smbus

Samsung EEPROM access is not working:

Try resetting i2c baudrate:
sudo modprobe -r i2c_bcm2708
sudo modprobe i2c_bcm2708 baudrate=100010

List active i2c buses: i2cdetect -l
Probe for active devices: i2cdetect -y 1

13) Using a USB-to-serial converter to connect to a UART

On OS X:
screen /dev/tty.Keyserial1 9600

To quit the screen app, tyoe control-A, then control-.

or use minicom

14) Using a Raspberry Pi as a media server
http://mymediaexperience.com/raspberry-pi-xbmc-with-raspbmc/