09-14-2021, 08:47 AM
Dear creators of PhyphoxBLE,
we have decided to use the double acoustic stopwatch for our presentation of waves during the Fête de la Science this year. So it has been modified a little: All indication was assembled to one page and Arduino was equipped with a screen to see directly its measurements and parameters. Also I attempted to add a second parameter to be sent from smartphone to Arduino (the minimum time delay), but it did not work...
So the actual problem is that only second parameter sent pass correctly, the firs one coming as zero (parameters are float). This does not depend on input parameters "offset" and "length" of Bluetooth output. Could you help?
The double acoustic stopwatch is functioning so: At the initial state of Arduino its RGB led is green. On the first clap the smartphone and Arduino start measuring, the Arduino RGB led is blue. After second clap the time measurement are stopped and indicated, the time measured by Arduino is sent via Bluetooth to smartphone and the sound speed is calculated. The Arduino RGB led is becoming red at this moment. After red is switched off after some seconds both smartphone and Arduino can be returned to original state by two more claps and the Arduino parameters (threshold and time delay) are sent via Bluetooth from smartphone to Arduino on the second clap. If Arduino and smartphone are desynchronized the "RESET" button on smartphone can be used. Current indications via Serial connection will be removed in the working version.
With Brest regards.
Mikhail
we have decided to use the double acoustic stopwatch for our presentation of waves during the Fête de la Science this year. So it has been modified a little: All indication was assembled to one page and Arduino was equipped with a screen to see directly its measurements and parameters. Also I attempted to add a second parameter to be sent from smartphone to Arduino (the minimum time delay), but it did not work...
So the actual problem is that only second parameter sent pass correctly, the firs one coming as zero (parameters are float). This does not depend on input parameters "offset" and "length" of Bluetooth output. Could you help?
The double acoustic stopwatch is functioning so: At the initial state of Arduino its RGB led is green. On the first clap the smartphone and Arduino start measuring, the Arduino RGB led is blue. After second clap the time measurement are stopped and indicated, the time measured by Arduino is sent via Bluetooth to smartphone and the sound speed is calculated. The Arduino RGB led is becoming red at this moment. After red is switched off after some seconds both smartphone and Arduino can be returned to original state by two more claps and the Arduino parameters (threshold and time delay) are sent via Bluetooth from smartphone to Arduino on the second clap. If Arduino and smartphone are desynchronized the "RESET" button on smartphone can be used. Current indications via Serial connection will be removed in the working version.
With Brest regards.
Mikhail