Hi Ryan, As you note, the SixAxisTransmitter code is very much deprecated at this stage. The biggest issue is that this example is for TinyOS version 1, which hasn't been updated in years (and years).
So, as a result, you will not find a driver for the HR module in TinyOS v1. However, as it's a fairly simple concept, you shouldn't have too much trouble creating one yourself. Firstly have a read through the datasheet for the module: http://www.sparkfun.com/datasheets/Wireless/General/RMCM01.pdf The HR pin of the RMCM01 is connected to the "user button" pin of the shimmer (i.e. pin 2.0 on all shimmer varieties). So what you want to do is make this pin an input, enable the interrupt on this pin and when this interrupt is triggered record the time (any timer local to the shimmer should be of sufficient resolution). You can then either transmit this time directly, or else calculate the time difference between two subsequent heart beats on the shimmer and transmit this. Either way it will then be very easy to calculate the beats per minute on the PC. Mike On Wed, Mar 20, 2013 at 1:25 PM, Ryan Annis <[email protected]> wrote: > Dear All,**** > > ** ** > > I have an old demonstrator using the SPAN module, Shimmer ECG motes and > code as per the MicroIP example ( > http://www.youtube.com/watch?v=Gu2The7wKZ0). I have now purchased the > Shimmer HR module & strap and would like to incorporate this HR data into > my existing demonstrator.**** > > ** ** > > Could someone please assist me in making the necessary changes on the > motes in order to send the HR data to the base station? Presumably I need > to edit the SixAxisTransmitter code running on the motes to include the > data from the HR module. Assuming the data is sent in the same manner as > before (UDP packets of 7 samples from 6 channels) I will be able to make > changes to my demonstrator code to process the newly included data.**** > > ** ** > > Kind Regards,**** > > Ryan.**** > > ** ** > > P.S. – I am aware this is old and deprecated code, I am just looking for a > quick modification to an existing demonstrator.**** > > _______________________________________________ > Shimmer-users mailing list > [email protected] > https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users > >
_______________________________________________ Shimmer-users mailing list [email protected] https://lists.eecs.harvard.edu/mailman/listinfo/shimmer-users
