Showing posts with label mBot. Show all posts
Showing posts with label mBot. Show all posts

Thursday 31 March 2016

mBot - cute, fun and Arduino based

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 is where you find out whether you have set the system up correctly. In the mBlock editor pull down menu choose Connect and select the required connection; I have been using a USB cable so I needed to select the serial option and select the USB hub. After that using the Upload to Arduino button did lead to the code downloading.






The video below shows it in action






This is good fun, and a very cute. The build quality of the bots (not my building ability) the metallic construction means the bots feel substantial.  The software as it is Scratch based I think it will be interesting to try it out with my Code Clubbers - especially as they have been asking to play with more robots.

As always I would be interested to hear from others on their experiences of using this little robot.

Related links
mbots - graphical programming and Arduino






All opinions in this blog are the Author's and should not in any way be seen as reflecting the views of any organisation the Author has any association with.

Sunday 13 March 2016

Blog stats - March 2016

The blog has been going less than a year (first post was 15th July 2015) but I thought the statistics about the blog so far might be of interest.

The Top Ten posts based on page views:


716








401








395








23 Jul 2015, 
385








13 Aug 2015, 
323








318








301








300








299








286









So small robots and Raspberry Pi, which I was hoping for as they are my interests as well.



The audience based on pages views is an interesting mix and not really sure what to make of it, apart from I hope they are all finding it useful.


Pageviews by Countries

Graph of most popular countries among blog viewers
EntryPageviews
United States
8650
Slovakia
1664
United Kingdom
1390
France
394
Germany
305
Ireland
96
Russia
80
Singapore
73
Portugal
72
Sweden
43


Comments and ideas are welcome, i would love to find out what others are doing.



All opinions in this blog are the Author's and should not in any way be seen as reflecting the views of any organisation the Author has any association with.

Top posts on this blog in March 2024

The Top 10 viewed post on this blog in March 2024. Covering areas such as small robots, augmented reality, Scratch programming, robots. Micr...