Jan 312011
 

Move C

This post shows a simple example of programming the Lego Mindstorm using NXT-G graphical language.  The simple example demonstrates a program that allows motor C to be controlled. This comes in handy when testing a robot and you want to try different speeds and directions with a motor.  Kinda like a little utility program.

The program starts motor C at 40% power in the forward direction.  The running speed is also displayed on the LCD.  Pressing the orange button starts / stops the motor.

At anytime the left / right buttons can be used to set the new power level.  The cursors can be used to set the power anywhere from -100% to +100% in steps of 5%.  Holding a cursor key down scrolls the power set-point which is displayed on the LCD.  Once the desired power level is chosen, toggle the motor on / off to use the new set-point.

Continue reading »

Jan 282011
 

Lego Shooter

Lookout! Another Dangerous Robot on the Loose.

Here is our second Lego Mindstorm robot to keep clear of.  This robot has the ability to swing around and unleash two bullets on whatever it finds.

The interesting part of this robot is the ultrasonic ranger coupled with the motor rotation.  As the motor rotates, the ultrasonic range is compared.  When a new minimum is found both the motor position and new minimum value are  saved into a pair of variables.  At the end of the sweep, the head is turned back to where the minimum value was detected.  At that point, the guns are fired!

Continue reading »


Jan 202011
 

Lego Snapper

Watch Out! This Lego Mindstorm Snapper bites!

Go ahead, make my day, try and push the little button without getting snapped!

We’ve joined a middle-school Lego club.  Better watch out now cuz we’re gonna getcha.

This is probably one of the world’s most expensive mouse traps.  Never mind the fact that it doesn’t even catch mice. That’s OK, it’s really designed to catch young children and it does a good job of that. Continue reading »

© 2011 Powerhouse Electronics Leave me comment!