Instagram filter used: Lo-fi
Author: scruss
-
Raspberry Pi combined reboot/shutdown button demo
NB: this version doesn’t actually do the rebooting or shutting down: it’s a demo. This one does, though …
Here’s how you might have just one button being a reset button (hold down for two seconds) or a shutdown button (hold down for five):
-
taking the whole proto-plate thing a bit far …
Yes, it’s a very tiny microcontroller board and breadboard doohickey. The board’s a Trinket M0 running CircuitPython 2.0. The base is laser-cut birch ply. Definitely #smol at less than 75 × 55 mm …
Here’s the SVG for laser cutting:
To build it, you’ll need:
- 3 mm birch ply (at least 75 mm × 55 mm)
- Adafruit Trinket M0
- Tiny breadboard: either a tiny or a Mini one. The board markings match either.
- M2.5 screws and standoffs
- 4× stick-on feet
- 2× 1×5 female header — I cut down a 1×12 female header.
If I were to redesign this, I’d:
- make the breadboard outline a score line rather than an etched area. Scoring is much quicker than etching.
- Mark pin definitions on the plate. They’re a bit hard to read on the Trinket M0.
Obligatory blinky code for running a 16 LED NeoPixel Ring and the LED in the middle of the Trinket:
-
*ALL* of the memory …

World domination soonish! I’ve got a whole bunch of bytes free now I’ve upgraded my 6502 40th Anniversary Computer Badge to 32KB of RAM! I suspect I’ll end up as I usually do, Corvax-style …
-
Important research: was the Eudora “New Mail†chime from Ren & Stimpy’s “LOGâ€?
Inspired (obliquely) by this Metafilter post, I set out to answer a burning question.
LOG chime
This occurs from second 36 to second 38 of this video:
https://www.youtube.com/watch?v=-fQGPZTECYs&feature=youtu.be&t=33s
The chime when extracted without further processing, sounds like this:
(direct link: Original-Log-Commercial_The-Ren-and-Stimpy-Show.wav)
Eudora chime
I found a copy of Eudora Mail 1.44 for Windows (bundled up in an archive quaintly called “internet.zipâ€) here. The EUDOR144.EXE file is itself a Zip archive, and contains several files. The important one is WEUDORA.EXE (722,944 bytes; SHA256 checksum a35f2ef1e95242228381d9340fff0995f4935223f88a38b9200717107252dfb9).
This is a Windows 16 “New Executable†(NE) file, and I used panzi/mediaextract to scan and extract the RIFF/WAV data:
(direct link: WEUDORA.EXE_000a8200.wav)
They sure sound similar. But are they … the same?
Comparison
I made sure that both samples were set to the same rate, and I applied simple amplification in Audacity so that they both had a peak volume of -3 dB. Aligning the tracks as best I could, I got this:

Log audio on top, Eudora chime underneath The Eudora sample is very slightly slower than the Log one. It might have been that the Eudora authors sampled the chimes from an analogue video tape. The match is remarkable, however, as they play together with only very slight phasing effects:
(direct link: Log_vs_Eudora-log_left-Eudora_right.wav)
Conclusion
Yes, the Eudora Mail “New Mail†chime did come from Ren & Stimpy after all.
-
MS Word will break your links!
I was pleased to see that my nerrrdy Bourgoin mini-zine got cited in an art workbook for schools: Islamic mosaics activity (Patterning) from MathWeave. Yay!
But the link in the workbook doesn’t work! I mean, it looks right:
Only when you copy the bad URL do you see the problem:http://scruss.com/blog/2016/07/21/nerrrdy%E2%80%90bourgoin%E2%80%90mini%E2%80%90zine/
Word has changed the pasted ‘-’s to ‘â€â€™s: that’s from U+002D HYPHEN-MINUS to U+2010 HYPHEN. You’d have thought that software that was smart enough to recognize an URL would also be smart enough not to do any messing with the characters in it …
-
Most of the Logic Apple II Library now on archive.org

Well, that’s all the disks I can find easily up on archive.org. There are some Apple IIgs disks still to do, and there might be some random disks lurking in another box, but that’s more than 485 disk images uploaded.You can find them by going to Internet Archive Search: creator:”LOGIC (“Loyal Ontario Group Interested In Computersâ€)”.
-
Installing the Pimoroni OnOff Shim the hard way
Hey! This process permanently modifies your Raspberry Pi and may prevent it from working with many HATs and add-ons … It also has some really fiddly soldering. If in doubt, don’t.
Pimoroni’s OnOff SHIM adds what the Raspberry Pi should have had all along: a power button. While there are lots of soft power switches out there, the OnOff Shim adds circuitry to cut power to the Raspberry Pi after shutdown.
While the shim comes with a 12-socket header, that prevents you from using any other device that uses the leftmost GPIO pins. I wanted access to all the pins, and not have the shim create an unsightly bump on the pins. So this is what I did …

Regular GPIO header in place on a Raspberry Pi Zero W 
Test-fit the socket header to mark where you’re going to cut the pin support block 
Very carefully, cut the pin support block between (physical) pins 11-13 and 12-14. I used a mix of a sharp craft knife and nibbling with fine diagonal cutters. Try not to bend the GPIO pins either as you cut the block or lever the block out of the way 
Apply non-conductive tape to the back of the OnOff Shim. I used Kapton, but electrical/insulating tape will do. Just make sure you don’t block any of the GPIO holes 
Test-fit the shim. You may have to pare away at the support block a bit to get it to fit level with the rest of the pins 
Now solder the shim in place. You want the solder joints as small as possible. I used extra liquid flux and very fine silver solder to just fill the pin holes. Too much solder left on the pins will stop HATs and socket headers fitting, so you may have to desolder as I had to do on the rightmost pin 
Example HAT fitted with OnOff shim underneath. Note that his particular HAT — the Pimoroni Inky pHAT — will not work with this shim. The OnOff SHIM uses GPIO pin BCM 17 (physical pin 11) as the power button sensor and BCM 4 as the power off signal. Any device that also uses BCM 17 (and possibly BCM 4) will likely cause the reset process to be triggered. This means that I can’t use the shim with my Inky pHAT EPD. You would have thought that Pimoroni might’ve considered that, since they made both. Consulting pinout.xyz suggests that 41 boards that likely may not work with the OnOff shim: Cirrus Logic Audio Card, Display-o-Tron 3000, DOTs, Enviro pHAT, ESP IoT pHAT, Explorer HAT, Explorer HAT Pro, Flex, GertVGA 666, High-Precision AD/DA Board, Hyperpixel, Inky pHAT, IoT pHAT, LEDBorg, MotoZero, Navio2 Autopilot, PaPiRus HAT, PaPiRus Zero, Piano HAT, Pibrella, Picade HAT, Pi Cap, PiGRRL Gamepad, Pi-LITE-r, Pi-mote, Pi PoE Switch HAT, PiStep2 Dual, PiStep2 Quad, Pi Stop, Propeller HAT, RoboHat, RTK Motor Controller, Servo PWM Pi Zero, Skywriter HAT, Ultimate GPS HAT, Voice HAT, Witty Pi, Witty Pi 2, Zero2Go, Zero LiPo and ZeroSeg.
While I like the OnOff SHIM, check carefully that it will work with your application.
-
Installing the Versatile Commodore Emulator (VICE) on Raspberry Pi
Updated 2020-11-28: thanks, Ennio! Should now build after new Raspberry Pi OS and Vice changes
As requested on our local Commodore user group mailing list, how to install VICE on a Raspberry Pi running Raspberry Pi OS:
sudo apt install autoconf automake build-essential byacc dos2unix flex libavcodec-dev libavformat-dev libgtk2.0-cil-dev libgtkglext1-dev libmp3lame-dev libmpg123-dev libpcap-dev libpulse-dev libreadline-dev libswscale-dev libvte-dev libxaw7-dev subversion yasm libgtk3.0-cil-dev xa65 libsdl2-dev libsdl2-image-dev libgtk-3-dev libglew-dev mkdir -p src cd src svn checkout https://svn.code.sf.net/p/vice-emu/code/trunk trunk cd trunk/vice ./autogen.sh ./configure --disable-pdf-docs make -j4 sudo make install
This was freely adapted from the build docs, Linux-Native-Howto.txt, which has more info if you get stuck.
If you’re feeling fancy and want nice GUI controls and sound recording and menu stuff, try
./configure --disable-pdf-docs --enable-lame --with-mpg123 --enable-shared-ffmpeg --enable-x64 --enable-native-gtk3ui --enable-desktop-files
This will give you desktop icons too. I’m not sure in the apt line is quite right, though — but I’ve had my doubts about all those CIL entries, ‘cos I think they pull in Mono/.Net, and who would want to use that?






















