If you have not used a Raspberry Pi or a Pi Zero in a project, you may want to review the following Guides to get your Pi set up and loaded with the latest version of the Raspbian operating system:

Once you have your Pi Zero W set up and working with a display and keyboard, you will want to follow the steps below.

Step 1: Update the Pi software, install the opencv software package and download the picture/video program.

Download: file
sudo apt-get update

sudo apt-get install python-opencv python-picamera

git clone https://github.com/matt-desmarais/piglass.git

Step 2: Enable the camera and SSH remote access.

Download: file
sudo raspi-config

Go to interfacing options in the raspi-config program and turn the camera on. Also enable SSH access in the configuration program. SSH is remote log in to the Pi from another computer or your phone, this will be used later on.

Reboot the Pi or shutdown and restart.

Step 3: Setup Dropbox Integration

https://github.com/andreafabrizi/Dropbox-Uploader

Download: file
git clone https://github.com/andreafabrizi/Dropbox-Uploader.git

cd Dropbox-Uploader

chmod +x dropbox_uploader.sh

sudo ./dropbox_uploader.sh

At this point you will be asked for an access token - here is what you do:

  1. Go to: https://www.dropbox.com/developers/apps
  2. Create App and give it a name.
  3. Go to App setting and scroll down to the OAuth 2 section
  4. Look for generated access token. Click generate.
  5. Copy and paste your access token into the uploader script

Now PiGlass will be able to upload to dropbox!

Step 4: Install software support for the phat dac

https://learn.pimoroni.com/tutorial/phat/raspberry-pi-phat-dac-install

Download: file
curl https://get.pimoroni.com/phatdac | bash

Step 5: Install the Bluetooth adapter and setup streaming

First disable the internal Bluetooth of the Pi

Download: file
sudo nano /boot/config.txt

add the line

dtoverlay=pi3-disable-bt

Setup bluetooth streaming

Reboot then attach your bluetooth dongle to the mini OTG USB adapter

https://github.com/lukasjapan/bt-speaker

Download: file
sudo -i

bash <(curl -s https://raw.githubusercontent.com/lukasjapan/bt-speaker/master/install.sh)

Pair your phone to PiGlass using Bluetooth Manager (GUI) or bluetoothctl (terminal)

Test your setup by pairing your phone and playing music, the music should play from the headphones on the phat dac

Optional: Increase size of mouse for the lxde graphical user environment if you want to use a bluetooth keyboard

Download: file
sudo apt-get install chameleon-cursor-theme

sudo update-alternatives --config x-cursor-theme

select

/usr/share/icons/Chameleon-White-Large/cursor.theme

This guide was first published on May 17, 2018. It was last updated on May 17, 2018. This page (Software) was last updated on Aug 17, 2019.