USB-C Programmable Power Supply For Any Project

USB-C Power Delivery 3.0 (PD3.0) introduces a new Programmable Power Supply (PPS) mode, which allows a device to negotiate any supply of 3.3-21 V in 20 mV steps, and up to 5 A of current in 50 mA steps. To make use of this new standard, [Ryan Ma] create the PD Micro, an Arduino-compatible development board, and a self-contained software library to allow easy integration of PD3.0 and the older PD2.0 into projects.

The dev board is built around an ATMega32U4 microcontroller and FUSB302 USB-C PHY. The four-layer PCB is densely packed on both sides to fit in the Arduino Pro Micro Form factor. The board can deliver up to 100W (20 V at 5 A) from an appropriate power source and shows visual feedback on the PD status through a set of LEDs.

The primary goal of the project is actually in the software. [Ryan] found that existing software libraries for PD take up a lot of memory, and are difficult to integrate into small projects. Working from the PD specifications and PD PHY chip data sheet, he created a lighter weight and self-contained software library which consumes less than 8 K of flash and 1 K of RAM. This is less than half the Flash and RAM available on the ATmega32U4.

[Ryan] is running a Crowd Supply campaign (video after the break) to get some of these powerful boards out in the wild, and has released all the source code and schematics on GitHub. The PCB design files will be released during the last week of the campaign, around 25 January 2021.

USB-C and power delivery are not simple standards, but the ability to add a high-speed data interface and a programmable power supply into almost any project has real potential.

Continue reading “USB-C Programmable Power Supply For Any Project”

Micro Macro Keyboard Is ‘Mega-Based

There’s a certain kind of joy that comes in throwing something together from spare parts, or from finding utility in a proof of concept for another project. [Clewsy] is cooking up something clacky and built this baby keeb to prove some stuff out, such as reading a key matrix. Now it’s become a music/media controller that looks great next to a giant matching volume knob.

Beneath the gently backlit Gateron blues is a custom ATMega32u4-based board, which is viewable through the clear acrylic bottom plate. That’s a nice touch. We’re not sure if the wood came from a picture frame, but if not, they seem like a great candidates for enclosure material.

This keeb looks fantastic, and we are partial to both the clear and the chrome keycaps. We can only hope [Clewsy] sends the details of the next build our way.

If you want to get started building keyboards, you can’t go wrong with a macro keyboard like this one. If you have way more than four macros in mind, build something bigger, like a custom game pad with a joystick.

Turning A Desk Drawer Into A Flight Yoke

[Christofer Hiitti] found himself with the latest Microsoft Flight Simulator on his PC, but the joystick he ordered was still a few weeks out. So he grabbed an Arduino, potentiometers and a button and hacked together what a joke-yoke.

The genius part of this hack is the way [Christopher] used his desk drawer for pitch control. One side of a plastic hinge is attached to a potentiometer inside a drawer, while the other side is taped to the top of the desk. The second pot is taped to the front of the drawer for pitch control and the third pot is the throttle. It works remarkably well, as shown in the demo video below.

The linearity of the drawer mechanism probably isn’t great, but it was good enough for a temporary solution. The Arduino Leonardo he used is based on the ATmega32u4 which has a built-in USB, and with libraries like ArduinoJoystickLibrary the computer interface very simple. When [Christopher]’s real joystick finally arrived he augmented it with a button box built using the joke-yoke components.

There’s no doubt that Microsoft Flight Simulator 2020 will spawn a lot of great controller and cockpit builds over the next few years. We’ve already covered a new joystick build, and a 3D printed frame to turn an Xbox controller into a joystick.

Continue reading “Turning A Desk Drawer Into A Flight Yoke”

3D Printed Video Terminal Dials C For Cyberpunk

Created for the Disobey 2020 hacker conference in Finland, thisĀ Blade Runner inspired communications terminal isn’t just for decoration. It was part of an interactive game that required attendees to physically connect their conference badges up and “call” different characters with the functional keypad on the front of the unit.

[Purkkaviritys] was in charge of designing the 3D printed enclosure for the device, which he says takes an entire 2 kg roll of filament to print out. Unfortunately he wasn’t as involved in the electronics side of things, so we don’t have a whole lot of information about the internals beyond the fact that its powered by a Raspberry Pi 4, features a HyperPixel 4.0 display, and uses power over Ethernet so it could be easily set up at the con with just a single cable run.

A look at the custom keypad PCB.

The keypad is a custom input device using the Arduino Micro and Cherry MX Blue switches with 3D printed keycaps to get that chunky payphone look and feel. [Purkkaviritys] mentions that the keypad is also responsible for controlling the RGB LED strips built into the sides of the terminal, and that the Raspberry Pi toggles the status of the Caps, Scroll Lock, and Num Lock keys to select the different lighting patterns.

Naturally we’d like to see more info on how this beauty was put together, but given that it was built for such a specific purpose, it’s not like you’d really need to duplicate the original configuration anyway. Thanks to [Purkkaviritys] you have the STL files to print off our own copy of the gloriously cyberpunk enclosure, all you’ve got to do now is figure out how to make video calls with it.

Continue reading “3D Printed Video Terminal Dials C For Cyberpunk”

Circuit Board Origami Puts You Face-to-Face With Low-Poly Electronics

Paper craft has been around almost as long as paper itself. It’s fun to mimic paper craft and origami with low-poly 3D prints, and [Stephen Hawes] wondered whether it could be done with copper-clad PCBs. Two years after the question arose, we have the answer in the form of a fantastical mask with light-up eyes. Check it out in the video below.

[Stephen] started with a model (Update: [kongorilla]’s 2012 low poly mask model from back in 2012 was the starting point for this hack) from the papercraft program Pepakura Designer, then milled out dozens of boards. Only a few of them support circuitry, but it was still quite the time-consuming process. The ATmega32U4 on the forehead along with the fold-traversing circuitry serve to light up the WS2812B eyes. Power runs up the copper tube, which doubles as a handy mounting rod to connect to the 3D printed base.

Continue reading “Circuit Board Origami Puts You Face-to-Face With Low-Poly Electronics”

Miniature Faux Floppy For 8-Bit Atari Looks The Part

There’s plenty of fun to be had with retrocomputers of yesteryear, but for modern users, it can be something of a culture shock. Going back to floppy disks after all these years is a reminder of just how far storage technology has come in terms of speed, reliability, and of course, capacity. Luckily, there are ways to combine the best of both worlds.

Floppy drive emulators for classic computers are of course nothing new, but we think this one [c0pperdragon] has put together is worthy of a closer look. Not only does the ATmega32U4 based emulator have an exceptionally low part count, but the code has been written in the Arduino IDE. Both features make it easy for new players to duplicate and revise the design should they feel so inclined. In a pinch you could even implement it on a breadboard with a garden variety Arduino.

The emulator is housed in a 3D printed enclosure designed to look like an era-appropriate Atari 1050 Disk Drive, except you’re using SD cards instead of floppies. The firmware can mimic two physical drives and supports up to 100 disk images on each SD card. The user interface is about as simple as it gets, with two push buttons and a pair of seven-segment LEDs to indicate which disk image is currently loaded up.

We’ve seen some very elaborate disk emulators over the years, but there’s something compelling about how straightforward this version is. If it helps a few more people experience the unique joys of retrocomputing, it’s a win in our book.

Official Arduboy Upgrade Module Nears Competition

We’ve been big fans of the Arduboy since [Kevin Bates] showed off the first prototype back in 2014. It’s a fantastic platform for making and playing simple games, but there’s certainly room for improvement. One of the most obvious usability issues has always been that the hardware can only hold one game at a time. But thanks to the development of an official add-on, the Arduboy will soon have enough onboard storage to hold hundreds of games

Even the rear silkscreen was a community effort.

The upgrade takes the form of a small flexible PCB that gets soldered to existing test points on the Arduboy. Equipped with a W25Q128 flash chip, the retrofit board provides an additional 16 MB of flash storage to the handheld’s ATmega32u4 microcontroller; enough to hold essentially every game and program ever written for the platform at once.

Of course, wiring an SPI flash chip to the handheld’s MCU is only half the battle. The system also needs to have its bootloader replaced with one that’s aware of this expanded storage. To that end, the upgrade board also contains an ATtiny85 that’s there to handle this process without the need for an external programmer. While this is a luxury the average Hackaday reader could probably do without, it’s a smart move for an upgrade intended for a wider audience.

The upgrade board is currently available for pre-order, but those who know their way around a soldering iron and a USBasp can upgrade their own hardware right now by following along with the technical discussion between [Kevin] and the community in the “Project Falcon” forum. In fact, the particularly astute reader may notice that this official upgrade has its roots in the community-developed Arduboy cartridge we covered last year.

Continue reading “Official Arduboy Upgrade Module Nears Competition”