1 / 15

Session 2

Session 2. Moving and Turning…. We have built an EV3 Model. How do we get it moving?. Session 2 Aims:. Familiarisation with the EV3 Model programming software Learn how to program the EV3 Model to move forwards and backwards with accuracy

justiny
Download Presentation

Session 2

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Session 2 Moving and Turning… We have built an EV3 Model. How do we get it moving?

  2. Session 2 Aims: • Familiarisation with the EV3 Model programming software • Learn how to program the EV3 Model to move forwards and backwards with accuracy • Learn how to program the EV3 Model to turn with accuracy

  3. The EV3 Software • The EV3 model can be programmed to move using programming blocks. Let’s take a look at the blocks we need today: The “Action” panel (Green tab) contains the three Move blocks needed for basic Large Motor movement.

  4. Units of Measurement The EV3 Models can be programmed to move using three different measures: • Degrees • Rotations • Seconds Common mistake – when working in “degrees”, 90 degrees will not turn the whole robot 90 degrees. It will only turn the wheel/motor 90 degrees.

  5. Single Motor block Allows you to control a single motor of your choice Allows you to select how far you want to move Allows you to control power/speed Allows you to change units of measure

  6. Move Steering block Defaults to ports B and C Allows you to select how far you want to move Allows you to control power/speed Allows you to adjust the amount of left/right steering to turn the robot Allows you to change units of measure

  7. Move Tank block Defaults to ports B and C Allows you to select how far you want to move Allows you to control power/speed for each motor so you can create a turn. How might you do this? Allows you to change units of measure

  8. Challenge 1 – Moving forwards and backwards Move your robot two seconds forwards and two seconds backwards

  9. Challenge 2 – Moving forward with accuracy • Task - Program the robot to go forward 50cm exactly with 1 attempt • Rule 1: You may use a ruler/tape measure to help you • Rule 2: You cannot use trial and error on the Training Mat while practising • You may practise with a 30cm ruler • When ready, use Training Mat 1 and locate the 1 metre printed ruler

  10. Challenge 2 (with more challenge!)Moving forward with accuracy • Task - Program the robot to go forward 50cm exactly with 1 attempt. • Work out the circumference (X) of the wheel (there are clues on the tyre) • Rule 1: You may use a ruler/tape measure to help you • Rule 2: You cannot use trial and error on the Training Mat while practising • You may practise with a 30cm ruler • When ready, use Training Mat 1 and locate the 1 metre printed ruler X X

  11. Challenge 3 - Turning • Go forward three rotations, turn the robot around 180 degrees and return back to the starting point. • Try and be as accurate as possible! • Think: Which Move block is the most accurate for turning? Why? • Move Tank • Move Steering • Single Motor

  12. Challenge 4 - Moving in a square Can you program your robot move round in a perfect square? • Did your robot move in a perfect square? • What do you notice about the code? • Did you make any improvements to your code to make your robot move in a perfect square?

  13. Loops • Loops are a sequence of instructions that are continually repeated or stop once a certain condition is reached. • With a square, you repeat yourself 4 times. A loop will make your program more efficient by repeating your one block/line of code in one continuous loop. • Amend your program to introduce loops. This loop is set to unlimited. To change it to a particular number of loops, simply click on it and choose “Counter”.

  14. Real Engineers Click here to find out about Rolls-Royce manufacturing engineer Craig. Engineers at Rolls-Royce design and build some of the best motors and engines in the world. Engineers working there would have learnt the basics of moving and turning just as you have today. A city of 8.3 million people such as London causes challenges for the engineers who organise and plan the city’s roads.  Kamlah Kew works as a Traffic Control Engineer for Transport for London. She is responsible for designing, and putting into action, traffic control schemes at new crossings or making changes to existing traffic signals. You can find out more here

  15. Awesome job! See you next time!

More Related