|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Reversing motors
We are using a tank type driving system. How do I make the motors on one side go in reverse.
|
|
#2
|
|||
|
|||
|
Re: Reversing motors
pwmX = 255 - pwmX
Put that at the end of your code. Or you can switch around the wires going to the speed controller. |
|
#3
|
||||
|
||||
|
Re: Reversing motors
It gives me a syntax error
|
|
#4
|
||||
|
||||
|
Re: Reversing motors
You need to substitute the X for the number.
An easier way would be to just take the motor wires running to the Victor speed controllers and switch them, plugging the red where the black was, and the black where the red was. Just make sure to do this for the wires going from the motor to the Victor, not from the Victor to the panel. |
|
#5
|
|||
|
|||
|
Re: Reversing motors
by pwmX I mean pwm01.. 16 depending on which you are using.. Without seeing the actual code, I'm not sure why it would cause a syntax error.
|
|
#6
|
||||
|
||||
|
Re: Reversing motors
Oops, I put the code in the wrong place.
Now it works Thanks for your help. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Looking for practice motors & extra tape drive parts? | archiver | 2000 | 1 | 23-06-2002 22:54 |
| Suppose you want seat motors... | archiver | 2000 | 0 | 23-06-2002 22:50 |
| "Motors and Drive train edition" of Fresh From the Forum | Ken Leung | CD Forum Support | 6 | 29-01-2002 12:32 |
| Drill Motors | TF8 | Motors | 19 | 12-12-2001 13:13 |