Table of Contents
Installing mBlock Software
httphttps://www.mblock.cc/en/mblock-softwaredownload/.
- Install the latest version for PC (V5.4.0).
- You will need to install the driver when prompted by clicking INSTALL, as well as Allow access when you get a firewall warning.
...
mBlock software getting started - https://wwwsupport.mblockmakeblock.cccom/dochc/en/quick-start/quick-start.html-us/articles/4410615377559-Access-mBlock-mLink-. Follow this page as well as the next two pages.
- https://wwwsupport.mblockmakeblock.cccom/dochc/en/quick-start/create-your-sprite.html-us/articles/4410674227863-Make-a-Sprite-Move-on-mBlock-5
- https://wwwsupport.mblockmakeblock.cccom/dochc/en/quick-start/add-sounds.html-us/articles/4410676168343-Add-Sounds-and-Costumes-on-mBlock-5
Now, it is time to play with the actual device (mBot/mCore). The steps here - https://wwwsupport.mblockmakeblock.cccom/dochc/en/quick-start/connect-device.html-us/articles/4410698060695-Program-a-Device-on-mBlock-5 show a device called HaloCode CyberPi and not our beloved mBot. Hence, the steps are slightly different, which is given below (the steps below are mostly similar to http://docs.makeblock.com/mbot/en/tutorials/quick-start.html).
The default device after installation will be CyberPi and not mBot. You can delete the CyberPi and then click 'add'.
...
The official tutorial is found here - https://wwwsupport.mblockmakeblock.cccom/dochc/en/quick-start/role-device.html-us/articles/4410698813463-Enable-a-Device-to-Interact-with-a-Sprite-on-mBlock-5. Note that here too, you can use instead of the 'when button is pressed' mentioned in that page (which is for HaloCode device and not mBot). A more detailed description is given below.
...
You can try out the various examples here using mCore - http://www.mblock.cc/example/introduction/:
Arduino C in mBlock
mBlock can also handle Arduino C directly. You can't see l switch between using blocks and using code seamlessly though. Make sure you include #include<Arduino.h>