2022-03-31, 02:52 PM
(2022-03-30, 03:07 AM)seandepagnier Wrote: did you use my sketch:
https://github.com/pypilot/pypilot/blob/.../motor.ino
It uses pin 11 for clutch.. however it uses a lower frequency pwm for the regular motor controllers as they dont have a mosfet driver for the clutch mosfet...
You may need to study the code and compare differences more since you are using your own hardware. Would be nice if you did get it working with my sketch to know the exact differences so it can be integrated somehow.
Yes, I tried your sketch but I have to uncheck this condition to not have badvoltage_fault :
if(volts <= 900 || volts >= max_voltage) {
clear();
flags |= BADVOLTAGE_FAULT ;
} other
flags &= ~BADVOLTAGE_FAULT ;
I have connected my daughter board with my mosfet assembly according to the following scheme (controler mod)and it doesn't work
And if I use your clutch sketch (Your controler), it works
Q4 = ?? which mosfet type N
Could it be that your schech clutch is for electric cylinders where the clutch is a friction clutch. I believe, but need to check, that the clutch on my hydraulic cylinder is a knife gate valve; it is either open or closed. I'll get back to you after checking. I'll get back to you after checking. And if it is, I don't need the radiometry from tinypilot?
Pierre
Translated with www.DeepL.com/Translator (free version)
Pierre