What Can The Blockchain Do For You?

Imagine you’re a general, camped outside a fortified city with your army. Your army isn’t strong enough to take the city without help. But you do have help: camped on other hills outside this city are a half dozen more generals, with their armies ready to attack. Attacking one army at a time will fail; taking this city will require at least three or four armies, and an uncoordinated attack will leave thousands dead outside the city gates. How do you coordinate an attack with the other generals? Now, how do you coordinate your attack if one of those other generals is Benedict Arnold? What happens when one of the generals is working with the enemy?

This situation is a slight rephrasing of the Byzantine Generals Problem, first presented in the ACM Transactions on Programming Languages and Systems in 1982. It’s related to the Two Generals Problem formulated a decade prior. These are the analogies we use when we talk about trust over a communications channel, how hard it is to transmit knowledge, and how to form a consensus around imperfect facts.

This problem was upended in late 2008 when Satoshi Nakamoto, a person or group of people, published a white paper on the ‘block chain’. This was the solution to double-spending in digital currency. Think of it as having a digital thing that only one person could own. As a test of this block chain technology, Bitcoin was launched at the beginning of 2009. Things got more annoying from there.

Now, blockchain is at the top of the hype cycle. Every industry is looking at blockchain tech to figure out how it will work for them. Kodak launched their own blockchain, there are proposals to use the blockchain in drones and 3D printers. Medical records could be stored on the blockchain, HIPAA be damned, and there’s a blockchain phone, for reasons. This doesn’t even cover the massive amount of speculation in Bitcoin itself; thousands of other cryptocurrencies have also sprung up, and people are losing money.

The blockchain is a confusing thing, with hashes and Merkle trees and timestamps. Everyone is left asking themselves, what does the blockchain actually do? Is there an independent body out there that will tell me what the blockchain is good for, and when I should use it? You’re in luck: NIST, the National Institute of Standards and Technology released their report on blockchain technology (PDF). Is blockchain magic? No, no it is not, and it probably shouldn’t be used for anything other than a currency.

Continue reading “What Can The Blockchain Do For You?”

This Ukulele Does Chiptunes, And Not Just Because It’s Made Out Of A Game Boy

When you think about singer-songwriters, the name Bob Dylan might come to your mind. You might think about Jeff Buckley, you might think about Hank Williams, Springsteen, David Bowie, or Prince. You’d be wrong. The greatest singer-songwriter of all time is Tiny Tim, the guy who looks like Weird Al traveled in time and did a cameo in Baker-era Doctor Who. Tiny Tim had the voice of an angel, because Mammon and Belial were angels too, I guess. Tiny Tim is also the inspiration behind the current resurgence of the ukulele, the one thing keeping the stringed instrument industry alive today.

Even though Tiny Tim passed in 1996, he would have loved to see this project that brings the ukulele into the late 20th century. It’s a Game Boy, DMG-01, transformed into a playable musical instrument. It’s a functional uke, but it also has electronics to turn this into a chiptune machine.

The first goal of this project was to build a functional ukulele out of a Game Boy case. This was simple enough — the neck was 3D printed, the bridge was screwed in, and the case of the Game Boy was reinforced with some PCB material. So far, this is nothing new; you can get a model for a 3D printed ukulele on Thingiverse.

The second goal of this project was to make this ukulele into a chiptune machine. This means designing a pickup for the strings, and since these are nylon you’re not going to do a magnetic pickup on a ukulele. The first solution was an IR reflectance sensor, which worked but had too high of a power draw. The better solution was a standard flex pressure sensor, which worked well enough. This signal is distorted into a square wave that gives a surprisingly Game Boy-like sound. You can check out the video demo below.

Continue reading “This Ukulele Does Chiptunes, And Not Just Because It’s Made Out Of A Game Boy”

This Synth Plays The Only Scale Everybody Knows

[randomprojectlab] is building a synthesizer around the pentatonic scale for the Hackaday Prize. It’s the Pentasynth, and it’s basically just a keyboard with five notes per scale.

There’s something common to every form of music. Nearly every musical tradition, from western art music, to Indonesian folk music makes use of a pentatonic scale. This is just a major scale without fourth and seventh scale degrees, or just playing the black keys on a piano.  It’s the one scale everybody knows, and forms the basis of every school of thought for music education. Noodling over the pentatonic scale is what all the cool guys do in Guitar Center. It’s absolutely the foundation of all music.

The hardware for this build is an Adafruit Metro Mini, or basically an Arduino with an ATMega328. This generates three channels of audio, two square waves — one each for the keyboard and bass accompaniment — and a pseudo-random noise drum beat. The keys are 3D printed, and the enclosure is CNC’s acrylic.

Most educational music toys out there have a few additional bits to make composing music easier. The Pentasynth is no exception, with a button that adds a drum beat, a button that adds a bassline, and a switch that makes the keyboard major or minor. It’s a great idea, and you can check out a video of the Pentasynth in action below.

Continue reading “This Synth Plays The Only Scale Everybody Knows”

Friday Hack Chat: Air Hacking

The field of soft robotics sure seems a lot less mature than your standard servo motor and metal framed robot arms. Maybe that’s because building a robot to flex is harder, and maybe it’s because the best methods of constructing soft robotics have only been around for a decade or so. Maybe, though, it’s because it’s hard to control air.

For this week’s Hack Chat, we’re going to be discussing Air Hacking with [Amitabh Shrivastava]. [Amitabh] is a grad student at ITP, NYU studying creative technology, where he makes interactive art, tools for research, and experiments with various materials. Lately he has been developing Programmable-Air, a pneumatic controller for soft robotics. We’ve seen his work at ThiMaker Faire, and it’s an awesome project in this year’s Hackaday Prize.

In this chat we will be talking about DIY soft robotics. Soft robotics is a growing field with a lot of low hanging fruits within grasp of the hobbyist maker. In addition to sharing experience and resources about building your own soft robots, we will talk about actuation! Tune in to see how you can use pneumatics in your next project.

During this week’s Hack Chat, we’ll be discussing:

  • Pneumatics
  • Programmable Air
  • Soft Robotics
  • Methods of adding pneumatics to your project

You are, of course, encouraged to add your own questions to the discussion. You can do that by leaving a comment on the Air Hacking Hack Chat and we’ll put that in the queue for the Hack Chat discussion.

join-hack-chat

Our Hack Chats are live community events on the Hackaday.io Hack Chat group messaging. This week we’ll be sitting down on Friday, October 26th, at noon, Pacific time. If time zones got you down, we have a handy time zone converter.

Click that speech bubble to the right, and you’ll be taken directly to the Hack Chat group on Hackaday.io.

You don’t have to wait until Friday; join whenever you want and you can see what the community is talking about.

Racing The Beam And Dropping Some Beats

The heart of the Atari 2600 wasn’t the 6502 (or the 6507 for the pedants), it was the TIA chip. This is the chip responsible for drawing graphics on the display, racing the beam, and extremely limited support for sound generation. We haven’t seen many attempts of using the Atari 2600 for chiptunes, but that doesn’t mean it can’t be done. [John Sutley]’s Syndrum, a take on an Atari 2600 drum machine is nearly a work of art. It’s a custom cartridge for the wood-paneled Atari, and an impressive input device that turns this classic console into a beat machine

Did the Atari 2600 ever come with a drum machine cartridge? Maybe. Probably not. [John] originally built this project to experiment with the TIA chip, but found it was less tonal than a kazoo. That struck ‘Atari synthesizer’ off the list and replaced it with an ‘Atari drum machine’. There are two key parts of the build here, the first being a repurposed Asteroids cartridge that had the PROM replaced with a ZIF socket. This allows [John] to easily burn new code to an EEPROM, stuff it in the socket, and run it on the Atari. All the code was developed with batari Basic, a BASIC-inspired language that spits out .bin files for the Atari.

But running code on the Atari is just one half of this build. To do a drum machine, you somehow need to tell the Atari when to play each sound. Given the lack of expansion capabilities for the Atari, [John] turned to the controller port. The Syndrum uses Arduino Nano to bridge the DE9 controller connector to a MIDI port. Yes, it’s real MIDI, on a machine that could probably never do MIDI natively (although we’d love to see someone try).

Need a video of this mind-blowing hack in action? Here you go:

Continue reading “Racing The Beam And Dropping Some Beats”

The Spirit Of The 80s Lives On In A MIDI Harmonica

In the 1980s, there was a synthesizer that you could play like a harmonica. This device was called the Millioniser 2000. It utilized HIP (Harmonica In Principle) technology. The Millioniser 2000 was a breath controller wrapped in chrome-colored plastic embossed with its logo in an odd, pre-vaporwave aesthetic, and connected to a gray and green sheet metal enclosure loaded up with DIN jacks. The Millioniser 2000 is absolutely the pinnacle of late 70s, early 80s design philosophy. If it were painted brown, the Universe would implode.

Because of the rarity and downright weirdness of a harmonica synthesizer from the 80s, prices on the used market are through the roof. Musicians are a weird bunch. However, this does give someone the opportunity to recreate this bizarre instrument, and that’s exactly what [John Lassen] did for his entry for the Hackaday Prize.

While this isn’t as complex as the Millioniser 2000, it does have the same basic user interface. There’s a pressure sensor that measures how much you’re blowing. There’s a slider to change which notes are played, and there are a few buttons to change parameters, like the MIDI channel, a midi controller, or a transpose function. The electronics, like so many of the entries to the Musical Instrument Challenge in the Hackaday Prize, are built around the Teensy and it’s incredible audio library.

Putting A Motor Inside A Speed Controller

One of the more interesting hacks we’ve seen this year is [Carl]’s experimentations with making motors out of PCBs. Honestly, it’s surprising no one has done this before — a brushless motor is just some coils of wire and a few magnets; anyone can turn some coils into traces and make a 3D print that will hold a few magnets. This latest advancement is something else entirely. It’s a motor and an electronic speed controller all in one.

This project is a continuation of [Carl]’s PCB motor project, which started with him routing coils for a brushless motor as traces in a circuit board. Previously, we’ve seen [Carl]’s motor spinning on its own with the help of a small hobby ESC / motor controller meant for model planes and drones. This time, we’ve got something different. It’s an entire controller and motor, integrated into one single PCB.

This is a very, very small motor and ESC combo. The motor driver is a 3x3mm QFN package, and most of the other components are 0201. The main parts are a very tiny triple half-bridge motor driver and a PIC16F microcontroller. This PIC reads a hall sensor to detect the speed of the motor, and with just three pins — power, ground, and a PWM pin — this motor can spin at a set speed.

The future goals of this project are to make it work just like any other hobby ESC — just plug it into a servo controller and let ‘er rip. Since this motor with an integrated PCB requires only three connections, we’re looking at a great tool to add motion and rotation to any project. It’s fantastic, and we can’t wait to see something like this in robots, toys, and other home goods.

Continue reading “Putting A Motor Inside A Speed Controller”