Lesson 3 Turning Left

Share for us

Overview

This lesson is how to command the Lizard to turn left and stop.

Programming

Click the iconon the desktop to open the Mixly and you’ll be on the homepage:

Click the Lizard category, you can see the Turning Left Speed Module. Click and drag the Turning Left Speed Module into the coding area: 

Set the value of turning left of the Lizard, drag the Count with Module from Control contents as shown below.

Combine them together as shown below:

Click and drag the end program block from the Control contents.

Combine them together as shown below:

As shown below, the number can be changed by users. 7 here means turn left for 7 times, and is equal to the result of turning left for 90 degrees, so the number can be changed by the users’ willingness.

By the time, the procedure had all be finished. This procedure is made of 3 blocks, the Turning Left Speed Module, which controls the Lizard turn left, the Count with Module controls the times of turning left, and the end program block commands the program to be end. Connect the Lizard with computer by the USB cable as shown below:

Select the board type: Arduino Nano, and select the serial port for upload:

Select the Port according to your actual situation. (Here just take COM3 as an example).

Upload the program to Lizard: 

Then you can see the Lizard turn left for 7 steps, then stop.