E-Ink Joke of the Day Fridge Magnet

by meub in Circuits > Arduino

3095 Views, 64 Favorites, 0 Comments

E-Ink Joke of the Day Fridge Magnet

IMG_9703.jpg
IMG_9706.JPG
IMG_9699.JPG

My 6-year-old son is pretty obssessed with jokes and I wanted to build something that would show him a new joke every day. This is what gave me the idea of creating a fridge magnet with an e-ink screen that would display jokes from the Internet.

This project is powered by an Arduino ESP32 that displays jokes pulled from the Official Joke API. It fetches a new joke from the API every 6 hours, updates the screen and then immediately goes into deep sleep to preserve battery. This means it should last months between recharges. It uses a paperd.ink PCB, a 4.2 inch E-ink display, a 1900mAh battery and a custom 3D printed case designed in Fusion 360 with magnets embedded in it. It also displays a rough estimate of the battery charge remaining on the screen that is updated every 6 hours.

Supplies

Set Up the Arduino IDE

board_url.PNG

The first step of this project is making sure you have the Arduino IDE installed and configured correctly. After installing it, you'll need to add the ESP32 Board Manager URL by going to Tools > Board > Boards Manager. The URL is: https://dl.espressif.com/dl/package_esp32_index.json

Install the Paperdink Library

arduino-lib.PNG

Next, in the Arduino IDE go to Tools > Manage Libraries, and search for Paperdink. Then click the Install button on the latest version (should be 0.0.5 now).

Modify and Upload Arduino Sketch

IMG_9709.JPG

The next step is getting the Arduino sketch working on your paperd.ink ESP32. I've included an Arduino sketch I created (with snippets borrowed from this example) that calls the Official Joke API and displays a random joke on the E-ink every 6 hours. You'll need to modify it to include your WiFi network name and password. You can also change the timezone, fonts, layout and and the frequency of updates. This is all documented in the Arduino sketch. Remember that the more frequent it updates, the lower the battery life.

Downloads

Make Sure It Works

IMG_9708.JPG

After uploading the sketch, unplug the screen and press button 1 (uppermost button on the right side). Make sure a joke is displayed on the screen and that the battery life is also displayed.

Design Enclosure in Fusion 360

sketch.PNG
fusion-design.PNG

Next, use Fusion 360 to design a 3D printed enclosure that will protect the project internals and also allow magnets to be mounted inside (so it will stick to your fridge). This process starts with taking measurements of the paperd.ink board with digital calipers and then entering those into a sketch in Fusion. Then extrude the sketch into a two piece enclosure and create holes for the USB C plug, the magnets, M3 bolts and button 1 (the upper rightmost button). Feel free to use my included design if you'd rather not design it yourself.

Print Enclosure

IMG_9719.JPG

Export the mesh from Fusion, slice it and print the front and back plate. I recommend printing this in PLA with supports, 0.2mm layer height and 15% infill.

Add Threaded Inserts

IMG_9696.JPG
IMG_9721.JPG
IMG_9699.JPG

Attach threaded inserts using a heated up soldering iron and then pushing the M3 inserts into the holes in the front plate. They should slide right into place without much effort.

Add Magnets

IMG_9694.JPG
IMG_9698.JPG

Put dabs of adhesive (I used E6000) in each of the cutouts for the 10mm magnets and press them in. Wipe away any excess and let the adhesive dry for at least 30 minutes before moving to the next step.

Close It Up and Enjoy

IMG_9723.JPG
IMG_9722.JPG
IMG_9703.JPG

Use four M3x5 bolts to attach the back half of the enclosure to the front half and then stick it to your fridge. Enjoy your daily dose of dad jokes each morning!