Arduino-FOC icon indicating copy to clipboard operation
Arduino-FOC copied to clipboard

Add VIN voltage sensor ::class

Open Juanduino opened this issue 3 years ago • 2 comments

In order to use a brake resistor, the lib need a VIN voltage class and actuator. (analog read pin for voltage divider and pwm out pin for MOSFET turn on turn of resistor burn pwm freq. The PWM frequency should not necessarily be the same as phase PWM frequency.

Juanduino avatar Nov 03 '21 10:11 Juanduino

86x49

Juanduino avatar Nov 03 '21 10:11 Juanduino

I think it will be useful to have a 1-input analog in class, for bus current sensing or battery voltage monitoring, or as you suggest for a brake resistor.

In terms of the PWM and control of the brake resistor, this sounds more difficult, requiring deeper integration into the library.

runger1101001 avatar Nov 27 '21 01:11 runger1101001