Lesson 1: Motors and Sound Programming Solutions.

Slides:



Advertisements
Similar presentations
Mindstorms State Machines A structured method for handling tasks and events using RoboLab and NQC Brian Smith
Advertisements

1chung Robofest 2005 RCX code Workshop Jan 29, 2005 CJ Chung.
Robofest 2005 Introduction to Programming RIS 2.0 RCX Code.
Chung for Robofest 05 1 Introduction to RoboLab CJ Chung Lawrence Technological University.
Jason Howard. Agenda I. How to download robotc II. What is tele-op used for? III. How to build a basic tele-op program IV. Getting the robot to drive.
EducateNXT Enter the name “Sound Graphing” for your experiment. Real-time Data Logging Click the Switch to NXT Data Logging icon in the top-left corner.
Sensors For Robotics Robotics Academy All Rights Reserved.
PIC Programming with Logicator
Introductory Presentation
Automation and Robotics
Photos and Sensor Instructions
Robot Programming. Programming Behaviors Behaviors describe the actions and decisions of your robot.
LEGO Robotics Lecture 1: Getting acquainted with your robotic environment.
1 ©2006 INSciTE Lab Two Task: Make the program from Lab One (Move forward 5 rotations and turn right 90 degrees) into a MyBlock.
LEGO Mindstorms NXT Programming We will be using the Common Palette for our Robots This is how you download your program onto the brick Drag and drop a.
Testbed: Exercises.
Loops and Switches. 1. What kind of blocks are these? 2. Name two kinds of controls that can be specified to determine how long a loop repeats. 3. Give.
1 Oregon Robotics Tournament and Outreach Program Programming Techniques Workshop for Mindstorms  NXT 2012 Opening doors to the worlds of science and.
Creative Inventions and Robotics Programming with Robolab By Rebekah Gendron.
Programming a light sensor to follow a black line.
2 3  A machine  Built to help us  Autonomous (not remote control)  If we want robots to do things for us, we have.
Robotics Light sensor. Calibration. Reverse engineering challenge. Lab work: Create and show your program. Add light sensor (different orientations). Robot.
Motors and Sound Troubleshooting Tips. © H-CCS Problem 1 Why can’t I download my program to the RCX?
Robots Week 3a Programming Lesson 2: Modifiers, Loops and Jumps Programming Solutions.
Wall Encounter By Made easy by Dwayne Abuel.
AUTOMATION WITH ROBOTC Starting to write and troubleshoot computer code.
3 | Touch sensors Created by H. Robinson & A. Gostelow TOUCH SENSORS.
Conditions and loops Day 4 Computer Programming through Robotics CPST 410 Summer 2009.
Clap On, Clap Off Introductory Presentation. Opening Activity What is a sensor? Can you give examples? ?
Find the Mindstorms Icon on the computer.. To start a new program click go.
By Eric Greene RMS / I. S. 192 Q. Smart Start Question How would you get the robot to flirt with disaster by touching the edge of the “table” as many.
Photos and Sensor Instructions
Remember when putting labels on something was simple ?
Lesson 4: Conditional Statements Programming Solutions.
Robot Programming. Programming Behaviors Behaviors describe the actions and decisions of your robot.
Oregon Robotics Tournament and Outreach Program RCX Basics.
EV3 Software EV3 Robot Workshop
ATI LEGO ROBOLAB Steps To Getting Started. ROBOLAB Introduction  Robots are built around the RCX programmable LEGO brick that is used to control motors.
BEGINNER FLL PROGRAMMING WORKSHOP BY DROIDS ROBOTICS & EV3LESSONS.
Scratch Programming Lesson 1 Moving objects with sound and changing colours.
Automation and Robotics.  First you select the platform type so that you can use Natural Language PLTW.
Casne.ncl.ac.uk Taking care of the CrumbleBot Please do NOT stress the robot's motors 1.Do NOT push the robot 2.Do NOT hold the.
Project Overview  Introduction  Clawbot Build  Design Modification  Design Development  Programming  Sensors  Advanced Sensors  Open design challenges.
Instructions Quit H Robinson. Quit Start Game H Robinson Instructions: Enable Macros when prompted. If you were not prompted then open PowerPoint, go.
4 |Multitasking Created by H. Robinson & A. Gostelow Multitasking.
Robotics Programming Wall Follow Line tracking for a set amount of time Line tracking for a distance.
Introductory Presentation
Introductory Presentation
Introductory Presentation
Exploring Computer Science Lesson 6-11
Project Overview Introduction Clawbot Build Design Modification
Week 2: QUIZ RETAKE LOG INTO YOUR PERSONAL FOLDER NOW.
Loops and Switches Pre-Quiz
Girl Scout Lego Robotics Workshop
Module F: Presentation Understanding Robot Fundamentals
TECH 1 BAMS Technology Education
An Introduction to VEX IQ Programming with Modkit
Line Following Behavior
Storing Values as Variables
Lesson 3: Sensor Wait-for’s Programming Solutions
Automation with RobotC
Photos and Sensor Instructions
An Introduction to VEX IQ Programming with Modkit
Loops and Switches How Do You Make Loops and Switches? lesson > TeachEngineering.org Center for Computational Neurobiology, University of Missouri.
Automation with RobotC
LEGO Education - Mindstorms EV3 - Computer/control center – The Brick
Oregon Robotics Tournament and Outreach Program
Exploring Computer Science Lesson 6-11
Programming Robots using Java
Implementing Variables in Your Programs
Presentation transcript:

Lesson 1: Motors and Sound Programming Solutions

Learning to program  An effective way to learn to program is to learn to “read” a program.  Follow the steps and understand what each does. See how they fit together.  Then you can do your first program by modifying an existing program.  First we’ll look at some programs here and understand what they do.

Exercise 1: What does this do? See how much you can guess.

Exercise 1: Solution Turn on motors connected to ports A and C in the reverse direction for 4 seconds, then stop both motors. Green light always starts your program Turn on motors A and C The white arrow to the left means “reverse” Wait for 4 seconds Stop all motors Red light always ends your program

Things to notice  Every program has a beginning and end. (Traffic lights.)  All icons are connected with “wires.”  This program is linear—one step follows another from beginning to end.

Exercise 2: Solution Turn on motor A in the forward direction for a random amount of time, then stop the motor. Use the watch icon with the dice, which means “random”

Exercise 3: Solution Turn on motor A in the forward direction for 2 seconds, stop the motor, and beep once. Then turn on motor C in the reverse direction for 2 seconds, stop the motor, and beep twice. Remember, the white arrow to the right means “forward” And the white arrow to the left means “reverse” Use 2 Play Sound icons to play 2 beeps.

Key Point!  Writing down programs step by step in English makes them very easy to write in RoboLab.  Think about how to solve the given problem, then work out the logical steps. Write down the steps before writing your program.

Lesson 1: Motors and Sound Troubleshooting Tips

Problem 1a Why can’t I download my program to the RCX?

Solution 1a The RCX was facing the wrong direction. (Don’t forget to turn it on too!) InfraRed receiver must face IR Tower

Problem 1b Why won’t the motor work? This is a sensor port, NOT a motor port.

Solution 1b It was connected to a sensor port. Motor ports are A, B, and C. Sensor ports Motor ports

Problem 1c What is wrong with this program?

Solution 1c Bad wiring. Always check for bad wires. Bad wire Missing wire

Problem 1d This program is supposed to turn on Motor A for 4 seconds, then turn off the motor. What’s wrong?

Solution 1d There was no “Stop Motor” icon.

Mentor session assignment  You will start by writing (copying) a somewhat complicated program for a line follower robot and test it on your Tug of War vehicle. (You’ll have to add a light sensor that points at the ground.)  Then you’ll delete most of the program to do our simple Tug of War program.  For Tug of War your robot will turn on the motors when a touch sensor is pressed. This is a requirement of the assignment.  You can’t compete if your robot can’t perform this simple task.

 views/rcx_products/robolab_video_train er/rob_vid_train_preview.htm#