I need some help please programming with the light sensor. I am brand new to Lego Robotics, so forgive me if this isn’t the right place.
I am helping my daughter with a science fair project. We are going to put an NXT Robot (a little bumper car) in a big cardboard house with one opening (the door). Our goal is to see whether the robot gets out faster using its touch sensor or by using its light sensor.
We’ve programmed it (touch) to bump into a wall, back up, turn a little bit, and go forward until the same thing happens. It looks and acts much like our Roomba (her inspiration).
We are having real trouble with the light sensor programming. It looks like we have to connect certain “wires” to other wires in the programming software, but I’m lost.
Can anyone help with a program to help make this work?
EDIT: To clarify, the inside of the “house” is dark. She’s going to have a flashlight at the door to the house and hopefully the robot will seek after the light to escape the house. Like a moth to a flame…
EDIT 2: I did it! Thanks to all of you for your help. Here’s how I did it.