Thursday, 30 April 2020

10 most views post on Robots and Physical Computing Blog- April 2020







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. Twitter @scottturneruon

Sunday, 26 April 2020

Programming Robots Virtually 2: iRobot Simulator

In this series of posts, I am going to look at experimenting with a few tools that allow robots to be simulated, programmed, ideally web-based, free and simple to use. In this post, I am looking at iRobots recently released free tool that can be used on computers, tablets and phone to program a simulated iRobot Root robot targetted at educational use.


The initial inspiration for looking at this was through an IEEE Spectrum online article; the tool is web-based app and can be found at https://code.irobot.com/#/ 



In my opinion, it's most interesting feature is the same code can be written in three different ways. The codes below were the same thing (touch the left sensor turns and draws left, similarly for the right sensor; and lastly when front bump sensor touched it moves forward and plays a C) on all three levels. You only need to write it in one and it is usually available in all three levels, potentially good for transitioning between levels of challenge?


Level 1 is based around connecting icons together, aimed at young children





 Level 2 is a graphical, drag and drop blocks programming language in the same vein as Scratch and makecode   





Level 3 is a more traditional text-based programming language currently it is Swift; their website suggest other programming languages may be coming soon.




Resources
Learning library https://edu.irobot.com/learning-library is available but you need a code to access some of the resources.



My view so far
If you want a tool to use with very small children using Level 1, through more flexibility using Level 2 to text-based using Level 3. Nice, as the same tool can be used at different levels. It does simulate a real robot iRobot Root coding robot see https://www.irobot.co.uk/root for more details.


This might be of interest





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. Twitter @scottturneruon

Saturday, 25 April 2020

Programming Robots Virtually 1 - VEXcode VR

For a number of years, I have been playing with robots as a means of developing programming/coding skills with students. The problem is when classes get larger or it is used as part of an assessment there is very rarely enough robots to satisfy all the students Turner and Hill (2008). So
therefore, the search has been on for a tool that allows robots to be simulated, programmed, ideally web-based, free and simple to use. Lately, a number of interesting tools have arisen. In this series of posts, I am going to look at experimenting with a few of them. In this post, starting by looking at VEXCode VR - available at https://vr.vex.com/.





VEXcode VR https://vr.vex.com/  from VEX Robotics (https://www.vexrobotics.com/) is a simulator and programming tool for their Scratch-like programming tool VEXCode - at the time of writing is free. If you can do Scratch this is a nice next stage, consisting of the simulator (playground) and the programming environment (see below and the video above.)




Playgrounds
These are the simulated environments you can select from, with a two camera-views; downward camera for overhead view and angled camera to give a 3D view (as shown in the video) via buttons on the bottom right hand side of the playground. Also you can toggle, using the third button on the right hand side, the ability to see the status of the various sensors. There are a number of different playgrounds to play with. In this post I am going to use two of them



Example 1: The Square
Using the Grid Map playground and angled camera. I wanted to start with a stand-by; getting the robot to move in a square. The robot moves forward for 30mm and then turns right 90 degrees; and this is repeated 4 times (see below)
So the commands are very scratch-like. I was impressed,  the 3D gave a clear view it in action, the commands were intuitive and (yes repeating myself) very easy to transfer to from Scratch.



Example 2: Playing with Sensors a bit
Now for more fun, getting it to react to the environment a bit; by changing the Playground to Castle Crasher you get an environment that has simulated blocks and red perimeter to interact with. As you would hope, there are sensing blocks including LeftBumper and RightBumper - no guesrss for what they do and DownEye which can detect the red line. The code is simple and shown below, based on detecting the block using the bumpers, move to the side and recheck if  (shown  below) is if a  block is in-front and if not go forward. If it finds the red line reverse back and rotates 180 degrees.



As a side project I wondered what would happen if you didn't put code in to detect the red line, how would it cope with falling off the surface; it simulates it quite well showing it falling off which quite fun. One mistake I made initially is accidentally selecting the wrong form of turning action rotating when it should have been a turn.


Overview so far...
If you can already use movement, sensing and control blocks in Scratch, you can do this. Has potential as a source of online activity's, especially as the time of writing in the UK we are 'social-distancing'. In their paper Turner and Hill (2008) also highlighted that robots are a difficult resource to manage for a large class; this kind of option allows simulation and programming of a robot to be tried out without actually having the robot. Most importantly it is fun.


Reference
Turner S and Hill G(2008) "Robots within the Teaching of Problem-Solving" ITALICS vol. 7 No. 1 June 2008 pp 108-119 ISSN 1473-7507 https://doi.org/10.11120/ital.2008.07010108




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. Twitter @scottturneruon

Friday, 3 April 2020

BBC micro bot - tweeting BBC Basic (updated)


I assume others have been playing with it for a while, but yesterday I can across the BBC Mirco Bot site https://www.8bitkick.cc/bbc-micro-bot.html - where you tweet @bbcmicrobot and run BBC Basic code on BBC Micro emulator. It returns a video of your code running. 

For those of us, who either had (I didn't - ahh) or wanted a BBC Micro (that is me) it is a cool thing; combining tweeting and programming on one go.

I had a go yesterday

This was returned



Have a go it is fun.



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. Twitter @scottturneruon

Wednesday, 11 March 2020

Podcast physical computing, IoT, Industry 4.0 and others


I was lucky recently to invited to participate in a podcast on wide-ranging topics with Drs Michael Opuku Agyeman and Triantafyllos Kanakis. The discussion roamed around computing, physical aspects of computing, social benefits of technologies, industry 4.0, our research and a whole lot more. Good fun.

The podcast can be found below:






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. Twitter @scottturneruon

Tuesday, 3 March 2020

Top read post on Blog in Feb 2020



Popular Posts

Search This Bl



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. Twitter @scottturneruon

Friday, 31 January 2020

Top 10 read posts on the Robots and Physical Computing blog - January 2020



Popular Posts


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. Twitter @scottturneruon

Who wants to produce AI produced cartoon strips

Question: How easy is it produce a comic/cartoon using genetative AI? Let's start with  using ChatGPT4o to produce cartoons. The idea wa...