This tutorial, we’ll interface Playme with PC. By connecting Playme to PC, we can send messages from the Robot to the computer and from computer to the Robot. This leads to many interesting things which can be done with playme such as creating a light meter or distance meter to show on PC, so lets see how we can send any text from Playme to PC

To complete this we have to follow below steps:

  • Goto mblock software and open it.
  • Goto edit menu and select Arduino mode.

  • Playme Robot Program is a Header file for Robot programming.
  • It makes programming simple. By using this we can access all blocks easily and smoothly.
  • If we are not using this then it may give us errors in program. So put this at start of program.
  • Select block Send to Computer and drag it in programming window.
  • This block will help us to write value on computer window. Value can be text message, numbers, letters.

  • Connect Send to computer block to playme Robot Program .

  • Take Read from Computer Block

  • Insert that block to sent to computer.

  • Now save program.

  • Give name to program.

 

  • Select COM port

  • Click on Upload Arduino option

  • After uploading is done you will get this message.

  • Click on close option.
  • Again go to Serial port and select COM port

 

  • And see output of your program

  • You can see this response which is not distance.
  • To get proper message select Char mode for both send encode mode, reicv encode mode.