This is how you build a spaceship interface. All components were used from the Arduino Starter Kit.
Just like the last project, You will need to first connect the positive and negative wires. The positive one from 5 volts to the positive tramline and the negative one from the negative tramline to ground.
Then take 3 220 ohms resistors and connect them from the negative tramline to any pin on the breadboard. Make sure that the resistors are at least 3 line apart.
Next take your 3 LED's and connect the cathode (short leg) and connect it to the same line as your 220 ohms resistor. Connect the anode (long leg) on the line above. Next, take a generic wire and connect it from the same line as the anode, to pin squiggly 5 (PWM 5) on the Uno board. Do the same with the other LED's but connect one of the LED's to pin squiggly 4 (PWM 4) and the other to pin squiggly 3 (PWM 3).
This is the complicated part. You may need to keep switching back and forth between the picture and video and this document. If you use the photo or video, then the I part I will be explaining is the part on the bottom on the picture.
First, you have to connect a small positive wire from the positive tramline to any line on the breadboard. Then, on that same line, connect one leg of a switch. One side of the switch has to be on one side of the breadboard and the other side on the other side of the breadboard. Look at the video and picture for more information. Once you have connected the switch in the way that I have, then connect a generic wire from the 3rd leg of the pin (bottom left) to pin 2. By this I mean connect a generic wire from the same line as the 3rd leg of the switch. Lastly, connect a 10 kilo ohms resistor from the same line as the 3rd leg to the negative tramline.
This is a bit confusing so please us the video.
This project also requires code. Please remember to type the code in and upload it as shown in the video.








Comments