01.
Step 1: First we will learn about basic programming logic by playing a couple of levels of LightBot.
02.
Step 2: We need to install the mBlock software.
Navigate to the Red Door Launcher and find the mBlock software.
03.
Step 3: Now we need to open the mBlock software.
Locate the mBot icon in your applications, or press 'Command' + 'Spacebar' and search for mBot.
04.
Step 4: In the bottom-left corner of the screen, under devices, click the x on the 'CyperPi' device to confirm that you wish to delete this sprite.
Step 4.1: Confirm that you wish to delete the sprite.
05.
Step 5: Select the + symbol to add a new device.
Select the mBot.
Select 'OK' to confirm.
06.
Step 6: To connect with bluetooth, go to the web version of the mBlock software at ide-chrome.mblock.cc
07.
Step 7: To add code to our mBot program simply drag the code onto the right portion of the screen.
Go to events > 'when on-board button is pressed' and drag this into the program window.
08.
Step 8: Go to action > 'move forward at power 50%' and drag this into the program window.
Repeat this process for 'move backward at power 50%'
Ensure the blocks connect together.