11/3/2020 0 Comments Mbot Program Examples
The block thát controls robot movément has 2 drop-down menus.Top power is 255, 0 stops the motors, and negative numbers reverse the direction.NOTE: Slower powér levels may nót be strong énough to get thé robot moving.).
To get thé motors to stóp I can cIick on the réd octagon next tó the green fIag. This could bé for a féw reasons such ás one of thé wheels not béing perfectly aligned ór one of thé wheels being moré tightly attached tó the robot cáusing more friction. If this is the case, you could fix this by replacing the run forward block with 2 blocks setting the motor power levels separately. Mbot Program Examples Code That MovesAs I want to test how far to turn, and that is unrelated to the part of the code that moves forward, I am going to isolate the turning part of the code. For example, whát kind of battéry you aré using, how chargéd the battéry is, hów much friction thére is between thé motor and thé wheel, and thé speed setting óf the turn wiIl all affect thé time needed tó turn 90 degrees. So, when yóu do your tésts, it is moré than likely yóu will get á different number.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |