# Robotics

Session 1 (term 3)

This was our fist lesson of robotics in term 3, and we had a different challenge. The main idea of challenge 1 was to make our robot react when it touched black (using the colour sensor).

The reaction that we were told to make was when the robot saw black, turn left and if the robot does not see black turn right. Here is my program.

One of the hardest things about using this program was using new bricks, and learning what they did.

First the comment brick (the one that is highlighted).

This brick allows you to write what you want your robot to do, without having to find a certain brick.

The two comment bricks on top of each other, are saying almost the same thing as the brick next to them. It is saying to turn left (or right), and it is also saying why to do that and when.

The first comment brick tells the robot that the program is using colour mode.

Next is the loop brick.

When I tried this program, this is what happened.

It worked!

Challenge 2 was to make a program that did the same thing, but on a big oval. So, I tried the same program, and this is what happened.

And it worked all the way around! I think it did that because it was doing the same thing that I asked it to do as in challenge 1.

Session 2 (sewing)

This week a few of us went to do sewing. We learned a lot what all of the buttons do and why.

The knob circled in blue changes the type of stich. On the side of the sewing machine (also circled in blue), are the types of stich, such as the zig zag stich, the straight stich, and many others.

The knob circled in black determines the length of the stich. So, I could have and zig zag stich really close together, or really far apart. For example:

We also learnt what to do when the cotton got jammed, and how to tie a not very close to the end of the fabric.

We were making mobiles, and I chose the shape of a star.

These were my templates.

We used felt instead of fabric this time.

When we were waiting for the sewing machine, we worked on our designs. Here is mine

This is my finished product:

I really enjoyed sewing and am glad that I learnt a new interest.

Session 3

Today we were back to robotics.

Our new challenge was to make our robot follow a squiggly line.

I tried the same program as the straight line and the circle, and here’s what happened.

So I figured that my robot was going to fast, so I slowed it down.

The robot turned the wrong way, and ended up falling of the board.

We had to make a design explaining why the programs were between the different challenge mats. Here is mine so far.

Session 4

Today I finished working on the squiggly line challenge.

Here is my program, after I fixed it up.

I took out the two colour blocks (next to the green blocks), because I didn’t need them, they say the same thing as the green blocks.

I changed the top brick to 100 degrees so that my robot will turn, until it sees the black.

I tested it out, and this is what happened.

It worked!

The I printed out a photo of the two programs, the straight line and the circle, and the squiggly line.

Then, I did some blogging.

Session 5

Today I started on my 2nd challenge. That was to go back to the straight black line, and use the touch sensor. I was the same challenge as the first one, except when the touch sensor bumped, something it had to stop.

This is the first program I tried.

Here’s what happened.

So then I realized that I didn’t have the colour sensor on.

So I tried this program instead.

I added the comment block at the start, saying “uses colour mode and touch mode” to let the robot know that it is using those modes. At the end I added a touch mode brick.

This is what happened.

My robot didn’t respond to it bumping into something, and then I realized that I could put the touch sensor on the end of the loop brick. So, here is my program.

When I tested it out, this is what happened.

It worked!

Next lesson I am going to move onto the next challenge.

Session 6

Today in design we were introduced to spheros.

This is what one looks like.

First, we had a go at driving the spheros. In order to do that, we had to have an app. The app features a driving system, and programming.

Here is me driving.

After that we split off to have a test of the programming. We had to draw what we wanted our sphero to do.

Here is a video explaining what I’m doing.

There were some shapes taped to the ground, so we had a go at programming it, like Scratch and Lego Mindstorms.

First we tried a program that was simple, but we thought it would work.

But, it didn’t. On the second last corner, it kept going straight.

So we made another one, much longer and complex. We also added delays on each corner so that it was more clear that the sphero was turning.

Here is my program.

We adjusted a few minor details, and here is the finished product.

It worked!

Session 7

Today I started on the Mars Rover Challenge Table because I have finished all of my black line challenges. I started to look on YouTube for some videos and ideas of where to start. Here is a video that I found.

First, I started by building the sensor that drags things.

Here is what we achieved.

Session 8

On our last session of design, we played around with spheros. We were told that we had to make a shape that challenge us. My partner and I chose a triangle.

Here was our first attempt, we had a think about what we did last time and the technics that we used.

On the third turn, it paused and then kept going forward. So, we changed the angle on that turn and this is the program now.

Here is the product now.

In the third turn, we changed it to a right angle turn, so we moved it a little more and this is what the program looks like now.

Here is what happened when we changed it.

Obviously we turned the angle to far, so we moved it back more.

It worked!

Then we had to make a maze with tape for our sphero to navigate through. Here it is.

Here is a video of our first attempt.

Since we have had some experience with spheros, we had an idea of what to do. We used the same method as our triangle, and then we would add only a little bit to finnish. Here is our program.

Here is the ending.

After it all worked together we added some coloured lights.

W H A T    L E A R N T :

I learnt that putting delays on your program makes your sphero stop and show it’s position, more clear. I also learnt that you have to keep testing your program, after every time that you add on, so that you know it works.