On Friday Year 5 was introduced by the teachers to lego robots.
What are lego robots?
Lego robots are robots that we can program and tell what to do just by writing down a list of specific instructions on commands on our computers.
But before we got to any of the making we had to understand how to use the programs and how the programs work. For a program to work it has to be very specific because robots don’t have brains and can’t work things out them selves so to do one simple movement it could take at least three steps.
But programs isn’t just writing down words programs are always written in code, what is though you need to know. Well code is often set as letters and numbers that stand for something simple coding often has letters that are the starting letter the words describing what the robot is doing but that often gets confusing because there might be to words with the same starting letter. So to understand programing we obviously tried making our own codes just using the simple coding of course.
The aim was to make a sequence of commands to make the robot do a simple task like opening a door. Mine was trying to make a person put a piece of paper in the bin because of cause we didn’t have robots so we had to use people.
Once we had learnt enough about programing we got straight to making our robots when I say making they were made out of lego that’s why they’re called lego robots the actual robot is a computer called a brick that sits on top of the lego structure that connects to the motors to power them the computer is also where the program is kept to tell the robot what to do.
We were put into groups to build the robots and were handed with the brick and also instructions and got to building the aim was to finish building the car and even try and start programing to if we had time but unfortunately we only just finished building so next session I’ll start to do that.
This session unfortunately I did not get into programing but what we did do was trying to work all the different pieces to the robot. But not just the big parts like the moters and the brick but to try and look at the indavidal pieces of lego that hold it together.
To do we would examine our robots with our group members and draw down a diagram of all the pieces in our design books of each angle so we can record and label so we can work out how the robot works.
This session we were finally ready to start really programming. So we got onto the mind storm application and started trying the work out how the programs work. The mind storm programs are pretty simple rather than some other types because instead of having to write down a whole program yourself it came in little bricks of commands such as moving forward and turning and there’s also sound and sencer programs to and many others as well but we stuck with the simple programs just for day one.
Once we had come up with some kind of program it didn’t really matter as long as it did something we were given cords to download the programs onto the EV3 robot and see what it could do. But if it didn’t work we would try and try again that’s the whole idea of the project to keep improve if things don’t work. I’m
Here is my first program that I made.
Click on the link.
After we had a bit of a experiment we were given a challenge to try and work out all the different ways of getting the robot move or do something so we started off trying out three of the different ways witch were degrees, rotation and seconds. The first one we tried was degrees so the goal was to make the robot move forward a certain distance and go back to the starting point just by using the things listed.
We also did rotations witch was only a little bit different because instead of measuring degrees to work out the amount of turn it’s measured by the amount of one rotation you change this by clicking on the bottom left corner of the brick and it comes up with the option to change it. One rotation is when the white marker on the inside of the wheel turns all the round until it reaches its starting point. This lesson we only had time to do two of the challenges but next time we will start doing our last challenge.
In session for we finally got to start the last task for our challenge witch is the seconds. To do the seconds you have to work out how long it will take for the robot to get to the other side and set it for that and it will stop when it reaches the time it’s set for and then repeat the same action but power on -50 so it goes backwards to the starting point.
Here’s a video of the robot doing the challenge.
Now that we know all the basic ways to get our robot working it means we’re able to work on some more challenging things for this project and become the experts.
Today year five were getting back into lego robotics again and were now given a new challenge. It was to try and make our robot go around a diamond shape just like in baseball so we were finally introducing turning into robots and how to do it. There were a few different ways to make it turn and we had to try work them all out and find the most affitient way possible to get around the diamond.
Here’s some screen casts explaining the different ways of turning.
This week we where back doing lego robots again and now that we had finished our baseball diamond challenge we were given another challenge to experiment with and discover new ways to program our robot. Today the challenge was to try and make our robot go around half of a baseball diamond and then it would turn to face back the way it came and go back again.
So first we worked out how much the wheels would have to rotate to reach the corner of the half diamond. We knew that to make a quarter of a turn the amount of turn has to be set to 65 degrees. After that the same distance has to be used for when the robot moves forward again.
The second half is more tricky because the robot has to go back again backwards without turning to face the other way and and go the other way round also it has to turn a different way on the way back. So You had to change the way it turns on the way back and it also has to have negative power so it goes backwards.
So we tried to work it out but it wasn’t to hard because you just had to think about it a little bit if you mix it up.
This session in lego robots we were introduced to sensors in lego robots today we just used colour sensors but I think we will get into different ones later. The challenge was to try and make a procedure that includes some of the different colours on a table for it to sense and react to then do another action when triggered by the colure.
Here is a screen cast of my program explaining what I have done.
OneDrive – Geelong CollegePresentation1-xs63vc
I also got a video of the robot doing my program successfully.
In lego robots today we were starting to learn about touch sensors. So touch sensors work when feels it has been bumped or knocked and then sends that message to the brick to then go on the next command. Our first program was only something simple to start of with so we just made a program that would make the robot stop just to start of but we will get into some harder stuff in the future.
Today when we were doing lego robots again and were trying to use more of the sensors. We were given certain challenges with the sensors for the touch sensor the challenge was to try and make our robot move forward until it hits something the do a 180 turn and go back again.
First to start off with my program I set the block to on so it will move forward until it gets bumped. Then set the sensor block to touch sensor and made a block to turn around. The did the thing as I did at the start until it bumped my hand.
Here’s a video of my program.
This session in lego robots it was time for me to start programing my robot to use the ultrasonic sonic sensor because I have finished both the others.
The way an ultrasonic sensor works is that it can sense the light bouncing of objects so if senses the light then it knows the is an object in front of it. So you can set it to stop before it even touches the object it’s facing.
Our challenge was to make the robot move forward towards a wall but then stop ten cm in front of it.
To program it I put in a brick to move forward but it has to be just on so it moves forward forever unless I put the ultrasonic sensor after that I set it to stop ten cm in front. So now when I did it, the robot stopped.
In this session we staring with something new to us. What we were told to was to try and make our robot follow a black line and if it went of it have it sense that and go back onto the line. It sounds like a really hard task and it is and we weren’t given much information either just to go off and test things out.
I didn’t get to finish this project this session and I think that I’ll try something a little different next time because it didn’t seem to be working so next session I’ll finish that program and have it work.
In session 12 I was starting my line challenge again and hopefully getting it to work.
This was my program for the straight line challenge.
Here’s a video of it working.
I don’t think it worked the first couple of times because we weren’t making turn once it touched the white and then turn again once it touched the black because every time it turns it will forward so it .will finally reach the end.
In this session we were starting the challenge of making our robot follow a black line but it was an oval.
Here is a screen cast of the program.
Here’s the video of it working.
This session started the challenge mat for my robot to corwardanate around the whole track.
This one was harder because it had to turn in different directions each time the line had a curve in it.
Here’s a screen cast on the program.
In this session my goal was to make my robot do the circle line but once it had done one full round of the track it would stop if I tapped the touch sensor.
Here is a screen cast of explaining my program.
This is the video of it.
Today I was trying to perfect my program to follow the circle line and then stop when the touch sensor is triggered because last time it didn’t quite work and would keep going if I stopped putting pressure on it. So this lesson I was focussed on fixing it.
Here is how.
Today I was focused on finishing all the line follower programs so I started on doing the oval,touch, stop, turn around and go back again. I started it as any other line following program but then I had to think of how to make it stop and turn if I touched it so after it I placed a touch sensor block to turn if it was bumped then a basic turn block in after the forever block. But then I didn’t know how to make it go back because it would just stop and not go back.
I also think that if it doesn’t turn enough it won’t sense the black line and will go around in circles forever.
This session I was determined to get my program finished for the touch and go back again and I did achive my goal. Here’s a screen cast of the program.
Here’s the video of it working
Today I was up to the last line following challenge witch was to make you robot do one lap of the oval.
Here’s a screen cast of the program.
Here’s a video of it working.