-
Notifications
You must be signed in to change notification settings - Fork 3
Volcano Show
Mark Boszko edited this page Mar 20, 2016
·
39 revisions
This is all very much a WIP. I need to go back and document stuff I've already done.
- Raspberry Pi 2 Model B V1.1
- Adafruit NeoPixel Digital RGB LED Strip - Black 60 LED
- 4.066 meters, 244 LEDs total
- Cut in five strips of 41px + one strip of 39 (because I killed two pixels when first soldering them), each on a top or bottom of a shelf
- SanDisk Ultra Micro SD HC I — 16 GB
- Edimax USB Wi-fi adapter
- Adafruit 12mm Diffused Thin Digital RGB LED Pixels (Strand of 25) - WS2801
- (2) strands, 50 LEDs total
- I'm calling these PaleoPixels
- Install Raspbian:
- Installing with NOOBS
- Download the NOOBS Installer. I used V1.8.0, released 2016-02-29.
- Unzip the NOOBS package.
- Download and use SD Formatter to format the SD card as FAT. I named it
TIKINOOK
. - Copy all files from the
NOOBS_v1_8_0
folder into the root of the SD card. - Eject the SD card and insert in the Raspberry Pi. Hook up the Pi to Ethernet, an HDMI display, and a USB keyboard and mouse, then connect the Micro USB power.
- When NOOBS boots, check the box for Raspbian, and click Install. Confirm you want to overwrite the SD card.
- Note: The full Raspbian install probably contains a lot of unnecessary stuff, but I haven't whittled down to exactly what I need for the Tiki Nook. Still, should be OK.
- Go get a cup of coffee while Raspbian installs.
- Click OK when done; the Pi will reboot.
- more to come
- Use the Adafruit Respberry Pi Finder to connect to the headless Pi over the network and set up the bootstrap process.
- Launch PiFinder.app (I'm on OS X)
- Click Find My Pi!
- Once it finds the Pi, change the Hostname (I use
tikinook
) and enter the Wi-fi SSID and password, and click Bootstrap! - As far as I can tell, PiFinder's Bootstrap did not change the hostname (the Pi remains at raspberrypi.local), and I'm not sure about the Wi-fi either. the other bootstrap stuff seemed to work though? its hard to tell, since the bootstrap terminal window disappears as soon as it finishes, so I cant see if there are any error messages.
- On the Pi itself:
- Menu > Preferences > Raspberry Pi Configuration
- Change the password to something other than the default
raspberry
- Change the Hostname here to
tikinook
, because the PiFinder method didn't stick. - Interfaces > SPI > Enabled
- Localization > Locale > Country > US
- Timezone > Areas: US, Location: Pacific
- Click OK and when it asks you to reboot, say Yes
- Set up reserved LAN IP address
- Find the Wi-fi MAC address of the RPi by running
ifconfig wlan0
. The MAC address is reported asHWaddr
. - In AirPort Utility, click on the AirPort and then click Edit. Click on the Network tab, and under DHCP Reservations, click the
+
.- Description: Tiki Nook
- Reserve Address By: MAC Address
- MAC Address:
ab:cd:ef:01:23:45
(the address fromwlan0
) - IPv4 Address: 192.168.10.14 (or whatever IP address you'd like it to have)
- This way, every time your RPi connects to the LAN, the AirPort will give it the same IP address.
- Find the Wi-fi MAC address of the RPi by running
- Set up port forwarding for
ssh
- Not necessary, but I like to be able to get to
ssh
from outside of my home network. - In AirPort Utility, click on the AirPort and then click Edit. Click on the Network tab, and under Port Settings, click the
+
.- Firewall Entry Type: IPv4 Port Mapping
- Description: Tiki Nook SSH
- Public TCP Ports: 8123 (or whatever port you prefer)
- Private IP Address: 192.168.10.14 (the reserved IP address for your RPi)
- Private TCP Ports: 22
- Then you can connect from the outside by using
ssh -p 8123 [email protected]
(or whatever your WAN-facing IP address is)
- Not necessary, but I like to be able to get to
- Install VNC
- Not strictly necessary, but I like being able to see the desktop sometimes.
- Adafruit's Raspberry Pi Lesson 7. Remote Control with VNC
- Here is a local copy of commands that I ran, condensed from above: VNC and File Sharing
- Installing OpenCV on the Raspberry Pi
- How to install OpenCV 3 on Raspbian Jessie
- Here's my local copy of commands that I ran to install OpenCV 3.1.0, as there was an update since those instructions were written: Installing OpenCV 3.1.0
- Installing the rpi_ws281x Library for NeoPixels — TODO as of 2016-03-20
- 2016-03-08 - I realize I had installed a bunch of software on the Pi that was unneeded, and the OpenCV compile was failing, so I'm wiping it and starting from scratch. I am cleaning up the above steps as I go.
- 2016-03-06 - Distributing power along one side of the nook shelves, so that we get better voltage and truer colors to more pixels
- I don't really think this is working. According to Adafruit "Powering NeoPixels", I need 60 / pixel for max brightness on 294 pixels, which is ~18A. My current power supply is only 10A -- fine for most color work, but for bright white, it's not gonna work. (HAHAHA and my mains circuit is only 15A, so obviously this will work perfectly.)