-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversion between encoder HARP data and real units #80
Comments
Application note for the specific chip on H2: https://ww1.microchip.com/downloads/aemDocuments/documents/OTH/ApplicationNotes/ApplicationNotes/doc8109.pdf |
Confirmed with @EleonoraAmbrad today, the signal from H2 comes from the decoded quadrature counts from the chip's integrated decoder. Datasheet for the encoder says 4000 counts per revolution, confirmed that the main shaft turns a complete revolution for every 4000 units in Bonsai. To convert this to main platform angle we need to know effective gear ratio between main shaft and platform. |
Hi @ederancz, @EleonoraAmbrad - following our conversation on Monday, can I mark this issue as closed? To clarify the main points from Monday:
|
Hi @EleonoraAmbrad , can you please get Iakov to check the encoder counts and motor pulses from the recording? |
Hi @RoboDoig , has this recording been saved? We could not locate it with Nora |
Ah sorry I didn't fully parse the last message from @ederancz . We did the test on a minimal debug workflow with no logging so nothing was recorded, we were just monitoring the visualizers. |
The workflow we used is called DirectPulsesTest.bonsai. It just writes the desired pulses (6400) to the motor driver on a key press. If you want to record you could just dump the H2 events to a binary file with MatrixWriter. Interpreting the encoder value should be straightforward. For the motor pulses, you will get a HARP timestamped event when the number of pulses is written (register 33) though you already know how many pulses were written as it's set in that workflow directly. |
I will do that on Monday together with the motion cloud test! |
@EleonoraAmbrad I updated DirectPulsesTest.bonsai to log data - in the ae-dev branch |
Need to understand how the encoder value from HARP H2 can be converted to a real-world angle.
The text was updated successfully, but these errors were encountered: