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

Speed-sensor: Fix unreliable rotation direction measurement #26

Closed Jonny999999 closed 9 months ago

Jonny999999 commented 1 year ago

custom speed sensors with optical sensor and encoder disk. The current firmware returns random direction

debug

fix firmware?

fix hardware?

Jonny999999 commented 9 months ago

The signal was fine when measuring with scope, no noise or bugged pulses at all. Issue was with firmware, some pulse-order combinations were simply missing, resulting in seemingly random behavior.

final fixes to work reliably in: 5b198824f2d7280fd3c6c5af6ded1b9aa8442d7a