1 NXT Robotics

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 33

LEGO MINDSTORMS

EDUCATION
NXT ROBOTICS

Beryl Jhan Cruz


Master Robotics Teacher
(Philippine Robotics Academy)
DYCI Robotics Coordinator
DYCI Robotics Coach (GS,HS and College)
Dr. Yanga’s Colleges, Inc.
Wakas, Bocaue, Bulacan
3018 PHILIPPINES
Process
BUILD
EXECUTE

DOWNLOAD PROGRAM
Tribot
Interactive Servo Motor

 Provides the robot with the


ability to move
Touch Sensor
 Is like a switch, that can be
pressed or released
Ultrasonic Sensor
 enables the robot to see and
recognize objects, avoid
obstacles, measure distances,
and detect movement
Sound Sensor
 detects the decibel level:
the softness or loudness of
a sound

prepared by: RSG-DYCI


Light Sensor
 It reads light intensity on
colored surfaces

prepared by: RSG-DYCI


Color Sensor
 When positioned over a
surface, the sensor will
return a numeric value
identifying the target color

prepared by: RSG-DYCI


PROGRAMMING YOUR
ROBOT
Using NXT-G

prepared by: RSG-DYCI


To start the program
 Start the software on your PC by
double-clicking the program icon.

 Type in the name of


your first program,
or just click Go!

prepared by: RSG-DYCI


My
Portal
Tool bar
Robot Educator

Program Block

Work Area

Programming
palette

Controller

Configuration Panel
Little Help
Window

Work
Area Map

prepared by: RSG-DYCI


Sequence Beam

 A block that is connected


to the sequence beam

 A block that is not


connected to the sequence
beam

prepared by: RSG-DYCI


To create a program

 Choose & Click

 Drag & Drop


prepared by: RSG-DYCI
Move Block
Controls the interactive servo
motor

Parts:
1. NXT’s ports
2. Direction
3. Power level
4. Duration property

prepared by: RSG-DYCI


Move Block

 Icon shows that the


Direction property
is set to “stop”.
 This setting will
stop all motors.
Move Block

1. Port 5. Duration
2. Direction 6. Next Action
3. Steering 7. Feedback boxes
4. Power Level

prepared by: RSG-DYCI


Interactive Servo Motor’s Forward Direction

prepared by: RSG-DYCI


Steering - Configuration Panel

 When you’re using two motors to drive a vehicle


(with one on each side), the Steering slider will
appear with the chosen port letters indicated at each
side.
 Move the slider to set a curved path for your robot.
 With the slider all the way to either side, your vehicle
will spin in place.
A MOVE BLOCK THAT
USES DEGREES FOR ITS
DURATION

prepared by: RSG-DYCI


A MOVE BLOCK THAT
USES UNLIMITED FOR
ITS DURATION
A MOVE BLOCK THAT
USES ROTATION FOR ITS
DURATION
A MOVE BLOCK THAT
USES SECONDS FOR ITS
DURATION
A MOVE BLOCK THAT IS
TRIGGERED BY A WAIT
BLOCK THAT USES A
TOUCH SENSOR
Wait Block (Touch Sensor)

 Choose “Touch
Sensor” and your
program will wait
for a touch sensor to
be
› bumped
› pressed
› released
Wait Block (Touch Sensor) - Configuration
Panel

1. Port
2. Action
3. Feedback box (1,0)
Explanation

 The program will make the robot move


forward using the motors on port A & C,
until a sensor is bumped on port 2 which
will make it move in reverse. It will then
wait for another bump to set it to stop.
Wait Block (Touch)
A block that waits for an action
from a touch sensor

Actions:
1. Pressed
2. Released
3. Bumped

prepared by: RSG-DYCI


Wait Block (Touch)

1. Port
2. Action
3. Feedback box (1,0)

prepared by: RSG-DYCI


To download the program
 Locate the Controller in
the lower right corner of
the work area. Click
Download and run (or
you can use Download)

Download

Download and Run

prepared by: RSG-DYCI


To run the program on the NXT brick
 Select My Files
 Navigate and choose
Software files
 Search the filename of
your program and press
the orange button
 Choose Run

prepared by: RSG-DYCI

You might also like