|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
To control motor's rotation...
Hi
I'm trying to control the motor's rotation with a button I want the motor to turn certain degrees when a button is pressed so i built a function called MotorDegree, and used For loop to control the rotation. [pwm01 = MotorDegree(p1_sw_trig)] But it appears that the motor's movement (pwm01) doesn't require the button's activation (p1_sw_trig). It turns automatically once the robot initiates. I used If command in the function so that the function runs only if the trigger is pressed (when it's 1 or above 0) What is wrong? |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Invacare control system, UI? | Jacob Morgan | Control System | 0 | 24-10-2004 16:54 |
| PWM and burning out motors | patrickrd | Technical Discussion | 7 | 19-06-2003 15:30 |
| Looking for practice motors & extra tape drive parts? | archiver | 2000 | 1 | 23-06-2002 22:54 |
| "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 |