Instagram filter used: Lo-fi
Blog
-

Keep the Morphy Richards flying
(All explained somewhat better here: Maker Festival Projects: Flying Toaster LED Panel – Elmwood Electronics)
You may just see this running at Elmwood Electronics‘ stand at the Maker Extravaganza this weekend. Built from:
- RGB Matrix Backpack
- 32 x 32 square RGB LED matrix panel
- a decent power supply like this 5 V 2 A one.
(If you’re programming this through a USB 3 port, you might be surprised to see the panel running happily from USB power alone. This is not recommended.)
Code: Toaster32x32-170705a.zip

Instagram filter used: Lo-fi
-
Easy Raspberry Pi framebuffer screenshots with raspi2png
I gave a talk about retro-gaming on the Raspberry Pi yesterday. I was describing RetroPie, and I really needed lots of screenshots to illustrate games. I’m used to grabbing screens under X, but RetroPie runs without it, so all my usual tools were of no use.
I’d just found out about raspi2png, and it works really well! Usage is simple: just call it likeraspi2png -p outfile.png
and it’ll save whatever’s on the screen. It doesn’t play well with X, but there are already tools to take screenshots with that. As I was playing games, I didn’t want to have to pause the computer to take a shot, so I ran the command every five seconds for 30*5 seconds like this:
for f in {1..30}; do raspi2png -p retro_$(date -Iseconds).png; sleep 5; doneHere are some quality shots via raspi2png from Deathchase, officially the best ZX Spectrum game ever:
The best words ever to appear on a computer screen Baddies off in the distance I appear to be shooting small jellyfish, or lumps of ice cream Ooh, night patrol … splatoo! menaced by trees red sky means level up kablooie and missing tree tops new level, new sky color narrowly missing trees -
VM-CLAP1 👠sensor + gpiozero on Raspberry Pi
Well, that was easy!
Since the Verbal Machines VM-CLAP1 sensor is an open collector type — that is, it sinks current when triggered — it behaves like a simple button to gpiozero, the Raspberry Pi Python GPIO library. If you attach a callback function to the sensor’s when_pressed event, your Python script will call that function every time it registers a clap.
The wiring is as simple as it could be:

VM-CLAP1: Raspberry Pi:  ========= =============  GND → GND  PWR → 3V3  OUT → GPIO 4
This example code just prints clap! when the board picks up a ðŸ‘:
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Raspberry Pi gpiozero test for # Verbal Machines VM-CLAP1 clap sensor # scruss - 2017-06 # # Wiring: # # VM-CLAP1: Raspberry Pi: # ========= ============= # GND → GND # PWR → 3V3 # OUT → GPIO 4 from gpiozero import Button from signal import pause def clapping(): print("clap!") clap = Button(4) clap.when_pressed = clapping pause()This is a trivial example, but at least it shows that anything you can do with a button, you can also do with this hand-clap sensor.
-
Clap Sensor part for Fritzing

I have no idea if this wiring would work, but it’s pretty … For work, I blogged about Verbal Machines‘ Hand Clap Sensor VM-CLAP1 (“Clap on ðŸ‘ðŸ‘, Clap off ðŸ‘👠– Elmwood Electronicsâ€). I’ve made a preliminary part for Fritzing for the board: VM-CLAP1 Clap Sensor for Fritzing.zip
It should work in Breadboard and Schematic mode, but absolutely doesn’t work in PCB mode. This shouldn’t be a problem, as it’s only available as a standalone board. Fritzing doesn’t have any way to create new parts from scratch any more, so I had to base it on a somewhat similar-looking board, the SparkFun Electret Microphone Breakout.
I’m looking forward to see what I can do with gpiozero and the clap sensor.

























































