‘I wonder,’ he said to himself, ‘what’s in a book while it’s closed. Oh, I know it’s full of letters printed on paper, but all the same, something must be happening, because as soon as I open it, there’s a whole story with people I don’t know yet and all kinds of adventures, deeds and battles. And sometimes there are storms at sea, or it takes you to strange cities and countries. All those things are somehow shut in a book. Of course you have to read it to find out. But it’s already there, that’s the funny thing. I just wish I knew how it could be.’
Bastian, the Neverending Story

We live in an age of wonder. Every day, new innovations and inventions change the way we interact with the world around us and with each other. Many of the marvels we read about in the science fiction stories of our youth are suddenly, magically possible with a little clever engineering and a healthy dose of imagination. 

This guide will show you how to create your own never-ending story book using a Raspberry Pi and a touch screen display. Speak your request out loud, and the book will write you an original story based on your prompt. The software uses Open AI to leverage ChatGPT, a language-based AI, to fill an endless storybook with imaginative stories.

This code includes an editable prompt file called bookprompt.txt, so you can dictate the character names, story length, writing style, or any other parameters you'd like. Your daughter will love reading stories about herself and her cat as they adventure through an endless world of imagination, in the style of Dr. Seuss!

What will you imagine?

Parts

Top down view of a finger touching the screen of a Pi Foundation Display - 7" Touchscreen Display for Raspberry Pi.
The 7” Touchscreen Display for Raspberry Pi gives users the ability to create all-in-one, integrated projects such as tablets, infotainment systems and embedded...
$79.95
In Stock
Angled shot of Raspberry Pi 4
NOTE: Due to stock limitations we may only be able to offer refunds or store credit for Pis that are defective, damaged or lost in transit.The Raspberry Pi...
Out of Stock
Mini USB Microphone dongle
Hey, listen up! It's the world's smallest USB microphone! OK maybe it's not in the Guinness Record Book, but it is pretty darn small! This plug-and-play...
$5.95
In Stock
Top view of magnetic contact switch with three screws.
This sensor is essentially a reed switch, encased in an ABS plastic shell. Normally the reed is 'open' (no connection between the two wires). The other half is a magnet. When...
$3.95
In Stock
1 x Heat Shrink
Heat Shrink Pack
1 x USB Panel Mount
Panel Mount Extension USB Cable - Micro B Male to Micro B Female
1 x On/Off Switch
USB Cable with Switch
1 x SD Card
SD/MicroSD Memory Card - 16GB Class 10 - Adapter Included
1 x Rare Earth Magnet
High-strength 'rare earth' magnet
1 x NeoPixel
Flora RGB Smart NeoPixel version 2 - Pack of 4

Additional Parts & Materials

  • A book that's at least 2 1/2" thick and larger than 8"x6"
  • A right-angle USB cable - this makes an easier fit inside the book
  • A slim USB battery - I tried a few and this one fit best
  • 1/4" Craft foam to use as support inside the book
  • Decor: book corners, metallic vinyl sticker paper, uv resin, scrapbook supplies and findings to match your aesthetic

Tools

  • Jig saw & drill for hollowing out the book (or a very sharp knife and a lot of patience)
  • Very sharp knife - I like this one from OLFA
  • USB Keyboard for ease in programming the Pi
  • E6000 glue, hot glue, white glue, mod podge. You're gonna need lots of glue.

This guide was first published on May 24, 2023. It was last updated on May 24, 2023.

This page (Overview) was last updated on May 24, 2023.

Text editor powered by tinymce.