Motors and Sound Troubleshooting Tips. © 2005 4H-CCS Problem 1 Why can’t I download my program to the RCX?

Slides:



Advertisements
Similar presentations
Robofest 2005 Introduction to Programming RIS 2.0 RCX Code.
Advertisements

Chung for Robofest 05 1 Introduction to RoboLab CJ Chung Lawrence Technological University.
Summer Computing Workshop. Introduction to Variables Variables are used in every aspect of programming. They are used to store data the programmer needs.
Getting started with LEGO NXT Mindstorms software This is intended to be a short introduction to the LEGO Mindstorms software and programming the LEGO.
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.
Princess & Dragon – Version 2 By Michael Hoyle under the direction of Professor Susan Rodger Duke University July 2012 Part 2: Using Methods.
Skater World: Part One By Deborah Nelson Duke University Under the direction of Professor Susan Rodger May 29,
Sensors For Robotics Robotics Academy All Rights Reserved.
NXT Basics: Technic Building and NXT-G Erin Cejka Riecker Center for Engineering Educational Outreach Tufts University.
Automation and Robotics
Steven Bell Team 1519 Mechanical Mayhem Atlanta FIRST Conference 2005 Teaching To Students.
An Intro to Robots and Computer Programming
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.
Creative Inventions and Robotics Programming with Robolab By Rebekah Gendron.
GIRLS Robotic Camp. Let’s Begin Meet and Greet – Camp leaders introduce themselves – Students introduce themselves.
Programming 101 The Common Palette Content provided by Connor Statham (6 th Grade Student) Formatting by Shannon Sieber.
Excel Masters Which Cursor and Function should I use? Enter if you dare...
Elementary Campuses. Mouse on mouse pad Chair pushed in neatly Keyboard straight Logged off Helping hand on left side Headphones neatly setting on right.
Hello My Name Is… Introductory Presentation. Opening Activity Think about the following: 1.When you are feeling sad, how do you act? 2.How would someone.
Programming a light sensor to follow a black line.
Robots Week 3a Programming Lesson 2: Modifiers, Loops and Jumps Programming Solutions.
Lab 1 : Introduction to LabView 1 Southern Methodist University Bryan Rodriguez.
Negative Power or Negative Rotation makes robot go backwards. But if both are negative, the robot will go forward! Move Steering Block.
3 | Touch sensors Created by H. Robinson & A. Gostelow TOUCH SENSORS.
Lego MindStorm An Introduction to Blocks. Blocks Blocks are used to give instructions to your robot. There are many types of blocks You can use the blocks.
Castor Bot. Now, we will begin creating a robot Log onto your computer On your screen, click on the website labeled “castor bot” Your building instructions.
Lesson 4: Conditional Statements Programming Solutions.
Learning PowerPoint Presenting your ideas as a slide show… …on the computer!
Intro to Inventor. 1. Create a new part. Go to upper left corner of screen to I-Pro/New, Part.
Hyperstudio: A Beginner’s Tutorial By Judy Swaim.
Marble Racer. The screen where you can see what happens when you play your game is called the STAGE. The SCRIPT BANK is where the types of instructions.
Oregon Robotics Tournament and Outreach Program RCX Basics.
Programming 101 The Common Palette Content provided by Connor Statham (9 th Grade Student) Formatting by Shannon Sieber.
BEGINNER FLL PROGRAMMING WORKSHOP BY DROIDS ROBOTICS & EV3LESSONS.
Lesson 1: Motors and Sound Programming Solutions.
How to make a Line Follow program Using EV3 software and an NXT light sensor.
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.
Using Zappers in a Common Learning Space A guide for tutors Created by Adam Warren Learning and Teaching Enhancement Unit.
Advanced issues in Robotics and Programming Dr. Katerina G. Hadjifotinou Experimental Junior High School of the University of Macedonia.
1 ©2006 INSciTE Lab Three Task: Move forward for 2 feet, turn right 90º repeat to complete a square path. End up exactly where you started.
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.
USING SWITCHES TO PROGRAM A CANDY SORTER DESIGNED FOR USE WITH LMS EV3 PROGRAMMING AND BUILDING ENVIRONMENT.
ROBOTC for CORTEX Teacher Training © 2011 Project Lead The Way, Inc. Automation and Robotics VEX.
Create a Halloween Computer Game in Scratch
Understanding Communication with a Robot? Activity (60 minutes)
Touch Sensor.
Using Switches to Program A candy Sorter
Loops and Switches Pre-Quiz
Automation and Robotics
Module F: Presentation Understanding Robot Fundamentals
Displaying sensor values while a robot is running
INTERMEDIATE PROGRAMMING LESSON
BEGINNER PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
Line Following Behavior
BEGINNER PROGRAMMING LESSON
Using Switches to Program A candy Sorter
Lesson 3: Sensor Wait-for’s Programming Solutions
The programming page of the Brick
Loops and Switches How Do You Make Loops and Switches? lesson > TeachEngineering.org Center for Computational Neurobiology, University of Missouri.
Lego MINDSTORMS EV3.
Oregon Robotics Tournament and Outreach Program
Getting started with LEGO EV3 Mindstorms software
Implementing Variables in Your Programs
Presentation transcript:

Motors and Sound Troubleshooting Tips

© H-CCS Problem 1 Why can’t I download my program to the RCX?

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

© H-CCS Problem 2 Why won’t the motor work?

© H-CCS Solution 2 It was connected to a sensor port. Motor ports are A, B, and C. Sensor ports Motor ports

© H-CCS Problem 3 What is wrong with this program?

© H-CCS Solution 3 Bad wiring. Always check for bad wires. Bad wire Missing wire

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

© H-CCS Solution 4 There was no “Stop Motor” icon.

Wiring Tips and Troubleshooting

© H-CCS Many of the problems associated with programming in Robolab have to do with mistakes in wiring the Icons or Modifiers.

© H-CCS Problem 5 This Program looks good at first glance, but notice the broken black arrow on the upper left hand corner of the screen. If you click on the arrow, you will see the list of errors

© H-CCS Solution 5 The List of Errors shows that neither the input nor the output of the ‘Wait For 4 Seconds’ Icon are wired. It looks like the programmer just laid the icon over the wire. If you grab the icon and drag it down, you can see this clearly.

© H-CCS

Problem 6 This Program looks just like the previous one, and again notice the broken black arrow on the upper left hand corner of the screen. If you click on the arrow, you will see a different list of errors.

© H-CCS Solution 6 This time, there’s only one error listed. It says that the end of the ‘Stop All Outputs’ Icon isn’t wired. If you’re in the ‘Select’ mode of the tools palette (that’s the arrow) and highlight the wire connected to the Red Light, you’ll see a ghost image of the wire connected from the input of the Stop Sign to the input of the red light.

© H-CCS

Problem 7

© H-CCS The List of Errors tells us that the ‘Motor C Forward’ Icon isn’t wired. But when we click on one of the errors, neither corner of the ‘Motor C Forward’ Icon flash. And, when we look at the icon, we can see that it is correctly wired……hmm!

© H-CCS Solution 7 What happened here is that our programmer took the icon off the palette by mistake and rather than delete it, he tried to put it back on the palette. In trying this, all he did was hide the icon under the palette. Delete this icon and the arrow will turn white.

© H-CCS Problem 8 The robot is supposed to go forward for 4 second but it stops after only 1. What could be wrong?

© H-CCS Problem 8 Someone forgot to wire the modifier to the ‘Wait for Time’ Icon. Every icon that can have a modifier has a “Default Value.” The default value for the ‘Wait for Time’ icon is 1 second.

Modifiers, Loops and Jumps Troubleshooting Tips

© H-CCS Problem 9 Write a program that plays a beep three times in a row. This plays sound #3, NOT 3 sounds.

© H-CCS Solution(s) 9 Use 3 Play Sound icons, or use a loop that loops 3 times.

© H-CCS Problem 10 Turn on motor A at power level 1. This is a numeric constant modifier NOT a power level modifier. (Strangely enough, it does not show a bad wire. Hmmmm…..)

© H-CCS Solution 10 Use a Power Level 1 modifier.

© H-CCS Problem 11 Write a program that beeps forever. What’s wrong? This is a yellow jumpBut this is a red land

© H-CCS Solution 11 Make sure jump and land pairs are the same color.

© H-CCS Problem 12 Write a program that beeps forever. What’s wrong now? Start Jump to green land Land hereEnd Oops!

© H-CCS Solution 12 Be careful not to mix up the order of your jumps and lands!

Sensor Wait-for’s Troubleshooting Tips

© H-CCS Problem 13 Why won’t the light sensor work? This is a motor port.

© H-CCS Solution 13 Sensors need to be connected to sensor ports 1, 2 or 3. Sensor ports

© H-CCS Problem 14 What’s wrong with this set up? The touch sensor is connected to port 1. But the software says the touch sensor is on port 3.

© H-CCS Solution 14 Connect the touch sensor to port 3. Or, change the port number in the software.

© H-CCS Problem 15 Why won’t the touch sensor work?

© H-CCS Solution 15 Make sure the cable is connected to the front of the touch sensor. WRONGRIGHT

© H-CCS Problem 16 What isn’t too great about the way the light sensor is mounted?

© H-CCS Solution 16 If the light sensor is too high, it has a harder time distinguishing between dark and light. Mounting it lower to the ground will help.

© H-CCS Problem 17 What’s wrong with this program? What is the default port?

© H-CCS Solution 17 Remember: Different sensors MUST be on different ports in the software. If a port is not specified, it assumes Port 1.

© H-CCS Problem 18 This program should turn on motor A until the rotational sensor has turned 2 revolutions, then turn off the motor. Why doesn’t it work? Hint: What is the default number of ticks in a Wait-for Rotation icon?

© H-CCS Solution 18 The default number of ticks is 16, or 1 revolution. For 2 revolutions, you must specify the number of ticks with a numeric constant modifier. 32 ticks = 2 revolutions

Conditional Statements Troubleshooting Tips

© H-CCS Problem 19 What’s wrong with this program?

© H-CCS Solution 19 Remember: All forks need a fork merge.

© H-CCS Problem 20 This program is supposed to turn on motor A if the touch sensor is pressed, otherwise turn on motor C. What’s wrong?

© H-CCS Solution 20 The branches of the fork are mixed up. This is a common mistake.

© H-CCS Problem 21 In this program, if the light sensor reads a value above 80, it should turn on motor B. Otherwise, it should beep. Why doesn’t it work? Hint: What is the default light level value?

© H-CCS Solution 21 The default light level value is 55. To specify a different value, you must use a numeric constant modifier.

© H-CCS Problem 22 What’s missing from this program?

© H-CCS Solution 22 Before every rotational sensor fork, you must reset the rotational sensor. Rotational sensor reset

Multiple Tasks & Timers Troubleshooting Tips

© H-CCS Problem 23 What’s wrong with this program?

© H-CCS Solution 23 Remember: Only forks need a fork merge. Task splits need red stop lights at the end of each task.

© H-CCS Problem 24 What’s wrong with this program? Hint: What do all forks need?

© H-CCS Solution 24 Unfortunately, if you use a task split after a fork, there is NO WAY to merge the fork back together, so just don’t do it.

© H-CCS Problem 25 This program should beep for exactly 5 seconds, but it beeps forever! What’s wrong? Hint: What do you do immediately after you land on the Red Land?

© H-CCS Solution 25 The problem is, the timer was being reset back to 0 every time you landed. In this program, the timer is reset only once at the beginning of the program.

Containers Troubleshooting Tips

© H-CCS Problem 26 This program wants to use the value of the red container, which is 22, in the light sensor fork. What’s wrong?

© H-CCS Solution 26 The number 22 was stored in the red container, but the light sensor fork was using the value of the yellow container.

© H-CCS Problem 27 Why is there a bad wire in this program? bad wire

© H-CCS Solution 27 Remember, forks and loops need to use the value of the container (modifier with white background). container value

© H-CCS Problem 28 Why is there a bad wire in this program? bad wire

© H-CCS Solution 28 To store a sensor value in a container, you must use the sensor port’s value. sensor port value