Why is the PWM pin outputting anything if the input value is 0? You should try commenting out tthe line with hpg.pwmgen.00.out.00.value pin and setp that pin to 0.0. Zero is zero no matter how you scale it. I don't know if maybe your meter is seeing some type of noise on the board or something else is wrong.
You don't have to worry about getting it perfect, When the PID is connected it will constantly adjust the output to try to satisfy the input as long as it is setup correctly. That is you you cannot do these tests with it connected in the hal file. On Wednesday, January 1, 2020 at 8:37:01 PM UTC-5, Aurelien wrote: > > Increase scale allow me to found some point with 0v output for 0RPM > resulting other value also affected (i think this is possible to tune the > controller for make correct speed in both direction) > > with > PWM_PERIOD = 20000000 > PWM_OUTPUT_SCALE = 121 > isolator Zero to minimum > > at full reverse (-55 on "motion.spindle-speed-out-rps") the > "offset.pwmgen.out" pin is at 0, and your PWM is at ~0%, or~1.1v > output -10.2v > at 0 speed (0 on "motion.spindle-speed-out-rps") the "offset.pwmgen.out" > pin is at 55, and your PWM is at ~50% or~12.9v output 0/-0.01v > at full forward(55 on "motion.spindle-speed-out-rps") the > "offset.pwmgen.out" pin is at 110, and your PWM is at ~100% or~22.8 > output 8.6v > > > > Thanks for the suggestion about testing other output pin !! > -- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit --- You received this message because you are subscribed to the Google Groups "Machinekit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/machinekit/33ab3007-ee80-4a09-aef7-dac3309c495e%40googlegroups.com.
