Rolly Robot Alarm Clock

Build a robot alarm clock that makes you get out of bed to turn it off.

4. The Software

For our software to work, we need to install a few additional components to our Raspberry Pi. You will need to download the .ZIP file below. While there are two versions, the Ultrasonic Sensor is what determines which version you are able to use.

This should be unzipped into a folder on the desktop, thealarm.pyfile opened, and lines 26 and 27 edited. You will need to replace emailwith your Google Calender email and ‘password’ with your password and save the file.

  • calendar_service.email = ’email’ #your email
  • calendar_service.password = ‘password’ #your password
With thealarm.py file customized, it is time to setup the software. This can be done very easily by setting up the alarm_setup.sh as an executable file and running it. First you will need to open a terminal window and using thecdcommand change to the directory where you unzipped the needed files.

Once the terminal is looking at the correct folder, it will be necessary to run “sudo chmod +x alarm_setup.sh” without the quotes.

Once this script has finished it will be possible to run the command “sudo ./alarm_setup.sh” which will run the installer.

Upon completion, your Rolling Robot is ready to run. If you are still in the directory where the files were unzipped, all that is necessary to run the program is type “python alarm.py”. This will start your robot scanning Google Calender for the phrase “wake1.”