Monday, November 16, 2015

Blinker

For in this part we had to make the light start to blink. We did that by connecting the Arduino to the laptop and we opened the app on the laptop. Then we type a code that the website gave us to make the light start blinking. After we finished that we uploaded the code to a file. 


In this video we have made the light to turn on for 1 second and turn off for 5 seconds. We programmed the light to turn on for only one second. We set the loop to forever and then changed the amount of time to turn on and off. 
  




















In this part of the project we had to make the red light turn on. We plugged in a yellow hire in the arduino number 13 and the other part the section a number 26. For the black wire in the arduino we plugged it in the CND part and on the right negative part near number 13. Then the LED we put it in I 26 and in the negative part number 26. That is what we did to make the LED turn on. 




In this video we set the light to turn on for 15 seconds and turn off for 3 seconds. The cords are all the same from the last experiment. All we did was change the code to delay (15000) High, and (3000) Low. This would cause our light to do what it is supposed to do. 





In this video we had 2 lights turning on at different times. The green light to turn on for 2 seconds and then the red light be on for 2 seconds. A light would be on for every second. The lights to would stay on forever. The program is able to make them be on at different times, never at the same time. Then you put the wire on 7 and on the breadboard you put it on 47 section a. For the coding you copy whats on the website and then you add the same coding but for a white int.




In this video we had 3 lights turn on. Each light would be on 2 seconds then switch to be off. Every light would be on at its own time. At every second there would be at least one light on. The code was programmed to have each light on and switch on and off depending on the other lights. Then you put the wire on 7 and on the breadboard you put it on 47 section a. For the coding you copy whats on the website and then you add the same coding but for a white int.





 

In part 7 if you to make the lights count in binary base 10. If you do add a 1 it will make the light turn on. If you put 0001 it would turn on the light furthest right, if you put 0010 the second light would turn on, and if you put 0011 the first and second on the right would turn on. You also have to copy the code that is on the website.  


 
In part 9, we had set the light to turn lower and higher with the turn of the potentiometer. When we turned it to the right the light got dimmer. When we turned it to the left, the light got brighter. The code was programmed to do this with the turn of the potentiometer. Each cable was connected across the whole board.



In part 10 we had to make a red light turn on and off with a click of a bottom. All we had to do was to copy and paste what was on the website. We also followed the picture that was on the website to put the wires and button in the right place. That is how we did part 10. 



In part 11 we had to press and button to make the red light turn on and off. At first we couldn't understand but then we ask Ethan to help us. We didn't understand which int to use. But other then that we knew what to do. 

In this part we had to make all the lights turn on. It took awhile for us to do they wiring because there are a lot of wires. Also we got confused with the wiring. Some wire are the same color so we would put the wrong wire into the arduino. 


In part 13 we had to spell out a name. We couldn't do our name because the letters in our name wouldn't appear. It wouldn't appear because of the shape of the letters in our name. So since we couldn't do our name we deiced to do the name Bud.  


In part 14, we had to count to 10. We programmed each segment to be on to make the number its supposed to make. Each segment had to be turned on and off. Each segment would be turned on off to make sure they don't overlap. 



In part 15 we had to make the light turn in different colors. This part was very easy because we just had to change the coding to make the light turn to red, green, and blue. analogWrite(redpin,0); That means that the red light is off. analogWrite(greenpin,255); This means that green is on. That is what we had to do for part 15.





   In part 16, we had make 5 different color lights. We had the        original colors. Red, Green and Blue. These colors    we mixed together to make other colors. The colors would be coded to turn on at the same time and make different colors. Each color with another color made many unique colors. Each color would make every other color. The code was the same for every color.    







No comments:

Post a Comment