Monday, September 14, 2009

Light me up with your heart

So a friend of mine is having a light themed party in a few weeks and I have an idea.

I want LED’s on me to move in sync with my heart beat.  More to the point, I want more lights if my heart goes faster.  Enter the Suunto product range which I’d been dicking around with for a while.  Nominally, there’s a Sparkfun breakout board that talks the ANT protocol that is used by the Suunto gear.  But, for reasons that are several and boring, it’s not that simple.

So, owning a USB stick from Suunto and previously having come up with a .Net implementation of the god-awful C++ headers, I’m using that, coupled with a pair of Nrf24L01+ transceivers to bridge the gap.

The downside is that this will only work within about 10 meters of the USB stick in the PC, whereas the Nrf24AP1 chipset could have been done entirely off PC.  As it happens I think I have the missing information (courtesy of someone else who found it elsewhere), but I started a new job today, am away for the following two weekends and frankly don’t have time to mess around with a ANT implementation.

Unfortunately, I can’t actually find my HRM strap, but that’s OK as I can simulate the imput data (read serial off the PC via the arduino – works a treat), and right now, all I’ve got is the two ends of the radio link chattering back and forth (not much more than loading the Mirf library examples, but that’s been a bigger effort than you’d think using RBBB’s and a dodgy Arduino).

Ideally I want a series of LED’s – baselined at around say, 60BPM but the transceivers take up quite a few pins (5) so I (and I only just thought of this), may be limited in what I can do.  The original thought had been to bung in a MAX7221 and run >8 but that needs a heap of pins too.  Cock.  Looks like I’ll have to dig out the datasheet.

Someone once said “The dizzying highs and the terrifying lows”.  Grrr.

No comments:

Post a Comment