Brain dead reverse-engineering

When gutting the phone, I went to the trouble to preserve the hook and PTT switch infrastructure. I’m still not sure how I’m going to use them, but I figure that it’d be good to know how they work.

With the help of my trusty cat Ezra, I carefully stripped the end of all the wires, and used the continuity tester on my multimeter with some clip leads to measure what they all did.

Not that any of you care, but if you want to know how they mapped, it’s below the break.

 

 

 

(more…)

Making the output ugly

Part converting the code for use being fed to a TDD is to make it a long stream, rather than a pretty curses(3) based interface. This means that all the trouble the developers spent on making lines wrap cleanly, and providing vertical breaks between elements is lost.

(more…)

Grue Brains — the plans

Since my original concept was to power this with an Arduino microcontroller platform, I’ve decided to see if I can power it with an Arduino Pro from Sparkfun.

Why Arduino? Why not code to the bare uC?  Arduino has got a nice IDE, which makes development easier, and it’s got lots of pluggable hardware that simplifies interfacing with stuff like SD cards.

There are a couple of possible problems with this.

  1. The Arduino Pro has a incredibly anemic 5V regulator.  In a previous project, it couldn’t handle an ethernet shield’s additional power draw.
  2. The Arduino uses a ATMega 328, which will only give me about 30K of program space.  Still, Zork used to run in a lot less memory.

If power is a problem, I could always throw an UNO in there, or build my own regulator.   But if I just can’t squeeze the z-code interpreter into 30K, then maybe I’ll use a Sanguino, or a Mega.