by pushfoo · 2y ago · 0 comments
If you don't remember the AlphaSmart[1], it was a line of typewriter-like devices with small LCD displays. They ran on batteries for hours and had limited save space. You could hook them up to a larger computer to save your drafts.
Where's the programming version of that? The recent HN post[2] about running a Mac 128k on a RPI2040[3] got me thinking about that. In theory, you could get real work done on a system like that, although it wouldn't be very good for entertainment.
So, where's the AlphaSmart of low-power computing?
1. "Real" keyboard
2. Low-power display, ideally a larger e-ink one
3. Not connected to the internet
To be clear, I don't mean a TI-83-like[4], TI-92[5], or even the recent NumWorks[6]. Those are meant to be calculators and have inconvenient calculator-like form-factors.
[1]: https://en.wikipedia.org/wiki/AlphaSmart
[2]: https://news.ycombinator.com/item?id=40699684
[3]: https://axio.ms/projects/2024/06/16/MicroMac.html
[4]: https://en.wikipedia.org/wiki/TI-83_series
the primary objective of the zorzpad is longevity, with a design lifetime of 53 years. to reach that objective i think i can't use batteries, charging ports, or off-the-shelf keyswitches. this forces a lot of compromises on the system design; i haven't found a processor with an mmu that can run at under a milliwatt
("zorzpad" is a pun on "thinkpad"; it's pronounced "thorthpad" in some spanish dialects, so it's the opposite of a thinkpad)
i think e-ink displays probably use way too much power. for years i've been looking for solid power consumption numbers, but in their absence, dividing an amazon swindle's battery life by its battery capacity suggests that they use about 100 milliwatts. the zorzpad's e-ink displays are about a tenth as big, use about a thousandth as much power (100 microwatts), and can be updated at 60 hertz (though the datasheet only guarantees 20)
if you aren't worried about going batteryless, or about mass production, you could literally buy an alphasmart neo and wire its keyboard and display up to an esp32 or something
Mechanical: machine everything out of solid metal, over-spec the springs, seals and potential ingress point precision.
Electronics: fat traces, replacement-optimized through hole components, socket-mounted chips, over-rated everything, passive cooling, conformal coating, arrays of smaller components in preference to single large components.
Fasteners: easy grip broad head twistable screws only, potentially to double as stands, this ensures accessibility until fingers become obsolete.
Software: ROM base system with physical restore function, dual ROM with mutual checksum if required, RAM for everything else.
Digital storage/retrieval: Solid state only.
Physical output: Optional low-longevity RS232 receipt printer for retro effect.
Power: Solar + supercaps and/or a corded pull-out analog watch-style shake-to-charge assembly and/or a thermal charger utilizing thermals from combustion and/or a pneumatic charger utilizing common compressed air interfaces as a power source.
i agree that the machine should be fully self-describing, like darius bacon's 'book in itself'. of course, that won't help you if it won't turn on...
rather than just conformal coating and seals, i'm thinking i'll not just conformally coat the boards, but also pot the whole assembly in something like silicone or toilet-ring wax, so that the potting material can be removed, but otherwise it's trivially ip68. except for the keyswitches, but the keyswitches can be a magnetic type that doesn't have any exposed electrical contacts or any springs
solar-powered devices generally don't have to worry too much about cooling, though. or if they do it's from the heat they passively absorb from the sun, not from anything they dissipate internally. if your solar panels are 10% efficient (the best you can get out of amorphous silicon, which is the only kind that works under indoor lighting) and cover 30% of your device, they only harness 3% of the illuminance, which is later converted to heat in the circuitry. the other 97% is either reflected or converted into heat immediately. so the heat produced internally is only about 5% of the heat it has to deal with. now think about how much heat you feel on your skin from indoor illumination; we're talking about 5% of that
socket-mounted chips tend to induce a lot of unreliability, so i don't favor them. desoldering surface-mount chips is a bit of a pain but still done routinely in cellphone repair shops around the world. but i want it to make it to its design lifetime without replacing components, and one reason for that is that i don't want to depend on the economy. (consider what components were commonplace in 01971 and how many of them are hard to obtain nowadays — and that was 53 years of relative peacetime. imagine trying to get parts today in moscow.)
unlike batteries, chips do have a long shelf life, so you could conceivably stockpile chips today for future repairs. but if you're going to do that, probably the best place to stockpile them is on circuit boards inside the device, so you don't have to solder anything to fail over to them. that's not applicable for every device, but fortunately things like voltage regulators have very low failure rates, and you can still probably build in redundancy at a higher level. that's what we did when i worked on satellite systems: of n identical systems onboard, we only needed one to survive to run the satellite. there were even multiple power buses, so that even a failure that shorted a voltage rail to ground would only disable part of the satellite
as i understand it (not having taken the measurements yet myself) over-rating is especially important for bypass capacitors in this context — not because they're prone to failure (unless you're using tantalums) but because capacitors have enormously higher leakage near their rated voltage
if you want to build such a thing and have a mechanical charging option, i think a pullstring like 20th-century children's windup toys is the best option. it's compact, the spring constrains how much force you can apply to the generator and runs it at a predictable speed, and the pullstring grommet constrains the direction of force applied to the mechanism so that kofi annan can't break it by applying side-loading to your crank handle like he did with olpc. but i don't think electromechanical generators are likely to fit into the reliability budget
for screws, i think protruding screws would catch on my pockets. but there are lots of ways to fasten things together in reopenable ways, especially if you don't need seals. if you did want to use conventional milled-head screws, well, i filed a flathead screwdriver out of a bolt a few months ago. i used a file, a vise, and a steel bolt. but exposed screws would tend to rust unless you made them out of titanium or something, which isn't an option for me
a metal case has advantages and disadvantages. being able to take input power inductively (qi style) or communicate over rf could be useful, which you can't do with an all-metal case. metals are not very chemically stable, except for gold, silver, platinum, iridium, palladium, lead, nickel, aluminum, titanium, tin, and chromium. most of these have major disadvantages of their own, though titanium would be a pretty good option. many plastics are very chemically stable, including polypropylene, polyester terephthalate, silicones, and epoxy resins, and the epoxies in particular can be glass-fiber reinforced up to steel-like strengths and stiffnesses. so that was my plan
why 53? i just like 53
Marketing a portable as Kofi-proof is a neat marketing angle ;)
Depending on your radio frequency perhaps you could put your RF behind your screen to get signal out, or use a slot as the antenna, or have a fold-out or telescopic antenna, or have a screw-on antenna port exposed when you open the thing, or some combination thereof.
Aluminium's fine for cases, cheap, light, castable, extrudable, cheaply machined, and readily anodized.
Steel won't rust for ages if it's of a decent chemistry and either treated and/or oil is used when the thread is mated. Even steel that appears heavily rusted after many decades of total abuse can be restored quite easily to a good state in many cases. I mean people had multi hundred year old wooden structures ... I don't think an embedded steel thread with an oil surface coating is going to disappear overnight. As a learning project I recently restored a 1980s drill press, that's basically 40 years old which is ~most of your target length, it had apparently been left with exposure to moisture for 20+ years, and was mostly intact. The net result of the learning was it's not worth restoring old drill presses, but I sure learned a lot!
For maximum chip shelf life, you want to store them in nitrogen or some similar inert gas.
With Wikipedia and survivalist content modules you could market this to the prepper crowd. Of course long distance radio would be an add-on. As would the radio direction finding hardware, encryption, etc.
I still like the pneumatic idea. 100% of existing bicycle pump hardware becomes your viable charging interface. Speaking of which, a low profile wheel based generator would be a good add-on module.
For something like a keyboard, it might be better to have a box of spares, rather than trying to build for 53 years of use and abuse... just as an example.
1. For early iterations / similar projects, could all-metal screw terminals[1] accept power internally?
2. Would supporting UXN/Varvara[2] be an option?
More on these questions below after initial comments.
## Initial Comments
> if you aren't worried about going batteryless, or about mass production, you could literally buy an alphasmart neo and wire its keyboard and display up to an esp32 or something
I could, but it's a limited in availability. The keyboard is pretty important in my opinion.
> memory-in-pixel lcd displays
I vaguely remember hearing about this, but don't have the EE knowledge to judge the benefits of these. Data sheet for anyone interested: https://www.sharpsde.com/fileadmin/products/Displays/Specs/L...
## 1. The screw terminal:
Disclaimer: I'm not an EE specialist.
My understanding is that if the power loss isn't too great, an all-metal internal screw terminal[1] might improve device durability:
* The power source could be replaceable. AA, AAA, LiPo, solar, etc
* If you don't solder to the metal part, even sandpaper or a conveniently shaped rock could remove oxidation
* For a case, internal screw terminals could turn a charging port into an easily replaceable component
## 2. UXN/Varvara:
From your blog, I see an "artemis apollo 3 board"[3] is being used. From a Sparkfun page[4], it seems to have enough ram to host graphical Varvara.
I was initially doubtful of UXN despite loving the idea, but:
1. The UXN community seems to have built a self-hosting ecosystem[5] of:
* development and GUI ROM launching tools
* text, font, and graphics editors
* music sequencing tools
2. The UXN VM is light: 64k system ram, 4-bit 2-plane color, and misc state and debug3. The core UXN VM is simple: a minimal implementation fits in under 150 lines[6] of C89
[1]: https://en.wikipedia.org/wiki/Screw_terminal
[2]: https://wiki.xxiivv.com/site/varvara.html
[3]: https://blog.za3k.com/zorchpad-update-cardboard-mockup-mk1/
[4]: https://www.sparkfun.com/artemis
screw terminals or post terminals are a good idea if you're going to have charging and want longevity. but charging implies batteries. and batteries themselves induce lots of failures; they typically have a design lifetime of two years, more than an order of magnitude too low for the zorzpad. by itself that's not a fatal flaw, because you could replace them, but it becomes fatal in combination with either of the two supplementary flaws:
1. battery shelf life is limited to about 10 years, except for lithium thionyl chloride and so-called 'thermal batteries' that use a molten-salt electrolyte (kept frozen during storage). consequently, if your computer needs batteries, after 10 years you're dependent on access to not just a market but a full-fledged industrial economy to keep your computer running. a friend of mine in rural romania has been trying to build a usable lead-acid battery from scratch to provide energy storage for his solar panels, and it's motherfucking difficult without that supply chain
2. batteries have a lot of failure modes that destroy the devices they power. overheating, swelling, leaking corrosive electrolytes, and too much voltage are four of them. if these failure modes were very rare (like once in 100 battery-years) that might be okay, but they aren't
for me these are fatal flaws, but for others they may not be. if you can afford batteries, you can run for one hell of a long time on a single 18650 lipo on a milliwatt. a coin cell can deliver a milliwatt for a month
as for uxn, uxn is the first attempt at frugal "write once, run anywhere" that's good enough to criticize. everyone should read devine's talk about its aspirations (https://100r.co/site/weathering_software_winter.html)
however, uxn is not frugal with cpu, or fast, nor is it good for programmer productivity, and it’s not all that simple. It’s designed for interpretation, which inherently means you’re throwing away 90% or 95% of even a single-threaded cpu, and it’s not designed as a compilation target, which means that you’re stuck programming at the assembly-language level. This is pretty fucking fun, but that’s because it makes easy things hard, not hard things easy; the offgrid notes lionize oulipo (https://100r.co/site/working_offgrid_efficiently.html)
as a result of the efficiency problems, the platforms with complete uxn implementations (see https://github.com/hundredrabbits/awesome-uxn#emulators) are the luxurious ones: microsoft windows, linux, amigaos, the essence operating system, anything that can run sdl or lua and love2d, gameboy advance, nintendo 64, nintendo ds, playdate, and the nook ereader: all 32-bit or 64-bit platforms with ram of 4 mebibytes or more, except that the gba only has 384 kibibytes, and there were amigas with as little as 512k (though i don’t know if they can run uxn). more limited machines like the gameboy, ms-dos, and the zx spectrum do not have complete uxn implementations
(384k is the same amount of ram as the apollo3, so it's probably feasible, as you say)
the uxn machine code is basically forth. forth is pretty aesthetically appealing to me, and i've gotten to the point where forth code is almost as easy for me to write as c code (though i have to look things up in the manual more often and have more bugs). however, it's much, much harder for me to read forth than it is to read c. it's harder for me to read forth code than to read assembly for any of 8086, arm, risc-v, i386, or amd64. possibly i just haven't written enough forth to have the enlightenment experience yet, but currently my hypothesis is that forth is just hard to read and that's it, and that the really great thing about forth is not actually the language but the interactive development experience
the varvara display model is not a good fit for the memory-in-pixel displays, which only have one bit per pixel, while varvara requires two. also, evaluating things 60 times a second is not a good fit for low-power systems of any kind. and i'm not sure how well the existing varvara applications will work at 400×240 or tolerate a requirement to use fonts many pixels tall in order to be readable
(a lot of the above notes are from xpasm.md in http://canonical.org/~kragen/sw/pavnotes2.git/ if you're interested in the context)
as for tools for software development, program launching, editing text, editing fonts, editing other graphics, and sequencing music, i'm confident i can write those myself if i have to. i've written a compiler in a subset of scheme that compiles itself, a compiler in a forth-like language that compiles itself, various toy text editors, various virtual machines in under 150 lines of code, and various pieces of music synthesis software, and i've designed a few fonts of my own (though not using software i wrote)
maybe i should set up a patreon for this or something, maybe people would be interested in supporting the project
> also, evaluating things 60 times a second is not a good fit for low-power systems of any kind.
Agreed. As to a terminal-mode UXN, you pointed out:
> as for uxn, uxn is the first attempt at frugal "write once, run anywhere" that's good enough to criticize. everyone should read devine's talk about its aspirations
I think it's the primary use case like Java Applets and Flash preceded JS as iterations of sorta-portable and low efficiency tools which make up for it with sheer volume of high-familiarity material.
> nor is it good for programmer productivity
I'm curious about this. Could you please elaborate?
When trying earlier uxntal versions, the worst part seemed to be the string syntax. If it wasn't because it seemed easier at the time, my guess is the pain point might be intentional nudges away from making things the designer doesn't like.
> and it’s not all that simple.
This is where I get confused:
* Can you explain more about your views on this?
* Do you favor a specific structure of hardware, OS code, and user scripts, or whatever ends up offering the best use of power and long-term device durability?
> i'm not sure how well the existing varvara applications will work at 400×240 or tolerate a requirement to use fonts many pixels tall in order to be readable
Counting mW and decades implies text > GUI. Despite 100r & fans favoring GUI, there's an UXN terminal mode and a few math and terminal libraries written for it.
As to GUI, many of the ecosystem's GUI programs are FOSS with room to shrink the graphics. There's a decent 4x6 px ASCII font which is CC0 and could help, but as fair warning, it's awful at accents and umlauts.
> possibly i just haven't written enough forth to have the enlightenment experience yet, but currently my hypothesis is that forth is just hard to read and that's it, and that the really great thing about forth is not actually the language but the interactive development experience
This seems to be a universal opinion since REPL isn't rare anymore. Being portable and easy to bootstrap are probably the main draw now. In addition to 100r's work, I think remember hearing ${NAME}boot or another project used it to simplify porting.
> the varvara display model is not a good fit for the memory-in-pixel displays, which only have one bit per pixel, while varvara requires two.
Ah, this is what I suspected. I wasn't sure I understood the display you mentioned, so thank you for confirming the hardware mismatch.
Although your blog showed you'd considered two identical side-by-side displays[1], I have a radical idea which might not be a good one:
1. A "Full" display of W x H characters (the Sharp display or whatever you replace it with)
2. A "Fallback" 1 or 2 line display (2nd line reserved for editor info / UI?)
A single 1-bit editable line is so hard to work with that ed[2] isn't even installed by default on many Linux distros. However, people did once got real work done with it and similar tools.
As a funny sidenote, this is where non-colorForth[3] forths may align with UXN's dev. He's a Plan9 fan and uses its Acme editor[4]. So Varvara is theoretically capable of syntax highlighting, but he refuses to implement it as far as I know.
> as for tools for software development, program launching, editing text, editing fonts, editing other graphics, and sequencing music, i'm confident i can write those myself if i have to. i've written a compiler in a subset of scheme that compiles itself, a compiler in a forth-like language that compiles itself, various toy text editors, various virtual machines in under 150 lines of code, and various pieces of music synthesis software
You may be pleasantly surprised by how many people will show up if you start building and releasing tools which:
* let them solve problems or have fun
* allow extending the tool
* can be used to build their own tools
Many will will even contribute back. To paraphrase the Gren[5] maintainer's recent livestream:
> we've had more engagement in our time on Discord than all our years on Zulip.[6]
> maybe i should set up a patreon for this or something, maybe people would be interested in supporting the project
Based on your blog, I think you can safely skip to the footnotes:
* GitHub sponsors might be worthwhile if you're willing to use non-fully FOSS platforms
* Don't make people feel like they're paying for their own work
* Do let the system do real-ish creative work and self-host, even if only as emulators
If you'd like, I can provide more specific suggestions.
[1]: https://blog.za3k.com/zorchpad-update-cardboard-mockup-mk1/
[2]: https://en.wikipedia.org/wiki/Ed_(software)
[3]: https://concatenative.org/wiki/view/colorForth
[4]: https://wiki.xxiivv.com/site/acme.html
[5]: https://gren-lang.org/ (Disclaimer: I sorta contribute to this now)
[6]: https://www.youtube.com/watch?v=PO8_pV7r168 (Sorry, I don't have an exact timestamp, but I'm pretty sure it was in here)
* Used regular batteries, no charging, easily obtainable, lasts quite a bit
* Keyboard was awesome
* Retro look & feel
* Size
What I didn't like:
* 8 line display is tiny!
* Would prefer a bit smaller
* Getting data off is a pain (ether are many workarounds but you have to fiddle with it)
So, assuming a $200 price point and using the 5x rule of thumb for HW products, BOM should be $40. Problem is eInk displays are kind of expensive. Putting $15-ish for a 7-inch+ display, rest seems bearable doable. (I've never developed a consumer HW product, so these are wild guesses.)
A monochrome transreflective LCD (without a backlight) would consume fractions of a milliwatt, can be a high resolution graphical display or character-based display, and would look plenty sharp under direct sunlight. Also widely available and inexpensive.
It can't have such a high contrast as e-ink though.
e-ink is fast enough to be usable for word processing because the updates are small and incremental and, most importantly, can tolerate some ghosting
I doubt that there's anything like a commercial product here, but I find it a really fascinating design space.
If something like that TRS had e-ink, it might be what I'd had in mind. If you're familiar with the idea of the OLPC hardware[2], like that except:
* More durable
* Lower power
* E-ink
* Not effectively vaporware
On a related note, I heard Pixel Qi[3] displays were interesting. However, the company folded. Some panels seem to pop up for sale now and then, but my understanding is they're effectively obsolete.
> The recent Clockwork-PI evokes it - but the keyboard is a toy
That's a shame.
> it’s just a Linux laptop with all the distractions therein
After taking a look at the device, this seems like an understatement. The Clockwork-PI[4] looks like it's mostly an emulation machine. For anyone who doesn't want to click through, it's a Game Boy form factor with a few extra buttons and a keyboard below the D-pad.
To be fair to the device, I think it's different class of device. It also fills some very specific niches:
1. Prototyping for GB/GBC games on higher-power hardware and higher-level languages
2. A decent front-end attached sensors if you can use USB
As example of #2: Mapping WiFi signal strength. Walking around a building holding a clunky laptop while someone else held the antenna wasn't fun. It was what we had to work with given the deadline, but if I had to do it often, I might want something like the Clockwork PI if someone could source better keyboards.
[1]: https://en.wikipedia.org/wiki/TRS-80_Model_100
[2]: https://en.wikipedia.org/wiki/OLPC_XO
They are selling a line of professionally oriented devices. I'm not sure they're worth it.
* The "Alpha" model[2] nods to the AlphaSmart form factor, but it isn't e-ink
* Weird-looking keyboard layouts with no Apple-style key in sight
* These devices are expensive for what they seem to offer
I've never used one so I can't really speak about more than what I've seen on the site. There were some negative reviews of earlier models. I'm not sure how current ones rate, nor what their keyboard feels like.
https://www.dannysalzman.com/2024/06/20/modding-alphasmart-n...