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:
- Go to: https://www.dropbox.com/developers/apps
- Create App and give it a name.
- Go to App setting and scroll down to the OAuth 2 section
- Look for generated access token. Click generate.
- 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
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 dtoverlay=pi3-disable-bt
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
select
/usr/share/icons/Chameleon-White-Large/cursor.theme