Skip to content
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

"sensorless" cycle detection #30

Open
simonjamain opened this issue Dec 5, 2024 · 0 comments
Open

"sensorless" cycle detection #30

simonjamain opened this issue Dec 5, 2024 · 0 comments
Labels

Comments

@simonjamain
Copy link
Member

simonjamain commented Dec 5, 2024

Objective: The mosfet can detect cycles without sensing the movement of parts

ideas

Based on the fact that the motor power draw fluctuate according to spring compressions, we mays be able to detect cycles by monitoring the current.

Note: monitoring the voltage can be enough as it usually drops with power draw.

Here is a test i made using a current and voltage sensor during airsoft replica cycles (with 8.4 nimh or 7.4 lipo I don't remember)
Image

(blue: current, red: smoothed average, yellow: voltage)

how could we detect cycles ?

We could do spike detection.

We could also used the slope of the current curve.

and all of this need adequate smoothing

Resources

http://coertvonk.com/sw/embedded/arduino-pitch-detector-13252/6

sketch (probably) used to produce the graph currentsensor.ino.txt

@simonjamain simonjamain converted this from a draft issue Dec 5, 2024
@simonjamain simonjamain changed the title cycle detection from current draw "sensorless" cycle detection Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

1 participant