WIN_20170609_12_45_03_Pro-1rj9cyksreen cast movie maker trimed FFS-vfmpj9Today in Design, year 5 had to start our Lego robotics unit. The aim was to create our own program to perform a chosen task.
What is a program? A program is a script that you can teach a robot to do. For example, I made a script for a robot to perform a hi-five. The script looks like this – elevate right leg 10 cm, move right leg forwards 20 cm then lower right leg 10 cm then instead of doing it over and over and over again you could change the right leg to left leg then repeat. Then the script would say elevate right arm 90 degrees and step.
Then we were put into groups and taught about the building of the Lego Robot and that the most important piece was the piece that you would put the script in with the battery that we would need to charge each night. Mr McKie taught us about the program and that we would need to build a Lego car to perform the program. My group are nearly done building the car to program. I learnt a lot from the first session, like how to program and that you could even program Lego to move. It was a great first session and I can’t wait until the next.
Here is a link to a time lapse of us building the car:
How will robots help us in 20 years?
Today year 5 was given the challenge to use the three ways of moving our lego robots between 2 lines and back. The three ways are seconds, rotation and degrees. seconds is that you tell the robot for example to go forwards for 3 seconds and then turn for 1 second and go forwards for 3 again. Degrees is how much your wheel spins for example 1 spin is 360 and 2 wheel spins are 720. The other way of movement is Rotation is the same as degrees but you write how many time you want the wheel to rotate for example rotate 4 times and then turn left for 1 rotation.
here is my program
screen cast movie maker trimed FFS-vfmpj9
The first yellow block is the start block that you need for the robot to start. The red motor is what type of motor you are using. The arrow is what degrees its going at. The speedometer is how fast it goes. And because I have it set on seconds the timer is how long it goes for. The play button means that it will stop after its done. The B+C in the top right are wich cable points the cables have to go in. I found out why it wasn’t working it wasn’t because of the degrees of the turn but because I had it set on that the wheel would turn but I was supposed to have it set on seconds. So I changed it and it worked.
Today Friday the 9th of June in design year 5 where introduced to the 4 sensors on our lego ev3 robot The first one was the touch sensor, The ultrasonic sensor, The light sensor and the gyroscope sensor. The touch sensor works if you put it on your robot and connect it to it when it hits something it will do something for example when it hit a wall I will turn 90 degrees then go forwards. the ultrasonic sensor sends sound waves and when they come back to it. It measures the distance away from the robot. For example I could say that when it get 3cm away from an object turn left 60 degrees then go backwards for 3 seconds. The light sensor is a sensor that detects how much light frequencies come back because it sends light out and detects how much comes back for example if the colour its on is dark like black not as much frequencies come back because dark colours like black absorbs the light so not as much come back but a bright colour like yellow reflects the light and more frequencies come back. The gyroscope sensor for lego robotics is a sensor that can measure the degrees of fall from -440 to +440. For example when it get to a 20 degree fall slow down from 100-50 so it doesn’t tip over. Like when you are walking down a hill you slow down so you can keep balanced and not tip. Here is a video of my first attempt of the light sensor:
It didn’t work because I had it set on seconds which means that the robot goes for a set amount of seconds but then I found that I didn’t work because I needed to set it just to on so it goes for ever till it hits that colour and then does the next think I programmed it to. I also learnt a new block to use it’s called the wait block it’s when it hit the colour it will wait then do something. I finished the around the table and around the stool I also needed to finish one where I had to do to 2 on the baseball diamond and back to 1. I finished them all. Here is a link to the half way and back to 1:
Here is a link to the whole baseball diamond:
Today I started with new sensor it is called the touch sensor. The touch sensor works if you put it on your robot and connect it to it when it hits something it will do something for example when it hit a wall I will turn 90 degrees then go forwards. our first challenge was to make it goo forwards hit the wall and then stop we had to use the wait block this time.
here is my programme for the hit the wall and stop challenge :
here is a link to a screen cast on what all the parts do:
screen cast touch sensor 1st-r1tru1
so I completed the first challenge and here is my robot doing it:
I also completed another challenge which was one where I had to programme it to hit a wall go backwards and then right turn 90 degrees. I finished that one but didn’t get a video of it working.
sc hit wall back then 90-2ab8ixd
I loved learning about a new sensor and I am loving learning new stuff to do in ev3 Lego robotics. I am loving ev3 Lego robotics so far and cant wait till next lesson.
this session we where introduced into a new sensor the ultrasonic sensor sends light waves out and when they come back to it. It measures the distance away from the robot. For example I could say that when it get 3 cm away from an object turn left 60 degrees then go backwards for 3 seconds. The challenge was to get 10 cm away and then come back so here is my programme: