Pololu G2 current sense output for Spindle load meter?

More
31 Mar 2019 14:57 #130034 by 3D-Master
is it possible, to only output the peak value? because the filtered value is approx. half of the peak value. Or maybe i could just scale it up

Please Log in or Create an account to join the conversation.

More
03 Apr 2019 14:51 - 03 Apr 2019 14:52 #130199 by andypugh
You could write a custom HAL component, but AFAIK there is no built-in peak-hold in HAL.

(Note that you don't want a pure peak-hold, you want a peak-hold with reset)

You could build it from standard blocks, but it would be a bit ungainly.

1) Use ddt to get the rate of change
2) use abs and use the is-negative output as the peak trigger.
3) Use a mux2 with the output wired to the in0 input as a peak-holder
4) pass the is-negative to an edge set to a very short time to trigger the mux select to take a new sample.
Last edit: 03 Apr 2019 14:52 by andypugh.

Please Log in or Create an account to join the conversation.

Time to create page: 0.061 seconds
Powered by Kunena Forum