Hi guys, currently my project involves:
2 x uno boards
2 x hc05 modules, one master one slave
a bunch of led lights controlled by 1 uno board with the slave hc05
a pulse sensor connected to 1 uno board with master hc05
the current idea is pretty simple, users use the pulse sensor that's connected to the master hc05, then the hc05 sends control signals (1 for saw heartbeat, lights should pulse and 0 for did not see heartbeat, do not pulse)to slave hc05 that controls the led lights to pulse with the pulse readings.
now I want to update this program so that I can use max map connected to the slave hc05 and Arduino Uno to synthesize a heartbeat sound with the pulse sensor readings as amplitude envelope. Was wondering how I can achieve this.
The problem right now is that in order for max to generate a heartbeat sound, it needs all the readings of a pulse, not a control signal (0 or 1), which is currently what the slave hc05 and board is getting. However, if the master sends all the pulse sensor readings, the slave side will need to process the readings to find a heartbeat, which was taken care of by pulsesensorplayground.h on the master Arduino Board. Any ideas how to tackle this?
Thanks