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.

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.

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


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


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

Step 5: Install the Bluetooth adapter and setup streaming

First disable the internal Bluetooth of the Pi

sudo nano /boot/config.txt

add the line


Setup bluetooth streaming

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


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

sudo apt-get install chameleon-cursor-theme

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



This guide was first published on May 17, 2018. It was last updated on Oct 09, 2017.

This page (Software) was last updated on Jan 31, 2018.

Text editor powered by tinymce.