I’ve typically struggled with procrastination, and to-do functions have been lifesaving. I typically discover myself needing a reminder to only give attention to getting a very powerful activity carried out earlier than engaged on anything.
With that in thoughts, I created a easy photograph body to take a seat on my desk and remind me of my most necessary activity of the day utilizing e-paper and a Raspberry Pi. I needed to make use of e-Paper particularly because it’s low-power and never as distracting as a normal show can be. If you happen to’re the type of one who likes a easy reminder of your most necessary duties, right here’s methods to construct it for your self.
What You’ll Want For This Challenge
Construct a To Do Reminder Body with E-Paper and a Raspberry Pi
Earlier than you get began, get your Raspberry Pi arrange. If you happen to haven’t carried out this earlier than, see our article on methods to set up a Raspberry Pi for the primary time or methods to do a headless Raspberry Pi install (with out the keyboard and display). For this undertaking, we suggest a headless Raspberry Pi install.
1. Set up git. We’ll want it to obtain the code from GitHub.
sudo apt-get replace sudo apt-get -y set up git
2. Clone the repository to your house listing. It will guarantee we now have all of the code and audio recordsdata we have to run the undertaking.
cd ~/ git clone https://github.com/rydercalmdown/todo_reminder_frame.git
3. Run the “make set up” command to put in all undertaking dependencies. This script will care for putting in decrease degree dependencies, in addition to the Python libraries you want for the undertaking to run.
cd ~/todo_reminder_frame/ make set up
4. Find the VCC and Floor pins on the e-paper hat, join them to Raspberry Pi BOARD pins 4 and 6 respectively.
5. Find the DIN and CLK pins on the e-paper hat and join them to Raspberry Pi BOARD pins 19 and 23 respectively.
6. Find the CS and DC pins on the e-paper hat and join them to Raspberry Pi BOARD pins 24 and 22 respectively.
7. Find the RST and BUSY pins on the e-Paper hat, join them to Raspberry Pi BOARD pins 11 and 18 respectively.
8. Utilizing the included ribbon cable, join your e-paper show hat to your e-paper show, if not already related.
9. Allow the SPI interface by opening raspi-config and following via the menus.
sudo raspi-config > 3 - Interface Choices > p4 - SPI > Allow > End
10. Restart your Raspberry Pi.
11. Create a ToDoist account and add to-dos, if you happen to haven’t already.
12. Go to your ToDoist integration settings and copy your API token on the backside.
13. Export your API token to your setting.
nano ~/.bash_profile # Add the next line close to the tip of the file export TODOIST_PERSONAL_TOKEN=your_copied_token # Ctrl X, then Y, then enter to avoid wasting and exit.
14. Re-source your setting and run a take a look at. It is best to see some logs seem indicating the show is retrieving duties.
supply ~/.bash_profile cd ~/todo_reminder_frame make run </code> <code> INFO:root:Beginning show INFO:root:Beginning 7.5 inch E-Paper Module INFO:root:Working show INFO:root:Checking for updates INFO:root:Getting newest activity INFO:root:Newest activity has modified INFO:root:Updating show with newest activity INFO:root:Getting picture buffer INFO:root:Writing picture to paper
15. Verify that your show is updating. It ought to flash and replace along with your most pressing activity. If nothing is occurring, and the logs look regular, you'll have a pin misplaced. For additional troubleshooting, visit the manufacturing guide.
16. Take away the again out of your 5x7 photograph body and tuck within the e-paper show.
17. Tuck within the e-paper show with a bit of black building paper excessive to cowl up the perimeters.
18. Shut the again of the body, permitting the ribbon cable to rigorously wrap round.
19. Tuck the hat and the Pi behind the body, or scorching glue them into place behind the body.
20. Run the applying. It's going to periodically examine for the newest highest precedence activity with the soonest deadline in your ToDoList utility.