Hello Gautier.
My last version for you. I had a problem to send the threshold value to Arduino from smartphone, but it works now. I do not understand "PhyphoxBLE::configHandler=&receivedData;" and I add to the reinitialization simply "receivedData();" (timer_dec30d.ino).
Now the experiment works so: 2 claps (1 over the Arduino, one over the smartphone, or vice versa) to measure the sound speed; 30 seconds the Arduino builtin led blinks and then remains in on state (the time you enjoy the results); 2 claps to return both watches to the initial state (the builtin led is off). No need to touch neither the Arduino nor the smartphone.
I think that it would be nice to control the Arduino (nano 33 ble sense) by light of different colors (https://phyphox.org/forums/showthread.php?tid=1254) ..
I would be happy to see your version of the sound speed experiment.
with Brest regards
Mikhail
My last version for you. I had a problem to send the threshold value to Arduino from smartphone, but it works now. I do not understand "PhyphoxBLE::configHandler=&receivedData;" and I add to the reinitialization simply "receivedData();" (timer_dec30d.ino).
Now the experiment works so: 2 claps (1 over the Arduino, one over the smartphone, or vice versa) to measure the sound speed; 30 seconds the Arduino builtin led blinks and then remains in on state (the time you enjoy the results); 2 claps to return both watches to the initial state (the builtin led is off). No need to touch neither the Arduino nor the smartphone.
I think that it would be nice to control the Arduino (nano 33 ble sense) by light of different colors (https://phyphox.org/forums/showthread.php?tid=1254) ..
I would be happy to see your version of the sound speed experiment.
with Brest regards
Mikhail