HOW TO: Program a LEGO NXT, pt 2- Programming over Bluetooth

6
Introduction to programming a LEGO NXT pt 2- Programming over Bluetooth 06/12/2022 All Rights Reserved © 1

Transcript of HOW TO: Program a LEGO NXT, pt 2- Programming over Bluetooth

Page 2: HOW TO: Program a LEGO NXT, pt 2- Programming over Bluetooth

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.

Page 3: HOW TO: Program a LEGO NXT, pt 2- Programming over Bluetooth

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.

Page 4: HOW TO: Program a LEGO NXT, pt 2- Programming over Bluetooth

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

Page 5: HOW TO: Program a LEGO NXT, pt 2- Programming over Bluetooth

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.

Page 6: HOW TO: Program a LEGO NXT, pt 2- Programming over Bluetooth

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