Lego Nxt Scorpion Program
NXT Programs - Fun Projects for your LEGO Mindstorms NXTFunProjects foryour LEGO ®MINDSTORMS ®NXT!If you have a LEGO ®MINDSTORMS ® NXTrobotics kit, then this site provides free building instructions and downloadable programs forlots of fun projects.Projects designed for the young and young at heart!.Only one NXTkit is required, no extra parts are needed.Full building instructions with colorphotographs.No programming experienced required!
Lego Mindstorms Programming
Lego Robotics(Programming).1.Robotics: Lego Mindstorm NXTStage 2: Programming.Time to Program!You just built your starting robot! Congrats, now it’sready for action.
Oh wait, it’s just sitting there isn’t itThat’s because you didn’t give it a program yet, therefore,it doesn’t know what to do yet!So let’s learn how to program!.Change How You ThinkRemember when I told you the most important thing you haveto do it change how you think?Well now is when you learn why.To program, you have to understand how to think like acomputer. And that’s to be able to think with algorithms,which is the computers thought process. You take forgranted how easy it comes for people to be able to think andthen act off that impulse, so we’re going to make you do anexercise to learn how to think like a programmed robot.Stop and get programmedWe are going to put you in groups of two. One volunteer to bethe robot, the other is the programmer.Now blindfold the volunteered robot, arrange an obstaclecourse in our room, and the programmer verbally direct the“robot” through it. (i.e.“Take 3 steps, stop, turn left 90degrees, stop, take 4 steps, stop, etc.”)And the robot can’t feel around, keep arms to the side.What did you learn?You probably noticed that it was harder to get around whenyou couldn’t think for yourself as the robot. And if you werethe programmer, you must have had to think pretty detailedon what directions to give and how.That’s the point. Robots can’t think for themselves, they needexact directions.
When you program your robot you aregoing to need to know where you want it to go, how far,what direction, when to turn, when to stop, etc.Programming with NXTNow that your mindset isin programmer mode,let’s Mindstorm!(corny pun)Lucky for you, NXTprogramming is notthat complicated.BasicsThe goal of this week is for you to learn how to program onyour own and be as creative with it as you want. So wearen’t going to give a strict guideline on how to programyour robots, the goal is to learn the basics and program yourrobot anyway you see best!Once you start learning the basics youmight discover better ways to programthan the other teams or the instructors,don’t hesitate to be creative.MovementYou make NXT programslike you are putting Legoblocks together.Movement blocks are one ofthe most used actions inprogramming. You candecide what servo toactivate with them,direction, and for whatduration. (Duration willbe important later).Sound BlocksWhen you activate theseblocks you can makeyour robot play a soundfrom the files in theNXT programer.SwitchWhen you need to program afunction for a sensor, you use theswitch function. It allows you toprogram exactly what the robotshould do if a sensor is tripped.Example: Touch sensor trips,program to move back 2 rotations,then turn right, continue to nextfunction.Wait buttonThe wait function isnecessary for whenyou want yourrobot to act until ittrips a sensor. So ifyou want the robotto act a certain waywhen it trips acertain sensor, youwill use the waitbotton.Loopty LoopLoops are very handy, theycontain a program you want torepeat.
Lego Mindstorms Nxt Scorpion Program Download
It can repeat once untilforever if you like.Stop: It has to at some point!The most important thing you need to learn in programming ishow to stop! We don’t get paid enough to do this forever!You will want to programyour robot to stop at somepoint.Remember that you canprogram the stop functioninto a loop or sensoraction.Making the DistanceRemember the movement blocks? When you want to programyour robot to go a certain distance, how do you know howlong to make it run?Well, you don’t. The fact that any robot you make can movedifferent than other robots means that you have to find outhow far it will go on your own.We have a handout ready to help you write down your data.The reason we suggest using “rotations” instead of “seconds” torun the movement blocks is because it is easier to figure outhow many rotations it takes to go a certain distance. Basicmath will figure out longer distances. Le sg totheP g m ingHa ot’ o ro ra m nd ut.Stage 3Now that you havecollected your data on (Obstacle2)distance, you can (Obstacle3)(Obstacle1)accurately program yourrobotic system aroundour obstacle course.
Thecourse floor plan willvary depending on whatlocation you are in, but it Startwill look something like Finishthis.CompetitionWe will have a friendly competition to see what team hasprogrammed their robot with more skill. Wii iso safe. The team thatcompletes our course with the best time wins.However, when the competition is complete, you can readilyget back into teams and begin to create more roboticcreations.The point of all three stages was to teach you how to create andprogram NXT robots, so be creative and have fun!.Additional DesignsThere are some additional designs in the Lego NXT program,but if you want to find designs off the internet go to thefollowing sites: www.nxtprograms.com You Have Fun!Good Luck!