Harlem Shake as a Mixed Signal Circuit in ViaDesigner

Harlem Shake “Do The Harlem Shake” voice detection circuit implemented in ViaDesigner. In ‘shake’ spoofs, the dancers usually move just a little until they here the deep voiced singer say “Do the Harlem Shake.” What if you wanted to automate your robot doing the shake?

This video shows using a high-level design environment (ViaDesigner) to create a circuit to detect when the phrase occurs in the song.

The circuit ‘plays’ the song from a file-based voltage source that generates a ‘music’ wavefrom from raw wavefile values stored in the file data.txt. This music waveform contains all the frequency components of the song. To isolate the low frequency energy, the ‘music’ signal is sent through a 10th order continuous time bandpass filter. The filter attenuates frequencies outside of the 100 to 250 Hz range. The output of this filter then indicates when low frequency content is present in the song. Since the “Do the Harlem Shake” voice is so low (100 to 200 Hz) it will have higher output voltages when he starts talking.

The output of the bandpass filter is then applied to a voltage comparator with a fixed reference voltages. When the output of the filter exceeds this threshold voltage the comparator output goes high and clocks a D Flip/Flop asserting the DO_THE_HARLEM_SHAKE signal.

Yes, you can probably make a better Harlem Shake detector circuit.

This version makes a lot of naive assumptions: fixed/optimized input voltage levels, fixed slicing level to detect energy out of bandpass filter, doesn’t discriminate other low frequency speakers and will only work if the circuit starts at the beginning of the song.

If you want to create a better version of the circuit feel free to download your own copy of ViaDesigner from ViaDesigner.com.

ViaDesigner is a power and easy-to-use mixed signal circuit design and simulation environment that allows you to combine schematics, VHDL, Verilog, and VHDL-AMS into one unified mixed signal simulation.