Engineering‎ > ‎Robotics Lessons‎ > ‎

NXT Programs To Make on the Brick

Programming on the NXT brick. 


Try Writing the following 4 programs directly on the NXT brick.


  • Write a program that makes your car go forwards for 5 seconds and then backwards for 5 seconds forever 
  • Add a touch sensor to your car. Write a program that makes your car go forwards until you press the button and then goes backwards until you press the button and then forwards until you press the button and on and on forever
  • Add an ultrasonic sensor to your car. Write a program that makes your car go forward until an object is in front of it. Then turn for 2 seconds and repeat forever
  • Add a color sensor to your program. Write a program that lets your car go forward until it hits a black line and then in stops.  Note:  An empty circle means the light sensor waits for a light color. A dark circle means the light sensor sees a dark color
Comments