top | item 47141797

Hacking an old Kindle to display bus arrival times

333 points| mengchengfeng | 6 days ago |mariannefeng.com

88 comments

order

hex4def6|6 days ago

As someone who worked on kindle power consumption many years ago: One of the (by far) biggest consumers of power is the WiFi connection. It has to wake up and respond to the AP in order to not get disconnected every x seconds.

Off the top of my head, I think 'on' average power consumption was ~700uA without wifi, and about 1.5mA+/- with Wifi. This is from over a decade ago, so my memory is fuzzy though...

Obviously, page changes used relatively large amounts of power. I don't recall the exact amounts, but it was 100s of mA for seconds.

There is also an "every x pages, do a full screen refresh (black to white)" to fix up the ghosting issue that the article writer saw.

thegrey_one|6 days ago

I removed the battery on mine, kept the battery chip and fed 5V into the battery terminals, from Kindle's USB connector, through a diode (so 4.4V-ish). Without a battery it needs something that can deliver at least 1.5A, for short bursts. An older powered usb hub seems to work fine, hub is connected to my raspberry pi, and I use ssh through usb networking, no wifi, no battery, worked fine for months now.

mengchengfeng|6 days ago

Awesome tips. I'll try increasing the refresh interval to 2 minutes and turning off the wifi in between refreshes to see if helps with battery life.

Side note this also finally explains to me why battery life on the Kindle is SO good in airplane mode.

ge96|5 days ago

I never connect my RM2 to wifi and it's crazy, I don't charge it for months. Granted I use it maybe under 30 time a month too. I guess WiFi isn't necessarily disabled but yeah.

Haven't modded my paper white kindle, I'm thinking at the very least I'm going to get rid of those forced ads you read when you wake it up.

nanobuilds|6 days ago

wonder if small amorphous silicon photovoltaic cells glued around the kindle would provide enough power to not charge every 5 days

thegrey_one|6 days ago

I took an even simpler route. After jailbreak and ssh I just made two scripts on the Kindle, one is triggered every minute, the other every half hour. Both draw the same image from the same location, the 30 minute one just adds a full refresh. This way the display is not fully refreshed every minute, but in time image is degrading so full refresh once every 30 minutes seems work out fine.

This way Kindle has a very simple job, no apps installed no anything, just two extra cronjobs to run the oneliner bash scripts that draw the image. And I use rsync from a raspberry pi to push a new image every minute. That image is assembled with a python script, rpi side, with air quality data. Connects to local mysql server, pulls the values and then assembles it.

password4321|6 days ago

> even simpler route ... rsync from a raspberry pi ... python script ... air quality data ... local mysql server

I smiled

nine_k|6 days ago

A pretty dumb eInk display that could do one thing, that is, receive and blit a bitmap at a given location, would suffice for great many uses. It only needs a way to connect to wifi or zigbee securely, e.g. using TLS.

CTDOCodebases|6 days ago

I took an even simpler route.

I Jailbroke my Kindle so I can read epubs on the bus and I just ask Siri when the next bus is comming.

SwtCyber|6 days ago

There's something very satisfying about solving the whole problem with a couple of scripts instead of building a full framework around it

FlyingSnake|6 days ago

Kindles are fun devices to hack and play with. I can grab an old kindle for €15-20 on eBay.

I did the same last year and had lots of fun in the process.

https://samkhawase.com/blog/hacking-kindle/

moffkalast|6 days ago

For the less reverse-engineering prone among us, there are also similarly sized e-ink displays that plug into Raspberry Pi DSI ports for maybe $5 more on Aliexpress. They might actually be salvaged kindle screens.

mengchengfeng|6 days ago

I love it! Always fun to see the route somebody else took to get to the same end product.

Your post is making me want to try more Cloudflare Developer Platform stuff like Cloudflare Workers.

uyzstvqs|6 days ago

Can you start jailbreaking straight away, or does it require an internet connection and Amazon account first during setup?

rwyinuse|6 days ago

Old kindles are a lot of fun. I've turned a couple of them into AI generated paintings that refresh their contents every few hours or so. I can control the prompts via web-ui, through template functions they can include things like weather conditions, random animals, countries, current date & time and even titles of random news articles. Prompt handling and image generation is done completely locally on my home server, using ollama and stable-diffusion-webui.

The only problem I've had is that most news articles from mainstream media are damn depressing, so generating paintings directly from them gets gloomy quick. I had to instruct ollama to try put a positive spin on negative articles. I do love my weather-forecast painting though. Whenever it's raining outside, the painting has rain in it too (or now during winter it's all snowy).

Battery life is really good too, lasts several weeks. I used existing "Online Screensaver extension" from MobileRead forums, with some customizations. It automatically turns on airplane mode after fetching the image and keeps it on until next fetch, which probably explains the improved battery life.

CamelCaseCondo|6 days ago

You could do imperfect speech to text and have one illustrate the ongoing conversation.

SwtCyber|6 days ago

E-ink feels weirdly well-suited to generative art

kakkun|6 days ago

Nice!

Here's my version of a kindle dashboard I set up several months ago (https://github.com/thekakkun/kiiin). I use it to show local weather data and music data from my media server.

As for the "color bleed" (I assume it's ghosting) you mention, periodically using `eips -f` when drawing the image to force a full screen redraw should help.

mengchengfeng|6 days ago

Woww written in Rust, nice! Very cool, first time I've been tempted to learn Rust.

scary-size|6 days ago

Real nice! Shutting down networking between refreshes definitely helps with the battery life. I also prevent mine [1] from updating between 10PM and 6AM. Nobody is looking at it anyway. If you search around on Github for Kindle dashboards, there's a lot of scripts out there with a bunch of battery life improvements (shutting down daemons, wifi etc.).

I built GTFS based public transit display on top of a Raspberry Pi Zero and a 2" e-ink display ~10 years ago [2].

[1] https://franz.hamburg/writing/kindling-e-ink-dashboard.html

[2] https://github.com/Scarysize/transit-pi

mengchengfeng|6 days ago

Hah I love the random Pokemon + remaining time for Laundry + Dishwasher! I'm not usually a big fan of smart appliances but boy oh boy would it be cool to display remaining time left for laundry on a dashboard...

michaelbuckbee|6 days ago

I love using Kindle's as single purpose tablet/interfaces/displays. I'm the weirdo who actually prefers the LCD displays vs eInk and it's incredibly easy to set Kindle Fire's into dev mode which lets you display a webpage, never turn off while connected to power and never show ads.

You can regularly find the Kindle Fire HD10s for ~$40

mengchengfeng|6 days ago

Good to know about Kindle Fire. And hah, I can totally see why you'd prefer LCD's over e-ink - no ghosting + readable in pitch dark would be a sweet upgrade to the dashboard.

adhamsalama|6 days ago

Why Jailbreak the Kindle when you can just open its browser and visit a website that shows the arrival times?

The Kindle browser is surprisingly decent, I made Claude Code generate an RSS feed reader compatible with the Kindle browser, with the ability to read full articles (for those feeds that require you to visit the website), and download articles. It also supports Reddit and Google News RSS feed. This is my new favorite way of browsing the internet.

https://github.com/adhamsalama/simple-rss-reader

mengchengfeng|6 days ago

It's easier to load up a page in the Kindle browser, but more fun to jailbreak :D

I also didn't want the browser bar at the top.

unrealhoang|6 days ago

it will be much less power-efficient, when jailbreak you could schedule the kindle to wake up once per 15/30/60 minutes to fetch the new data, set it as screensaver and then go back to sleep.

mkmk|6 days ago

I was glad to see the note about battery life down at the bottom. My biggest challenge with the old Kindles I have laying around is that most of them won't hold a charge!

bpmct|6 days ago

I haven't developed on the Kindle ecosystem, but with old Nook devices I am able to set a screensaver, alarm, and put the device into deep sleep between refreshes. This changed my battery life from ~48 hours into 30+ days of battery life even with some old devices.

The "electric sign" app does this, which is where I referenced the code.

With trmnl, the image only refreshes every 10 mins so the device will set a ~9 minute alarm to wake the device right before it needs to load the next update.

The refresh period is also configurable so a slower refresh interval (e.g. every hour for less time-sensitive screens) yields larger battery savings

thegrey_one|6 days ago

I removed the battery but kept the I2C chip/pcb, and fed 5V from USB port via a diode, on the PCB battery connections, seems to work fine. I actually installed a single wire from USB VCC to diode then + battery terminal. But you need to power the Kindle from something that can deliver at least 1.5A for startup peaks. A USB hub does the job fine in my case, and also connects it to a raspberry pi for ssh through USB networking, so no wifi either. Use a good USB cable for power.

mengchengfeng|6 days ago

Yeah that was definitely a worry of mine before I booted it up. Luckily it's still got decent battery life. We'll see how it holds up in 6 months...

Dyson vacuums and Kindles are not the same whatsoever, but I wonder how easily it'd be to swap out the battery on an older Kindle. For our vacuum, all I needed was a 20 dollar replacement battery and the will unscrew 3 mini screws.

BobaFloutist|6 days ago

One thing that's disappointed me is that despite all the excitement over better and cheaper battery technology, you can't buy a cheapish drop in replacement battery for e.g. an old kindle that has more storage capacity than the OEM version.

I understand there's like all sorts of complexities in standards, form factors, voltage, wattage, etc, but I really wish I could upgrade my old devices like that.

pilina|6 days ago

Everybody seems to do stuff like this nowadays. Myslef included. I did have old K4NT lying around and started playing with it. With a little bit of help of AI (not for jailbreaking though! - lots of nonsense) I was able to put up little server, which now serves family calnedar agenda, but it is designed to be modular and I will put more stuff to it later. I've even designed and 3D printed insert into Ikea 12x18 frame and put a small "blade" powerbank with MagSafe to the back, so now I need to push powerbank button every 5 days. Internal battery is in a bad shape now, but I saw I can still buy an replacement. Wired version was not an option in my case.

ajb|6 days ago

These days digital shelf labels look like a really cheap option; lots of them look like they require a proprietary base station, but there are some out there with BLE/NFC - have been meaning to get one to try.

Of course, if you have an old kindle about, reusing it is a great way to avoid waste.

miohtama|6 days ago

Very nice post! This is finally news for hackers again.

aaronbrethorst|6 days ago

I took an even simpler route:

I rebuilt the OneBusAway iOS app from scratch as a pair of Swift frameworks that will work anywhere, including tvOS[1].

Then, I started a new project to rebuild the OneBusAway server in Golang from scratch[2].

Then, I got an intern to build a suite of fantastic SDKs on top of Stainless[3].

Finally, I got Google to pay for an intern last summer to build a sign mode UI in SvelteKit that will work in any browser[4].

Easy!

But seriously though, if your transit agency isn't so cool that they provide GraphQL endpoints to query transit information, I think you'll find that the OneBusAway Maglev server is an incredibly easy way to consume your transit agency's scheduled and realtime data, and that our SDKs and apps are a fantastic way to visualize all of that information.

We're always looking for software developers to help out with our projects, as well as folks in disciplines ranging from user experience and product management, to biz dev and marketing, to volunteer some time to help our underfunded open source projects succeed. Feel free to reach out to me at aaron@onebusaway.org if that sounds interesting to you. Our software is used by millions of people every day in cities all around the world, including Seattle and New York City.

----

[1] https://github.com/oneBusAway/onebusaway-ios/

[2] https://github.com/OneBusAway/maglev

[3] https://developer.onebusaway.org/api/sdk and Stainless (which is a really terrific product) is at https://www.stainless.com

[4] https://github.com/oneBusAway/waystation

siddhartpai|6 days ago

would a barebones html page showing the bus timings and refreshing automatically every couple of minutes work?

Or is there a javascript restriction on kindle?

mengchengfeng|5 days ago

Seems like it should work. Another commenter said that for their dash, they had a site that they kept open in the Kindle browser.

Although I did notice some weirdness with using the browser. I have an HTML endpoint up at https://kindle.mariannefeng.com/, and for some reason whenever I tried to go to that page using the Kindle browser, it returned a message about not being able to load the page. And I don't even think my page has javascript.

spinningarrow|6 days ago

A long time ago I made a smart home automation web page for my Kindle, so that should definitely work.

rga5321|6 days ago

In case anyone wants Todoist + Gcal events on the kindle, I coded a simple web app for that some years ago:

https://github.com/rga5321/productivity-dashboard

I am not using it anymore as I bought a TRMNL display and set up a simple template to do the same, but it worked well for me.

TurdF3rguson|6 days ago

If they ever reboot that Twilight Zone where Burgess Meredith breaks his glasses they should do someone who did this to their kindle.

marsbars241|6 days ago

Regardless of anything else, I thought we were done messing with the cursor on websites.

johndhi|6 days ago

Yes! I want this so bad. But for the weather or my calendar for the day.

mengchengfeng|6 days ago

If you've got an old Kindle, this project is totally doable over a weekend! Especially if you start with only weather data to begin with.

SwtCyber|6 days ago

Makes me wonder why there isn't a whole category of "public display-friendly" e-ink devices with first-class APIs...

retired|6 days ago

I don’t use public transportation but don’t the bus stops have these signs already? I remember seeing them.

stevekemp|6 days ago

I built a hardware display, with an LCD and a WeMos Mini D1, so that I can see the upcoming tram departure times outside my house. I could use the website, or a phone app, but having the departure times always present right by my front door is a real game-changer.

The actual tram-stop does indeed have a display, but here in Finland it might be -20°C in the winter time so I don't want to walk to the stop earlier than necessary.

Sure waiting ten minutes won't kill me, but I'd much rather wait 1-2 minutes instead. Keep myself toasty-warm indoors.

dxdm|6 days ago

Not all of them do. It's also nice to have one closer to you, so you don't have to walk to the bus stop to find out when it's time to leave house for the bus...

You could check on the phone, but I could certainly see the appeal of a fixed display in a convenient location.

lifestyleguru|6 days ago

Did you hammer nails straight into a wall like a barbarian?!

mengchengfeng|5 days ago

Hahaha 100%. No 3D Printer and I wanted to be able to easily remove it from its "mount" for charging.

It teeters a fine line between jank and minimalism.

umairnadeem123|6 days ago

[deleted]

mengchengfeng|6 days ago

Right now I'm doing a partial refresh, and it manages to last for a couple days but would be cool if it could be unplugged for 2 weeks.

A small solar battery is a VERY interesting idea. If I don't end up being able to hit that number by adjusting the code itself, will look into it.

thaumasiotes|6 days ago

> for a bus schedule that updates every 60 seconds

Bus stops in Shanghai have e-ink displays that are kept up to date with the current estimated arrival time of each bus. (I don't know what the time resolution is; it could be 60 seconds, but not much longer than that.)