This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
drive questions.
#12
(2022-03-25, 08:51 PM)johnm Wrote: 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?uty
It is from 0-100% duty cycle. By default of 50% will reduce power a lot already. You may have to adjust it more to get the lowest power consumption and still have enough to hold the clutch on.
Quote: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?
It has clutch output on the board, but the mosfet and fuse are not populated unless that option is selected.


(2022-03-25, 10:46 PM)NousVoila 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.  
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?
By default led is pin 13, for my motor.ino sketch.

For the led, it will show when commanded/engaged but there is no duty cycle to reduce power consumption to the clutch.
Quote: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.
It uses pwm output. It seems with ibt2 you must set pwm_mode = 2.

For my schematics and scripts, pin 7 is an input end stop for port end of travel... so it would not work for output of anything.

If you want pwm output it needs to be pin 11 because it uses hardware pwm. For on/off only of clutch you can likely wire other pins and modify the code.
Reply


Messages In This Thread
drive questions. - by johnm - 2020-08-28, 03:50 PM
RE: drive questions. - by seandepagnier - 2020-08-29, 09:07 PM
RE: drive questions. - by NousVoila - 2022-03-16, 09:02 PM
RE: drive questions. - by johnm - 2022-03-18, 01:18 AM
RE: drive questions. - by NousVoila - 2022-03-20, 10:44 PM
RE: drive questions. - by Jean-Marc Douroux - 2022-03-22, 02:41 PM
RE: drive questions. - by johnm - 2022-03-23, 04:58 PM
RE: drive questions. - by NousVoila - 2022-03-23, 09:09 PM
RE: drive questions. - by seandepagnier - 2022-03-24, 01:11 AM
RE: drive questions. - by johnm - 2022-03-25, 08:51 PM
RE: drive questions. - by NousVoila - 2022-03-25, 10:46 PM
RE: drive questions. - by johnm - 2022-03-26, 03:57 PM
RE: drive questions. - by NousVoila - 2022-03-27, 05:02 PM
RE: drive questions. - by johnm - 2022-03-27, 07:21 PM
RE: drive questions. - by seandepagnier - 2022-03-26, 03:05 AM
RE: drive questions. - by seandepagnier - 2022-03-27, 07:32 PM
RE: drive questions. - by NousVoila - 2022-03-28, 04:42 PM
RE: drive questions. - by seandepagnier - 2022-03-30, 03:07 AM
RE: drive questions. - by NousVoila - 2022-03-31, 02:52 PM
RE: drive questions. - by seandepagnier - 2022-03-31, 10:12 PM
RE: drive questions. - by NousVoila - 2022-03-31, 10:35 PM
RE: drive questions. - by seandepagnier - 2022-03-31, 11:38 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)