Capacitive Touch Controller For FPGAs

Most projects that interface with the real world need some sort of input device. Obviously this article is being written from a standardized “human interface device” but when the computers become smaller the problem can get more complicated. We can’t hook up a USB keyboard to every microcontroller since we often only need a few buttons, but even buttons can be a little bit too cumbersome for some applications. For something even simpler, we would like to turn your attention to capacitive touch controllers.

Granted, these devices are really only simpler from a hardware perspective. Rather than a switch that can be prone to failure either when its moving parts break or its contacts become corroded, a capacitive touch button only needs a certain conductive area on something like a PCB, along with a few passive components, to work. The real difficulty is in the software, so this project aims to make it simpler to bring these sort of devices to any FPGA that needs some sort of interface like this. It can operate in stand-alone mode or in a custom user interface, and was written to be platform-independent in VHDL without the need for any dependencies or macros.

The project’s page goes into a great amount of detail on how capacitive touch sensors like these work in general, and describes the operation of this specific code as well. Everything is open source, so it’s ready to be put to work right away. If you need capacitive touch capabilities on something like a microcontroller, though, take a look at this tiny Atmel-powered musical instrument instead.

Mice with capactive sensors instead of buttons. Designed for people with low mobility.

Capacitive Mouse Built For A Friend Makes For A Touching Tale

Those tiny switches inside your mouse may be rated for 50 million clicks or more, but your fingers will likely wear out much sooner than that. Trust us — mouse arm and/or hand fatigue is no fun at all. If you’ve never had the displeasure, just try to imagine not being able to click or move the mouse around without extreme discomfort.

TTP223 touch sensor modules and the modifications necessary for this project.For this year’s Hackaday Prize, [BinSun] hacked together a capacitive mouse for a friend who has ALS. Instead of micro switches, it uses touch sensors to detect left and right clicks and LEDs to indicate when a click has taken place. That makes us think that haptic feedback could be cool, but it might get old quickly, or even worse, you might get used to it after a while and not feel it anymore.

This mouse would be a good alternative for anyone with limited mobility from any condition — ALS, arthritis, trigger finger, or carpal/cubital tunnel syndrome. It would also benefit anyone who wants to mouse much more stealthily, like in a library, a small shared space, or late at night. The only downside we can see is that you’d either have to get used to hovering your fingers, or else learn to rest them out of the way of the capacitive buttons. Otherwise, you’re gonna actuate them more often than you really want to.

If you want to build one of these, you’ll find a nice set of instructions over on IO that includes the minor modifications necessary to make the TTP223 capacitive modules sensitive enough to detect the presence of a finger. All you really have to do is bridge a couple of pads, add a capacitor and remove the SMD LEDs. [Bin Sun] says this is an ongoing project. He’s gotten a handful of beta testers involved at this point, and is planning to make a dedicated PCB pretty soon. Squeak past the break for a couple of brief demonstrations.

The right kind of mouse can save your limbs, sure. Hack together a different type of mouse, and you might be able to save your crops from elephant raids.

Continue reading “Capacitive Mouse Built For A Friend Makes For A Touching Tale”

MIT’s Knitted Keyboard Is Quite A Flexible MIDI Controller

There are only so many ways to make noise on standard instruments such as acoustic pianos. Their rigidity and inputs just don’t allow for a super-wide range of expression. On the other hand, if you knit your interface together, the possibilities are nearly endless. MIT’s new and improved knitted keyboard is an instrument like none other — it responds to touch, pressure, and continuous proximity, meaning that you can play it like a keyboard, a theremin, and something that is somewhere in between the two. Because it’s a MIDI interface, it can ultimately sound like any instrument you’ve got available in software.

The silver keys of this five-octave interface are made of conductive yarn, and the blue background is regular polyester yarn. Underneath that is a conductive knit layer to complete the key circuits, and a piezo-resistive knit layer that responds to pressure and stretch. It runs on a Teensy 4.0 and uses five MPR121 proximity/touch controllers, one per octave.

The really exciting thing about this keyboard is its musical (and physical) versatility. As you might expect, the keyboard takes discrete inputs from keystrokes, but it also takes continuous input from hovering and waving via the proximity sensors, and goes even further by taking physical input from squeezing, pulling, stretching, and twisting the conductive yarns that make up the keys. This means it takes aftertouch (pressure applied after initial contact) into account —  something that isn’t possible with most regular instruments. And since this keyboard is mostly yarn and fabric, you can roll it up and take it anywhere, or wrap it around your neck for a varied soundscape.

If you’re looking for more detail, check out the paper for the previous version (PDF), which also used thermochromic yarn to show different colors for various modes of play using a heating element. With the new version, [Irmandy Wicaksono] and team sought to improve the sensing modalities, knitted aesthetics, and the overall tactility of the keyboard. We love both versions! Be sure to check it out after the break.

Want to play around with capacitive touch sensors without leaving the house for parts? Make your own from paper and aluminum foil.

Continue reading “MIT’s Knitted Keyboard Is Quite A Flexible MIDI Controller”

Polyphony On A Tiny Scale

Older readers may remember the Stylophone, a small battery powered electric organ using conductive PCB pads and a stylus to create notes. The simple multivibrators in those instruments made them monophonic, but here in 2021 we can do better than that! [Sjm4306] has gone the extra mile with a PCB organ, by making a capacitive-touch instrument that boasts four-note polyphony.

At its heart is an ATmega328p whose software sports four tone generators that each emerge on a different pin. These are summed using a set of 100 Ω resistors and fed to a tiny speaker. Power comes from a CR2032 lithium cell, and he notes that a higher voltage delivers more volume.

The full story is detailed in the video below the break, along with a bit of four-note polyphonic action. We’re guessing that this instrument would sound sensational when hooked up to a reverb unit.

Continue reading “Polyphony On A Tiny Scale”

Hacker Has Robot Give Yubikey The Finger

[Bertrand Fan] is not a fan of the tiny, hard-to-actuate button on the average Yubikey. Before all that is 2020 occurred, [Bert] had the little 2FA nano-donglette plugged into a spare USB port on the side of their laptop so that it was always available wherever the laptop traveled. Now that working from home is the norm, [Bert] has the laptop off to the side, far out of reach.

A USB-C extension cable certainly made it more accessible, but did nothing for the actuation fail rate of the tiny button. Fed up by inconvenience and looking for a lockdown project, [Bert] decided to make a button-pressing robot finger that’s driven by a spare key on their groovy TKL keyboard.

It runs on a Wemos D1 mini and uses a small stepper motor to push a 3D-printed finger along a rack-and-pinion actuator. Since the Yubikey requires capacitive touch, [Bert] added a screw to the finger tip that’s wired to ground. Now all [Bert] has to do is press a decidedly cooler key to make the finger press the button for him. Check out a brief demo after the break.

If this security flaw makes you uncomfortable, perhaps this 2FA launch console is more to your liking. And as we saw recently, if you don’t like the cost of Yubikeys, you can roll your own 2FA device with a blue pill.

Continue reading “Hacker Has Robot Give Yubikey The Finger”

It’s Time For Watch Clocks To Make A Comeback

Along with all the colorful, geometric influence of Memphis design everywhere, giant wristwatch clocks were one of our favorite things about the 80s. We always wanted one, and frankly, we still do. Evidently, so did [Kothe]. But instead of some splashy Swatch-esque style, [Kothe] went the nerdy route by building a giant Casio F-91W to hang on the wall.

Not only does it look fantastic, it has the full functionality of the original from the alarm to the stopwatch to the backlit screen. Well, everything but the water resistance. The case is 3D-printed, as are the buckle and the buttons. [Kothe] might have printed the straps, but they were too big for the bed. Instead, they are made of laser-cut foam and engraved with all the details.

Inside there’s a 7″ touch display, a real-time clock module, and an Arduino Mega to make everything tick. To make each of the printed buttons work, [Kothe] cleverly extended a touch sensor module’s input pad with some copper tape. We think this could only be more awesome if it were modeled after one of Casio’s calculator watches, but that might be asking too much. Take a few seconds to watch the demo after the break.

Prefer your clocks less clock-like? Get a handle on the inner workings of this slot machine-based stunner.

Continue reading “It’s Time For Watch Clocks To Make A Comeback”

Robo Pony Greets Hackerspace Visitors

Robotic animal companions were once all the rage, though their limited personalities and annoying sound effects often relegated them to the bin fairly quickly. This makes them all the more ripe for hacking. [David Bynoe] had a Baby Butterscotch that was in need of a new home, and he decided to put the pony to work at his local hackerspace.

The Baby Butterscotch pony is a charming beast in stock form, yet highly menacing once its skin is removed. Mounted to a plaque, the pony has three PIR sensors that detect movement. These sensors are used to allow the pony to act as a door greeter, waking up when people enter the hackerspace and following them around the room. The additional hardware interfaces with the pony’s stock electronics by using floating capacitors and relays to activate the original capacitive touch sensors. The final piece is finished with a coat of gold paint and some RGB eyes to complete the look.

It’s a fun project that gives Vancouver Hack Space a little personality, and we’re sure it’s enjoyed by the members. We’ve seen other companion toy hacks before, with the Furby always being a ripe target for projects. Video after the break.

Continue reading “Robo Pony Greets Hackerspace Visitors”