E-Ink Bank Calendar

I was recently given a brass calendar frame that normally holds a collection of small cards corresponding to the date. The top lifts off and the cards are re-arranged to display the day’s date. I decided to automate it with the following:

  • Arduino Pro Mini, ATmega328P microcontroller board (1x)  Main controller for the system, runs the code integrates everything else.
  • DS3231 Realtime Clock module (1x). This keeps track of the time/date. It has its own small battery to stay running while main system power is off.
  • 3.7″ Epaper displays(3x).
  • Epaper connector board (2x) – mainly just a breakout board for the epaper display’s ribbon cable, but it also handles signal buffering and making a few weird voltages that the epaper display needs.
  • Epaper interface board (1x) – same as the connector board, but also has onboard SPI RAM and MicroSD card slot.

I’ve designed many various electronic circuits/devices, but this is the first I can recall where the power budget matters a lot. The power usage would always be low with these devices, but I wanted to avoid a scenario where it’d need a wall wart plug – the goal is for it to run a reasonably long time, a year or so, on a rechargeable battery. The magic of the e-paper displays (other than having the image very close to the surface, looking more like real paper than a display) is that they can be completely powered off and still retain their image; that’s a huge head-start to low power usage. This left the micro-controller as the main risk for power consumption, however with careful use of interrupts I think I’ve optimized this.  The sequence, which happens every night at midnight, is:

  • DS3231 asserts its alarm pin
  • The alarm pin is connected to an interrupt on the ATmega328P which has been configured to wake the microcontroller and begin code execution.
  • The microcontroller communicates with the DS3231 over I2C to read the new date and resets the alarm for the next midnight.
  • The microcontroller reads the SD card to lookup graphics corresponding the 1st display based on date, this is read into RAM and then shifted to the epaper display. This repeats for each display. (The controller inside each display goes through its own routine for the physical screen update that causes the screens to flash Black/white several times)
  • The microcontroller goes back to sleep mode, no code execution and extremely low (almost no) power usage until next midnight.

With this sequence it’s very nearly off the vast majority of the time, only the small clock battery on the DS3231 module keeps it going; then everything else only wakes up for a few seconds at midnight to update the screens. Time will tell how efficient this is, but it should be as good as theoretically possible. The DS3231 battery is meant to hold the time for ~10yrs, when the main battery is depleted the screens will stop updating but time won’t be lost – proper date will be displayed on the first update after a recharge without any need to set the time/date.

The software for writing to the epaper displays leans heavily on the example provided with the displays, but the example assumed only a single display. Since I had limited IO pins and there was no need to update displays simultaneously I modified the library to accept a display index for each function. With this, I was able to put everything on the same SPI bus and share the SD/RAM between all displays, the library just only asserts the chip select line for the display being updated during the overall update sequence.

Mechanically, each display is mounted to a 3D-printed plate that pads out the display to the right dimensions, the plate also has screw bosses where the connector boards are mounted. Although the display sizes were very close to the right size, it was unavoidable that some non-displayable area of the panels showed through the front of the calendar frame. To make this look better I made some vinyl frames in a metallic brass/gold color to cover these margins.

(Note: Dates don’t necessarily correlate with actual time/progress since the date was adjusted many times during testing. I also tried several different fonts/styles before deciding on the “FRI FEB 16” format.)

 

 

 

CPU PIN Function Connection
0 Serial Prog Prog cable
1 Serial Prog Prog cable
2 ClkInterrupt RTC
3 RAM CS Epaper #1
4 EPD2 CS Epaper #2
5 ClkReset Pushbutton
6 DateDown Pushbutton
7 DateUp Pushbutton
8 EPD2 Busy Epaper #2
9 SD CS Epaper #1
10 EPD1 CS Epaper #1
11 MOSI Epaper all
12 MISO Epaper all
13 LED/CLK Epaper all
14 EPD RST Epaper all
15 EPD1 Busy Epaper #1
16 EPD DC Epaper all
17 EPD3 CS Epaper #3
18 SDA RTC
19 SCL RTC
GND GND/VSS all
VCC VCC all
         Leave a comment

Toro Dingo Platform

Last spring I won an auction for a Toro Dingo TX427 mini skid steer. Uncharacteristic of my usual equipment purchases, it didn’t need anything other than cleaning and an oil change. It came with the standard bucket, and I also later got a pallet fork attachment and a tooth bar for the bucket. Over the last year it’s been extremely useful with various landscaping tasks, as well as moving around pallets of materials for various projects. Mostly though it’s the perfect tool for dealing with downed trees and getting logs to the sawmill or burn pile.

One limitation that became apparent is the machine’s limited counterweight – the back begins to lift well before the hydraulic pressure relief trips. An optional feature from Toro addressed this problem by adding an operator platform, but mine lacked this option. I’d kept an eye out for used Toro platforms, but they weren’t often available and were overpriced – especially after considering shipping. A simplified aftermarket version was available closer to when the machines were new, but these had stopped production.

With that considered I decided to build my own platform based on pictures of the aftermarket version. It consists mainly of an expanded metal stair tread cut in half and welded back together into a square. Two square tubes reinforce the stair tread, and then it all hinges on a length of black iron pipe that runs through brackets sandwiched between the frame and the existing counterweights. Stops were then welded on each side of the platform to hold it level when deployed. When folded up against the back of the machine, a bolt (with 3d printed knob handle) holds it all in place. It’s flat enough when folder to not be in the way for operating while standing on the ground.

           Leave a comment

Belt Sander Fix

Another quick 3D print project to fix the dust collection bag on the belt sander, the plastic holder for this had broken off a while back. I also took the opportunity to make an adapter to connect the dust port to the shop vacuum.

Dust Bag Vacuum Adapter
Download Download
       Leave a comment

Bandsaw Insert

Quick 3D printing project to make a new insert for the bandsaw. This fits Craftsman model 119.214000 and possibly others with similar dimensions. I made two versions, one solid and one with holes that allow for airflow from dust collection.

Dust Collection Solid
Download Download
       Leave a comment

Custom Desk – Design & Build Start

The office project is coming along well and the last major missing piece is a desk to replace the table we’ve been using.

Before starting this project we planned that the cabinets would cover the room’s exterior walls between the windows and we also left space on the interior wall for misc stuff (file cabinet, chair, etc). This left the center of the room largely open and it made sense to have the desk there. This arrangement provides some advantages: #1 sitting at the desk in the center allows facing out towards a window with a view up the driveway instead of just looking directly at an interior wall and #2 any screens on the desk will face an interior wall instead of the windows, minimizing glare.

Unfortunately the desk-in-the-center arrangement has one big drawback in that having monitors placed on the desk essentially forms a ‘wall’ of sorts in the room. Normally I wouldn’t care about this so much, but the office is directly adjacent to the foyer with a double-width door opening between the two – so it needed to look as good as it functions. The solution to this problem is to hide the monitors in the desk with a motorized lift mechanism.

We found a desk at goodwill to use as the starting point – the base is good quality hardwood but the top is/was a laminate slab that I’ll replace. We’ve also had a large gear waiting for the right project to come along. The plan is to remove one of the desk’s towers, replace it with the gear, and then make use of the existing back panel of the desk to enclose some space for the monitors.

1 2 3

I started with disassembly of the desk, and then I copied two corner pieces and added some 1/4″ plywood to form the monitor compartment. The new parts are made from Cherry which seems to be an OK match for the existing wood.

4 6 5

Next up I need to add some more internal structure to the monitor compartment then strip/sand the desk exterior and begin on the lift mechanism.

       Leave a comment