Thursday, 29 March 2012

A heart beat to midi converter

EDIT: This project actually finished up sometime in 2013. There is now a project page at http://foulab.org/en/user/strawdog/HeartBeat, complete with a link to video of the device in action. You may want to go there directly.

Some while ago, David Usher approached Foulab about creating a device to convert heartbeats into midi signals.  Fortunately for us, he had already done a large part of the work and had got a hold of the optical pulse sensor recently featured in Make.

The pulse sensor shines a green light on the skin which is partially reflected onto a photosensor.  This outputs an analog signal, that, when conditions are right, indicates the intensity of blood flow beneath the skin, and thus to the heartbeat.  First tests were promising - modifying the Arduino code provided with the sensor to play a midi note was straightforward.  In the video below you can hear a note played for 50ms every detected heart beat.
First build is a bit ghetto, didn't even have a midi cable.  Also - note to self: dust the piano, sheesh.

One catch was that David wanted to take this on tour in a couple days.  Gapzap and I spent a crazy Tuesday evening putting together a robust project that would hopefully hold up in stage use.  In the end, the construction quality was pretty good (for which Gapzap should get most of the credit, I was up to my usual sloppiness, note the broccoli elastics).



Alas, it was for naught.  The sharp eyed readers will have noted the key phrase "when conditions are right" above.  They have to be exactly right.  In playing with it, David found sometimes it would work, sometimes not.  Some people it just never worked on.  And in all cases, the heartbeat was not as regular as you would expect - which might be a real phenomenon, the heart is not a clock.  You can hear this in the video, it seems alternately jumpy, then halting.  But in any case, it couldn't be played along with.

Still, not bad for a Tuesday night.  So that iteration was put aside, until its time for take 2.

Saturday, 24 March 2012

Nixie tube goodness

When shopping for the VFD, LegionLabs also brought me back some Nixies!  Nixies require a high voltage supply... ok, given certain other experiments on this blog, a medium voltage supply - usually said to be 200V or so.  In my laziness, I tried the simplest possible supply - rectifying the 110V wall voltage and smoothing it with a capacitor.   Works a peach.

This ends up at 155V or so (110V x 0.707).  Not that a voltage doubler is hard in the end, i just had a bridge rectifier right there.  I'm using a 47K resistor in this picture - although in other tests a 36K seemed to give a slightly better brightness.  The tube uses around a millamp.
In an example of total overkill, i simulated the circuit using CircuitLab.  It was a really just a way to try out Circuitlab on something easy, and in the end, i'm a fan.
Simulated on Circuitlab

Sunday, 18 March 2012

Vacuum Fluorescent Display

In his world wide travels, LegionLabs picked up a little vacuum fluorescent display showing micro, amps and volts.  Definitely a unique souvenir!  I'd never worked with VFDs before, but in the end, they are quite simple.  A hot filament emits electrons, which are evened out by a grid and then impact on fluorescent surfaces.  They run at relatively low voltages, as compared to, say, Nixie tubes.

The leads are pretty easy to figure out just by examination.  I followed the directions here and pretty quickly had it working.

Heres a zoom out on the setup.  On the right is a slapped together bench supply, using an LM315.  Its running the filament at 1.24 V, with no limiting resistor.  This is pulling 35mA, on start up it pulls quite a bit more (~50), but it quickly reaches temperature and stabilizes there.   In real use, I may try to reduce that current a little.

I have no idea why there are so many leads on the tube.  Theres only the three elements inside (micro, V and A),  each element is connected to several leads, but they dont seem to be lighting up different parts - they are just redundant.  Go figure.

 

Thursday, 1 March 2012

Golem: One bit to rule them all

It was quite a long time ago I first heard LegionLabs talking about the one-bit processor he was designing.  It was one of those ideas that was either deep, or crazy.  Turns out it was deep.  It took my little brain a while to catch on, but eventually I was able to help out a bit.  We finally put together a write up on the Foulab site.

http://foulab.org/en/user/strawdog/Golem

The write up doesn't permit posting of comments, so go ahead and post em here.  Note the challenge - if you manage to write some code for this thing, we'd love to hear about it.

Sunday, 12 February 2012

Updated the Circular Calendar for 2012 today.  Its the sort of thing that I should probably have done back in December, but... well here we are.  Had to update  Dennis Ritchie, John McCarthy and Steve Jobs' entries to show both birth and death.  October seems to be a rough month for computer scientists.

Saturday, 28 January 2012

etch a sketch

Finally, some progress on the etch a sketch machine.  After releasing the magical blue smoke from many poor transistors, i broke down and bought a motor control shield over the holidays.  Two roughly matched steppers salvaged from old printers attached to gears on the etch a sketch.


Straightforward at first, but mechanically tricky.  Theres a surprising amount of mechanical backlash, meaning that if you draw say 10mm in one direction, and then 10mm back, you dont quite end up where you started.  I tightened up the gearing by epoxying it to the etch a sketch shaft, and i'm doing some backlash correction in software.  Still not perfect, but getting there.



Eesh - the video compression makes it look horrid.  Heres a pic of the last frame so you can see the drawing.


Sunday, 2 October 2011

High voltage supply: some progress

** DISCLAIMER - Unless you know what you are doing, dont try this.  This blog post does not contain enough information to try this safely. **

One thing on my project pile is to construct a HV supply, suitable for use in Kirlian photography and similar experiments. An extremely simple circuit can be used to generate reasonably high voltages from an old flyback transformer.

Some first experiments generated pretty arcs, and showed that it might work.  I made a bit more progress now.  The supply is now contained in a box, to keep stray fingers out, and it contains a rectifier, so it can be fed AC power.  Thus, it can be powered from a variac.  This is a nice source of adjustable power, and it will prevent me from blowing the lab supply with this thing - its a really ill-behaved load for any supply.

Heres a pic of the setup.  The HV supply on the left, variac on the right.  Yep, definitely time to put the variac in a case.
And a classy warning sticker. 
With just 7V AC in, i'm getting some nice arcs.  The effect of arcing into a cup of water is quite interesting, but this picture doesn't do it justice really.


At this point, raising the voltage much more leads to unwanted arcing, such as this one from the HV wire to the case. 





A bit more fiddling, and it will be time to try some Kirlian stuff.