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.

Illuminance vs. distance with SensorTag
#1
My telephone has only accelerometer (with g), so I have to use a SensorTag. An additional advantage is that it is more simple to attach the SensorTag (CC2650 of Texas Instruments) to a bluetooth mouse (see photo). A difficulty, that I could not solve in the phyphox program, is a difference between the time intervals of the SensorTag and the mouse. Their data were saved in different files (zipped together) and treated by a Python code. A rather small light diode lamp was used and the result is not bad.
           


Attached Files
.phyphox   MI _ HID Mouse and Intensity.phyphox (Size: 12.71 KB / Downloads: 14)
Reply
#2
Beautiful data and nicely done. It is great to see all these well-designed contributions.

To link data from sensors that are not synchronized, the following workaround helps with "slow" data rates like in this case:
Let both sensors write to a buffer of size 1 and set a sleep rate for the analysis process so that it is executed at approximately the rate that you would like to get. Then take the data from both buffers without deleting their content (disable the clear function) and append them to a larger buffer each. This way, you always append the latest value from both buffers and if one has a new value, it will be paired with copy of the old value from the other sensor as it is still in the buffer. You can also generate a matching time axis using the timer-module. A downside to this approach is that values may appear multiple times or might be missed - depending on how you choose your sleep-value compared to the sensor rate. But for this type of experiment this does not really matter.

In any case, I will bump "write a proper interpolation function" a bit further up on my todo list Smile

One other note to anyone who wants to try this experiment:
You will not be able to do any experiment with a Bluetooth mouse on iOS. The iPhone filters the entire HID service and phyphox cannot even see that this device offers such a service. Similar to when the mouse is used as an actual cursor on Android, but it cannot be deactivated on iOS. Therefore it cannot be accessed from our generic BLE interface, but would require an explicit implementation for pointer devices.
Reply
#3
Thank you for your suggestions and comments, Sebastian!

I will definitely try the "slow" data acquisition to allow the phyphox program to present the final figure by itself. It would be nice to add a possibility to phyphox to change the sleep time as a parameter of the program.

Another "problem" which I have not mentioned is that here the mouth motion is not registered when it does not move, while the light intensity is recorded continuously. For the moment the program is just a sum of two independent blocks developed independently. Some changes have to be done for their better integration together. For this I have to understand better the existing program for the mouse.

And I am awaiting for the "proper interpolation function" even while I do not think that phyphox should be overloaded with additional functions. I prefer to use phyphox for collection of data which can be treated somewhere else.
Reply
#4
Hi solid,

thanks for sharing! I have tried to adapt the experiment to my Logitech mouse - unfortunately without success. Which mouse did you use, the microsoft mobile 3600? Thanks for your help and best regards,

Sebastian
Reply
#5
Bonjour Sebastian

Exactly, I had the same problem with my old Logitech mouse, so I bought the Microsoft Bluetooth mouse 3600.
I have still the problem to synchronize it correctly with the slow sensor tag. Also for measurements of the magnetic field of a permanent magnet.. (see Magnétisme (in French) https://phyphox.org/forums/showthread.php?tid=832 )
Reply
#6
Little update:
I just submitted a beta version for the next phyphox update 1.1.6 (well, it is more alpha than beta as there are not even all features for this version included), which includes a new interpolation module. This is not (yet) supported by the editor, but if you are comfortable with directly editing XML, you can try to use this module for synchronization. The idea is to interpolate the data from one sensor at the times at which data from the other has been taken or to interpolate both at predefined intervals. (https://phyphox.org/wiki/index.php/Analy...nterpolate)

You can join the public beta test at https://phyphox.org/download/. The Android version should be available within an hour (maybe a bit longer due to caching of the Play Store app) and the iOS version right after Apple has reviewed this version (probably tomorrow).
Reply


Forum Jump: