AdventureData / radicl

Command line interface & API for using the Lyte probe. Users can take measurements, configure and update the probe with this software
https://adventuredata.com/
Other
3 stars 0 forks source link

Accelerometer data shifting unexpectedly #6

Closed micahjohnson150 closed 4 years ago

micahjohnson150 commented 4 years ago

Description

Sometimes when I get accelerometer data from the probe this is what I see. It seems to me that the accelerometer data is shifting? Not sure. Here is what it looks like: acceleration_data_drop

What I Did

In the above measurement I lightly move the probe side to side with the tip on the ground.

arothenbuhler commented 4 years ago

Do you have a data file that you can send me? I'd like to take a look at the raw numbers. Have some ideas...

micahjohnson150 commented 4 years ago

I don't but I will create one and send it. Are your ideas related to radicl or firmware?

On Tue, Feb 25, 2020, 7:56 AM Adrian Rothenbuhler notifications@github.com wrote:

Do you have a data file that you can send me? I'd like to take a look at the raw numbers. Have some ideas...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/AdventureData/radicl/issues/6?email_source=notifications&email_token=AB2KWRLCE2AGNC45FTY5KPLREUWR3A5CNFSM4K3KEXHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEM4IRUQ#issuecomment-590907602, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2KWRLCYAQPAZG5A52DZIDREUWR3ANCNFSM4K3KEXHA .

arothenbuhler commented 4 years ago

They are related to firmware. It could be an overflow or data type issue, so I'd like to check the raw data. If the change is gradual over 2-3 samples, then that would indicate real and correct data, but if the change is sudden and drops over an order of magnitude then that indicates a possible overflow/data type issue.

One thing that I would like to have more clarification on is what the real problem actually is. It looks like there are a lot of very dramatic moves up and down on the blue line. Is that the issue? Or is it that the blue line (X-Axis) ends at a much different level?

Also, what does it look like if you do the same experiment in the air? Meaning that the board/probe doesn't actually touch a table. I'd expect the graph to be a little smoother.

micahjohnson150 commented 4 years ago

Here is me moving it up and down.

Figure_1

2020-02-25--220308.txt

micahjohnson150 commented 4 years ago

@arothenbuhler I got you the putty log version of this. Puttylog attached showing settings.

acc_putty_log.txt

putty_accelerometer_data

arothenbuhler commented 4 years ago

Haha, I know what the issue is... I'm assuming the graph you just posted is based on the attached putty log, right? If you look at the numbers, they are positive and negative, which means signed data type. When it's sent across with the API and then reassembled on the other end, it's forced into a signed data type.... My mistake, sorry. Only affects radicl, probe FW is fine. I'll try to get to this ASAP. Can you confirm though that the above graph is what you would expect?

micahjohnson150 commented 4 years ago

The data is directly from the log. I wrote a little script to quickly plot it. The data is what I expected for the movement. I am not sure on the range of values in the Y axis of the plot. Do you mean forced into an unsigned in the API?

arothenbuhler commented 4 years ago

Yes, the API forces it into an UNsigned data type. Sorry for my typo. I'm assuming that the Y-axis was actually the Z-axis the way you held the probe. The data should be post-processed a bit to get it into the correct range. I have been putting this off for too long and will add it to the API. What you're seeing on the Y-axis is a -1g (normal gravity) pull towards earth. I am making the assumption that you moved the probe horizontally.

micahjohnson150 commented 4 years ago

yeah I pivoted it side to side with the tip on the ground with the pole held vertically.