n3roGit / DPVControl

Your DIY diving vehicle controlled by ESP32
GNU General Public License v3.0
5 stars 1 forks source link

[FEATURE] Emergency stop - PRIO 2 #19

Closed n3roGit closed 9 months ago

n3roGit commented 10 months ago

We need to monitor the value for getVescUart().data.rpm while the motor is running. If it is not approaching the desired speed as expected or if it suddenly stops, we assume that something has jammed. the motor must then be stopped immediately.

You could also use getVescUart().data.avgInputCurrent, as a strong fluctuation in the current consumption could also be an indication.

happyherp commented 10 months ago

I put this in the motor_by_rpm branch. 36f21eea86435f680d1b420bdd84f893a5a3935c

n3roGit commented 10 months ago

https://github.com/n3roGit/DPVControl/issues/37

n3roGit commented 10 months ago

I put this in the motor_by_rpm branch. 36f21eea86435f680d1b420bdd84f893a5a3935c

Whats happening when motor is jammed on startup? In this case ampere rises and we have no RPM

n3roGit commented 9 months ago

.