Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 150 - 2615_KEC
P. 150

    Step  4   Click on the Settings button in the top-right corner and click on Extensions.

                      Step  5   In the Search box, type Servo and click on the servo library extension to add it to your

                                project.

                      Step  6   Drag the on button A pressed block from the Input block category in the workspace to
                                initialise the program.
                      Step  7   Click on the Servos block, select Continuous servo P0 run at and set the desired speed.
                                Connect it to on button A pressed.

                      Step  8   Drag the on button B pressed
                                block  from the  Input block
                                category  in the  workspace  to
                                initialise the program.
                      Step  9   Click on the Servos block, select
                                Stop servo P0, and connect it

                                to on button B pressed.
                      Step 10  Click  on  Start  the simulator,
                                press the A button to start the
                                motor  and  check  its  working,
                                and press the B button to stop

                                the motor.

                      148   Premium Edition-VI

| 145 146 147 148 149 150 151 152 153 154 155 |