Jonny999999 / armchair_fw

Firmware for a homemade automated electric armchair using an esp32 controller on a custom pcb
https://pfusch.zone/electric-armchair-v2
0 stars 0 forks source link

motor driver freezes at duty restart #18

Closed Jonny999999 closed 1 year ago

Jonny999999 commented 1 year ago

very annoying bug with motor driver: sometimes a motor seemingly randomly freezes for a few seconds, then immediately starts at current set duty again - feels very bugged

especially when trying to add angle threshold (snap to 1 / 0) for tighter turn radius so one motor is off while turning this bug basically occurs every time -> inner motor does not start again after curve

current workaround

when 1 motor frozen, release joystick so both motors are off, then go again

observations

best for testing:

common situations

  1. both motors forward

  2. motor1 duty to 0

  3. motor1 duty positive ==> motor1 freezes / stays off ==> after a few seconds it starts

  4. both motors to 0

  5. both motors forward ==> both motors respond again


  1. both motors forward
  2. both motors 0
  3. both motors forward => one or both motor freeze for (shorter than usual) time then start at current duty

ideas / theories

things tried

- leave duty on in idle
- never switch do idle
- always stay in FWD with some duty on
- reduce max duty to 60%

same issue persists 1 motor gets close to 0 duty while other is on it freezes

todo

Jonny999999 commented 1 year ago

see created forum post: https://www.mikrocontroller.net/topic/558668 apparently hardware/design issue with drivers... workaround might be using the planned brake relays, see V2.1

However no longer relevant, due to switch to other professional driver (Sabertooth2x60a) in V2.2