SlideShare a Scribd company logo
1 of 17
BASIC PROGRAMMING
BLOCKS
NXT-G
THE NXT CONTROLLER
The Brick
Output Ports
A, B, and C
Three separate
motor ports
A B C USB
1 2 3 4
Input ports
1, 2, 3, and 4
Where sensors are
attached
Select Buttons
On and Enter
Back and Off
The Brick
Programs are
downloaded via a USB
cable from the pc to the
NXT
The USB PortA B C USB
THE NXT-G INTERFACE
NXT-G Software
Main Working Space
Programming pallete, each containing a
set of blocks, hover over each to see
available blocks
NXT Window
– Access
Brick info.
(e.g.,
memory,
battery, and
so on)
Program name
Common, Complete, and
MyBlocks palletes can be
selected here
Add
Program
blocks here.
Download
and run
immediately
NXT-G Software
Main Working Space
Download
(Run from
the brick)
Starting
point
Robot Educator
A series of 46 lessons split into:
Common – Easier (20)
Complete – Harder (19)
Data Logging – Mixed (7)
Each lesson includes:
Challenge Brief – Video or slides
Building Instructions
Programming Instructions
Written
comments
can be
added.
Pointer and
Selection Tool
(default)
Grab Hand
to move the
work space
around.
Move
Wait
For
Touch
Display
Sound
Switch (Touch)
Some commonly used blocks
Drag (left-click)
block here.
Change the
settings in the
Configuration
panel.
Release
when the
white position
preview
marks
appear.
Placing Blocks on the working space
Sequence
beam
Say “Hello”
Release when the block is
connected to the sequence
Sound files, tone, volume, repeat, and wait form completion
can be configured. Scroll to find “hello”
Say “Hello”, Display a Smile
Add the display block
Image, text, circle, or line can be configured, offers x,y co-
ordinates for positioning
NXT motors & Control Block
• The NXT servo motors have a built-in rotation
sensor block that continuously measure and
monitors the degrees covered by the motor.
• Motors can be manipulated using the move,
motor, and reset blocks.
• The move block synchronizes motor to enable the
robot to move straight.
• The move block can control all 3 motors
simultaneously. However the power is shared
among the 3 motors.
• The block has a built-in system for error
correction.
Move block – Configuration panel
Select ports corresponding to
the ports on the NXT
Amount of power used to
control the motor
Duration of the action, specified
in degrees, duration, time, or
unlimited
Direction
Steering: shares the power
among 2 motors, not reliable
at low power
Next Action: Brake causes the robot to come to an
immediate stop landing more accurately than coast. The
robot rolls to a coast occasionally overshooting the target.
My First Program

More Related Content

Similar to Basic Programming Blocks

<iframe width="427" src="http://www.slideshare.net/slideshow/embed_code/34...
<iframe width="427" src="http://www.slideshare.net/slideshow/embed_code/34...<iframe width="427" src="http://www.slideshare.net/slideshow/embed_code/34...
<iframe width="427" src="http://www.slideshare.net/slideshow/embed_code/34...a17b19
 
Session 8 assertion_based_verification_and_interfaces
Session 8 assertion_based_verification_and_interfacesSession 8 assertion_based_verification_and_interfaces
Session 8 assertion_based_verification_and_interfacesNirav Desai
 
Pic18 f4520 and robotics
Pic18 f4520 and roboticsPic18 f4520 and robotics
Pic18 f4520 and roboticsSiddhant Chopra
 
TestowanieIoT2016
TestowanieIoT2016TestowanieIoT2016
TestowanieIoT2016kraqa
 
Resume mixed signal
Resume mixed signalResume mixed signal
Resume mixed signaltarora1
 
Resume mixed signal
Resume mixed signalResume mixed signal
Resume mixed signaltarora1
 
Internship Report (VTOL) (2)
Internship Report (VTOL) (2)Internship Report (VTOL) (2)
Internship Report (VTOL) (2)Rishabh Prakash
 
Getting Started with TDS1000B / 2000B Digital Phosphor Oscilloscope Series
Getting Started with TDS1000B / 2000B  Digital Phosphor Oscilloscope SeriesGetting Started with TDS1000B / 2000B  Digital Phosphor Oscilloscope Series
Getting Started with TDS1000B / 2000B Digital Phosphor Oscilloscope SeriesPremier Farnell
 
08 wsos features
08 wsos features08 wsos features
08 wsos featuresduytn1
 
Robotics Report final.compressed (1)
Robotics Report final.compressed (1)Robotics Report final.compressed (1)
Robotics Report final.compressed (1)Kael Kristjanson
 
cscript_controller.pdf
cscript_controller.pdfcscript_controller.pdf
cscript_controller.pdfVcTrn1
 

Similar to Basic Programming Blocks (20)

Introduction to Microcontrollers
Introduction to MicrocontrollersIntroduction to Microcontrollers
Introduction to Microcontrollers
 
<iframe width="427" src="http://www.slideshare.net/slideshow/embed_code/34...
<iframe width="427" src="http://www.slideshare.net/slideshow/embed_code/34...<iframe width="427" src="http://www.slideshare.net/slideshow/embed_code/34...
<iframe width="427" src="http://www.slideshare.net/slideshow/embed_code/34...
 
Tutorial 2
Tutorial 2Tutorial 2
Tutorial 2
 
Project Report
Project ReportProject Report
Project Report
 
Session 8 assertion_based_verification_and_interfaces
Session 8 assertion_based_verification_and_interfacesSession 8 assertion_based_verification_and_interfaces
Session 8 assertion_based_verification_and_interfaces
 
Pic18 f4520 and robotics
Pic18 f4520 and roboticsPic18 f4520 and robotics
Pic18 f4520 and robotics
 
TestowanieIoT2016
TestowanieIoT2016TestowanieIoT2016
TestowanieIoT2016
 
WinMax Version 9 | Hurco IMTS 2012
WinMax Version 9 | Hurco IMTS 2012WinMax Version 9 | Hurco IMTS 2012
WinMax Version 9 | Hurco IMTS 2012
 
Resume mixed signal
Resume mixed signalResume mixed signal
Resume mixed signal
 
Resume mixed signal
Resume mixed signalResume mixed signal
Resume mixed signal
 
Internship Report (VTOL) (2)
Internship Report (VTOL) (2)Internship Report (VTOL) (2)
Internship Report (VTOL) (2)
 
Getting Started with TDS1000B / 2000B Digital Phosphor Oscilloscope Series
Getting Started with TDS1000B / 2000B  Digital Phosphor Oscilloscope SeriesGetting Started with TDS1000B / 2000B  Digital Phosphor Oscilloscope Series
Getting Started with TDS1000B / 2000B Digital Phosphor Oscilloscope Series
 
BHAVESH AGRAWAL.pptx
BHAVESH AGRAWAL.pptxBHAVESH AGRAWAL.pptx
BHAVESH AGRAWAL.pptx
 
CE150--Hongyi Huang
CE150--Hongyi HuangCE150--Hongyi Huang
CE150--Hongyi Huang
 
Kube
KubeKube
Kube
 
08 wsos features
08 wsos features08 wsos features
08 wsos features
 
Robotics Report final.compressed (1)
Robotics Report final.compressed (1)Robotics Report final.compressed (1)
Robotics Report final.compressed (1)
 
cscript_controller.pdf
cscript_controller.pdfcscript_controller.pdf
cscript_controller.pdf
 
Power plex
Power plexPower plex
Power plex
 
Mini Project- Stepper Motor Control
Mini Project- Stepper Motor ControlMini Project- Stepper Motor Control
Mini Project- Stepper Motor Control
 

Recently uploaded

Lean: From Theory to Practice — One City’s (and Library’s) Lean Story… Abridged
Lean: From Theory to Practice — One City’s (and Library’s) Lean Story… AbridgedLean: From Theory to Practice — One City’s (and Library’s) Lean Story… Abridged
Lean: From Theory to Practice — One City’s (and Library’s) Lean Story… AbridgedKaiNexus
 
Marketplace and Quality Assurance Presentation - Vincent Chirchir
Marketplace and Quality Assurance Presentation - Vincent ChirchirMarketplace and Quality Assurance Presentation - Vincent Chirchir
Marketplace and Quality Assurance Presentation - Vincent Chirchirictsugar
 
Ten Organizational Design Models to align structure and operations to busines...
Ten Organizational Design Models to align structure and operations to busines...Ten Organizational Design Models to align structure and operations to busines...
Ten Organizational Design Models to align structure and operations to busines...Seta Wicaksana
 
Organizational Structure Running A Successful Business
Organizational Structure Running A Successful BusinessOrganizational Structure Running A Successful Business
Organizational Structure Running A Successful BusinessSeta Wicaksana
 
Call Us 📲8800102216📞 Call Girls In DLF City Gurgaon
Call Us 📲8800102216📞 Call Girls In DLF City GurgaonCall Us 📲8800102216📞 Call Girls In DLF City Gurgaon
Call Us 📲8800102216📞 Call Girls In DLF City Gurgaoncallgirls2057
 
Marketing Management Business Plan_My Sweet Creations
Marketing Management Business Plan_My Sweet CreationsMarketing Management Business Plan_My Sweet Creations
Marketing Management Business Plan_My Sweet Creationsnakalysalcedo61
 
Call Girls Miyapur 7001305949 all area service COD available Any Time
Call Girls Miyapur 7001305949 all area service COD available Any TimeCall Girls Miyapur 7001305949 all area service COD available Any Time
Call Girls Miyapur 7001305949 all area service COD available Any Timedelhimodelshub1
 
Digital Transformation in the PLM domain - distrib.pdf
Digital Transformation in the PLM domain - distrib.pdfDigital Transformation in the PLM domain - distrib.pdf
Digital Transformation in the PLM domain - distrib.pdfJos Voskuil
 
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckPitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckHajeJanKamps
 
Islamabad Escorts | Call 03274100048 | Escort Service in Islamabad
Islamabad Escorts | Call 03274100048 | Escort Service in IslamabadIslamabad Escorts | Call 03274100048 | Escort Service in Islamabad
Islamabad Escorts | Call 03274100048 | Escort Service in IslamabadAyesha Khan
 
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607dollysharma2066
 
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCRashishs7044
 
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...lizamodels9
 
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...lizamodels9
 
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607dollysharma2066
 
8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCRashishs7044
 
Case study on tata clothing brand zudio in detail
Case study on tata clothing brand zudio in detailCase study on tata clothing brand zudio in detail
Case study on tata clothing brand zudio in detailAriel592675
 
Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...
Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...
Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...lizamodels9
 
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,noida100girls
 

Recently uploaded (20)

Lean: From Theory to Practice — One City’s (and Library’s) Lean Story… Abridged
Lean: From Theory to Practice — One City’s (and Library’s) Lean Story… AbridgedLean: From Theory to Practice — One City’s (and Library’s) Lean Story… Abridged
Lean: From Theory to Practice — One City’s (and Library’s) Lean Story… Abridged
 
Marketplace and Quality Assurance Presentation - Vincent Chirchir
Marketplace and Quality Assurance Presentation - Vincent ChirchirMarketplace and Quality Assurance Presentation - Vincent Chirchir
Marketplace and Quality Assurance Presentation - Vincent Chirchir
 
Ten Organizational Design Models to align structure and operations to busines...
Ten Organizational Design Models to align structure and operations to busines...Ten Organizational Design Models to align structure and operations to busines...
Ten Organizational Design Models to align structure and operations to busines...
 
Corporate Profile 47Billion Information Technology
Corporate Profile 47Billion Information TechnologyCorporate Profile 47Billion Information Technology
Corporate Profile 47Billion Information Technology
 
Organizational Structure Running A Successful Business
Organizational Structure Running A Successful BusinessOrganizational Structure Running A Successful Business
Organizational Structure Running A Successful Business
 
Call Us 📲8800102216📞 Call Girls In DLF City Gurgaon
Call Us 📲8800102216📞 Call Girls In DLF City GurgaonCall Us 📲8800102216📞 Call Girls In DLF City Gurgaon
Call Us 📲8800102216📞 Call Girls In DLF City Gurgaon
 
Marketing Management Business Plan_My Sweet Creations
Marketing Management Business Plan_My Sweet CreationsMarketing Management Business Plan_My Sweet Creations
Marketing Management Business Plan_My Sweet Creations
 
Call Girls Miyapur 7001305949 all area service COD available Any Time
Call Girls Miyapur 7001305949 all area service COD available Any TimeCall Girls Miyapur 7001305949 all area service COD available Any Time
Call Girls Miyapur 7001305949 all area service COD available Any Time
 
Digital Transformation in the PLM domain - distrib.pdf
Digital Transformation in the PLM domain - distrib.pdfDigital Transformation in the PLM domain - distrib.pdf
Digital Transformation in the PLM domain - distrib.pdf
 
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deckPitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
Pitch Deck Teardown: Geodesic.Life's $500k Pre-seed deck
 
Islamabad Escorts | Call 03274100048 | Escort Service in Islamabad
Islamabad Escorts | Call 03274100048 | Escort Service in IslamabadIslamabad Escorts | Call 03274100048 | Escort Service in Islamabad
Islamabad Escorts | Call 03274100048 | Escort Service in Islamabad
 
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607FULL ENJOY Call girls in Paharganj Delhi | 8377087607
FULL ENJOY Call girls in Paharganj Delhi | 8377087607
 
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
8447779800, Low rate Call girls in Kotla Mubarakpur Delhi NCR
 
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
Call Girls In Sikandarpur Gurgaon ❤️8860477959_Russian 100% Genuine Escorts I...
 
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
Call Girls In Connaught Place Delhi ❤️88604**77959_Russian 100% Genuine Escor...
 
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
(Best) ENJOY Call Girls in Faridabad Ex | 8377087607
 
8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR8447779800, Low rate Call girls in Saket Delhi NCR
8447779800, Low rate Call girls in Saket Delhi NCR
 
Case study on tata clothing brand zudio in detail
Case study on tata clothing brand zudio in detailCase study on tata clothing brand zudio in detail
Case study on tata clothing brand zudio in detail
 
Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...
Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...
Call Girls In Radisson Blu Hotel New Delhi Paschim Vihar ❤️8860477959 Escorts...
 
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
BEST Call Girls In Greater Noida ✨ 9773824855 ✨ Escorts Service In Delhi Ncr,
 

Basic Programming Blocks

  • 3. The Brick Output Ports A, B, and C Three separate motor ports A B C USB 1 2 3 4 Input ports 1, 2, 3, and 4 Where sensors are attached
  • 4. Select Buttons On and Enter Back and Off The Brick
  • 5. Programs are downloaded via a USB cable from the pc to the NXT The USB PortA B C USB
  • 7. NXT-G Software Main Working Space Programming pallete, each containing a set of blocks, hover over each to see available blocks NXT Window – Access Brick info. (e.g., memory, battery, and so on) Program name Common, Complete, and MyBlocks palletes can be selected here
  • 8. Add Program blocks here. Download and run immediately NXT-G Software Main Working Space Download (Run from the brick) Starting point
  • 9. Robot Educator A series of 46 lessons split into: Common – Easier (20) Complete – Harder (19) Data Logging – Mixed (7) Each lesson includes: Challenge Brief – Video or slides Building Instructions Programming Instructions
  • 10. Written comments can be added. Pointer and Selection Tool (default) Grab Hand to move the work space around.
  • 12. Drag (left-click) block here. Change the settings in the Configuration panel. Release when the white position preview marks appear. Placing Blocks on the working space Sequence beam
  • 13. Say “Hello” Release when the block is connected to the sequence Sound files, tone, volume, repeat, and wait form completion can be configured. Scroll to find “hello”
  • 14. Say “Hello”, Display a Smile Add the display block Image, text, circle, or line can be configured, offers x,y co- ordinates for positioning
  • 15. NXT motors & Control Block • The NXT servo motors have a built-in rotation sensor block that continuously measure and monitors the degrees covered by the motor. • Motors can be manipulated using the move, motor, and reset blocks. • The move block synchronizes motor to enable the robot to move straight. • The move block can control all 3 motors simultaneously. However the power is shared among the 3 motors. • The block has a built-in system for error correction.
  • 16. Move block – Configuration panel Select ports corresponding to the ports on the NXT Amount of power used to control the motor Duration of the action, specified in degrees, duration, time, or unlimited Direction Steering: shares the power among 2 motors, not reliable at low power Next Action: Brake causes the robot to come to an immediate stop landing more accurately than coast. The robot rolls to a coast occasionally overshooting the target.