Top Banner
ENGR 101: Robotics Lecture 1 – Introduction Outline The Scribbler's Sensors Demo Modes Graphical Programming References http://csserver.evansville.edu/ ~richardson/ GUI Programming Guide: Setting Up GUI Programming Guide: First Programs 1
12

ENGR 101: Robotics Lecture 1 – Introduction Outline The Scribbler's Sensors Demo Modes Graphical Programming References richardson

Dec 21, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: ENGR 101: Robotics Lecture 1 – Introduction Outline  The Scribbler's Sensors  Demo Modes  Graphical Programming References  richardson/

ENGR 101: RoboticsLecture 1 – Introduction

Outline The Scribbler's Sensors Demo Modes Graphical Programming

References http://csserver.evansville.edu/~richardson/

GUI Programming Guide: Setting Up GUI Programming Guide: First Programs

1

Page 2: ENGR 101: Robotics Lecture 1 – Introduction Outline  The Scribbler's Sensors  Demo Modes  Graphical Programming References  richardson/

2

ScribblerTop View

Page 3: ENGR 101: Robotics Lecture 1 – Introduction Outline  The Scribbler's Sensors  Demo Modes  Graphical Programming References  richardson/

3

ScribblerBottom View

Page 4: ENGR 101: Robotics Lecture 1 – Introduction Outline  The Scribbler's Sensors  Demo Modes  Graphical Programming References  richardson/

Lecture 1 – IntroductionDemo Modes

4

Cover zero, one, two or three of the light sensors as shown in the table on the following slides to put the Scribbler into one of eight demo modes.

Turn the Scribbler on, cover the light sensors with your fingers and then press the reset button. Wait for a beep and then uncover the light sensors.

L, C, and R refer to the left, center and right (as seen from the drivers seat of the robot) light sensors respectively. A ● indicates that a finger should be used to cover the sensor during reset. A ○ means that the sensor should be left uncovered.

Page 5: ENGR 101: Robotics Lecture 1 – Introduction Outline  The Scribbler's Sensors  Demo Modes  Graphical Programming References  richardson/

Lecture 1 – IntroductionDemo Modes

5

L C R Demo Mode Description

○ ○ ○ Mode 0 (Light Sensing) – Covering a light sensor causesthe corresponding LED to go out. (The Scribbler doesnot move in this mode.)

○ ○ ● Mode 1 (Light Detection) – The Scribbler will movetoward the brightest light in the room (or follow aflashlight around).

○ ● ○ Mode 2 (Object Sensing) – The Scribbler will playdifferent tones depending on whether it detects on objectto the right or to the left. (The Scribbler does not move inthis mode.)

Page 6: ENGR 101: Robotics Lecture 1 – Introduction Outline  The Scribbler's Sensors  Demo Modes  Graphical Programming References  richardson/

Lecture 1 – IntroductionDemo Modes

6

L C R Demo Mode Description

○ ● ● Mode 3 (Object Avoidance) – The will move around theroom turning to avoid any objects in its path.

● ○ ○ Mode 4 (Line Sensing) – The right LED will light if theright sensor sees the line. If the left sensor sees the line,the left LED will light. (The Scribbler does not move inthis mode.)

● ○ ● Mode 5 (Line Following) – The Scribbler will follow ablack line (track) drawn on white paper.

Page 7: ENGR 101: Robotics Lecture 1 – Introduction Outline  The Scribbler's Sensors  Demo Modes  Graphical Programming References  richardson/

Lecture 1 – IntroductionDemo Modes

7

L C R Demo Mode Description

● ● ○ Mode 6 (Scribble) – The Scribbler will draw a figure 8and then beep. Pick up the Scribbler and set it downagain and it will draw a box.

● ● ● Mode 7 (Ambulance) – The Scribblers drives aroundavoiding obstacles while blaring a siren and flashinglights.

Page 8: ENGR 101: Robotics Lecture 1 – Introduction Outline  The Scribbler's Sensors  Demo Modes  Graphical Programming References  richardson/

8

Help

MonitorSensors

ClearWorksheet Load

Worksheet

SaveWorksheet

RestoreDemo

DownloadProgram

ViewPbasic

Start ofProgram

End ofProgram

Page 9: ENGR 101: Robotics Lecture 1 – Introduction Outline  The Scribbler's Sensors  Demo Modes  Graphical Programming References  richardson/

9

Select/Edit

Zoom Out

Motion Tile

Paste From Clipboard

Sound/Music Tile

LED On/Off Tile

Pause Tile

Flag Tile

Page 10: ENGR 101: Robotics Lecture 1 – Introduction Outline  The Scribbler's Sensors  Demo Modes  Graphical Programming References  richardson/

10

Observation Tile

Computation Tile

Condition Tile

Second Condition Tile

Start Loop Tile

End Loop Tile

Subroutine Start Tile

Subroutine End Tile

Call Subroutine Tile

End Program Tile

Page 11: ENGR 101: Robotics Lecture 1 – Introduction Outline  The Scribbler's Sensors  Demo Modes  Graphical Programming References  richardson/

Lecture 1 – IntroductionGraphical Programming

First Programs 1) Turn center LED on. 2) Turn all LEDs on then off. 3) Flash LEDs 5 times - on 1 sec/off 1 sec.

Second Programs 1) Go fwd 1 sec, turn right, go fwd 1 sec,

stop 2) Continuous spirograph motion.

11

Page 12: ENGR 101: Robotics Lecture 1 – Introduction Outline  The Scribbler's Sensors  Demo Modes  Graphical Programming References  richardson/

ENGR 101: RoboticsAssignment 1 – Due Next Time! Program the Scribbler to perform some

activity that involves (at least) flashing LEDs, motion, and sound.

Be prepared to demonstrate your program at the start of the next class.

12