Light, Sound, and Ultrasonic Sensor. Doc leJOS API –http://lejos.sourceforge.net/nxt/nxj/api/index.html leJOS Tutorial –http://lejos.sourceforge.net/nxt/nxj/tutorial/index.htm.

Slides:



Advertisements
Similar presentations
RCX Workshop Day 2 Programming with Touch Sensor Light Sensor Repeat CJ Chung Associate Professor of Computer Science Lawrence Technological University.
Advertisements

NXTG Workshop Day 2 Programming with Touch Sensor Light Sensor Ultrasonic Sensor Repeat CJ Chung Associate Professor of Computer Science Lawrence Technological.
For(int i = 1; i
EN Engenharia Unificada I Utilizando o LEGO Mindstorms Centro de Engenharia, Modelagem e Ciências Sociais Aplicadas.
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Lab 1.
1 ©2006 INSciTE Lab Two Task: Make the program from Lab One (Move forward 5 rotations and turn right 90 degrees) into a MyBlock.
Session 2  The Touch Sensor  The Colour Sensor.
Sensors and sensing electrical signal digital signal.
EG1003: Introduction to Engineering and Design Sensors.
Challenge #1 – Relay Race Robot #1 will be randomly placed on starting line #1, #2 or #3. Robot #1 will drive until it detects the “Dark Line” - Robot.

LEGO Mindstorms NXT Introduction. Component NXT Brick Touch Sensor Light Sensor Ultrasonic Sensor Interactive Servo Motors MMN Lab.
Department of Computing and Information Sciences Kansas State University Design Methodology for State based Embedded Systems Case Study: Robot Controller.
Laboratory 7: Sensors Matthew R. Gaglio, Feb 2007.
Robotics NXT sensors Back to Light sensor: red vs blue ball.
NXT Development Tutorial Part 2: Sensor/ Motor Collaboration NTHU CS Freshman Camp Shu-Ting Wang.
Using Thread in leJOS. Introduction to thread A thread is a thread of execution in a program The Java Virtual Machine allows an application to have multiple.
LabVIEW Basics Review LabVIEW Robotics Fundamentals.
EducateNXT Robot Sumo The robot gains intelligence.
Sound, Touch Sensor, and Motors. Wheeled Vehicles Using the Pilot class: –Constructor Pilot(float wheelDiameter, float trackWidth,Motor leftMotor, Motor.
VEX Robotics Design System Sensors A Brief Overview
Behavior Programming. Structured Programming A series of if-thens Easy to get started in and hardly requires any thought or design beforehand But the.
Lego Mindstorms Robot Tracey Zhang. LEGO MINDSTORMS STATMENT The design challenge my group experimented with is the Lego Mindstorms robot. Our goal is.
The Wait-Until-Event pattern Has it happened  Yes, it happened!
ICE at Georgia Tech Robots and Artificial Life Forms An NXT Zoo! Mr. Michaud
Wall Encounter By Made easy by Dwayne Abuel.
Event Driven Programming Minus the GUI Plus a Robot By Charlie Vick.
Patina Becenti Mentor – Mansel Nelson. Introduction  The idea is to educate young students to explore the world of science and engineering.  Implement.
CSE 1341 Honors Professor Mark Fontenot Southern Methodist University Note Set 11.
THE LIGHT SENSOR The Light Sensor gives your robot some kind of vision. It can distinguish between light and dark assigning a number between 0 (completely.
NXT Development Tutorial Part 3: Robot Arm NTHU CS Freshman Camp Shu-Ting Wang.
Robotics NXT-G: variables, file Rotation sensor Lab: Use buttons to hit specific ball. Homework: Postings. Start planning mapping the room.
ROBOTIC ARM 2 Wilmer Arellano © Hardware  Next slide shows sensor connection to analog pin 0 and Motor 1 connection. Lecture is licensed under.
The George Washington University Department of ECE ECE Intro: Electrical & Computer Engineering Dr. S. Ahmadi Class 4/Lab3.
Decisions, Looping, and input sensors Mindstorms, Eclipse and Java.
With Robots robots are radical.   Somebody’s appendix has just ruptured and all the doctors are off golfing. Its up to two heroic robots to save this.
Rescue Robot Day 2 Exploring Computer Science Lesson 6-11.
Scenario 1: walk slowly at a constant speed away from the motion sensor. Scenario 2: walk slowly at a constant speed toward the motion sensor. Scenario.
The George Washington University Electrical & Computer Engineering Department Dr. S. Ahmadi Class 3.
BEGINNER FLL PROGRAMMING WORKSHOP BY DROIDS ROBOTICS & EV3LESSONS.
Enables your robot to see, recognize, avoid objects, and detect movement. It uses the same scientific principle that bats use. It measures distance in.
EG1003: Introduction to Engineering and Design Laboratory 4: Sensors.
Obstacle Detection. In the previous program the robot moves forward and then checks for something in the way. As we observed it only checks for things.
-Make sure you get the right size - Hint: check the shoes you are wearing right now.
MEH108 - Intro. To Engineering Applications KOU Electronics and Communications Engineering.
Forward Until Near Stop when near a wall.
Robotics Programming Wall Follow Line tracking for a set amount of time Line tracking for a distance.
Python Programming Module 4 Sensors and Loops Python Programming, 2/e1.
Introduction to Mindstorms Educational Robotics Equipment
The Corridor Challenge
By Sanjay and Arvind Seshan
Lecture 10 Sensors.
By Sanjay and Arvind Seshan
BASIC ELECTRONICS & ROBOTICS Instructor: Humayun Rashid Raahat
Touch Sensor.
BEGINNER PROGRAMMING LESSON
Laboratory 7: Sensors Matthew R. Gaglio, Feb 2007.
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER EV3 PROGRAMMING Lesson
Introductory Presentation
Laboratory 4: Sensors Matthew R. Gaglio, Feb 2007.
BEGINNER PROGRAMMING LESSON
Forward Until Touch Robot goes forward until it hits a wall.
Follow The Guidelines Light Sensor
BEGINNER PROGRAMMING LESSON
Programming Fundamentals
SENSORS.
BEGINNER PROGRAMMING LESSON
Lego MINDSTORMS EV3.
BEGINNER PROGRAMMING LESSON
Presentation transcript:

Light, Sound, and Ultrasonic Sensor

Doc leJOS API – leJOS Tutorial – MMN Lab.

Light Sensor Constructor –LightSensor(SensorPort port) –LightSensor(SensorPort port, boolean floodlight) ) Method –int readValue() Higher numbers indicate more light –Int readNormalizedValue() MMN Lab.

Light Sensor cont’d Sample program MMN Lab.

Sound Sensor Constructor –SoundSensor(SensorPort port) –SoundSensor(SensorPort port, boolean dba) Method –int readValue() –Void setDBA(boolean dba) MMN Lab.

Sound Sensor cont’d Sample program MMN Lab.

Ultrasonic Sensor Constructor –UltrasonicSensor (SensorPort port) Method –int getDistance() MMN Lab.

Ultrasonic Sensor cont’d Sample program MMN Lab.

Lab4 Scenario –1. Move forward until light sensor detects the black area –2. Use the sound sensor such that the arm will hit the ball away after a indication –3. Start to move and stop before bumping into the wall Hint –For the arm, you can use Motor.PORT.Method to do some action MMN Lab.