Two-Channel Guitar Stomp Box Makes Momentary Switches Latching

When we first saw [Maarten Tromp]’s article about a “momentary latching switch” for guitar effects pedals, we have to admit to being a bit confused. When it comes to push-button switches, “momentary” and “latching” seem to be at odds with each other, with different mechanisms inside the switch to turn one into the other. What gives?

As it turns out, [Maarten]’s build makes perfect sense when you consider the demands of a musical performance. Guitar effects pedals, or “stomp boxes,” are often added to the output of electric guitars and other instruments to change the signals in some musically interesting way. The trouble is, sometimes you only need an effect for a few bars, and the push-on, push-off switches on many effects pedals make that awkward.

[Maarten]’s idea was to build a stomp box with momentary switches that act as inputs to an ATtiny2313 microcontroller rather than directly controlling the effect. That way, a bit of code can determine how long the switch is tapped, and activate a relay to do the actual switching accordingly. A short tap of the button tells the microcontroller to latch the relay closed until another tap comes along; a long press means that the relay is held open only as long as the button is held down.

Yes, he could have used a 555, a fact which [Maarten] readily acknowledges, but with some loss of flexibility; he currently has the threshold set at 250 milliseconds, which works for his performance style. Changing it would be a snap in code, as would toggling the latching logic. A microcontroller also makes expansion from the two-channel setup shown here easier.

Looking for more effects pedal action? We’ve got a bunch — a tube-amp tremolo, an Arduino Mega multipedal, a digital delay line. Take your pick!

Hunting Replicants With The 2019 LayerOne Badge

Blade Runner showed us a dystopian megatropolis vision of Los Angeles in the far-off future. What was a distant dream for the 1982 theater-goes (2019) is now our everyday. We know Los Angeles is not perpetually overcast, flying cars are not cruising those skies, and replicants are not hiding among the population. Or… are they?

The LayerOne conference takes place in greater Los Angeles and this year it adopted a Blade Runner theme in honor of that landmark film. My favorite part of the theme was the conference badge modeled after a Voight-Kampff machine. These were used in the film to distinguish replicants from humans, and that’s exactly what this badge does too. In the movies, replicants are tested by asking questions and monitoring their eyes for a reaction — this badge has an optional eye-recognition camera to deliver this effect. Let’s take a look!

Continue reading “Hunting Replicants With The 2019 LayerOne Badge”

A Stylish Low Part Count Non-Contact Thermometer

A non-contact thermometer is a pretty common tool these days, and one that most of us probably have kicking around the lab. You can grab them online for as little as $10 USD, and while they’re nowhere near as capable as a thermal camera, they certainly have their uses. But even with their increased availability, there are at least two safe assumptions we can make about owners of said gadgets: they didn’t make it themselves, and they are probably pretty ambivalent about its aesthetics.

Which makes this project by [Ijon Tichy] particularly interesting. Not only is this a non-contact infrared thermometer that’s extremely easy to build should you be so inclined, but it’s actually quite attractive. In fact, if it wasn’t for the video of it in operation after the break, we would have assumed it was some kind of faux-retro cosplay prop. Even if you don’t have any use for an IR thermometer, you might just want to add one of these to your toolbox on principle.

The main components of the thermometer are a MLX90614 sensor, a gorgeous HP QDSP-6040 bubble display, and a ATtiny2313 microcontroller to tie it all together. The rest are passive components, with the exception of the TP4056 charging module that got tacked on to handle the 200 mAh lithium-ion battery. All of the components are arranged neatly in a line down the length of the thermometer, which is assembled on a piece of perfboard. Rather than go with a 3D printed enclosure that would cover it all up, [Ijon] decided to encapsulate everything in a clear epoxy resin. It looks fantastic, though you’re going to want to triple check all those solder joints before pouring on your “enclosure”.

[Ijon] has provided the diagrams and source code you need to build your own version of this artisanal thermometer, but we think with a custom PCB and perhaps a less liquid enclosure that still shows off the goods, this could be a very popular gadget for the discerning hacker. As we’ve seen, even the most basic of tools can benefit from a stylish makeover.

Continue reading “A Stylish Low Part Count Non-Contact Thermometer”

Hackaday Prize Entry: Mini DRO For A Lathe

A manual lathe has dial wheels to control the feed of the main carriage and the cross slide to help take cuts on the workpiece. These feed wheels always have some backlash and require frequent resetting of the “zero”. The usual process would be to take measurements on the workpiece with either a vernier caliper or a micrometer at intervals which requires stopping the machine, adding up to increased machine time. The addition of a digital readout not only simplifies the process, but also reduces machining time substantially. Since the DRO magnetic strips are directly attached to the cross slide, the effects of backlash are mitigated.

[Igor] has just such a manual lathe and built his own mini DRO unit from scratch a couple of years back. Most DRO’s have encoder strips and sensors attached to the cross slide with a larger display unit attached separately on a stalk, with wires running between the two. [Igor] kept things simple by building a unit that fit within the space constraints he had. His unit consists of just two sensor modules – each attached directly to the slide. The main unit houses a linear hall sensor, electronics, buttons, a small LCD and batteries. The second axis unit houses just the sensor with a cable connecting it to the main unit for data and power. At the heart of the system is a pair of NSE-5310 linear hall sensor encoder chips. These work in conjunction with multipole magnetic strips. The encoder provides a 12-bit output, and the magnetic strips have poles spaced 2 mm apart. This translates to a theoretical resolution of almost 0.5 microns, but of course, the machine mechanics limit the actual results. The encoder chips talk to an ATtiny2313 over the I2C bus. Three buttons and the power supply round-up the hardware. To run it off a single 1.5 V rechargeable battery, [Igor] used a boost converter to get 3.3 V. The 5 V needed for the LCD is obtained by a voltage doubler connected to a PWM output from the microcontroller and regulated by a Zener diode. The second sensor unit connects via a TRRS 3.5 mm socket.

He added a Bluetooth module as an after thought, but ran out of GPIO pins as well as program space and had to get creative to make it work. The plan was to transmit the data to an Android tablet which would work as a large, remote, wireless display. He never did use that feature though, being satisfied with the small LCD display. There’s several things that went wrong in the build, and if he were to replicate the project again, several changes and improvements would help. So if anyone plans on doing something similar, do check up [Igor]’s project logs first.

The ATtiny MIDI Plug Synth

MIDI was created over thirty years ago to connect electronic instruments, synths, sequencers, and computers together. Of course, this means MIDI was meant to be used with computers that are now thirty years old, and now even the tiniest microcontrollers have enough processing power to take a MIDI signal and create digital audio. [mitxela]’s polyphonic synth for the ATtiny 2313 does just that, using only two kilobytes of Flash and fitting inside a MIDI jack.

Putting a MIDI synth into a MIDI plug is something we’ve seen a few times before. In fact, [mitxela] did the same thing a few months ago with an ATtiny85, and [Jan Ostman]’s DSP-G1 does the same thing with a tiny ARM chip. Building one of these with an ATtiny2313 is really pushing the envelope, though. With only 2 kB of Flash memory and 128 bytes of RAM, there’s not a lot of space in this chip. Making a polyphonic synth plug is even harder.

The circuit for [mitxela]’s chip is extremely simple, with power and MIDI data provided by a MIDI keyboard, a 20 MHz crystal, and audio output provided eight digital pins summed with a bunch of resistors. Yes, this is only a square wave synth, and the polyphony is limited to eight channels. It works, as the video below spells out.

Is it a good synth? No, not really. By [mitxela]’s own assertion, it’s not a practical solution to anything, the dead bug construction takes an hour to put together, and the synth itself is limited to square waves with some ugly quantization, at that. It is a neat exercise in developing unique audio devices and especially hackey, making it a very cool build. And it doesn’t sound half bad.

Continue reading “The ATtiny MIDI Plug Synth”

Disk Hack Creates Persistence Of Vision

[Adam Antok] was compelled to create this repurposed hard drive persistence of vision hack after seeing a toy of the same nature.

hdd-display-schematicHe used the frame, disk and motor from a drive and added LEDs under the spinning disk as the light source. The disk has 8 small holes drilled equidistant around the disk, and spiraling slightly toward the center. As the holes pass by the LEDS they are flashed by the ATtiny2313 processor to create images. To determine the position of the platters a Hall effect sensor is monitored by the 2313 to detect a magnet on the underside of the disk. There is room to display ten characters at one time. Each cursor position can scroll through the character set by rotating an encoder. For all the precision needed to coordinate the LEDs with the spinning holes the electronics and software code are amazingly simple. That’s a really nice job, [Adam]!

Persistence of vision hacks are to hackers like flames are to moths. One really nice thing about [Adam’s] project is that you can interact with it while it’s running. Check it out after the break.

For a novel take on POV, check out this slow swinging pendulum clock.

Continue reading “Disk Hack Creates Persistence Of Vision”

In Which Robots Fight The Console Wars

Though the names have changed over the years, the console wars wage on. [moop] must have been feeling nostalgic for the NES vs. SEGA days when he started his current project, Foobot, which is a tabletop football (soccer) game played by robots that are controlled with classic NES and SEGA controllers.

Each team has two robots that tool around on laser-cut perspex wheels attached directly to 16,000RPM motors. An SN754410 controls the motors, and each robot has an ATtiny2313 brain. They all communicate with a single transmitter over their 433MHz 1402 radio receiver modules. To avoid collisions, [moop] used a packet system, wherein each robot has an ID. The messages all contain a robot ID, message payload, and checksum. The robots ignore messages addressed to others, and any message with an invalid checksum.

[moop] has made everything available on his github, including the PCB layouts and CAD files for the robot chassis and transmitter case. Watch them battle it out after the break. If the Foobots have riled you up about vintage gaming, check out these sweet arcade hacks.

Continue reading “In Which Robots Fight The Console Wars”