I found an old beaten-up CD player a while back, and decided to take out the human interface card, with the LCD and buttons on it.
In a previous episode, I managed to get the LCD to do something. Now, I will try to let it do exactly what I want it to do!
The first task is to find out what segments is controlled by what segment to the chip(s). In Controlling the card, I found out how to send the chips data — basically I have to send an 80-bit sequence to the two chips, of which 2*4 bits are chip control data. This leaves 72 bits of data to control 57 segments, so some of the chip’s capacity was unused.
My first plan of attack is simple: in the previous episode I learnt how to listen for keypresses, so my idea was to make a simple keypress-driven loop trough all the 72 data bits, to see which segment will light up.
Working with keypresses is actually not as simple as I intuitively thought. If you have one button attached to one input pin and do a simple digitalRead(pin);, then you know your button is pressed. But if you want to do an action only once on every key press? You could have a little variable that keeps track of whether the key was not pressed last time and is now — basically working on the leading edge. But then you still have the problem of key bounce to take care of.
And what if you want to detect long presses (e.g. to go into a settings menu) or held presses (press once to increase a counter, keep pressing to keep increasing it)?
I found an old beaten-up CD player (a Philips AK601) next to the trash container a while back. I picked it up, found it not worthy of being taken back into use, so I decided to open it up and maybe gut it for parts. I found a couple of motors inside, but what really drew my interest was the human interface card, or the print which holds the buttons and LCD.
The card is a one-sided PCB, with on the backside (the green side which holds the traces) three ICs, and on the other side an LCD screen (with what seems to be two incandescent lightbulbs as backlight, 8 diodes, 13 buttons, one capacitor, one transistor, a 9-strand ribbon cable that connects to the motherboard and a hell of a lot (25ish) wire links.
The LCD is an interesting one: it has 6 7-segment digits and a few more items, like whole-word PAUSE, SHUFFLE etc, separate digits 1-6 (presumably for a cd changer) and two “cd” icons.
My curiosity was triggered by how simple everything looked and I started on a quest to understand this board.
The ship I sailed on a lot, the Ebenhaëzer, is a so-called klipperaak — a ship with the front of a clipper and the rear of an aak. The front of a clipper — sometimes — has klipper curls [examples], which is a painted floral ornament, symmetrical on both sides
Het schip waar ik veel op gevaren heb, de Ebenhaëzer, is een klipperaak, wat altijd uitgelegd is als “een schip met een klipperkop en een akenkont”. Op de voorsteven van een klipper zitten — soms — klipperkrullen [voorbeelden], ofwel een geschilderd lofwerk, symmetrisch aan beide kanten.
The Ebenhaëzer has clipper curls. [Kasper] wanted to build a chest and paint it Ebenhaëzer-style, so needed a template. Fortunately, the ship’s paperwork binder has a template, used when the head of the ship is re-painted.
Ook de Ebenhaëzer heeft klipperkrullen. [Kasper] wilde een kist maken en vervolgens schrilderen in Ebenhaëzer-stijl, en had dus een klipperkrullen-sjabloon nodig. Gelukkig zit er in het motorboek van de Ebenhaëzer een sjabloon, voor als de kop geschilderd moet worden.
I decided to walk the GR412 – Sentier des Terrils — a walk along the coal mining axis — and thus spoil tip (Terril) axis of Wallonia. The GR runs from Blegny, close to Maastricht, to Bernissart, on the French border.
Ik heb besloten de GR412 – Sentier des Terrils te lopen — een wandeling langs de kolenwinningsas — en dus steenberg-as van Wallonië. De GR loopt van Blegny, bij Maastricht, naar Bernissart, dicht bij de Franse grens.
Stage / Etappe : 1
Date / Datum : 14-12-2019
From / van : Eijsden (NL) (57m)
To / naar : Micheroux (277m)
Km : 30.79km
Time : 7h03m
Terrils : 2 (0 climbed / beklommen)
Weather : First sunny, then cloudy, 11°C, occasional rainshowers
/ weer : Eerst zonnig, later bewolkt, 11°C, af en toe regenbuien
I am walking the GR 412 – Sentier des Terrils. There are a lot of terrils (slag heaps) in Belgium, about 740 in Wallonia alone, mostly lying on the Liege — Charleroi — Mons — Lille axis. The GR 412 follows this axis.
Below is a list of terrils my walk put me on, or directly next to. There are many more I have seen.
While hiking, my main concern is logging my track, and sometimes routing, and a long battery life. Walking with a phone plugged into a powerbank is possible, but it’s a pain (the cables become dislodged or worse: bent)