Tiny POV Turns Right Round For Volumetric Fun

Just when you think the POV thing has run out of gas, along comes [mitxela] to liven things up. In this, he’s taken the whole persistence of vision display concept and literally spun up something very cool: a tiny volumetric “electric candle” display.

As he relates the story, the idea came upon him on a night out at the pub, which somehow led to the idea of an electric candle. Something on the scale of a tea light would fit [mitxela]’s fascination with very small and very interesting circuits, so it was off to the races. Everything needed — motor, LIR2450 coin cell, RP2040, and the vertical matrix of LEDs — fits into the footprint of the motor, which was salvaged from a CD drive. To avoid the necessity of finding or building a tiny slip-ring, he instead fixed everything to the back of the motor and attached its shaft to a Delrin baseplate.

The 8×10 array of surface-mount LEDs stands atop the RP2040 with the help of some enameled magnet wire, itself a minor bit of circuit sculpture. There’s also a 3D-printed holder for a phototransistor and IR LED, which form a sensor to trigger the display; you can see [mitxela] using a finger to turn the display off and move it back and forth. It goes without saying that these things always look better in person than they do in stills or even on video, but we still think it looks fantastic. There’s also a deep dive into generating volumetric data in the write-up, as well as an unexpected foray into the fluid dynamics calculations needed to create a realistic flame effect for the candle.

All in all, this is a fantastic if somewhat fragile project. We love the idea of putting this in a glass enclosure to make it look a little like a Nixie tube, too.

Continue reading “Tiny POV Turns Right Round For Volumetric Fun”

PicoGUS: For All Your ISA Sound Card Needs

Sound cards used to be a big part of gaming machines in the 90s and 2000s but have largely gone extinct in the wake of powerful CPUs doing the sound themselves. Sound cards were expensive back then and, because the good ones weren’t very common, are expensive still for the retro gamer. But if you don’t need the real thing, [polpo] has you covered with his RP2040-based ISA sound card.

The PicoGUS, as he calls it, primarily serves to replace the Gravis UltraSound with modern components at a low cost. It uses the RP2040’s PIO to attach to an ISA bus and the RP2040’s dual-core power to synthesize the audio for its primary target, but also the AdLib (OPL2), CMS/Game Blaster and Tandy 3-Voice. [polpo] sells the PicoGUS on his Tindie store, but since it’s open source, you can of course just make your own.

Although “work-in-progress”, the PicoGUS is very useful to the right person and a perfect demonstration of how the RP2040’s PIO can be used to interface with almost any type of protocol.

Of couse, that’s not the only way to use the PIO, you can also create a CAN bus or even add another USB port.

A black motion system with two stepper motors. A green circuit board is fixed in a rotating cage in the center, and the entire assembly is on a white base atop a green cutting mat. Wires wind through the assembly.

Pi-lomar Puts An Observatory In Your Hands

Humans have loved looking up at the night sky for time immemorial, and that hasn’t stopped today. [MattHh] has taken this love to the next level with the Pi-lomar Miniature Observatory.

Built with a Raspberry Pi 4, a RPi Hi Quality camera, and a Pimoroni Tiny2040, this tiny observatory does a solid job of letting you observe the night sky from the comfort of your sofa (some assembly required). The current version of Pi-lomar uses a 16mm ‘telephoto’ lens and the built-in camera libraries from Raspbian Buster. This gives a field of view of approximately 21 degrees of the sky.

While small for an observatory, there are still 4 spools of 3D printing filament in the five different assemblies: the Foundation, the Platform, the Tower, the Gearboxes and the Dome. Two NEMA 17 motors are directed by the Tiny2040 to keep the motion smoother than if the RPi 4 was running them directly. The observatory isn’t waterproof, so if you make your own, don’t leave it out in the rain.

If you’re curious how we might combat the growing spectre of light pollution to better our nighttime observations, check out how blinking can help. And if you want to build a (much) larger telescope, how about using the Sun as a gravitational lens?

Continue reading “Pi-lomar Puts An Observatory In Your Hands”

The Birdy44 Keyboard Is Something To Crow About

The funny thing about keyboard end game is that it usually involves more than one keyboard. Rare is the board that is great for both home and away. Having finished their dactyl build, [RalphCoder13] was looking to build something slimmer and more portable, and the Birdy44 was born.

This hand-wired beauty uses a pair of Waveshare RP2040 Zeros and features a pair of 40mm Cirque track pads that were salvaged from a Steam controller.

As you may have guessed, there are 44 Kailh Chocs that sit underneath a combination of MBK and 3D-printed keycaps. Our favorite part might be the tenting legs, which are optional and connect magnetically.

Part of portability is how you decide to carry the thing. You probably don’t want it naked and loose in your backpack if you can avoid it, right? To that end, he designed a nice little case for the halves. The original plan was to use magnets to hold them in place inside the topless case, but that didn’t work out so well, so he added wide elastic bands to stretch around the case.

Is this still not portable enough for you? Check out this folding split keyboard.

Via KBD

2023 Halloween Hackfest: Candy Basket Sees You Coming

On Halloween, some people can’t or don’t want to open the door for various reasons. Maybe they have a cat that likes to escape every chance it gets, or maybe their favorite TV show is on during prime trick-or-treating time. Whatever the case, we think it’s perfectly acceptable to leave a bowl of candy outside the door, especially if there are electronics involved.

In this case, the bowl detects trick-or-treaters and candy eaters using an LD2410 60 GHz radar sensor and an RP2040. A light pipe shows orange when a person is detected, and switches over to green as they come closer, as if to say you may have candy now.

Nothing happens after that, but now that we think about it, it would be cool to add an MP3 decoder and a speaker to play a little witch cackle or something once they’ve had a chance to stick their hand in the bucket.

[Mike Kushnerik] actually designed the PCB a few months ago for non-Halloween purposes: some home automation projects. But then they were trying to think of something for Halloween, and this delightful light-up bucket came to mind. In addition to the RP2040 chip, there’s a 128 MB flash chip, a WS2812 LED, and a header for communicating with the radar sensor over UART. Be sure to check out the brief demo video after the break.

If you’d like to stand outside and give out candy, at least send it down a light-up slide or something.

Continue reading “2023 Halloween Hackfest: Candy Basket Sees You Coming”

Close To The Metal

Firmware is caught between hardware and software. What do I mean? Microcontroller designers compete on how many interesting and useful hardware peripherals they can add to the chips, and they are all different on purpose. Meanwhile, software designers want to abstract away from the intricacies and idiosyncrasies of the hardware peripherals, because code wants to be generic and portable. Software and hardware designers are Montagues and Capulets, and we’re caught in the crossfire.

I’m in the middle of a design that takes advantage of perhaps one of the most idiosyncratic microcontroller peripherals out there – the RP2040’s PIOs. Combining these with the chip’s direct memory access (DMA) controllers allows some fairly high-bandwidth processing, without bogging down the CPUs. But because I want this code to be usable and extensible by a wide audience, I’m also trying to write it in MicroPython. And configuring DMA controllers is just too idiosyncratic for MicroPython.

But there’s an escape hatch. In my case, it’s courtesy of the machine.mem32 function, which lets you read and write directly into the chip’s memory, including all of the memory-mapped configuration registers. Sure, it’s absurdly low-level, but it means that anything you read about in the chip’s datasheet, you can do right away, and from within the relative comfort of a Micropython program. Other languages have their PEEK and POKE equivalents as well, or allow inline assembler, or otherwise furnish you the tools to get closer to the metal without having to write all the rest of your code low level.

I’m honestly usually a straight-C or even Forth programmer, but this experience of using a higher-level language and simultaneously being able to dive down to the lowest levels of bit-twiddling at the same time has been a revelation. If you’re just using Micropython, open up your chip’s datasheet and see what it can offer you. Or if you’re programming at the configure-this-register level, check out the extra benefits you can get from a higher-level language. You can have your cake and eat it too!

How Not To Build An RP2040 Board

We love that these days you can buy ready-made microcontroller boards that are very capable. But sometimes you need to — or just want to — do it yourself. Unfortunately, you really should design everything twice: once to figure out where all the problems are, and the second time to do it better. If you want to create your own board for the RP2040 then you are in luck. [Jeremy] has made the first (and second) iteration or an RP2040 board and shares with us what he would not do again.

In all fairness, he also has a blog post talking about what he did, so you might want to start there. However, we think his most valuable advice was his final word: Don’t fail to get started on your design. The longest journey, after all, begins with the first step.

His other advice is good, too. For example, don’t plug your new board into a computer because an error in the power supply could take the whole computer out. He also warns you not to do like he did and forget to order the $10 solder stencil with the PCBs.

Some of it is just good advice in general. For example — buy more small components than you think you need. There’s nothing worse than needing three resistors, having three resistors, and then watching one of the three fly across the room or stick to your soldering iron and melt into a pool of slag. Buy ten and you’ll save money in the long run.

In the end, the board did work and what he learned might help you if you decide to tackle a similar project yourself. [Jeremy’s] board is fairly large, but if you have an appetite for something smaller, check out the RPDot or the RP2040 Stamp.