Difference between revisions of "Itty Bitty Buggy: Car Movement Tutorial (mDesigner)"
(→Motors) |
(→Motors) |
||
Line 34: | Line 34: | ||
=Motors= | =Motors= | ||
'''Motor''' blocks are blocks which controls the motors on Buggy Base directly. This gives the user the ability to fine tune the behavior of the motors. The motors are referenced as Motor "A" or "B" depending on the side it resides. These blocks can set the movement direction of the motors ('''Motor - Set Speed''' block) or brake / stop the motors ('''Motor - Stop''' block). | '''Motor''' blocks are blocks which controls the motors on Buggy Base directly. This gives the user the ability to fine tune the behavior of the motors. The motors are referenced as Motor "A" or "B" depending on the side it resides. These blocks can set the movement direction of the motors ('''Motor - Set Speed''' block) or brake / stop the motors ('''Motor - Stop''' block). | ||
+ | ==Block: Set Speed== | ||
+ | The motors speed and direction can be controlled with the '''Motor - Set Speed''' block. | ||
+ | |||
+ | {| class="wikitable" | ||
+ | | | ||
+ | This block sets the speed of the selected motor. | ||
+ | |||
+ | :[[File:IBB mDesigner Motor Block Set Speed.png]] | ||
+ | |||
+ | :*'''Motor''' - select motor (either '''A''', '''B''', or '''AB''' (both)). | ||
+ | |||
+ | :*'''Speed''' - rate to set the selected '''Motor'''. A value between 0 and 255. 0 being off, 255 being full speed, and 127 being half speed. | ||
+ | |} | ||
+ | |||
+ | ==Block: Stop== | ||
+ | The motors can be stopped with the '''Motor - Stop''' block. | ||
+ | |||
+ | {| class="wikitable" | ||
+ | | | ||
+ | This block sets the speed of the selected motor. | ||
+ | |||
+ | This block stops the selected motor. | ||
+ | |||
+ | :[[File:IBB mDesigner Motor Block Stop.png]] | ||
+ | |||
+ | :*'''Motor''' - select motor to stop (either '''A''', '''B''', or '''AB''' (both)). | ||
+ | |} |
Revision as of 23:23, 29 October 2018
Car
Car blocks are blocks which controls both of the motors at the same time in order to move the forward / backwards (Car - Move block) or turn left / right (Car - Turn block). These are convenience functions designed to be "general purpose". Motors can be controlled directly with the Motor blocks. See section #Motors.
Block: Move
The Car's movement direction can be controlled using the Car - Move block.
Function: This blocks controls the Buggy Base to move either forward or backwards at a certain speed for a specified duration.
|
Block: Turn
The Car can be set to turn using the Car - Turn block.
Function: This blocks controls the Buggy Base to turn either right or left at a certain speed for a specified duration.
|
Motors
Motor blocks are blocks which controls the motors on Buggy Base directly. This gives the user the ability to fine tune the behavior of the motors. The motors are referenced as Motor "A" or "B" depending on the side it resides. These blocks can set the movement direction of the motors (Motor - Set Speed block) or brake / stop the motors (Motor - Stop block).
Block: Set Speed
The motors speed and direction can be controlled with the Motor - Set Speed block.
This block sets the speed of the selected motor.
|
Block: Stop
The motors can be stopped with the Motor - Stop block.
This block sets the speed of the selected motor. This block stops the selected motor.
|