So for my project to work I do need to physically setup some stuff. The first thing I did was connect a power and ground from my arduino to my bread board. I connected just a normal ground but for the power I connected the Vin pin instead of the normal 5V. I did this because the Vin pin gives outputs 5V if the arduino is already powered, however if the arduino isn't powered by say the USB or barrel plug you can hookup a 5V power source to the breadboard and the Vin will accept that as a power source, and then you can also power the led's with that same power source. So the Vin pin can be used as both a power in and power out. Next I have pins 2 and 3 which are being used as input pins for my buttons. I'm using pins 2 and 3 because they are the only pins on the arduino uno that are setup to be used with the arudino's built in interrupt routine. Finally on my arduino i'm using pin 0 as the output that sends signals to my led strips, data line so that i can make it do stuff. On my breadboard I have a few things going on. First of all i have my ground and Vin pins connected to the bottom of power rails on the breadboard. Then i have the power cords for the led strip plugged into the power rails as well. Next i have a cable bringing power to a button then on the otherside of the button I have a resistor connecting to the ground and I have a cable that goes to the corresponding input pin in my arduino. I have another button setup as well that ends going to the other input pin. Finally I have a cable coming from the output pin on my arduino then going to a resistor, then going to the data line cable for the led strip. Finally on my led strip I have three cables. The two outside ones being my positive and ground cables, red and blue respectively. There is alos the middle cable which the data line for the led strip.
0 Comments
Leave a Reply. |
What's Going on Here?This is Ethan's blog about the progress done on their Capstone Project (final project) for their Computer Science 30 course.
Resources UsedArduino Reference Page
Interrupt Reference Interrupt Millis Function Arduino Forum Page Adafruit Button Help Sub Reddit Button Help Example Code UsedThe Led ShowsMy ProjectClick Here to go and take a look at the code for my project and maybe even download and use it if you want.
|