If you’ve never heard about electronic paper, crawl out from under that rock and read up on the Sony Reader and the Amazon Kindle. E-paper is a flexible display made of color-changing beads that mimic ink-on-paper for easy daylight reading. The revolutionary thing about e-paper is that after it’s set, it stays that way without additional power.
This sounds great in theory, but Esquire’s cover is the first time everybody can afford to hack an e-paper display. We took the cover into the Hack a Day lab to document, test, and hack. In the end, we recycled it into something useful that anyone can build. We’ve got all the details on how the display works and what it takes to use it in your own projects. Read about our e-paper clock hack below.
Background
The Esquire e-paper cover hit big on the net, but was quickly panned. NOTCOT has beautiful scans of the circuit board and e-paper. Popular Science posted instructions for reading the code with a PICkit2. [Slaxter] verified that the PIC chip can be read, and that the code protection fuses are off. [Matt] manipulated the e-paper cells directly with skillful soldering and an Arduino. So far, there hasn’t been a lot of interest in repurposing the e-paper, or reprogramming the existing microcontroller.
E-paper panels
The actual e-paper panels, manufactured by E-Ink, aren’t that exciting. Each panel has a set of predefined segments, 11 on the front panel and 3 on the rear Ford advertisement. This isn’t a matrix that we can reprogram into an e-reader. [just_mike] has a great set of ultra close-up shots of the individual beads that make up each segment.
Each e-paper segment has an individual connection, and a connection that’s shared with other cells on the panel. The segments become white or black depending on the direction of current applied to the cell. When common is low, any segment that is also connected high will darken. When common is high, each cell connected to ground will clear. The PCB uses 16 volts from five 3.3volt batteries to switch the cells, but [Slaxter] showed that 5volts was sufficient with his Arduino project.
Performance testing
We made several observations about the e-paper operating specifications.
[youtube=http://www.youtube.com/watch?v=T6GTFvNjRCk]
First, it takes nearly 0.5 seconds to completely darken or clear a cell. In the video you can see the partial states created by switching the e-paper too fast. We’re not quite sure of the optimal change time, but between 0.25 and 0.5 seconds seems to be the minimum.
This also raised questions about the maximum change time. Does it damage the e-paper to apply current for longer than necessary? Does the e-paper continue to consume current as long as it’s applied, wasting the batteries? We took special care in our code to return all outputs to ground after a change to avoid a continuous current through the panel.
[youtube=http://www.youtube.com/watch?v=hix9-h5UuSc]
Clearing and darkening must be done separately. It takes two complete operations to fully refresh the screen; one to clear old segments, one to darken new segments. A smart programmer will think they can save a cycle when only adding or removing items, and not doing both. This is true to some extent, but continuous manipulation of one cell without refreshing adjacent cells causes color ‘creep’. In the video, a flashing background without updates to any other segments quickly drives the inactive segments to a mid-state between dark and light.
Driver board
The driver consists of an eight-pin Microchip PIC12F629, two 4094 shift registers, and some supporting components.
Click here for a full size pin diagram of the e-paper driver board(PNG).
Batteries
Esquire invited hacks of their cover with the rather lame suggestion of replacing the batteries. This makes sense, the covers were shipped all over the world in refrigerated containers to help extend the battery life. Even with that effort, Esquire says that the batteries will last a few months.
Batteries 1-5 are in series and provide a 15-16volt switching current for the e-paper. The sixth battery provides 3volts for the PIC. No word yet on which batteries die first. If you want to ‘replace’ your batteries, you’ll need to desolder the old ones, and provide a 5-16volt e-paper supply, and 3volt microcontroller supply, at the points indicated.
We eventually had to replace our microcontroller battery because we abused it a bit during development. A button battery holder with 20mm pin spacing will fit the existing holes. Mouser #534-106 will probably work, but this is unconfirmed.
4094 shift registers (IC1, IC2)
The shift registers switch the e-paper segment controls at 16 volts.
The two 4094 ICs are shift registers setup to cascade data from IC1 to IC2. This simple shift register is a slight variation on the 74HTC595 we used in our graffiti wall. The main difference is that the 4094 strobe line is normally low, and briefly pulled high to put new values on the output pins. We noticed that the 4094 requires long clock and strobe pulses. This could be due to lazy drive circuitry between the PIC and the 4094, or just the nature of the 4000 series.
4094 segment output map
IC
|
Output
|
Address
|
Connection
|
1
|
Q1
|
0x01
|
FRONT_BOX_SYMBOL_DNA
|
1
|
Q2
|
0x02
|
FRONT_BOX_GUY
|
1
|
Q3
|
0x04
|
FRONT_BOX_FIREWORKS
|
1
|
Q4
|
0x08
|
FRONT_ON_THE_WEST_COAST
|
1
|
Q5
|
0x10
|
FRONT_THREE_HOURS_LATER
|
1
|
Q6
|
0x20
|
FRONT_ESQUIRE
|
1
|
Q7
|
0x40
|
FRONT_BOX_GIRL
|
1
|
Q8
|
0x80
|
FRONT_NOW
|
2
|
Q1
|
0x100
|
FRONT_BEGINS
|
2
|
Q2
|
0x200
|
FRONT_21ST_CENTURY
|
2
|
Q3
|
0x400
|
FRONT_BACKGROUND
|
2
|
Q4
|
0x800
|
FRONT_COMMON
|
2
|
Q5
|
0x1000
|
BACK_COMMON
|
2
|
Q6
|
0x2000
|
BACK_LEFT
|
2
|
Q7
|
0x4000
|
BACK_CENTER
|
2
|
Q8
|
0x8000
|
BACK_RIGHT
|
12F629
Click here for a full size schematic drawing(PNG). An eight pin PIC12F629 drives the 4094 shift registers that control each e-paper segment. Two pins are unused (GP4, GP5).
The MCLR feature is enabled with resistor R8. The design doesn’t include a diode to protect the PIC from the 13volt programming current. Microchip recommends this, but there’s no other sensitive ICs sharing the circuit so perhaps the designer felt a resistor was sufficient protection.
Three pins drive the data, clock, and strobe lines of the 4094 (GP0, GP1, GP2). The 4094 has to be interfaced at the same voltage it switches, 16 volts, so the PIC switches the interface pins through transistors. As far as we can tell, the 4094 control lines are pulled high with a resistor. The PIC switches a transistor on, and it pulls the line to ground. The interface to the 4094 is backwards. A PIC high pin is seen as low at the shift register, and low is seen as high. The interface won’t work unless reversed.
The programming pins are brought to a header at the top of the PCB. We soldered standard .1″ pin header into the holes provided (Mouser #571-41033290). The two programming pins, PGD and PGC, are shared with the circuitry that drives the shift registers. We were able to read the device with an ICD2 debugger. We couldn’t reprogram it though, probably because of the shift register driver. Has anyone had success? Regardless, the shared pin arrangement makes it impossible to do in-circuit debugging on this device.
PIC pin connections
Pin
|
Name
|
Connection
|
1
|
VDD
|
+3.3volts
|
2
|
GP5
|
—
|
3
|
GP4
|
—
|
4
|
GP3
|
MCLR (program VPP)
|
5
|
GP2
|
4094 Strobe
|
6
|
GP1
|
4094 Clock (program clock)
|
7
|
GP0
|
4094 Data (program data)
|
8
|
VSS
|
Ground
|
Tap the board
It’s easy to tap into the board and use it with your favorite microcontroller. All but one of the required interface signals are already brought to a header. The strobe line can be tapped through the via indicated by the arrow. You don’t want the PIC to interfere with your new controller, so remove it or deactivate it by severing the power pin.
Interface library
Our first effort to drive the board involved our PIC24F-based mini web server. It was handy, and the PIC24F is easy to work with. We perfected our interface library on a low-power MSP430. Both versions are in the project archive(ZIP), but the MSP430 version of the library is more mature.
The library includes a software bit-bang routine, functions for interfacing the board, and address definitions for the segment and common lines. Options in esquire_eink.h enable a bit-bang delay and set its length; we found the 4094 lazy and in need of a lengthy clock pulse. The initBang() function sets the direction of the pins, and should be changed to suit your microcontroller. Call it, or set your IO pins to output elsewhere:
bangInit(); //set bitbang pins to output
The setSeg() function sets the passed segments dark (1) or clear (0):
setSeg(FRONT_BOX_GUY+FRONT_BACKGROUND, 1); //set(dark) these segments setSeg(FRONT_21ST_CENTURY,0);//clear (light) these segments
The setSeg() function includes a color change delay defined by EINK_DELAY in esquire_eink.h. At the end of the delay it returns the shift register pins to ground. We want to avoid damaging to the e-paper or wasting the batteries, though we don’t really know if this is necessary.
One thing we noticed about setSeg() was that manipulating single cells causes adjacent cells to regress toward a mid-color. We developed the setDisplay() function to combat this by fully refreshing the display every time. setDisplay() includes a pause for each change, and then returns the shift register outputs to ground. Just pass the segment arrangement for a fully refreshed display:
setDisplay(FRONT_ESQUIRE+BACK_LEFT);//XX dark, everything else clear
You can access the shift registers directly with the bangIt() function, but consider returning the shift registers outputs to ‘0’ after the e-paper color change is complete. You could damage the e-paper or cause excessive current drain if you leave it on, if that’s actually ‘a thing’.
bangIt(0b1110000000000000);//all back panel segments on pause();//wait for the color change bangIt(0x0000);//return all outputs to ground
To port the library to your microcontroller, just check the pin configurations in esquire_eink.h, and the pin setup function bangInit() in esquire_eink.c. Keep in mind that the pin directions are reversed by the interface transistors.
Putting it to use, an e-paper clock
[youtube=http://www.youtube.com/watch?v=kluFFU90qnI]
We wanted to do something useful with the first cheap consumer e-paper panel. It had to be something pretty easy so that lots of people can recycle this cool piece of technology. We couldn’t resist doing what so many do with old display tech: make a clock. Schematics, firmware, and art templates are in the project archive(.zip).
There’s so few segments on the e-paper that we can only partially represent the time. Six segments show time, each fades to reveal the time to the nearest ten minutes past the hour. We also flash eye-candy on the non-time segments of the panel. Here’s the custom bezel we created. This bezel, and a template to make your own, are included in the project archive(ZIP). We printed our bezel mirrored so the ink is protected from scratches.
Hardware
We were inspired by the low-power properties of e-paper to use Texas Instruments’ MSP430 line of 16-bit microcontrollers. With the right configuration, the MSP430 draws so little power that it’s only limited by the shelf life of a battery. We can even give the original designers a run for their money, and see if we can make a lower power device.
The best thing about the MSP430 is that you can buy a kit with a USB programmer/debugger and breakout board for only 20 bucks. It comes with a free C compiler limited to 4K, but the F2013 only has 2K of memory. This is a complete development tool, no soldering involved. Learn more about working with the MSP430 in this how-to.
This schematic shows how we connected our MSP430 to the e-paper driver board. Click here for a full size version(PNG). The 47K resistor, MSP430, and an LED (not shown) are included on the breakout board.
We added a 32.768KHz crystal to keep time (Q1). Normally, we’d also add some capacitors to form an oscillator, but the MSP430 has built-in adjustable capacitors on P2.6 and P2.7.
We also added a button between P1.4 and P1.2 (S1). The internal pull-up resistor on P1.4 holds the button high, and we grounded it through P1.2. This isn’t the best arrangement, it would probably be wise to also connect P1.2 to ground.
We slid the MSP430 breakout board over the power and ground pins of the programming header. You can connect the clock and data pins to the header too, but we decided to route them all from the vias underneath. Remember to remove the PIC so it doesn’t interfere with signals from the MSP430.
Parts
|
Number
|
Cost
|
Esquire e-paper cover
|
—
|
—
|
MSP430 ez430 development kit
|
$20
|
|
32.768KHz crystal
|
$0.27
|
|
Push button
|
$0.16
|
Firmware
The clock software is written with the free demo version of the TI/IAR Kickstart C compiler included with the ez430 programmer.
The MSP430 is very low power. It uses just 220uA at 1MHz, but less than 6uA when sleeping. The key to long battery life is to keep the chip asleep as much as possible. Our clock code is written with this in mind.
We use timer_a with the 32.768khz crystal to create an interrupt twice each second. The first interrupt triggers code that configures the segments to be displayed, sends these values to the e-paper, and then sleeps for the next 0.5 seconds. While the MSP430 sleeps, all the ‘off’ segments have time to clear. The next interrupt flips the common lines the other way with a simple XOR, outputs the values, and goes to sleep for another 0.5 seconds. Next time the cycle will begin again. We don’t bother to reset the shift registers to the ‘0’ position because the refresh is constantly in flux. Segment creep isn’t a problem because we refresh every segment each cycle.
A button press triggers an interrupt that advances the time to the next 10 minutes. To set the clock, wait until the time is a factor of 10 minutes past the hour and press the button to show the correct time. A small debouncing routine ensures that only one hit is detected per button press.
Taking it further
There are some lingering questions about the e-paper panels that would be nice to answer. What is the optimal change time? Will continuous current damage the segments or waste battery power? Why did the designer use a full 16volts to trigger the panels when only 5volts are required?
Everything you need to build the clock and interface the Esquire cover is included in the project archive(ZIP). It should be possible to interface any microcontroller with the Esquire e-paper cover using the interface library and three IO pins. In a future project we plan to build a custom driver board for the unused e-paper module.
Okay wait it says clock, but all i see is more paper no real time?!!
This display is what I expected… a simple screen for simple text.. as I live in the UK I cannot get hold of one…
Could someone try the following – the display should be static sensitive – so if you put a wire each side of the display with a voltage on it, it should create a image the shape of the overlap…
e.g. connect the common to 0V and move a wire with +15 volts across the top… this should ‘draw’ where the wire was…
I wonder if anyone ever tried it. It’s 12 years later, and the streets are full of killer plague zombies, hurray! And also apparently E-ink is due a resurgence, although really that’d be more of a “surgence” since it wasn’t the spectacular revolution the first time round we thought it would be. They still haven’t got colour or video refresh rates.
Anyway that said, my point is that although the beads are probably dielectric, perhaps the fluid they’re in is a conductor? So it would conduct the current through the whole cell, so it would all light up H^H^H^Hdarken. Yep it might well work even through the insulating housing without using the actual electrodes. I’ve got my Kobo here but I don’t really fancy rubbing my hair against my jumper or something to see what static would do to it.
Sorry, that’s not really an answer, is it? I’ll tell you in 12 years when they’re cheap enough to be disposable.
where can I get a copy of this magazine? is it still on newsstands?
I was experimenting with this a while ago, and I discovered that you could create several more segments to control by scratching away the “wires” that connect several of the different segments together.
Feasibly, you could control each character individually with this method. I never really got past the proof of concept phase with this though. I was too disheartened by the lack of a matrix display. :(
I was hoping they’d put some kind of segmented alphanumeric display on it (maybe scrolling text). It’s still cool what they did, just not as useful, i guess it’s cheaper this way.
“we recycled it into something useful that anyone can build” -uh define “anyone”
What do we expect for 2 bucks more? a HDTV quality display? I purchase a HT for $200 this pass summer, that doesn’t have a dot matrix display…
Wonder how long before there’s a full spread of linked e-ink displays? (e.g.http://www.blinkenlights.net/ )
Funny how everyone complains when they publish stories that “aren’t a hack”, but no one praises them when they do something like this.
So, from me: Great article hackaday, and I look forward to more like it. :)
(and no, I honestly don’t mind the notahack articles you post every day; they’re all good imo)
Nice job Ian and good on the magazine for going out on a limb to try out this new tech. Too bad the display wasn’t something a bit more universal.
Wow, I’ve been very impressed with a lot of the content lately! Articles like this, and your “Parts” articles are amazing! This is why I love this site.
(All the haters who can’t handle the occasional off-topic article here on Hackaday need to go elsewhere. Many of us get sick of their whining.)
Just a guess, but wouldn’t the 16v give you faster switching?
You can display the time with only six controllable segments, you just have to use (sigh) binary. Two segments could represent the time to quarter of an hour (00=xx:00, 01=xx:15, 10=xx:30, 11=xx:45) and the remaining 4 segments give the hour (in 12 hour format) in regular binary- 0001 to 1100. Sadly the segments you used are grouped in two threes so it would be a little unintuitive, but that’s one possible way of displaying the time of day.
Also I agree with bware, surely 16v would switch faster than 5v (unless you already tested and found this to be false)?
Incredibly well documented!
Cool project!
Hackaday, you’re the ginchiest.
AWESOME! great work!
Awesome job, guys!! I love the thoroughness – from playing with the OLED directly, to building an improvement on it. That, and documenting it really well and putting it all on one page = great work.
That’s awesome. Now if only someone can think of a good use for the car ad.
The MOTOFONE F3 is a (very) low cost mobile phone available in the UK (I bought one for £10), that uses e-ink as its display. It’s worth hacking.
Could you not display the complete time by using binary and cycling through the hour, then the minutes, then the second? Perhaps using the other “panels” to show which part of the time it was currently displaying? Pretty much anyone reading this blog has the capability to read binary…
Awesome!!! Hands down one of the most interesting hacks I have across lately. Great Job!
> surely 16v would switch faster than 5v (unless you already tested and found this to be false)?
weren’t they designing around battery life limitations tho?
The e-paper magazine was a huge bust in my opinion. I was looking forward to the release but it really feel short of my expectations. I can’t blame them for trying though.
Good Job! I to have been playing with these.
Peel off the foil in back to find traces to 36 seperate fields. like Packrat said, you could isolate each one. Then a binary clock, thermometer, game, or whatever is possible.
When voltage isn’t applied, could you use capacitence for a touch panel?
I tried Wonko The Sane’s idea with the wire but it didn’t work. I think because the transparent top plane acts as a shield. Could a magnetic field be locally strong enough?
It seems like something is missing if I don’t get my Hackaday fix.
Hmm. re car display, you *can* actually cut the display into sections and poke a small wire into the edge to connect to the (upper) common electrode. Seemed to work, then you can make a four way rotary display with silver paint if you are careful when cutting. Hint, the “wires” connect to the lower contacts through tiny holes in the panel visible as thickenings in the carbon coating.
Pictures soon :)
-A
also very important, if you peel off the back plate you expose the delicate ITO contacts to moisture. I found that prolonged exposure causes “creeping death syndrome” from the contacts, however this is prevented (tested on one panel) by fully shielding the back panel with epoxy after testing.
This is actually a common problem with EL sheet too.
See my 4HV postings for more info.
got my copy – peeled off the foil on the ad display, two segments promptly b0rked. those wires are insanely delicate. i’ll be hooking up the common rail on the display and use a probe to blank everything, then try to make a sort of e-ink drawing pad. it’ll be interesting to see exactly how electricity moves through this thing. great write-up!
Quite simply this is one of the coolest fucking things I’ve ever seen in my life.
The *quintessential* example of the spiri of “Hack A Day” ….
Hello,
does anybody have any info on behavior with less then 5v? Also, any info on (peak) current reqired/current draw?
I want to drive a lexar Jumpdrive Mercury eink display with solar power, thus the question.
(related; If anyone has a source with very small lcd or lc-shutter < 15mm^2 let me know)
-Marcus
Fast forward a year:
http://tech.yahoo.com/news/ap/20090819/ap_on_hi_te/us_tec_techbit_cbs_print_video_ad