Kevin Edwards

The Code

This project was based on another project I saw that used an Amazon Dash button that someone modified to record a date and time stamp everytime someone pushed the button. I wanted to do something similar but used an eink display to show the last time it was pressed and update the "Days Since Last Pressed" counter every 24 hrs. Once the button was pressed the time pressed and the days since last pressed would be sent to a google sheet, the date on the display would update to the current date and time and the day counter would reset. I chose an eink display due to the low power usage. Originally I wanted to make this a battery powered device but the raspberry pi nano that I used still used to much power for it to run off of batteries for more than a day or two. Additionally, I programmed the wifi to turn on only once the button was pressed and once the data was sent to the spreadsheet then the wifi would turn back off again in an attempt to reduce the power consumption.

Link to Python code on Github

References