Knowledgebase Home | Contact Knowledgebase Home | Contact
Search the Knowledgebase Browse by Category
How can I gradually increase the speed of my motors (i.e., make my car accelerate slowly) in NXT-G?
The only way to adjust the power level during a program is to have it wired to some sort of varying function. The motor block, like many blocks in NXT-G, has a pull-down tab. One of the options is the power meter. This wire input accepts a value from 0-100, which is the same as the range of any of the sensors. As a result, it is quite easy to adjust the speed of the motors as a function of some other value.

The program below adjusts the motor speed depending on the value of the sonic sensor, which is useful if you do not want to run into a wall! You can use any number of other functions as well including the timer block, the light sensor block, or the sound block. These values can be combined, or you can use math blocks to add, subtract, multiply, or divide these values to suit your needs.



Visitor Comments
No visitor comments posted. Post a comment
Related Questions
No related questions were found.
Attachments
No attachments were found.

Powered by ActiveKB Knowledgebase Software