View
414
Download
2
Category
Tags:
Preview:
Citation preview
04/15/2023 All Rights Reserved ©
Introduction to programming a LEGO NXT
pt 2- Programming over Bluetooth
1
Lego NXT Tutorial Serieso Welcome to RobotAppStore's LEGO NXT
Tutorial series. o In this presentation we will discuss how to program Lego over Bluetooth.o LEGO NXT has 2 ways it receives commands:
o Bluetooth o USB communication.
All Rights Reserved © 3
Programming over BluetoothThis type of communication is called NXT Direct Commands or Lego NXT Communication Protocol or “LCP.”
NXT communication protocol bypasses the Mindstorm’s or any other third-party software.
This protocol is used for controlling NXT from a remote device like a smartphone, PC, or other robots.
Sending commands to Lego NXT through Bluetooth is rather simple- the idea is to transfer a bulk of bytes to the robot for immediately execution.
04/15/2023 All Rights Reserved © 4
Types of Commands
These commands are divided into two groups:o System commands:
commands that control the administration of the brick or the protocol. An example of this would be accessing the file system on the brick.
o Direct commands: commands that control robot's motion and sensor's reading
All Rights Reserved © 5
Types of Commands
o Some commands are a request for feedback from the robot like getting a sensor's data, while other commands are just a set of orders.
All Rights Reserved © 6
Explore, Learn, Engageo To find out more about programming your
LEGO NXT or to discover pre-made downloadable apps for your NXT, visit us at:
RobotAppStore.com
Recommended