To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 74
73  |  75
Subject: 
problem with control speed using NQC
Newsgroups: 
lugnet.robotics.rcx.nqc
Date: 
Wed, 21 Jul 1999 06:26:41 GMT
Viewed: 
2096 times
  
Okay,  need some more help.

I have the following code running.  My expectation is that the speed of the
motor would increase but the integer value in the 'Fwd' command doesn't seem
to make any difference.  The motor always runs at full speed.


    Fwd(OUT_A+OUT_C,1);
    Sleep(50);
    Fwd(OUT_A+OUT_C,3);
    Sleep(50);
    Fwd(OUT_A+OUT_C,5);
    Sleep(50);
    Fwd(OUT_A+OUT_C,7);
    Sleep(50);


What am I missing?

Thanks for your help.

Ben



Message has 3 Replies:
  Re: problem with control speed using NQC
 
I've had the same result. It seems an **unloaded** motor always runs at full speed. To explain it to myself, I've theorized that the 'p' (power) in Fwd() and OutputPower() is more akin to force and does not directly control velocity. Waiting for (...) (25 years ago, 21-Jul-99, to lugnet.robotics.rcx.nqc)
  Re: problem with control speed using NQC
 
I think that output power effects the modulation of the motor power. The motor power cycles on and off with the off time being longer at lower power settings. As David stated, this results in the same speed of the motor when it is unloaded for all (...) (25 years ago, 21-Jul-99, to lugnet.robotics.rcx.nqc)
  Re: problem with control speed using NQC
 
The RCX uses pulse-width modulation to control power to the motor. The pulses are between 1ms and 8ms of power during an 8ms interval. In theory, this would result in different power being provided to the motor. The problem is that the motor has an (...) (25 years ago, 22-Jul-99, to lugnet.robotics.rcx.nqc)

6 Messages in This Thread:



Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR