05-30-2012 01:10 PM
I am trying to control a ball grabber robot using NXT 1. My goal is to have the robot facing the same direction before searching for the second ball. The program I am testing with almost gets the robot back to the starting position, but not quite. The reason I am doing this is to take the balls to a drop off location. The code attached is just to test with, not the full program. It does not grab any balls.
06-01-2012 06:44 AM
Yes, this is the correct forum for NXT questions, although you may want to consider posting here as well (http://messageboards.lego.com/en-US/showforum.aspx
04-23-2013 10:33 AM
There are a lot of resources online and in the software that can help with example code for the different sensors.
This website offers a lot of valuable information regarding the programming. It also has examples in the different programming languages you can use.
They also have Quick Guides to Programming that show very simple code and explanations. There is a basic example written in the guide specific to the light sensor.
There are also examples for different builds and programming guides in the ROBO Center on the right of the screen when you open the NXT Mindstorm software.