(2022-03-25, 08:51 PM)johnm Wrote:I am very happy today, I managed to get the clucth to work. I built a small board (mosfet) with the information you gave me. The only problem is that I have to use Timo Birnschein's motor.ino and modify it a bit by Andreas29. Pin 11 is not defined in the motor.ino. I use ''ENGAGE_LED_PIN 7 // led is on when engaged'' to engage the clutch. So I don't have access to the PI function for pin 11. I also can't confirm if the different servo settings are calibratable.(2022-03-24, 01:11 AM)seandepagnier Wrote: The newest motor.ino codes support pwm on the clutch output, and the duty cycle is configurable in the pypilot settings. So it does apply full power to the clutch for a few hundred milliseconds, but after reduces to pwm with set duty cycle to drop power.
Sean
Good to hear you have pwm clutch in the new motor.ino :-)
Searching found your post with this:
pypilot_client servo.clutch_pwm=50
if pypilot is running
if not running edit ~/.pypilot/pypilot.conf
Does pypilot need to be updated for this to work?
Is that percent or with respect to 255 on full?
Looking at the photo of the new motor controller in your store I do not see clutch output.
Is it on the board or is the $8 clutch option external?
John
I tried to change pin 7 of the motor.ino for pin 11 in pins.have a definition but it doesn't work, it doesn't change state. What do you think? What should I do to use the latest motor.ino and not have badvoltage_fault? Or use Timo's motor.ino with pin11? or not? or use the last one?
Also if I use the latest motor.ino, I get a badvoltage error because Andreas' design board probably does not use the same resistor for shuts! and even if I disable the current sensor.
I tried to change pin 7 of the .ino motor to pin 11 in pin.h but it doesn't work, it doesn't change state.
What do you think? What should I do to use the latest .ino motor and not have badvoltage_fault? Or use the timo motor.ino with pin11?
I think the driver will be usable in this configuration.
Small video attached sorry for my bad english https://1drv.ms/v/s!AqRtiecG3vcx0Svc-gNGaBm3OX7-
Thanks for your help
Translated with www.DeepL.com/Translator (free version)
Pierre