Program Description:
This program waits for you to press the orange NXT Enter button. When you press it, the lamp brick connected to motor port A will turn on. To turn off the lamp, press the orange Enter button again.
Hardware Needed:
-1 NXT Intelligent Brick
-1 NXT Conversion Cable
-1 1 by 2 Lamp Brick
Hardware Setup:
Build the structure in the photo or create your own. Plug the NXT Conversion Cable into Motor Port A on your NXT. Connect the 1 by 2 Lamp Brick to the other end of the cable.
Program Description:
This program turns the lamp on and off repeatedly. The lamp is on for one half second, and then it is off for half a second.
Hardware Needed:
-1 NXT Intelligent Brick
-1 NXT Conversion Cable
-1 1 by 2 Lamp Brick
Hardware Setup:
Build the structure in the photo or create your own. Plug the NXT Conversion Cable into Motor Port A on your NXT. Connect the 1 by 2 Lamp Brick to the other end of the cable.
Program Description:
This program alternates both lamps on and off. Lamp A is on for one half second while Lamp B is off for one half second. Then Lamp A turns off for half a second while Lamp B turns on for half a second. The cycle repeats.
Hardware Needed:
-1 NXT Intelligent Brick
-2 NXT Conversion Cables
-2 1 by 2 Lamp Bricks
Hardware Setup:
Build the structure in the photo or create your own. (You don't need an Ultrasonic Sensor for this project). Plug one NXT Conversion Cable into Motor Port A on your NXT. Connect a 1 by 2 Lamp Brick to the other end of the cable. Plug the other NXT Conversion Cable into Motor Port B on your NXT. Connect the other 1 by 2 Lamp Brick to the other end of the cable.
Program Description:
A beacon is different from a flasher in that the light is usually off longer than it is on. Lamp A comes on only for 0.1 seconds and then turns off and stays off for 2 seconds. The cycle repeats.
Hardware Needed:
-1 NXT Intelligent Brick
-1 NXT Conversion Cable
-1 1 by 2 Lamp Brick
Hardware Setup:
Build the structure in the photo or create your own. Plug one NXT Conversion Cable into Motor Port A on your NXT. Connect a 1 by 2 Lamp Brick to the other end of the cable.
Program Description:
This cool light effect mimics the flicker of a candle flame. The program comes up with a random voltage level and sends it to the lamp every 0.1 seconds. The range for the intensity of the lamp is 5 to 100. This way, the lamp will never be completely off to give a realistic candle effect. This is probably how battery operated (flameless) candles work.
Hardware Needed:
-1 NXT Intelligent Brick
-1 NXT Conversion Cable
-1 1 by 2 Lamp Brick
Hardware Setup:
Build the structure in the photo or create your own. Plug one NXT Conversion Cable into Motor Port A on your NXT. Connect a 1 by 2 Lamp Brick to the other end of the cable.
Program Description:
This program works similar to the dimmer switches that control household light fixtures. The intensity of the lamp can be varied from off to full brightness. Press the Right NXT arrow button to make the lamp brighter. Press the Left NXT arrow button to reduce the lamp’s brightness.
Hardware Needed:
-1 NXT Intelligent Brick
-1 NXT Conversion Cable
-1 1 by 2 Lamp Brick
Hardware Setup:
Build the structure in the photo or create your own. Plug one NXT Conversion Cable into Motor Port A on your NXT. Connect a 1 by 2 Lamp Brick to the other end of the cable. For a challenge, see if you can use an NXT motor with a knob attached to control the lamp's brightness. Also, you could try to use the old, 9-volt rotation sensor.
Unfortunately, I keep getting a Server Error every time I try to upload the program for this project, as if the program is too big. Keep looking back as I'll see what I can do.
Program Description:
This simple program works just like a real night light. Turn of the lights in the room and the Light Sensor will trigger the lamp to come on. Turn the lights in the room back on and the Light Sensor will trigger the lamp to turn off.
Hardware Needed:
-1 NXT Intelligent Brick
-1 NXT Conversion Cable
-1 NXT Cable (The shortest one)
-1 1 by 2 Lamp Brick
-1 Light Sensor
Hardware Setup:
Build the structure in the photo or create your own. Plug one NXT Conversion Cable into Motor Port A on your NXT. Connect a 1 by 2 Lamp Brick to the other end of the cable. Connect the Light Sensor to sensor port 3 on your NXT.
Program Description:
This program works like a motion detector light. If something passes in front of the Ultrasonic Sensor, it will trigger both lamps to come on. The lamps will stay on for half a minute (30 seconds) and then go off. The lamps will come on again if something passes the Ultrasonic Sensor.
Hardware Needed:
-1 NXT Intelligent Brick
-1 NXT Cable (Doesn't matter what length, but the shortest one will not work with the structure in the photo.)
-2 NXT Conversion Cables
-2 1 by 2 Lamp Bricks
-1 Ultrasonic Sensor
Hardware Setup:
Build the structure in the photo or create your own. Plug one NXT Conversion Cable into Motor Port A on your NXT. Connect a 1 by 2 Lamp Brick to the other end of the cable. Connect the Ultrasonic Sensor to sensor port 4 on your NXT.