Lab 1: Testing and Measurement on the r-one

Similar documents
Experiment P55: Light Intensity vs. Position (Light Sensor, Motion Sensor)

Parts to be supplied by the student: Breadboard and wires IRLZ34N N-channel enhancement-mode power MOSFET transistor

PHY 112L Activity 2 Electronics Primer

Robotics using Lego Mindstorms EV3 (Intermediate)

Chapter 14. using data wires

An Introduction to Programming using the NXT Robot:

Parts of a Lego RCX Robot

Thanks to Autocheck function, it is possible to perform a complete check-up of the robot thanks to a stepby-step

Some prior experience with building programs in Scratch is assumed. You can find some introductory materials here:

Experiment 4.B. Position Control. ECEN 2270 Electronics Design Laboratory 1

Overview of Teaching Motion using MEMS Accelerometers

The light sensor, rotation sensor, and motors may all be monitored using the view function on the RCX.

Electrical Measurements

Your EdVenture into Robotics 10 Lesson plans

Module 1, Lesson 2 Introduction to electricity. Student. 45 minutes

Medidores de vibración salida RS232 Datalogger VT-8204 LUTRON manual ingles

PHYSICS 220 LAB #1: ONE-DIMENSIONAL MOTION

PocketLab Weather Getting Started Guide

Experiment P01: Understanding Motion I Distance and Time (Motion Sensor)

Programming Design. ROBOTC Software

Lab Exercise 9: Stepper and Servo Motors

Lab 3 DC CIRCUITS AND OHM'S LAW

I.1 Smart Machines. Unit Overview:

Lab book. Exploring Robotics (CORC3303)

C - Underground Exploration

Studuino Icon Programming Environment Guide

Lab 4 Ohm s Law and Resistors

1. Mechanical Arms Hardware

LAB 2 Circuit Tools and Voltage Waveforms

EE 308 Lab Spring 2009

Lab 8: Introduction to the e-puck Robot

Experiment P02: Understanding Motion II Velocity and Time (Motion Sensor)

RC Altimeter #2 BASIC Altitude data recording and monitoring system 3/8/2009 Page 2 of 11

e d u c a t i o n Detect Dark Line Objectives Connect Teacher s Notes

Teacher s Guide - Activity P51: LR Circuit (Power Output, Voltage Sensor)

INTRODUCTION TO DATA STUDIO

EE 308 Spring S12 SUBSYSTEMS: PULSE WIDTH MODULATION, A/D CONVERTER, AND SYNCHRONOUS SERIAN INTERFACE

Height Limited Switch

MULTIMETER TRAINING UNIT QUICKSTART GUIDE

A servo is an electric motor that takes in a pulse width modulated signal that controls direction and speed. A servo has three leads:

HANDS-ON ACTIVITY 4 BUILDING SERIES AND PARALLEL CIRCUITS BACKGROUND WIRING DIRECTIONS

Grade Level: High School 9 th 12 th grades Lesson: Electromagnets: Winding Things Up! Type of Lesson: Inquiry Lab Activity. Length of Lesson: 45 min.

CURIE Academy, Summer 2014 Lab 2: Computer Engineering Software Perspective Sign-Off Sheet

understanding sensors

DC CIRCUITS AND OHM'S LAW

Fall Lab2_ET150.docx

Physics 4B, Lab # 2 Circuit Tools and Voltage Waveforms

Master Op-Doc/Test Plan

STRUCTURE SENSOR QUICK START GUIDE

Chabot College Physics Lab Ohm s Law & Simple Circuits Scott Hildreth

+ A Supply B. C Load D

Wireless Occupancy Sensor User Guide

Lab 5: Real DC Circuits

Experiment 3. Ohm s Law. Become familiar with the use of a digital voltmeter and a digital ammeter to measure DC voltage and current.

Experiment 2. Ohm s Law. Become familiar with the use of a digital voltmeter and a digital ammeter to measure DC voltage and current.

Deriving Consistency from LEGOs

Scorpion Antennas Controller. Instruction Manual. Firmware V11.8 November Please Read This Manual Completely Before Operating The Controller

SOP for Micro Mechanical Analyzer

Lab 06: Ohm s Law and Servo Motor Control

PRESENTED BY HUMANOID IIT KANPUR

Experiment P36: Resonance Modes and the Speed of Sound (Voltage Sensor, Power Amplifier)

1. Controlling the DC Motors

Lab #1: Electrical Measurements I Resistance

How to draw the CB South Kerf Bent Clock:

Quantizer step: volts Input Voltage [V]

Test Procedure for Nanometric Discriminator Cards for Wire Chambers. James Clarke

instead we hook it up to a potential difference of 60 V? instead we hook it up to a potential difference of 240 V?

A Day in the Life CTE Enrichment Grades 3-5 mblock Robotics - Simple Programs

Current, resistance, and Ohm s law

Mechatronics Laboratory Assignment 3 Introduction to I/O with the F28335 Motor Control Processor

Two Hour Robot. Lets build a Robot.

Laboratory Project 1a: Power-Indicator LED's

Mechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-4: Electric Actuators

Never power this piano with anything other than a standard 9V battery!

Resistance Apparatus EM-8812

Lab 1: Electric Potential and Electric Field

Introduction to the EXPANSION HUB

A - Debris on the Track

A - Debris on the Track

Two Dimensional Motion Activity (Projectile Motion)

Revision for Grade 7 in Unit #1&3

Experiment 9: Electrical Measurements

LAB 1 AN EXAMPLE MECHATRONIC SYSTEM: THE FURBY

A - Debris on the Track

Western Kansas Lego Robotics Competition April 16, 2018 Fort Hays State University

FLL Coaches Clinic Chassis and Attachments. Patrick R. Michaud

Agent-based/Robotics Programming Lab II

Micro Wizard Instructions

due Thursday 10/14 at 11pm (Part 1 appears in a separate document. Both parts have the same submission deadline.)

OZOBOT BASIC TRAINING LESSON 1 WHAT IS OZOBOT?

Course materials and schedule are at. positron.hep.upenn.edu/p364

Activity 2: Opto Receiver

Sten-Bot Robot Kit Stensat Group LLC, Copyright 2013

Built-in soft-start feature. Up-Slope and Down-Slope. Power-Up safe start feature. Motor will only start if pulse of 1.5ms is detected.

ENGR 1110: Introduction to Engineering Lab 7 Pulse Width Modulation (PWM)

Robots are similar to humans if you consider that both use inputs and outputs to sense and react to the world.

A3 Pro INSTRUCTION MANUAL. Oct 25, 2017 Revision IMPORTANT NOTES

EEL5666C IMDL Spring 2006 Student: Andrew Joseph. *Alarm-o-bot*

Sample Pages. Classroom Activities for the Busy Teacher: NXT. 2 nd Edition. Classroom Activities for the Busy Teacher: NXT -

UNIT1. Keywords page 13-14

Transcription:

Lab 1: Testing and Measurement on the r-one Note: This lab is not graded. However, we will discuss the results in class, and think just how embarrassing it will be for me to call on you and you don t have the work complete... 1 Testing your Robot In this section, you will test most of the sensors and actuators on your robot. You will need a partner for some of these activities, and you will both need working robots and GUIs. Setup your robot and download the the r-one GUI: http://www.clear.rice.edu/engi128/resources.shtml Turn your robot off and plug it into your computer. Turn it on and note the serial port that it connects to using the device manager. Connect to this port with the r-one GUI. 1.1 Encoders Write down the position value (the ticks ) of the left and right encoders. Push the robot forward 10 cm, being sure to keep the wheels from slipping (i.e. make sure the wheels turn). Record the new position values of the left and right encoders. What do the encoder ticks seem to be measuring? What is their resolution (mm/tick)? Encoder values (initial) =, Encoder values (final) =, Quantity measured and resolution =, 1 2014-09-18

1.2 Motors Click on the Sync Motors button, the grey circle under the picture of the robot. Select the PWM mode for the motor control. Click on the up buttons to give positive pulse-width modulation (PWM 1 ) to both motors. What is the minimum PWM you need to get the robot to move forward on level ground? Use your tape measure and a stop watch to measure the speed of the robot. Repeat this speed measurement for the maximum PWM. Min PWM and min speed =, Max PWM and max speed =, 1.3 Light Sensors Cover the robot s front-right light sensor with your finger. Record the values from this sensor. Point robot to the ceiling lights and record the maximum value from a light sensor. Light sensor min and max =, 1.4 Bump Sensors Note the values of the bump sensors (middle circle on the GUI) while you move the bump skirt. Can you get a single sensor to activate? Two? Three? How would you compute the direction of the obstacle? Bump Sensor Notes =,, 1.5 IR Obstacle Sensors Observe the display of IR obstacles on the GUI (right circle). Slowly move your hands around the robot. What do all these lines mean? Can you get a single sensor pair to activate? Two? Three? How would you compute the direction of the obstacle? What is the maximum range to detect a wall? IR obstacle notes =,, IR obstacle max range = 1.6 Accelerometer Record the x, y, and z values of the accelerometer while the robot is resting on your desk. Based on these measurements, what are the units of this sensor? In what direction is the z-axis pointed? Accelerometer x, y, z =,, Accelerometer units and z-axis direction =, 1 We will define this term next class. It is the amount of power you are giving to each motor 2 2014-09-18

1.7 Gyroscope Watch the values of the gyroscope while you are moving the robot. What does this seem to be measuring? How is it different from gyroscopes we talked about in class. If this question doesn t make any sense, isn t it still a really cool sensor? Thoughtful answer = Cool? = 1.8 IR communications Find a partner. Place your robot around 50cm from each other on a flat surface. Look for their robot to appear on the neighbor map (the left side of the GUI). Use your tape measure to measure the range at which communication becomes unreliable. Note: IR communications uses light, so the transmitter robot needs to be on the same plane as the receiver robot. IR communications max range = 1.9 Radio communications Type a radio message in the textbox by radio. Hit enter at the end of your message and verify your message on another person/team s GUI. Note the range at which radio communication becomes unreliable. This range will be large, you can use floor tiles to measure the range. Radio communications max range = 2 Measuring voltages on the robot 2.1 Multimeter A multimeter is a primary tool of electrical engineers. It is used to take a variety of electrical measurements; such as voltage, current, and resistance. In this lab, we will measure the direct current (DC) voltage of various points on the robot. The smallest voltage on the robot is 0 volts, and the largest is 5 volts. The multimeter can read DC voltage on several different range settings. Since the largest voltage on the robot is 5 volts, we want to set the multimeter s dial to the smallest voltage range that is greater than 5v, which is DCV 20 on your meters. If the multimeter is set to some large voltage, like 600V, the readings from the robot would be so small that it would barely read. In contrast, if the range were set to millivolts, the robot s voltage would exceed the range of this setting. The multimeter has two probes, one black and one red. The black probe is for ground. In electrical engineering, ground is a reference point in an electrical circuit from which other voltages are measured. To prevent damaging your robot, keep the black probe on the robot s ground and do not touch (short-circuit) the red probe to anything but the indicated test points. Use the accompanying sheet to identify the places on the robot to measure voltage. To connect your multimeter to the robot s ground, put the black probe on TP1, or the small square hole directly to the right of it, inside the white rectangle. The red probe will touch other components of the 3 2014-09-18

robot in order to measure the voltage across two points. If you get a negative voltage reading, it means that your test leads are reversed. 2.2 Battery and System Voltage Use the multimeter to see the change in voltage on the main power supply when the robot is powered on. Turn the robot off, place the red probe on the via, and record the multimeter reading: Battery voltage TP3 (off) = System voltage TP2 (off) = Turn on the robot and take another multimeter reading. What voltage does it read now? Battery voltage TP3 (on) = System voltage TP2 (on) = Does this reading make sense? 2.3 Switches Setup the GUI and connect your robot. Verify that you can control motors and read light sensors. Put the red probe on TP5, which is the signal for the red button. Record the voltage when you push the button and when you are not pushing the button: Button voltage TP5 (released) = Button voltage TP5 (pressed) = Why do you think you get these particular voltages? Does it seem reversed? 2.4 Light Sensor The robot has three light sensors. We will measure the front right (FR) sensor. Near the FR light sensor, put your probe on TP12. Record the voltage reading from this sensor and the number from the GUI with the robot just sitting on the desk. Record these same two measurements with the sensor covered, and then with a flashlight pointed at it. Light sensor voltage TP12, GUI value (initial) =, Light sensor voltage TP12, GUI value (covered) =, Light sensor voltage TP12, GUI value (flashlight) =, How does this data differ from the readings of the button? Can you get any voltage you want by moving the flashlight and covering the sensor? 2.5 Motors Record the voltage reading from the two pulse width modulation (PWM) channels for the left motor. Use the GUI to set the PWM for the left motor to the specified values: 4 2014-09-18

PWM voltage A, B TP14, TP15 (PWM setting = 0) =, PWM voltage A, B TP14, TP15 (PWM = 50%) =, PWM voltage A, B TP14, TP15 (PWM = 75%) =, PWM voltage A, B TP14, TP15 (PWM = 100%) =, PWM voltage A, B TP14, TP15 (PWM = -50%) =, How are the A and B PWM voltages different? What is the range of the measured voltage? How does the measured voltage compare to the PWM value from the GUI and the system voltage from Section 2.2? 2.6 Encoders Record the voltage reading from the left encoder channels. Use the GUI to set the PWM for the left motor to the specified values: Encoder voltage A, B TP16, TP17 (PWM = 0) =, Encoder voltage A, B TP16, TP17 (PWM = 50%) =, Encoder voltage A, B TP16, TP17 (PWM = 75%) =, Encoder voltage A, B TP16, TP17 (PWM = 100%) =, Encoder voltage A, B TP16, TP17 (PWM = -75%) =, How are the A and B encoder channels different? What is the range of the measured voltage? How does the measured voltage compare to the PWM value and the system voltage? How do these measurements compare to the PWM voltages from above? What were you expecting? 5 2014-09-18