data collection
thank you for your code. but i have some questions for this project.
- Too many duplicate data values are measured. (per second) how can i modulate this problem?
- How can I save the measured data to a file such as .txt or .csv?
I'm beginner of this project, so i need your help.
Hello,
-
The polling code (which sits on a thread) that reads the values from the device is not timer based. That is, it will read as and when the thread has context. You could put in a timer to read at set intervals, but I think this would cause too much "jitter" and you may lose fluidity when moving the device about. Alternatively you can read the values and if the newer read values are lets say 5% or more off from the previously read values, then you know these values are not duplicate. This should cut down on the frequency of obtained values. I don't believe these changes should be in the core library as these routines should remain low level.
-
Numerous ways of doing this. Best use the csv writer from the standard library: https://docs.python.org/3.4/library/csv.html
I plan to update the library at some stage and introduce some of these things above. Hope this helps!
On Fri, Jul 20, 2018 at 2:56 AM, rjsdn102 [email protected] wrote:
thank you for your code. but i have some questions for this project.
- Too many duplicate data values are measured.
- How can I save the measured data to a file such as .txt or .csv?
I'm beginner of this project, so i need your help.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/fundiZX48/pymotiontracker/issues/6, or mute the thread https://github.com/notifications/unsubscribe-auth/AbXRvHj2TevaW4KDqlkHmilc6uBz3Ugxks5uITjDgaJpZM4VXVmD .
Thank you for your advice. I have one more question, sorry. I want to use 2 or 3 more module in real time but I can use only one module with bluetooth. Do you have an idea for using 2 or 3 more module by bluetooth in real time?
I always thank you for this project.
Pleasure. I need to get back to you on this. I am currently moving house so pretty busy at the moment. I aim to revisit the entire project soon. Off hand it should be possible as all you must do is create 3 tracker objects with 3 separate UUID and read from them. Does this make sense?
Thanks
On Thu, 26 Jul 2018 9:07 am rjsdn102, [email protected] wrote:
Thank you for your advice. I have one more question, sorry. I want to use 2 or 3 more module in real time but I can use only one module with bluetooth. Do you have an idea for using 2 or 3 more module by bluetooth in real time?
I always thank you for this project.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fundiZX48/pymotiontracker/issues/6#issuecomment-408013372, or mute the thread https://github.com/notifications/unsubscribe-auth/AbXRvJtI-lzufTyVf35FBYvN4KDLj5itks5uKXi9gaJpZM4VXVmD .
I understand your situation. I want to connect three module(hc-06) to only one arduino. Maybe, there is other device for connecting multiple modules but i don't know that. If you have an idea, please tell me what is. thank you.