Setting up our Maze

Hi again,

I’ve added a couple more videos. The first talks you through creating a room where the game action takes place, and then what is needed to let your player move around.

 

In the final video for tomorrow, we look at building some walls for our maze and checking they can stop our player.

Starting your online safety brochure

  1. Hopefully by now you have chosen a topic. If not, take some time now to choose from the list below (or to come up with a different online safety topic that interests you!):
  • Privacy: How to protect your personal information
  • Picking the right password: Easy steps to create stronger passwords
  • Identity Theft: How to protect your personal and financial information online.
  • Gone Phishing: Secrets of the scammers revealed
  • Charity Scams: Good intentions may mask a hidden motive
  • Online Shopping: How to bag a bargain without losing out
  • Keep a clean machine: How to protect your computer from spammers and scammers.
  • Trolls: How to spot them and what you can do about them
  • Digital reputation: What is it and why should I care?
  • Piracy: Why (not) pay for music?
  • Excessive internet use: Warning signs and what to do about it
  • 10 top tips for staying safe online

2. Now its time to start your brochure using Microsoft Publisher. This video describes how to get started:

3. Before we start creating our brochures, it is worth going over the marking criteria that will be used:

  1. Quality of Information – Is the information reliable? Is there enough information to make a difference for the reader?
  2. Visual appeal – Does the brochure look attractive? Does it have a good, clear layout? Are there nice images?
  3. Spelling and grammar – Are there any spelling mistakes? Does it look professional?
  4. Further information – Is it clear where I should look if I want to find out more about the topic?
  5. Suitability – Would it be understood by a typical person? Make sure there is as little technical jargon as possible.

I’m looking forward to seeing you on Wednesday,

Greg

Daniel’s Reaction Game

Have Bob insert the video next week.

Reaction Timer-2dbfol8

Description:

The game uses the screen of the brick and two touch sensors as a controller. The brick is held up with “legs” so it is easier to see the screen when playing.

Rules/How to Play:
After running the program, the screen will display “Ready”, and a few seconds later, either “left” or “right” and you have a certain amount of to hold down the correct button. If you hold down the correct button, it will continue to the next one, if you either press the incorrect button, or you don’t press it in time, the game will end and your score is displayed on the screen.

Evaluation/reflection:

This project went better for me than I expected, considering I had to do it by myself (apart from teacher help), as my team member hasn’t been at school during the whole project. There were quite a few things I was not able to do, but I think I’ve done the best I can at this point. I originally wanted it to have two players going against each other at the same time, with a controller each. Also instead of the screen saying left or right, I wanted to brick buttons to either flash red or orange, and each controller would have a newer red touch sensor, and an older orange one. But, even without the things I originally wanted, I think its turned out well considering.

Future improvements to the game:

Improvements that I could attempt to add to the game in the future, would be increasing the speed each time it goes through the loop, I’ve tried to make it happen, but it could be better. Making the game harder in general would be another thing I’d want to do, as it is pretty simple at the moment, game play wise.

Robocup: faster robots

Hi everyone,

Today we have two tasks: find the can and making an improved line following block which helps the robot go faster without losing the line.

The first task is finding the can:

If we look inside the find the can block:

Here is a video showing you how to make the findCan MyBlock:

Next we are going to speed up our robot by making a 3-state line follower:

When the colour sensor is on the black it see a low number (<30); on the white, a high number(<50); when the sensor is in between white and black it sees grey(35-45?).

Today’s qualifiers: upload two custom MyBlocks to Fronter: FindCan and 3stateFollow

Once you have finished the qualifiers you can move on to integrating all your custom MyBlocks into the main program. Fine tune the parameters to make your robot run fast and reliably.

Have fun!

Bob

 

 

 

Robocup: re-using code

Hi everyone,

Today we are going to learn about code re-use.

Using custom MyBlocks has two advantages: 1) Makes code easier to read. 2) You can easily use the same code in two places.

A third advantage is that your code becomes modular: it is easy to swap one part out and replace it with better code.

Today we are going to convert this code                             into this custom block, “LineFollow”

                       

Then we will insert this “LineFollow” block into two different programs:

Program1 (later changed to Follow2Foil MyBlock)           Program2   (later changed to Follow2Foil MyBlock)

     

Here is a video showing how to convert the inside of SwitchMotors program into a LineFollow MyBlock, then convert the whole thing into a Follow2Foil MyBlock.

Next, build up the Follow2Bottle:

The qualifier today (that everyone needs code and submit to Fronter) is the a project containing the Follow2Foil and Follow2Bottle MyBlocks, each containing the LineFollow MyBlock.

When you have completed and uploaded to Fronter the Follow2Foil MyBlock go on to these tasks:

  1. Create a MyBlock to FindTheCan
  2. Add a motor block to push the can
  3. Put all your blocks together into one program — test it out and make it work smoothly.

 

Have fun,

Bob

 

 

 

 

 

 

Rescue: multi-function program

Hi everyone,

Today we will use what we learned about custom MyBlocks to make a multi-function program. Our goal is to have a robot that will complete several tasks:

  1. Follow the line
  2. Avoid the drink bottle sitting on the line
  3. Line follow until the robot crosses the foil
  4. Search for the victim (the foil covered can).
  5. Push the victim out of the spill.

Each function will have it’s own custom MyBlock.

By the end of the day you should end up with a main program with three blocks:

We will start today by creating a block to drive around the bottle:

You might put in an extra motor block at the end to turn back towards the line.

Now we can put our two custom blocks together to start to form our main program:

To create the first block, follow the line (and stop at the drink bottle), we will adapt our existing MyBlock, followNstopAtFoil.

Here is the block:

You can find this block in the light blue tab for ‘My Blocks’:

When you drag the block into a program and double-click on the block icon, here is what you see:

Here is a video showing you how to make the follow2bottle (or followNstopAtUltrasound) custom MyBlock:

You should end up with a main program with three blocks:

A robot running this program will follow the line to the bottle, go around the bottle, then follow the line to the foil and stop. If you want to go on to the next step, you can start coding a block to ‘Find the can’ using the same approach as we used in an earlier challenge.

 

 

 

Coding a line follower

Hi Everyone,

Today we are going to do two things:

  1. Code a basic line following robot
  2. Learn how to use MyBlocks to make code that is easier to read.

 

If you have trouble seeing the videos try using Google Chrome

 

First, here is a video that shows you how to make the SwitchLED program from yesterday’s post:

 

Second, here is a video showing you how to convert the SwitchLED program into a SwitchMotor program that acts as a basic line follower:

 

Third, here is a video showing how to convert the SwtichMotor program into a custom block called FollowNexitAtFoil:

Fourth, this last video shows you how to use the custom block to quickly build up a complex program with multiple functions:

Try out your programs on the difference courses: easy, standard, or challenging. You will need to fine tune your program to make it work better on the more difficult courses. Which parameter can you make changes to?

NOTE: different courses have different surfaces, so you need to measure the white and black for each new course.

Finally, upload you code to Fronter. There will be two Fronter tasks: the qualifier (which everyone has to do) and the main project file which can be your team’s code.

Good luck and have fun!

Bob