The computer language Python is currently one of the most in-demand languages used in Industry, so it is a good skill to have in your CV. These tutorials will help you learn how to use Python to control your Fusion Robot. The Schools we assist tell us that they plan to first introduce Fusion Robotics by using the computer language Blockly. They then plan to later upgrade to Python. The planned aim of these tutorials is to start quite gently by converting tiny Blockly examples into Python, and then continue by using Python alone.
These tutorials are thus aimed at students who have previously followed our Fusion Blocky tutorials at https://drg2.com/fusion-blockly It could also be possible for these tutorials to be used by students who have had no Blockly background, as we also quickly revise Blockly during some of these tutorials.
Let us take a look inside the box containing our exciting Robot kit.
Before you can start teaching your Robot how to move, you need to set up a connection between your computer and your Robot. This video, and the accompanying eBooklet, will demonstrate how to do this.
There are two types of Fusion accounts, “Admin” and “User”. When used in a classroom, usually only the teacher or mentor will have access to the more powerful “Admin” account. Students would usually use a “User” account. The video below demonstrates how to set up both types of accounts within a Fusion Robot.
We can now log in to our Fusion Robot. We will demonstrate how to obtain the Python version of a tiny Blockly program. We will use this Python code to teach Fusion to move.
In case it is some time since you used your Fusion robot, we revise how to log in to your Fusion Robot.
Let us pretend that an Alien Ambassador has come to Earth. We don't know whether the Alien is dangerous or not. We will send our Fusion Robot to approach the Alien, because if anything goes wrong it will be a Robot and not us that will be zapped. :-)
Read the eBooklet to find a downloadable Alien Arena.
Fusion's ability to generate Python code directly from our Block code is a tremendous benefit to Fusion Robot adventurers. However, the Python Code can be somewhat inefficient. Let us see if we can clean up the Python code, making it more efficient, and hopefully making it run faster.
We can teach our Robot to go "Around the Moon" using Basic Blockly Code converted to Python. This video demonstrates how.
Your eBooklet will show you where to get downloadable printable "Moon/Earth" images, suitable for use in this Challenge.
In this video, we use different Python commands from the ones generated by the automatic conversion from Blockly to Python. We hope that this will allow smoother trips "Around The Moon".
See what some of our past students have done when sending their robots "Around the Moon". These students were using older Robots, but still managed to get their Robots back to Earth. Can you teach your Fusion Robot to go "Around the Moon" the same way these beginner students have?
Using older Robots, this is what some of our past advanced students have done to send their robots "Around the Moon". Can you teach your Fusion Robot to go "Around the Moon" the same way these advanced students have?
One of our students suggested that we teach our Robot to have spins, like a Sufi, when going "Around the Moon". Let us try this. What is a "Sufi"? Check your eBooklet for a link to a video explanation.
Do we want to teach our Robot how to have a really good look at the Moon? A loop around the moon will provide that opportunity...
What is SUMO? It is a traditional Japanese sport where two opponents try to push each the out of an arena. In this video, we find out how to teach our Fusion Robot to stop when it detects the edge of our SUMO Arena, which is the first step towards teaching Fusion SUMO Code.
Now that we have taught Fusion to know when it has reached the edge of our Arena, we teach Fusion how to push out either a toy, or, if you are in a classroom, you could try pushing out your opponents' SUMO Robot - who will also be trying to push your robot out. Fun!
A classic challenge in artificial intelligence is to have a Robot follow a line. In this video, we demonstrate how you can teach your Fusion Robot to follow a line using optical distance sensor code inside a function.
Here we take a longer look at following a line using Python...
We can demonstrate how to teach Fusion to follow a line using functions. Knowing how to use functions can be really useful later on, if you want to write larger and more complicated Blockly Code for Fusion.
This video demonstrates how to "Clear a Swimming Pool" using functions. The code uses the sensor in a different way from that used in our original "Clearing a Swimming Pool" video demonstration.
If you have purchased a Color Sensor to add to your Robot resources, you can change your Robot to include this. Will it make Fusion a better or worse SUMO Robot, or will it behave just the same way as it did without the extra sensor? .
This is a reminder. It demonstrates how to update Fusion's operating system.