In previous lesson we have seen features of Playme Robot. In this lesson we will see how to install programming software for playme and its required libraries. Before starting programs with Playme some steps are to be followed:
Downloading of Software, for playme we will need mblock software which is available in your CD or you can download it from given link.From below link, download both mblock and Playme.zip fileCLICK HERE TO DOWNLOAD mblockDownload Installation of Software:
After downloading software you will get this mBlock_win_V3.4.10 file. Double click on that. Your installation process will startYou will get this option.Select your language. And then click on OK.
Select “I accept the agreement” option. And click on “Next>” button.
This will show you location where your software is going to be installed. Click on Next > Button.
Click on Next> Button.
Click on Next> button
To install software click on “Install” option.
After installation is finished. It will show you following message. Click on finish option and open mblock
You will see following screen on your computer.
Go to Extension menu and select manage Extension option
Click on Installed option and check Playme Robot library is available there or not.
If there is no such option then click on Add Extension Option. You will get this. You will get “json” and “zip file” option. Select “zip file” option. After this select Playme zip file. And click on Open option.
Check installed option. You can see Playme Robot library is installed in your manage Extension.
Now go to Edit option. Select Arduino mode for programming.
After selecting Arduino mode you will get this window.
Now Click on Robot Option. In that select Playme option. You can see blocks related to Playme Robot.
Drag one Block Playme Robot Program . This will initialize all library functions required for Play me.
Goto Control option and select Forever option. This forever will help us for continuous execution of program. Once you are entering any block inside this forever it will execute or Run infinitely.
Take block “Left LED” and place it inside forever block. Left Led is user led of play me Robot.
Take Right LED Block and place it below Left LED Block as shown in diagram. Go to Control Option and drag “wait 1 sec” and put it after Right LED block. To make LED ON select HIGH option for both LEFT and RIGHT LEDs.
Now put same blocks and Make both LEDs LOW. This will make LEDs OFF for 1 sec.
Goto File option. Click on “save project”.
Give name to project and save it.
Click on Boards option and select Arduino Nano (mega 328)Board.
Click on connect option and select Serial port for program downloading. If you are unable to find out COM Port number then goto device manager.
Click on Ports option. You will get this COM port number only when your Playme is connected to your computer or laptop
Now select your COM port number.
Click on Upload to Arduino option. This will load program into Play me Robot.
After successful downloading of program it will show you following message.
Congratulations!!! You’ve just downloaded your first Robot Program