![]() |
Re: Inverting the direction of a Motor
Quote:
|
Re: Inverting the direction of a Motor
Quote:
You've received many answers to your question regarding how to reverse the motor in software, but in this case, I'd highly suggest that you implement a mechanical solution so that a software bug can't possibly cause the two motors to run in different directions, or even at different speeds. I would suggest using a single PWM output from the controller to control both of these motors. You can use a PWM "Y" cable to take a single PWM output from the robot controller to two separate victors. There were some of these cables in the kit of parts. Additional ones can be ordered from many different vendors. (See "CABLE-PWM-Y-2PK" at http://ifirobotics.com/accessories.shtml for an expensive source for these cables.) Since your motors are currently turning in opposite directions when given the same PWM value, you'll need to reverse the motor leads on one of the motors. The advantage of using the single "Y" cable to two victors is that it is not possible for a software bug to cause the motors to go in different directions or to run at different requested speeds. In the long run, the extra mechanical effort to eliminate potential future problems caused by the software will be time very well spent. Best Regards, --ken |
Re: Inverting the direction of a Motor
Quote:
I was told that this was a historical limit on the master/slave processor serial bus interplay because xFF was used in the serial transmission sequence to signal the start & ending of a transmitted frame. With the use of INT0 to signal the start of frame transmission on the newer controllers I wonder if there is some other technical reason for continuing to do this (not allowing xFF in the transmitted data frames)? |
Re: Inverting the direction of a Motor
Quote:
|
Re: Inverting the direction of a Motor
Not on the master/slave communication, but on the radio packet traffic between the OI/RC. A double 255/255 flags the beginning of the radio packet data.
Quote:
|
| All times are GMT -5. The time now is 20:24. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi