I have had an opportunity (ie, the time) to play with mBot, Scratch Programmable Robot using the mBlock software which appears to be a modified version of Scratch - so relatively easy to use. They have added a section of blocks, to the standard set, marked Robots containing blocks for both Arduino and mBot. An earlier blog post ( mbots - graphical programming and Arduino ) discuss some of the basics of the robot. Just for fun I wanted to play with the ultrasonic sensor, getting the robot to react, change direction (run away) and the 'face' on an LED matrix that came with the robot if there is an object in the way. The routine Loop Show a smiley face (using Port 4 ) If the ultrasonic detector senses something close (guessed at a setting of 10) Go backwards quickly Play a tone Show an upside-down smiley face wait 1 sec Otherwise Move forward End the loop Download the code to the mBot using the Upload to Arduino button (see below). Here ...
Robots and getting computers to work with the physical world is fun; this blog looks at my own personal experimenting and building in this area.