This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Double acoustic stopwatch and speed of sound
#8
Shocked 
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? Huh

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. Cool

       

With Brest regards.
Mikhail


Attached Files
.txt   timer_display3c.ino.txt (Size: 7.37 KB / Downloads: 462)
.phyphox   acoustic_stop_mIv4c(double).phyphox (Size: 11.78 KB / Downloads: 429)
Reply


Messages In This Thread
RE: Double acoustic stopwatch and speed of sound - by solid - 09-14-2021, 08:47 AM

Forum Jump: