username: pi
password: raspberry
sudo apt-get update
sudo apt-get upgrade
wget abyz.co.uk/rpi/pigpio/pigpio.zip
unzip pigpio.zip
cd PIGPIO
make
sudo make install
cd ~
sudo apt-get install libusb-dev
sudo apt-get install libglib2.0-dev --fix-missing
sudo apt-get install libudev-dev
sudo apt-get install libical-dev
sudo apt-get install libreadline-dev
sudo apt-get install libdbus-glib-1-dev
sudo apt-get install bluetooth bluez blueman
sudo apt-get install python-bluez
you'll need to run these every time you start the raspberry pi
run pigpiod daemon
sudo pigpiod
startup the bluetooth dongle
sudo hciconfig hci0 up
sudo crontab -e
@reboot sudo pigpiod
@reboot sudo hciconfig hci0 up
then press ctrl-x and press 'y' to save your changes
sudo shutdown -r now