|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#6
|
||||
|
||||
|
Re: pwms
I think what your are asking is how to turn on a motor. Just setting the variable pwm01 will turn on (or off) the motor connected to the first pwm output. The reason all you need to do is set it is because that variable is returned to the master controller and it "writes" it to the register that turns on the motor.
In the default code its just set to the value from the joystick: pwm01 = p1_y; Note: to turn a motor off, set it to 127. Values less than 127 are reverse, values greater than 127 are forward. Its range is 0-255. You can see all the variable you get for input and that you can set for output in the header file ifi_aliases.h Brian |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Good-looking PWMs: is it possible? | Chriszuma | Electrical | 2 | 10-02-2006 00:25 |
| PWMs Active in Programming Mode? | ldeffenb | Control System | 4 | 14-01-2006 07:35 |
| pwms for relays | reilly | Motors | 3 | 18-02-2005 15:02 |
| pwms 13 and 15 in autonomous mode | Chris Bright | Programming | 1 | 24-02-2004 22:25 |
| Mapping Buttons to PWMs | actorindp | Programming | 9 | 10-02-2004 11:11 |