KaiserScience

Home » Coding » LEGO Mindstorms NXT

LEGO Mindstorms NXT

Lego NXT Building and coding lessons

Introduction to the brick and the software

Why would we need sensor data and How to get to the port view

Lego NXT robot building tips

Basic building techniques for Lego robots-technic-lego-parts

How to manage the cables

Gears, gear ratios, and changing the direction of motion.

Color sensor positioning and shielding

Wheels, wheel size, and convert distance to degrees

Passive vs powered attachments, and gates & curtains.

Gyro sensor positioning

Lessons

moving-straight-beginner-lesson

moving-straight-beginner-lesson

Moving straight worksheet (Word document)

 

Writing comments in your code

Turning spinning pivoting: Learn to turn the robot a desired # of degrees

Turning (worksheet, Doc)

pivot-turns-four-different-ways

use-the-display-block-to-display-text-and-images-ev3

use-the-touch-sensor

using-sensors-move-the-robot-until-something-occurs

color-sensor-and-how-to-coast-and-brake

loop-blocks-how-to-repeat-an-action

switch-block-how-the-robot-can-decide-what-to-do

line-follower-the-robot-can-follow-a-line-using-color-sensor and the basic line follower worksheet

line-follower-one-minute-guide

move-object-with-an-attachment-arm

challenges-moving-straight-and-turning

ultrasonic-wall-follower

Going to the next level

data-wires-code-takes-output-from-one-programming-block-and-inputs-it-into-another

myblocks-make-custom-blocks-and-construct-them-with-inputs-and-outputs-parameters

my-block-quick-guide

move-distance-with-my-block

degrees-per-inch-degrees-per-cm-dpi-dpc-worksheet

Link: Wheel Converter: Automatic Distance to Degrees Calculator

turning-degrees-with-my-block-use-protractor

color-line-follower my block with inputs: Move a distance

color-follower-stops-based-on-color-detection-move-until-black

debugging-techniques

different-ways-of-moving-synchronization-regulated-power-ramp-up-and-down

problems-and-solutions-assorted

problems-and-solutions-reliability-guide

More!

sound-block-plays-sounds-to-ev3

sound-sensor

ultrasonic-sensor

use-the-brick-buttons-as-sensors

infrared-sensor


Additional lessons

Color Sensor Calibration
Shielding and Calibration: Quick Guide (English)
Variables
Logic Operations & Decision Making
Introduction to Parallel Beams
These lessons are for students already familiar with MyBlocks and line following.
Parallel Beam Synchronization
Arrays
Introduction to Proportional Control
Proportional Line Follower
Proportional Two Color Line Follower
Proportional Ultrasonic Wall Follower
Proportional Control with the Sound Sensor
Ramping Up
Introduction to Gyro Sensor
Gyro Sensor: Turns
Gyro Sensor: Move Straight and Wall Follow
Squaring on Lines
Stall Detection
Menu System
Data Logging
Bluetooth
Random Block

All of these additional lessons are found at EV3 Lessons.Com, By Seshan Brothers

EV3

importing-ev3-blocks-gyro-and-ultrasonic-sensor-blocks

Primer

Introduction: How to program LEGO NXT robots

Open up the Windows PC. Run Lego Labview software.

Leftmost column (Templates)

Middle column (Robert Project)
-> Blank Robot

Create Program – and we’ll name it

Then underneath click “Create”

Connect cable from PC to the robot with the USB connector

Turn on the NXT robot. (We’ll hear a musical tone)

On the Labview, look for “Choose NXT”, then “Find NXT”

Then “Scan” – scanning for NXT devices, this may take a minute

Click NXT from the list, then underneath, click “close”

Then in the middle of the interface look for “Robot Files”

First option in the white box should be “Programs”

Then further to the right NEW VI for NXT Target

Menu pops up: Here we will name our program

Now we open up a whole new window

View (from the upper left main menu choices)
-> Function Palette

Brings up a new box on the screen.

Click NXT Robotics
-> NXT programming
—> Structures (multiple instructions are within here)
—> Behaviors (multiple instructions are within here)
—> Try “Drive while S…” – and drag this icon onto the main screen

{This drags an entire, already created program}

Then click “DEPLOY” icon (An arrow pointing downwards, in the upper left of the main screen) which sends the instruction to the NXT

When the NXT receives the file, it will make a beep.

Click the NXT orange button to scroll through it’s on-screen menu.

Now look for “My Files”

How would we erase the instructions on the screen (so that we can fix errors, or add something new)?

Click and drag to make a large box. The box will include whatever we want to erase.
Then hit CTRL-X to delete anything within the box.

How can we get individual functions?

Go back to the upper left main menu

View -> Functions palette

____________________________________________

Building our first robot

We need one wheel that can rotate freely on an axle, connected securely to the brick.

img_20160914_171625

pic-6

We need motors, one on either side of the robot. Each motor is attached to a wheel. The motor needs to be attached securely to the brick.

pic-5

pic-4

One we have a functional robot, we’ll then be able to program it.

————————————

1998. Lego Mindstorms 1st generation

http://lego.wikia.com/wiki/Mindstorms

lego-mindstorms-1st-gen-rcx-robotic-command-explorer

2006 LEGO Mindstorms NXT. A programmable robotics kit.

Lego Mindstorms

2009 Lego Mindstorms NXT 2.0

Lego NXT robot

2013 Lego Mindstorms Ev3

lego-mindstorms-ev3

Work in our classroom

Lego NXT ALA robots

img_20160912_152642

External resources

EV3Lessons.com by Seshan Brothers

Intro to programming Lego Mindstorms

nxtprograms.com By Dave Parker

Computer coding in general

Tutorials Point originated from the idea that there exists a class of readers who respond better to online content and prefer to learn new skills at their own pace from the comforts of their drawing rooms. The journey commenced with a single tutorial on HTML in 2006 and elated by the response it generated, we worked our way to adding fresh tutorials to our repository which now proudly flaunts a wealth of tutorials and allied articles on topics ranging from programming languages to web designing to academics and much more.

https://www.tutorialspoint.com/index.htm

Parts to look up

NXT DC Rechargeable Battery, 7.4 volt, 87662 

 

%d bloggers like this: