SlideShare a Scribd company logo
Configuring a Sensor
http://enchanting.robotclub.ab.ca
Suppose we have an NXT with a light sensor connected on port 3. How do we tell Enchanting this?
0
(tell your NXT what is plugged into it, and where)
1. Click on the
“Sensing” palette.
2. Click on the
“Configure Sensors”
button. A dialog
comes up.
3. Find the light sensor
configuration block on
the left-hand side of the
dialog. Drag it to
“Sensor Port 3” and
drop it there.
4. Choose what sort of
light sensor you have.
5. Optionally, give it a descriptive name.
6. Press “OK”.
7. You now have
new blocks to use!
Morse Key
Select the palette, and click on the
button [it is above all
the light blue blocks].
Configure a touch sensor, like this:
Make sure that your touch sensor is
on port 1 on the actual robot.
Click the and wait for the program to
run on the robot. Press and release the
touch sensor. What happens?
GET	
  READY
TRY	
  THIS	
  CODE
DO	
  IT!
What would happen if you changed the note or the
duration?
Where could you use or ?
GO	
  FARTHER
YOU	
  NEED
An NXT with a touch sensor
connected to port 1.
Press a button to make a sound.
Morse Key
http://enchanting.robotclub.ab.ca1
Name it.
Beep!
Range Finder
From the palette, choose the
button.
Configure a ultrasonic sensor.
Make sure the port you configure it for
matches the port the real ultrasonic sensor
is plugged into!
Click the and wait for the program to run.
Point the ultrasonic sensor at different objects.
What do you see on the screen?
GET	
  READY
TRY	
  THIS	
  CODE
DO	
  IT!
What are the largest and smallest values you see?
Are there any gaps where you get no numbers?
GO	
  FARTHER
YOU	
  NEED
An NXT with an ultrasonic sensor
connected to port 4.
See how far away something is.
Range Finder
http://enchanting.robotclub.ab.ca2
Sound Meter
From the palette, choose
the button.
Configure a sound sensor.
Paint a new costume for the sprite -- make it a dot!
Click the and wait
for the program to run.
Whisper, talk, sing, shout, or blow on
the sound sensor.
GET	
  READY
TRY	
  THIS	
  CODE
DO	
  IT!
YOU	
  NEED
An NXT with a sound sensor*
connected to port 2.
* Not included in all NXT sets.
Create a sound-level meter.
Sound Meter
http://enchanting.robotclub.ab.ca3
Draw a
gauge on the
background.
Adjust how far the meter
moves back and forth.
GO	
  FARTHER
quiet
LOUD!
Differential Drive
http://enchanting.robotclub.ab.ca
From the palette, choose the button. Configure a differential drive.
The first number embossed on a
LEGO tire is the tire’s diameter in
millimeters. This tire is 56 mm across.
The track width is how far apart the
wheels are. Measure from a place on
the left wheel to that same place on
the right wheel. Here, measuring from
the left-most point of the left wheel to
the left-most point of the right wheel,
the track width is about 9.4 cm.
PortA
Rightmotor
PortC
Leftmotor
9.4 cm
4
If you tell the robot to drive forwards
and it goes backwards, swap the
direction that you’ve configured the
motors to drive in the drive type.
The robot needs
to know which
ports the left and
right motors are
on so it can
steer!
If your robot has two
wheels, it is using a
differential drive!
(lets your two-wheel robot drive around)
Square Dance
From the palette, choose the
button. Configure a differential drive, using the instructions on Card
#4. Measure numbers to match your robot.
Click the and wait for the program to run. Unplug the
USB cable and place the robot where you want it to
start. Press the orange “enter” button on the NXT.
Does the robot “dance” in a square? (Is it configured properly?)
Note that you’ll never get 100% accurate motion.
Press the orange “enter” and dark grey “exit” buttons on the NXT to
quit the program before plugging it back into the computer.
GET	
  READY
TRY	
  THIS	
  CODE
DO	
  IT!
What other shapes and patterns could you make the
robot “dance”? Could you have one robot “dance” a square inside a
square being “danced” by another robot, at different speeds?
GO	
  FARTHER
YOU	
  NEED
An NXT with two driving wheels.
Drive in a square.
Square Dance
http://enchanting.robotclub.ab.ca5
Crash Test
➔ as on Card #4.
➔ .
Configure a touch sensor for use as a
bumper.
Click the and wait for the program to run. Unplug the
USB cable and place the robot where you want it to
start. Press the orange “enter” button on the NXT.
The robot drives until it hits something. Pick it up and press the
“enter” button again. It drives until it hits something.
GET	
  READY
TRY	
  THIS	
  CODE
DO	
  IT!
Can you make the robot say something when it hits a
wall, such as, “Ouch, my nose” or “Ooof”? Could you
draw eyes on it and make it wince?
How would you make the robot explore a room? Try it out!
GO	
  FARTHER
YOU	
  NEED
An NXT with two driving wheels and a
bumper (touch sensor) on port 1.
Drive into a wall and then stop.
Crash Test
http://enchanting.robotclub.ab.ca6
Mexican Wave
➔ as on Card #4.
➔ .
Configure a sound sensor to listen for
the start command.
This works best if
you have a whole line up of
robots. The delay for each
robot is a couple of seconds
longer for the one before it in
line.
On each robot, click the
and wait for the program to
run. Unplug the USB cable
and place the robot in line.
Then, on a signal, you all
shout “go” together, and
then, one by one, the robots
do the same wave maneuver!
GET	
  READY
TRY	
  THIS	
  CODE DO	
  IT!
What other displays can you “choreograph”?
(“Choreography” is the art of designing of movements, and comes
from Greek words meaning “dance writing”).
GO	
  FARTHER
YOU	
  NEED
1+ NXTs, each with two driving wheels
and a sound sensor* on port 2.
* Not included with all NXT sets.
Shout “go”, and each robot, in turn,
drives forwards, backwards and
forwards again.
Mexican Wave
http://enchanting.robotclub.ab.ca7
Shy Puppy
➔ as on Card #4.
➔ .
Configure an ultrasonic sensor.
Click the and wait
for the program to run. Unplug
the USB cable and press the
orange “enter” button on the
NXT.
Try walking away from the robot.
Does it follow? Try going towards
it. Does it shy away? Does it
ever stand still?
GET	
  READY
TRY	
  THIS	
  CODE DO	
  IT!
What would happen
if you made the robot turn?
What do two or more robots
together do?
Add a face to the robot, make it
“speak”, or dress it up!
GO	
  FARTHER
YOU	
  NEED
An NXT with two driving wheels and an
ultrasonic sensor pointing forwards
Robot follows you around and
wants to be close, but not too close!
Shy Puppy
http://enchanting.robotclub.ab.ca8
Too far!
Too close!
Just right!
Sparkline In , choose the
button. Configure a
light or colour
sensor, choosing
the one you
have.
GET	
  READY
TRY	
  THIS	
  CODE
YOU	
  NEED
An NXT with a light or colour
sensor on port 3.
Graph a changing value.
Sparkline
http://enchanting.robotclub.ab.ca9
Click the to start.
Move the light sensor
over different colours and shades.
Move it closer and farther from a
surface. Point it at a light. Change
the angle. What happens?
DO	
  IT!
What happens
if you add in the auto-
calibration blocks?
Try drawing a white line on a
black background.
Change the lamp colour.
GO	
  FARTHER
Follow That Line!
➔ as on Card #4.
➔ .
Configure and name a
light or colour sensor,
choosing the type that
matches your sensor.
Click the and wait
for the program to run.
Unplug the USB cable, place
the robot on or beside a line,
and press the orange “enter”
button on the NXT.
Press the dark grey “exit”
button to stop the robot.
GET	
  READY
TRY	
  THIS	
  CODE DO	
  IT!
What happens if
you adjust the numbers?
Does the line-following course
make a difference? Can you
follow the edge of a table?
Where is the best place to put
your light sensor? What
would you do with a second or
third sensor? Draw eyes and
make them look left and right!
GO	
  FARTHER
YOU	
  NEED
An NXT with two driving wheels and a
light/colour sensor pointing downwards.
Follow a line around.
Follow That Line!
http://enchanting.robotclub.ab.ca10
Locator
➔ as on Card #4.
➔ .
Configure an ultrasonic sensor.
Click the and wait
for the program to run. Unplug
the USB cable and press the
orange “enter” button on the
NXT.
Move an object around in front of
the robot. Does it turn to follow
it?
GET	
  READY
TRY	
  THIS	
  CODE DO	
  IT!
How does it work?
How would you do this with two
sensors?
Can you make the robot ignore a
wall (and anything else as far
away as it)?
Try making it scan in a full circle
and point at the closest item.
GO	
  FARTHER
YOU	
  NEED
An NXT with two driving wheels
and an ultrasonic sensor on port 4.
Find a nearby object.
Locator
http://enchanting.robotclub.ab.ca11
Sumo
➔ as on
Card #5.
➔ . Configure
an ultrasonic sensor and a light/colour
sensor.
Create a bunch of costumes for your sprite,
using the text tool to display the following
words in large letters, “Countdown”,
“Wander”, “Attack”, “Retreat” and “Press
Button to Start”.
➔ . Create
variables named “next action”, “foe ahead”,
and “sees edge”.
YOU	
  NEED
Each competitor needs an NXT with two
driving wheels, an ultrasonic sensor, and
a light or colour sensor.
Push your opponent out of a ring.
Sumo
http://enchanting.robotclub.ab.ca12A
Trigger Behaviour
Sees edge Retreat
Foe ahead Attack
Wander
Arbiter
GET	
  READY
THE	
  PLAN
If it has nothing better to do,
the robot wanders around. If
it sees a foe ahead of it, the
robot attacks, trying to push
the enemy out of the ring.
Most importantly, if it sees
the edge, the robot retreats
from it, in an effort to stay in
the ring.
(card 1 of 2)
Sumo
Click
the and wait
for the program
to run.
Unplug the USB cable and
place the robot on the sumo
board. When you are told to
start your robot, press the
orange “enter” button on the
NXT.
DO	
  IT!
Can you add other behaviours
to the robot, or change some
of the existing ones? What
could you do to make your
sumo robot better?
Would this method of
programming work for other
robots?
GO	
  FARTHER
➔ . You’ll make blocks called “Attack”, “Retreat”,
“Wander”, and “Startup”.
TRY	
  THIS	
  CODE
http://enchanting.robotclub.ab.ca12B
DO	
  IT!
(card 2 of 2)

More Related Content

What's hot

How To Use A Digital Voice Recorder
How To Use A Digital Voice RecorderHow To Use A Digital Voice Recorder
How To Use A Digital Voice Recorder
cramars
 
Task 7 - overlaying sound
Task 7 - overlaying soundTask 7 - overlaying sound
Task 7 - overlaying sound
Jakeyhyatt123
 
Going mobile natebeck
Going mobile natebeckGoing mobile natebeck
Going mobile natebeckNate Beck
 
Remotion HPBA 2009
Remotion HPBA 2009Remotion HPBA 2009
Remotion HPBA 2009
Copreci
 
Week 6 assessment synths
Week 6 assessment synthsWeek 6 assessment synths
Week 6 assessment synths
Guillermo Delgado
 
Aprisa Quick Start
Aprisa Quick StartAprisa Quick Start
Aprisa Quick Start
sweetapplej
 
IsoUnity: A retro-isometric toolkit for Unity
IsoUnity: A retro-isometric toolkit for UnityIsoUnity: A retro-isometric toolkit for Unity
IsoUnity: A retro-isometric toolkit for Unity
Víctor Manuel Pérez Colado
 

What's hot (8)

How To Use A Digital Voice Recorder
How To Use A Digital Voice RecorderHow To Use A Digital Voice Recorder
How To Use A Digital Voice Recorder
 
Task 7 - overlaying sound
Task 7 - overlaying soundTask 7 - overlaying sound
Task 7 - overlaying sound
 
Going mobile natebeck
Going mobile natebeckGoing mobile natebeck
Going mobile natebeck
 
Remotion HPBA 2009
Remotion HPBA 2009Remotion HPBA 2009
Remotion HPBA 2009
 
Week 6 assessment synths
Week 6 assessment synthsWeek 6 assessment synths
Week 6 assessment synths
 
Aprisa Quick Start
Aprisa Quick StartAprisa Quick Start
Aprisa Quick Start
 
IsoUnity: A retro-isometric toolkit for Unity
IsoUnity: A retro-isometric toolkit for UnityIsoUnity: A retro-isometric toolkit for Unity
IsoUnity: A retro-isometric toolkit for Unity
 
Hello
HelloHello
Hello
 

Similar to Enchanting cards v1

Enchanting y LEGO NXT
Enchanting y LEGO NXTEnchanting y LEGO NXT
Enchanting y LEGO NXT
proyectoste
 
Manual for IWB.pptx
Manual for IWB.pptxManual for IWB.pptx
Manual for IWB.pptx
RoderickGatdula1
 
MexiLego
MexiLegoMexiLego
MexiLego
lalosam369
 
Al touch2 - Beginner
Al   touch2 - BeginnerAl   touch2 - Beginner
Al touch2 - Beginner
Romaric Saounde Tsopnang
 
Práctica 1 a 7 m bot ingles
Práctica 1 a 7 m bot inglesPráctica 1 a 7 m bot ingles
Práctica 1 a 7 m bot ingles
Departamento Tecnoloxia do CPI de Atios
 
Multisim training in mohali
Multisim training in mohaliMultisim training in mohali
Multisim training in mohali
Arwinder paul singh
 
BASIC COURSE 2 Contence Cursus Bas.docx
BASIC COURSE 2 Contence  Cursus Bas.docxBASIC COURSE 2 Contence  Cursus Bas.docx
BASIC COURSE 2 Contence Cursus Bas.docx
ikirkton
 
Multisim Software Programming Training Phagwara Jalandhar
Multisim Software Programming Training Phagwara JalandharMultisim Software Programming Training Phagwara Jalandhar
Multisim Software Programming Training Phagwara Jalandhar
E2Matrix
 
Scratch for kids syllabus for 5 hours by bibek pandit
Scratch for kids syllabus for 5 hours by bibek panditScratch for kids syllabus for 5 hours by bibek pandit
Scratch for kids syllabus for 5 hours by bibek pandit
BibekPandit2
 
Multisim Software Programming Training Jalandhar Chandigarh
Multisim Software Programming Training Jalandhar ChandigarhMultisim Software Programming Training Jalandhar Chandigarh
Multisim Software Programming Training Jalandhar Chandigarh
E2Matrix
 
Lab 7 multisim software tutorial
Lab 7 multisim software tutorialLab 7 multisim software tutorial
Lab 7 multisim software tutorial
Syed Umar
 
Instruction manual | Laser Ballistics Rangefinder Optics Trade
Instruction manual | Laser Ballistics Rangefinder Optics TradeInstruction manual | Laser Ballistics Rangefinder Optics Trade
Instruction manual | Laser Ballistics Rangefinder Optics Trade
Optics-Trade
 
Scratch Parrot Game
Scratch Parrot GameScratch Parrot Game
Scratch Parrot Game
jenloudun
 
Scratch parrot shoot game
Scratch   parrot shoot gameScratch   parrot shoot game
Scratch parrot shoot game
mrsharma2015
 
Kids liketocode
Kids liketocodeKids liketocode
Kids liketocode
mcd_boulanger
 
Relay race lego nxt g
Relay race lego nxt gRelay race lego nxt g
Relay race lego nxt gJason Zagami
 
Project Instrumentation (Smart Trashbin)
Project Instrumentation (Smart Trashbin)Project Instrumentation (Smart Trashbin)
Project Instrumentation (Smart Trashbin)
handymg
 

Similar to Enchanting cards v1 (20)

Enchanting y LEGO NXT
Enchanting y LEGO NXTEnchanting y LEGO NXT
Enchanting y LEGO NXT
 
Interm Progr
Interm ProgrInterm Progr
Interm Progr
 
Manual for IWB.pptx
Manual for IWB.pptxManual for IWB.pptx
Manual for IWB.pptx
 
Robot's arm
Robot's armRobot's arm
Robot's arm
 
MexiLego
MexiLegoMexiLego
MexiLego
 
Al touch2 - Beginner
Al   touch2 - BeginnerAl   touch2 - Beginner
Al touch2 - Beginner
 
Práctica 1 a 7 m bot ingles
Práctica 1 a 7 m bot inglesPráctica 1 a 7 m bot ingles
Práctica 1 a 7 m bot ingles
 
Multisim training in mohali
Multisim training in mohaliMultisim training in mohali
Multisim training in mohali
 
BASIC COURSE 2 Contence Cursus Bas.docx
BASIC COURSE 2 Contence  Cursus Bas.docxBASIC COURSE 2 Contence  Cursus Bas.docx
BASIC COURSE 2 Contence Cursus Bas.docx
 
Multisim Software Programming Training Phagwara Jalandhar
Multisim Software Programming Training Phagwara JalandharMultisim Software Programming Training Phagwara Jalandhar
Multisim Software Programming Training Phagwara Jalandhar
 
Scratch for kids syllabus for 5 hours by bibek pandit
Scratch for kids syllabus for 5 hours by bibek panditScratch for kids syllabus for 5 hours by bibek pandit
Scratch for kids syllabus for 5 hours by bibek pandit
 
How do i
How do iHow do i
How do i
 
Multisim Software Programming Training Jalandhar Chandigarh
Multisim Software Programming Training Jalandhar ChandigarhMultisim Software Programming Training Jalandhar Chandigarh
Multisim Software Programming Training Jalandhar Chandigarh
 
Lab 7 multisim software tutorial
Lab 7 multisim software tutorialLab 7 multisim software tutorial
Lab 7 multisim software tutorial
 
Instruction manual | Laser Ballistics Rangefinder Optics Trade
Instruction manual | Laser Ballistics Rangefinder Optics TradeInstruction manual | Laser Ballistics Rangefinder Optics Trade
Instruction manual | Laser Ballistics Rangefinder Optics Trade
 
Scratch Parrot Game
Scratch Parrot GameScratch Parrot Game
Scratch Parrot Game
 
Scratch parrot shoot game
Scratch   parrot shoot gameScratch   parrot shoot game
Scratch parrot shoot game
 
Kids liketocode
Kids liketocodeKids liketocode
Kids liketocode
 
Relay race lego nxt g
Relay race lego nxt gRelay race lego nxt g
Relay race lego nxt g
 
Project Instrumentation (Smart Trashbin)
Project Instrumentation (Smart Trashbin)Project Instrumentation (Smart Trashbin)
Project Instrumentation (Smart Trashbin)
 

More from proyectoste

How to create 360 images with google street view app
How to create 360 images with google street view app How to create 360 images with google street view app
How to create 360 images with google street view app
proyectoste
 
Manual iTALC 2
Manual iTALC 2Manual iTALC 2
Manual iTALC 2
proyectoste
 
Memoria del curso de robótica educativa del curso 2014-2015
Memoria del curso de robótica educativa del curso 2014-2015Memoria del curso de robótica educativa del curso 2014-2015
Memoria del curso de robótica educativa del curso 2014-2015
proyectoste
 
Berrikuntza Proiektua BOT BAT
Berrikuntza Proiektua BOT BATBerrikuntza Proiektua BOT BAT
Berrikuntza Proiektua BOT BAT
proyectoste
 
Enchanting en Linux Ubuntu
Enchanting en Linux UbuntuEnchanting en Linux Ubuntu
Enchanting en Linux Ubuntu
proyectoste
 
Programando con Enchanting
 Programando con Enchanting Programando con Enchanting
Programando con Enchanting
proyectoste
 
Avión de rescate
Avión de rescateAvión de rescate
Avión de rescate
proyectoste
 
Afición ruidosa
Afición ruidosaAfición ruidosa
Afición ruidosa
proyectoste
 
Pájaros bailarines
Pájaros bailarinesPájaros bailarines
Pájaros bailarines
proyectoste
 
Mono percusionista
Mono percusionistaMono percusionista
Mono percusionista
proyectoste
 
Pájaro volador
Pájaro voladorPájaro volador
Pájaro volador
proyectoste
 
Gigante colgante
Gigante colganteGigante colgante
Gigante colgante
proyectoste
 
Portero de fútbol
Portero de fútbolPortero de fútbol
Portero de fútbol
proyectoste
 
Chutador a gol
Chutador a golChutador a gol
Chutador a gol
proyectoste
 
Barco navegante
Barco naveganteBarco navegante
Barco navegante
proyectoste
 
León rugiente
León rugienteLeón rugiente
León rugiente
proyectoste
 
Caimán hambriento
Caimán hambrientoCaimán hambriento
Caimán hambriento
proyectoste
 
Hilador inteligente
Hilador inteligenteHilador inteligente
Hilador inteligente
proyectoste
 
Sesiones de clase con LEGO WeDo - Clase 9.
Sesiones de clase con LEGO WeDo - Clase 9.Sesiones de clase con LEGO WeDo - Clase 9.
Sesiones de clase con LEGO WeDo - Clase 9.
proyectoste
 
Sesiones de clase con LEGO WeDo - Clase 8.
Sesiones de clase con LEGO WeDo - Clase 8.Sesiones de clase con LEGO WeDo - Clase 8.
Sesiones de clase con LEGO WeDo - Clase 8.
proyectoste
 

More from proyectoste (20)

How to create 360 images with google street view app
How to create 360 images with google street view app How to create 360 images with google street view app
How to create 360 images with google street view app
 
Manual iTALC 2
Manual iTALC 2Manual iTALC 2
Manual iTALC 2
 
Memoria del curso de robótica educativa del curso 2014-2015
Memoria del curso de robótica educativa del curso 2014-2015Memoria del curso de robótica educativa del curso 2014-2015
Memoria del curso de robótica educativa del curso 2014-2015
 
Berrikuntza Proiektua BOT BAT
Berrikuntza Proiektua BOT BATBerrikuntza Proiektua BOT BAT
Berrikuntza Proiektua BOT BAT
 
Enchanting en Linux Ubuntu
Enchanting en Linux UbuntuEnchanting en Linux Ubuntu
Enchanting en Linux Ubuntu
 
Programando con Enchanting
 Programando con Enchanting Programando con Enchanting
Programando con Enchanting
 
Avión de rescate
Avión de rescateAvión de rescate
Avión de rescate
 
Afición ruidosa
Afición ruidosaAfición ruidosa
Afición ruidosa
 
Pájaros bailarines
Pájaros bailarinesPájaros bailarines
Pájaros bailarines
 
Mono percusionista
Mono percusionistaMono percusionista
Mono percusionista
 
Pájaro volador
Pájaro voladorPájaro volador
Pájaro volador
 
Gigante colgante
Gigante colganteGigante colgante
Gigante colgante
 
Portero de fútbol
Portero de fútbolPortero de fútbol
Portero de fútbol
 
Chutador a gol
Chutador a golChutador a gol
Chutador a gol
 
Barco navegante
Barco naveganteBarco navegante
Barco navegante
 
León rugiente
León rugienteLeón rugiente
León rugiente
 
Caimán hambriento
Caimán hambrientoCaimán hambriento
Caimán hambriento
 
Hilador inteligente
Hilador inteligenteHilador inteligente
Hilador inteligente
 
Sesiones de clase con LEGO WeDo - Clase 9.
Sesiones de clase con LEGO WeDo - Clase 9.Sesiones de clase con LEGO WeDo - Clase 9.
Sesiones de clase con LEGO WeDo - Clase 9.
 
Sesiones de clase con LEGO WeDo - Clase 8.
Sesiones de clase con LEGO WeDo - Clase 8.Sesiones de clase con LEGO WeDo - Clase 8.
Sesiones de clase con LEGO WeDo - Clase 8.
 

Recently uploaded

Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
Steve Thomason
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
AzmatAli747758
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
Celine George
 

Recently uploaded (20)

Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 

Enchanting cards v1

  • 1. Configuring a Sensor http://enchanting.robotclub.ab.ca Suppose we have an NXT with a light sensor connected on port 3. How do we tell Enchanting this? 0 (tell your NXT what is plugged into it, and where) 1. Click on the “Sensing” palette. 2. Click on the “Configure Sensors” button. A dialog comes up. 3. Find the light sensor configuration block on the left-hand side of the dialog. Drag it to “Sensor Port 3” and drop it there. 4. Choose what sort of light sensor you have. 5. Optionally, give it a descriptive name. 6. Press “OK”. 7. You now have new blocks to use!
  • 2. Morse Key Select the palette, and click on the button [it is above all the light blue blocks]. Configure a touch sensor, like this: Make sure that your touch sensor is on port 1 on the actual robot. Click the and wait for the program to run on the robot. Press and release the touch sensor. What happens? GET  READY TRY  THIS  CODE DO  IT! What would happen if you changed the note or the duration? Where could you use or ? GO  FARTHER YOU  NEED An NXT with a touch sensor connected to port 1. Press a button to make a sound. Morse Key http://enchanting.robotclub.ab.ca1 Name it. Beep!
  • 3. Range Finder From the palette, choose the button. Configure a ultrasonic sensor. Make sure the port you configure it for matches the port the real ultrasonic sensor is plugged into! Click the and wait for the program to run. Point the ultrasonic sensor at different objects. What do you see on the screen? GET  READY TRY  THIS  CODE DO  IT! What are the largest and smallest values you see? Are there any gaps where you get no numbers? GO  FARTHER YOU  NEED An NXT with an ultrasonic sensor connected to port 4. See how far away something is. Range Finder http://enchanting.robotclub.ab.ca2
  • 4. Sound Meter From the palette, choose the button. Configure a sound sensor. Paint a new costume for the sprite -- make it a dot! Click the and wait for the program to run. Whisper, talk, sing, shout, or blow on the sound sensor. GET  READY TRY  THIS  CODE DO  IT! YOU  NEED An NXT with a sound sensor* connected to port 2. * Not included in all NXT sets. Create a sound-level meter. Sound Meter http://enchanting.robotclub.ab.ca3 Draw a gauge on the background. Adjust how far the meter moves back and forth. GO  FARTHER quiet LOUD!
  • 5. Differential Drive http://enchanting.robotclub.ab.ca From the palette, choose the button. Configure a differential drive. The first number embossed on a LEGO tire is the tire’s diameter in millimeters. This tire is 56 mm across. The track width is how far apart the wheels are. Measure from a place on the left wheel to that same place on the right wheel. Here, measuring from the left-most point of the left wheel to the left-most point of the right wheel, the track width is about 9.4 cm. PortA Rightmotor PortC Leftmotor 9.4 cm 4 If you tell the robot to drive forwards and it goes backwards, swap the direction that you’ve configured the motors to drive in the drive type. The robot needs to know which ports the left and right motors are on so it can steer! If your robot has two wheels, it is using a differential drive! (lets your two-wheel robot drive around)
  • 6. Square Dance From the palette, choose the button. Configure a differential drive, using the instructions on Card #4. Measure numbers to match your robot. Click the and wait for the program to run. Unplug the USB cable and place the robot where you want it to start. Press the orange “enter” button on the NXT. Does the robot “dance” in a square? (Is it configured properly?) Note that you’ll never get 100% accurate motion. Press the orange “enter” and dark grey “exit” buttons on the NXT to quit the program before plugging it back into the computer. GET  READY TRY  THIS  CODE DO  IT! What other shapes and patterns could you make the robot “dance”? Could you have one robot “dance” a square inside a square being “danced” by another robot, at different speeds? GO  FARTHER YOU  NEED An NXT with two driving wheels. Drive in a square. Square Dance http://enchanting.robotclub.ab.ca5
  • 7. Crash Test ➔ as on Card #4. ➔ . Configure a touch sensor for use as a bumper. Click the and wait for the program to run. Unplug the USB cable and place the robot where you want it to start. Press the orange “enter” button on the NXT. The robot drives until it hits something. Pick it up and press the “enter” button again. It drives until it hits something. GET  READY TRY  THIS  CODE DO  IT! Can you make the robot say something when it hits a wall, such as, “Ouch, my nose” or “Ooof”? Could you draw eyes on it and make it wince? How would you make the robot explore a room? Try it out! GO  FARTHER YOU  NEED An NXT with two driving wheels and a bumper (touch sensor) on port 1. Drive into a wall and then stop. Crash Test http://enchanting.robotclub.ab.ca6
  • 8. Mexican Wave ➔ as on Card #4. ➔ . Configure a sound sensor to listen for the start command. This works best if you have a whole line up of robots. The delay for each robot is a couple of seconds longer for the one before it in line. On each robot, click the and wait for the program to run. Unplug the USB cable and place the robot in line. Then, on a signal, you all shout “go” together, and then, one by one, the robots do the same wave maneuver! GET  READY TRY  THIS  CODE DO  IT! What other displays can you “choreograph”? (“Choreography” is the art of designing of movements, and comes from Greek words meaning “dance writing”). GO  FARTHER YOU  NEED 1+ NXTs, each with two driving wheels and a sound sensor* on port 2. * Not included with all NXT sets. Shout “go”, and each robot, in turn, drives forwards, backwards and forwards again. Mexican Wave http://enchanting.robotclub.ab.ca7
  • 9. Shy Puppy ➔ as on Card #4. ➔ . Configure an ultrasonic sensor. Click the and wait for the program to run. Unplug the USB cable and press the orange “enter” button on the NXT. Try walking away from the robot. Does it follow? Try going towards it. Does it shy away? Does it ever stand still? GET  READY TRY  THIS  CODE DO  IT! What would happen if you made the robot turn? What do two or more robots together do? Add a face to the robot, make it “speak”, or dress it up! GO  FARTHER YOU  NEED An NXT with two driving wheels and an ultrasonic sensor pointing forwards Robot follows you around and wants to be close, but not too close! Shy Puppy http://enchanting.robotclub.ab.ca8 Too far! Too close! Just right!
  • 10. Sparkline In , choose the button. Configure a light or colour sensor, choosing the one you have. GET  READY TRY  THIS  CODE YOU  NEED An NXT with a light or colour sensor on port 3. Graph a changing value. Sparkline http://enchanting.robotclub.ab.ca9 Click the to start. Move the light sensor over different colours and shades. Move it closer and farther from a surface. Point it at a light. Change the angle. What happens? DO  IT! What happens if you add in the auto- calibration blocks? Try drawing a white line on a black background. Change the lamp colour. GO  FARTHER
  • 11. Follow That Line! ➔ as on Card #4. ➔ . Configure and name a light or colour sensor, choosing the type that matches your sensor. Click the and wait for the program to run. Unplug the USB cable, place the robot on or beside a line, and press the orange “enter” button on the NXT. Press the dark grey “exit” button to stop the robot. GET  READY TRY  THIS  CODE DO  IT! What happens if you adjust the numbers? Does the line-following course make a difference? Can you follow the edge of a table? Where is the best place to put your light sensor? What would you do with a second or third sensor? Draw eyes and make them look left and right! GO  FARTHER YOU  NEED An NXT with two driving wheels and a light/colour sensor pointing downwards. Follow a line around. Follow That Line! http://enchanting.robotclub.ab.ca10
  • 12. Locator ➔ as on Card #4. ➔ . Configure an ultrasonic sensor. Click the and wait for the program to run. Unplug the USB cable and press the orange “enter” button on the NXT. Move an object around in front of the robot. Does it turn to follow it? GET  READY TRY  THIS  CODE DO  IT! How does it work? How would you do this with two sensors? Can you make the robot ignore a wall (and anything else as far away as it)? Try making it scan in a full circle and point at the closest item. GO  FARTHER YOU  NEED An NXT with two driving wheels and an ultrasonic sensor on port 4. Find a nearby object. Locator http://enchanting.robotclub.ab.ca11
  • 13. Sumo ➔ as on Card #5. ➔ . Configure an ultrasonic sensor and a light/colour sensor. Create a bunch of costumes for your sprite, using the text tool to display the following words in large letters, “Countdown”, “Wander”, “Attack”, “Retreat” and “Press Button to Start”. ➔ . Create variables named “next action”, “foe ahead”, and “sees edge”. YOU  NEED Each competitor needs an NXT with two driving wheels, an ultrasonic sensor, and a light or colour sensor. Push your opponent out of a ring. Sumo http://enchanting.robotclub.ab.ca12A Trigger Behaviour Sees edge Retreat Foe ahead Attack Wander Arbiter GET  READY THE  PLAN If it has nothing better to do, the robot wanders around. If it sees a foe ahead of it, the robot attacks, trying to push the enemy out of the ring. Most importantly, if it sees the edge, the robot retreats from it, in an effort to stay in the ring. (card 1 of 2)
  • 14. Sumo Click the and wait for the program to run. Unplug the USB cable and place the robot on the sumo board. When you are told to start your robot, press the orange “enter” button on the NXT. DO  IT! Can you add other behaviours to the robot, or change some of the existing ones? What could you do to make your sumo robot better? Would this method of programming work for other robots? GO  FARTHER ➔ . You’ll make blocks called “Attack”, “Retreat”, “Wander”, and “Startup”. TRY  THIS  CODE http://enchanting.robotclub.ab.ca12B DO  IT! (card 2 of 2)