How To Turn On A Robot On A Computer On A Black Box On A Pc Or Macbook



Similar documents
North Texas FLL Coaches' Clinics. Beginning Programming October Patrick R. Michaud republicofpi.org

How To Program An Nxt Mindstorms On A Computer Or Tablet Computer

EV3 Programming. Overview for FLL Coaches. A very big high five to Tony Ayad

2/26/2008. Sensors For Robotics. What is sensing? Why do robots need sensors? What is the angle of my arm? internal information

Lego Robot Tutorials Touch Sensors

C.I. La chaîne d information LES CAPTEURS. Page 1 sur 5

Tutorial for Programming the LEGO MINDSTORMS NXT

Quick Start Guide to computer control and robotics using LEGO MINDSTORMS for Schools

Line Tracking Basic Lesson

FLL Advanced Programming & Best Practices Workshop

KI6501 Data Manager. Software User Manual

Introduction to programming moway

SE05: Getting Started with Cognex DataMan Bar Code Readers - Hands On Lab Werner Solution Expo April 8 & 9

Watch Your Garden Grow

Congratulations for making the decision to become one of the many proud KT-X robot owners.

Advanced Programming with LEGO NXT MindStorms

White Noise Help Guide for iphone, ipad, and Mac

EasyC. Programming Tips

understanding sensors

Introduction WELCOME TO LEGO MINDSTORMS EDUCATION

Can Traffic Accidents be eliminated by Robots?

Introduction WELCOME TO LEGO MINDSTORMS EDUCATION

Tutorial for Basic Editing in Adobe Premiere Pro CS5

SimplyMap Canada Tutorial

OPERATION MANUAL. MV-410RGB Layout Editor. Version 2.1- higher

esd Mobile Student User Guide v

Intermediate STEMSEL Project 6 Light Sensor Alarm

SpaceClaim Introduction Training Session. A SpaceClaim Support Document

etoureurope User Guide

ibank Quick Start Guide

Animations in Creo 3.0

How-To Change your Account Settings in Office Outlook 2010:

Programming LEGO NXT Robots using NXC

Installing Remote Desktop Connection

Pocket Verifier Quick Start HTC Touch Diamond

Welcome to SMART Notebook TM 11 collaborative learning software

Introduction to Microsoft Access 2003

SAP Business Intelligence (BI) Reporting Training for MM. General Navigation. Rick Heckman PASSHE 1/31/2012

Creating a Project with PSoC Designer

Introduction. Notice anything missing from this manual? Please contact and help us improve!

Modern Robotics, Inc Core Device Discovery Utility. Modern Robotics Inc, 2015

Blender 2.49b How to generate 3D-images?

Appointments: Calendar Window

Getting Started in Tinkercad

STEP 7 MICRO/WIN TUTORIAL. Step-1: How to open Step 7 Micro/WIN

1.0-Scratch Interface 1.1. Valuable Information

Corsair Link v2.4 Manual. Initial Set-up. Placing devices within the chassis

TETRIX Add-On Extensions. Encoder Programming Guide (ROBOTC )

Kinect Interface to Play Computer Games with Movement

How to Build a Simple Pac-Man Game

Make Voice Calls and Share Documents using Skype*

Lab - Configure a Windows Vista Firewall

Multi-Touch Control Wheel Software Development Kit User s Guide

CENTRICITY WEB VERSION 3.0. Updated 11/24/2009 Medical Imaging IT Technical Support please call the Help Desk

How to Install and Set up a Jabra Go 6400 and Pro9400 Series Headset with an Avaya 96x1 Series IP Phone

3D Viewer. user's manual _2

Creating a New Search

Call Center - Agent Application User Manual

Table of Contents. 1. Overview Materials Required System Requirements User Mode Installation Instructions..

REMOTE DESKTOP SETUP INSTRUCTIONS

C-more Remote Access, Data Log, FTP File Transfer, and Tutorial

The Sensor Readings Gadget for Window 7. Version

How a Teen can use "Budget" to manage their money

Help Guide Invoicing

Packet Tracer - Connecting a Wired and Wireless LAN Topology

Creating Animated Apps

Microsoft Outlook 2007 Calendar Features

How to operate the BD FACSCanto flow cytometer

Outlook Express and Express Archiver to Backup and Retrieve at UW 1

How to Install Microsoft Windows Server 2008 R2 in VMware ESXi

Animated Lighting Software Overview

The following pages will help you to solve issues linked to the installation and first use of the Wintech Manager software and Wintech USB computer.

Generative Drafting. Page DASSAULT SYSTEMES. IBM Product Lifecycle Management Solutions / Dassault Systemes

VIRTUAL DESKTOP COMPANION SOFTWARE FOR MAC

MICROSOFT OUTLOOK 2010 WORK WITH CONTACTS

To Begin Customize Office

emarketing Manual- Creating a New

Brother ScanViewer Guide for ios/os X

How to download your NI Press ebook for Nook Users

TECHNICAL NOTE TNOI32

Information & Communication Technologies FTP and GroupWise Archives Wilfrid Laurier University

Remote Access Enhancements

Instructions for Uploading a Payroll File using SchARP

Essay 5 Tutorial for a Three-Dimensional Heat Conduction Problem Using ANSYS Workbench

Intro to 3D Animation Using Blender

Designing a Graphical User Interface

JVC Monitor Calibration 2 User's Guide

Guide to the... Nissan Leaf. Completely harmless fun with. City Car Club 100% electric

oxigen system Slot.it oxigen timing RMS installation Dongle driver installation 1/ 11 Race Management Software

tattletale User Guide Consumer unit version P a g e

WINDOWS 7/8 instruction guide for your Printrbot printer and computer software

Petrel TIPS&TRICKS from SCM

Microsoft Access 2010 handout

St art. rp m. Km /h 1: : : : : : : : : : : : :5 2.5.

REFERENCE GUIDE 1. INTRODUCTION

NVMS User Manual

Document Manager 2.0. Corporate Administrator Guide

This guide will show you how to configure a Windows Mobile 6 PDA for Bluetooth connection to the KBM Systems OBDKey Bluetooth device.

CONTENTS. What is ROBOTC? Section I: The Basics

Transcription:

Written Directions for EV3 Line Follow (Heaviside Algorithm) Description: Given a black line and the light sensor on the EV3 robot, we want to have the light sensor read values from the reflected light. When the values read dark, we will direct the robot to turn right. When the light values read light, we direct the robot to turn left. A graph representing this action would look like: Light > threshold: Turn Left Light < threshold: Turn Right These directions are written for a two motor robot with Left wheel assigned to C and Right wheel assigned to B. The light sensor should be mounted in front, pointing down and centered between the wheels. The robotsquare.com website has plans for the Educator Robot at http://robotsquare.com/wpcontent/uploads/2013/10/45544_educator.pdf. This design would work with these directions.

Procedure: The Pseudo Code for the program is as follows: threshold = 40; while (true) { if (SensorValue[light] < threshold) { motor[left] = 30; motor[right] = 0; } else { motor[left] = 0; motor[right] = 30; } } 1. Start the EV3 software. (Double click the EV3 icon) 2. Select File-New Project

3. Save the Project as Line Follow Tutorial

4. Note the Program Tab this is where we will write the main method of our program. (EV3 Projects can have multiple tabs or program files.)

5. We need a while (true) statement. This is a loop that will continue forever (at least while the program and robot is on). Click on the Orange block tab and drag a loop block into the program area. Note the infinity icon in the block. This is the loop condition (infinity being forever). Any icon in a block can be clicked and changed to set the properties of the block. (Like count, sensor, logic... for loop condition). Play Block Orange Block Tab (Flow) Drag and connect loop block to Play bock.

6. We now need an if-else statement. In EV3 programming this is called a switch block. Stay in the orange tab area and drag a switch block inside the loop block.

7. The default switch block is for the touch sensor in port 1. Click the icon below the picture of the touch sensor and select Color Sensor Compare Ambient Light Intensity. Note that the icon changes to light sensor and the port changes to 3. Click here to select sensor

8. We need to set the threshold value for the light sensor switch block. Note the icons for the less than sign and the sensor value on the block: We can change the < sign or the threshold value by changing these parameters. For now, leave the block at < and change the sensor value to 40. Change to:

9. Recall the code we outlined in the beginning. We need to turn the left motor on and the right motor off when the light is less than 40. Click on the green Action block tab and drag two regular motor blocks to the top of the switch block. Note the checkmark this indicates the actions the block will take when the condition is met (light is less than 40). 10. Note that both these blocks are set to D port and the stopping condition is Rotations (Indicated by the icons). Go to the first block and set the parameters to: a. Port C (Left Motor)

b. On c. 30 Power 11. We need to set the second block to: a. Port B (Right Motor) b. Off

12. The program so far should look like this:

13. We will now do the blocks for the else part of the block (indicated by the x ). Drag two motor blocks into the else section. 14. Change the parameters on the blocks to: a. Port C (Left Motor) i. Off b. Port B(Right Motor) i. On ii. 30 Power

15. The entire program should look like this: 16. The program is complete! Download and test it with your robot. It should track the line (with a very jerky action).

17. To smooth up the action of the robot, we can change the stop blocks B in the top and C in the bottom to be a lower power. For Example: 18. This enables the robot to track the line smoother. But, it will not be able to negotiate the sharper turns.

19. Let us say we want to modify our program so that the robot will stop line tracking after a given rotation of one of the wheels (This will let us specify a distance). The pseudo code would look like this: threshold = 40; SensorValue[rotationB] = 0; // Reset while (SensorValue[rotationB] < 720) { if (SensorValue[light] < threshold) { motor[left] = 30; motor[right] = 0; } else { motor[left] = 0; motor[right] = 30; } } motor[left] = 0; // Motor left off motor[right] = 0; // Motor right off

20. First, click on the Yellow Tab for Sensor Value blocks and drag a motor rotation sensor in front of the loop: 21. Set the Port to C.

22. Set the action to Reset. 23. Now that the C Motor Rotation sensor is reset to 0, we can modify the loop condition to read the Rotation Sensor. Click on the Loop Condition Icon and change to Motor Rotation Degrees.

24. Loops in EV3 are Loop Until in structure. So to set the loop to continue while the rotation sensor is less than 720 degrees, we need to say rotate until Rotation C is > 720 degrees. a. Change the Port to C b. Keep the > and change the degrees to 720.

25. The entire program should look like this: 26. If you ran the program now, you would note that after the two rotations of the C motor, the robot would sort of drift and coast off the line. (Try this and note the result). To fix this, we must use stop commands to turn off the C and B motor and brake.

27. Go back to the Green Action Tab and Drag a Move Tank Motor Block (allows for controlling two motors in one block) after the loop. Set the Motors to B+C and the action to Off 28. Save and run the program. You will note that the robot should stop quickly after the two rotations. You can set a Loop exit condition for any sensor or logic. 29. Let us say that we want to re-use the light sensor if-else statement for line following. We can create a function or My Block that we can re-use in other programs or later in this program. To make a My-Block: a. Click on the Switch Block to select. b. Click on Tools -> My Block Builder

30. Name the Block Line_Follow and type a description:

31. You can select an Icon for you MyBlock. Then click Finish. Note that the MyBlock now replaces the Switch Block: 32. You can access your Line Follow block in the MyBlock Tab:

33. To edit the MyBlock you double click on the block. It then opens a new tab and you can edit the block. 34. Congratulations! You have written a MyBlock for basic Line Following!