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

Stepper motor's reset function runs on MCU boot, not when battery voltage is present and can actually move the stepper #6458

Open
ggurov opened this issue May 3, 2024 · 1 comment

Comments

@ggurov
Copy link

ggurov commented May 3, 2024

Describe the bug
"Force parking every restart" function of the stepper motor idle runs every MCU restart. This is only useful if MCU is powered from car first. Since we power MCU from usb before car is started, this effectively skips init procedure, result in inconsistent starts due to idle valve being whatever it was.

Hardware

  • Board: disco
  • Engine info: anything with a stepper idle valve

To Reproduce
Steps to reproduce the behavior:

  1. Plug USB into controller - 12v not present to power actuators
  2. Watch idle valve not move
  3. Wait sufficient amount of time for init procedure to be over ((steps +extra steps) * reaction time)
  4. Provide 12v ignition
  5. Watch stepper not move

Expected behavior
Stepper Idle valve to be parked when it can actually move

Screenshots
image

Additional context
There should be an option: "delay stepper park until Vbat > X level" where X is either hardcoded at lets say 7v or user-settable.

@ggurov ggurov changed the title Stepper motor's reset function runs on MCU boot, not when battery voltage is present. Stepper motor's reset function runs on MCU boot, not when battery voltage is present and can actually move the stepper May 3, 2024
@ggurov
Copy link
Author

ggurov commented May 3, 2024

additionally, stepper valve should re-init position and time Vbat goes from <5v to that X level above, either 7v or user-settable as there could be missed steps, and such loss of Vbat would indicate key off -> key on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant