|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Disabling PWM outputs w/out disabling entire bot.
We have been operating a mobile T-shirt launcher based on the IFI control system (we're using one from 2008, so it's the "2004 control system").
Although we already have a disable switch implemented on the control board (using the Competition Port on the OI), it would be nice to have an additional "disable drivetrain" mode that leaves the relay outputs operational (so the compressors are still running). Since the joysticks are essentially uncalibrated (all our calibration is done with the victors), outputting a value of 127 does not guarantee a neutral output from our victors. Instead, I would like to disable the PWM outputs entirely. The only way I've found to do this is to move the drivetrain outputs to PWM 13 and PWM 14, then make the call to Generate_Pwms() conditional on the state of the "drivetrain disable" switch. Is there a better way to do this? Thanks for any help. |
|
#2
|
||||
|
||||
|
Re: Disabling PWM outputs w/out disabling entire bot.
Or, you could attach the victors to a separate fuse panel with its own breaker so that you could turn on the main breaker for control system/ spike/ relay power while the victors would need both switches to be 'on' to receive power from the battery.
|
|
#3
|
|||
|
|||
|
Re: Disabling PWM outputs w/out disabling entire bot.
Quote:
Thanks for the help. |
|
#4
|
|||||
|
|||||
|
Re: Disabling PWM outputs w/out disabling entire bot.
You could use some small relay. http://www.mouser.com/ProductDetail/...KkytrQ6uppE%3d might be a bit overkill, but I'm sure you could find something similar.
|
|
#5
|
|||
|
|||
|
Re: Disabling PWM outputs w/out disabling entire bot.
Quote:
Let me add an additional constraint: I'm looking for a purely software solution (for the sake of space, reliability, and simplicity). Thanks for the help. |
|
#6
|
||||
|
||||
|
Re: Disabling PWM outputs w/out disabling entire bot.
If you calibrate the victors such that 127 is neutral by using code rather than joysticks to calibrate them, why couldn't you just have a toggle switch on the OI to lock all pwm channels at 127?
|
|
#7
|
|||
|
|||
|
Re: Disabling PWM outputs w/out disabling entire bot.
Quote:
That is a good idea, though; I'd just rather not calibrate them in software. Thanks for the help. Edit: To clarify, I think it's the "correct" solution, but I also think that it's more difficult to maintain than my "solution." Last edited by flameout : 20-09-2011 at 00:00. |
|
#8
|
||||
|
||||
|
Re: Disabling PWM outputs w/out disabling entire bot.
Quote:
To fix the joystick drift issues, designate a button that, when pressed, makes the current value the new center and, thus, send 127. Offset from center determines offset from 127. Last edited by PAR_WIG1350 : 20-09-2011 at 00:19. |
|
#9
|
|||
|
|||
|
Re: Disabling PWM outputs w/out disabling entire bot.
Quote:
Quote:
What would the toggle switch be used for? |
|
#10
|
|||||
|
|||||
|
Re: Disabling PWM outputs w/out disabling entire bot.
Why not calibrate the Victors, then have a switch that sets all outputs to 127 rather than the joysticks.
Trivially simple. |
|
#11
|
|||||
|
|||||
|
Re: Disabling PWM outputs w/out disabling entire bot.
I'm starting to think that you're over-complicating the issue, then complaining when the solutions are complicated. No matter how you slice this pie, its going to take a little work, some added parts, or both.
|
|
#12
|
||||
|
||||
|
Re: Disabling PWM outputs w/out disabling entire bot.
Quote:
The toggle switch would tell the robot to ignore the joystick values and send 127 to the victors no matter what as long as the switch is 'on'. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|