All About USB-C: Example Circuits

In the six months that have passed after the last USB-C article has been released, I have thought up a bunch of ways that these articles could have been improved. It’s, of course, normal to have such a feeling — expected, even. I now believe that there’s a few gaps that I could bridge. For instance, I have not provided enough example circuits, and sometimes one schematic can convey things better than a thousand words.

Let’s fix that! I’ll give you schematics for the kinds of USB-C devices you’re actually likely to want to build. I’ll also share a bunch of IC part numbers in this article, but I don’t have an exhaustive collection, of course – if you find more cool ICs that work for USB-C purposes and aren’t mentioned here, please do let us all know in the comments!

Continue reading “All About USB-C: Example Circuits”

The Past, Present, And Future Of CircuitPython

Modern microcontrollers like the RP2040 and ESP32 are truly a marvels of engineering. For literal pocket change you can get a chip that’s got a multi-core processor running at hundreds of megahertz, plenty of RAM, and more often than not, some form of wireless connectivity. Their capabilities have been nothing short of revolutionary for the DIY crowd — on any given day, you can see projects on these pages which simply wouldn’t have been possible back when the 8-bit Arduino was all most folks had access to.

Limor Fried

Thanks to the increased performance of these MCUs, hackers and makers now even have a choice as to which programming language they want to use. While C is still the language of choice for processor-intensive tasks, for many applications, Python is now a viable option on a wide range of hardware.

This provides a far less intimidating experience for newcomers, not just because the language is more forgiving, but because it does away with the traditional compile-flash-pray workflow. Of course, that doesn’t mean the more experienced MCU wranglers aren’t invited to the party; they might just have to broaden their horizons a bit.

To learn more about this interesting paradigm shift, we invited the fine folks at Adafruit to the Hack Chat so the community could get a chance to ask questions about CircuitPython, their in-house Python variant which today runs on more than 400 devices.

Continue reading “The Past, Present, And Future Of CircuitPython”

An IN-12B Nixie tube on a compact driver PCB

Modern Components Enable Cheap And Compact Nixie Driver Circuit

Nixie tubes can add some retro flair to any project, but they can also complicate your electronics quite a bit: after all, you need to generate a voltage high enough to ignite the tube and then switch that between ten separate display segments. Traditionalists may want to stick with chunky mains transformers and those unobtainium 74141 segment drivers, but modern components allow you to make things much more compact, not to mention way cheaper. [CNLohr] took this to an extreme, and used clever design tricks and his sharp online shopping skills to make an exceptionally compact Nixie driver circuit that costs less than $2.50.

That price doesn’t include the tubes themselves, but [CNLohr] nevertheless bought the cheapest Nixies he could find: a pair of IN-12B tubes that set him back just $20. He decided to generate the necessary 180 volts through a forward converter built around a $0.30 transformer and a three-cent MOSFET, controlled by software running on a CH32V003. This is one of those ultra-cheap microcontrollers that manage to squeeze a 48 MHz RISC-V core plus a bunch of peripherals into a tiny QFN package costing just 12 cents.

The existing toolchain to program these micros left a lot to be desired, so [CNLohr] wrote his own, called
ch32v003fun. He used this to implement all the control loops for the forward converter as well as PWM control of the display segments – a feature that adds a beautifully smooth turn-on and turn-off effect to the Nixie tubes. There’s still plenty of CPU capacity left to implement other features, although [CNLohr] isn’t sure what to put there yet. Turning the tubes into a clock would be an obvious choice, but the basic system is flexible enough to implement almost anything requiring a numeric display.

The compactness of this circuit is impressive, especially if you compare it to earlier solutions. There’s plenty of fun to be had with cheap-yet-powerful micros like the ch32v003, provided you can find them.

Continue reading “Modern Components Enable Cheap And Compact Nixie Driver Circuit”

A man sits in front of a wooden table. There is a black box with a number of knobs hand-labeled on blue painter's tape. A white breadboard with a number of wires protruding from it is visible on the box's left side. An oscilliscope is behind the black box and has a yellow waveform displaying on its screen.

A More Expressive Synth Via Flexure

Synthesizers can make some great music, but sometimes they feel a bit robotic in comparison to their analog counterparts. [Sound Werkshop] built a “minimum viable” expressive synth to overcome this challenge. (YouTube)

Dubbed “The Wiggler,” [Sound Werkshop]’s expressive synth centers on the idea of using a flexure as a means to control vibrato and volume. Side-to-side and vertical movement of the flexure is detected with a pair of linear hall effect sensors that feed into the Daisy Seed microcontroller to modify the patch.

The build itself is a large 3D printed base with room for the flexure and a couple of breadboards for prototyping the circuits. The keys are capacitive touch pads, and everything is currently held in place with hot glue. [Sound Werkshop] goes into detail in the video (below the break) on what the various knobs and switches do with an emphasis on how it was designed for ease of use.

If you want to learn more about flexures, be sure to checkout this Open Source Flexure Construction Kit.

Continue reading “A More Expressive Synth Via Flexure”

Top left of image shows a picture of a purplish-grey sea cucumber. Above the cucumber is the word "bio-inspiration." Arrows come from the cucumber to anthropomorphized cartoons of it saying "rigid" at the top with a cartoon sea cucumber standing straight up with spikes and the arrow captioned "soft" pointing down showing a crawling sea cucumber that looks more like a slug. To the right of the cucumber images is a set of three images stacked top to bottom. The top image is of a silver sphere with a zoomed-in atomic diagram with aligned magnetic poles next to it saying "solid state." The middle image shows arrows going up and down next to a snowflake and an artistic rendering of magnetic fields labeled "transition." The bottom image of this section shows a reddish sphere next to a zoomed-in atomic diagram where the magnetic poles are not aligned labeled "liquid state."

Phase Change Materials For Flexible And Strong Robots

Shape shifters have long been the stuff of speculative fiction, but researchers in China have developed a magnetoactive phase transitional matter (MPTM) that makes Odo slipping through an air vent that much more believable.

Soft robots can squeeze into small spaces or change shape as needed, but many of these systems aren’t as strong as their more mechanically rigid siblings. Inspired by the sea cucumber’s ability to manipulate its rigidity, this new MPTM can be inductively heated to a molten state to change shape as well as encapsulate or release materials. The neodymium-iron-boron (NdFeB) microparticles suspended in gallium will then return to solid form once cooled.

An image of a LEGO minifig behind bars. It moves toward the bars, melts, and is reconstituted on the other side after solidifying in a mold.

Applications in drug delivery, foreign object removal, and smart soldering (video after the break) probably have more real world impact than the LEGO minifig T1000 impersonation, despite how cool that looks. While a pick-and-place can do better soldering work on a factory line, there might be repair situations where a magnetically-controlled solder system could come in handy.

We’ve seen earlier work with liquid robots using gallium and bio-electronic hybrids also portending the squishy future of robotics.

Continue reading “Phase Change Materials For Flexible And Strong Robots”

A Flex Sensor For A Glove Controller Using An LDR

When most of us think of glove controllers, the first which comes to mind is Nintendo’s PowerGlove, which promised much more than it delivered. But the idea persists, and from time to time we see them here at Hackaday. [Gord Payne] has one with an elegant sensor solution, it detects finger movement using a light dependent resistor.

The cleverest designs are those which are the simplest, and this one eschews complex mechanisms and exotic parts for a simple piece of flexible tube. At one end is an LED and at the other the LDR, and when attached to a glove it provides a finger sensor without the fuss. The amount of light reaching the LDR from the LED decreases as the pipe is bent, and with a simple divider circuit a voltage can be read by an Arduino. You can see it in action in the video below the break, where the glove flexing controls a servo.

Perhaps this might revitalize a bit of interest in glove controllers, something we probably don’t see too many of. Those Nintendo PowerGloves do still crop up from time to time though.

Continue reading “A Flex Sensor For A Glove Controller Using An LDR”

Flexible, Thin-Film Biosensors

We like to keep a pulse on the latest biosensor research going on around the world. One class of biosensors that have really caught our attention is the so-called thin-film sensors, pioneered by the Rogers Research Group at Northwestern University.

We’re no strangers to the flexible PCB here at Hackaday. Flexible PCBs have become increasingly accessible to small-scale developers and hobbyists, explaining why we’re seeing them incorporated into many academic research projects. The benefit of these types of sensors lies in the similarity of their mechanical properties to those of human skin. Human skin is flexible, so matching the flexibility of skin allows these thin-film sensors to adhere more comfortably and naturally to a person’s body. Continue reading “Flexible, Thin-Film Biosensors”