Wednesday, 14 December 2016

P&PI PROJECT 2 - TUTORIAL 5 - ANALOG INPUT/FADE

This is the final part of my pre-chosen tutorials on Arduino for my college assignment. This one was similar to the first 'Blink' tutorial, but with an added feature. I had to hook up the breadboard and program arduino so that the LED light would gradually get brighter from being off to being fully on and then at the same pace, gradually turn the brightness down until it goes off and then starts over again. The main physical difference is that the LED light is now on the breadboard rather than the UNO board.

In Arduino, the main piece of could that you can mess with is the 'delay()', as it changes the speed of the brightness. I changed the delay from 30 miliseconds to 500 milliseconds and I could actually see the brightness going up a small amount once every 0.5 seconds. I dropped it down to 100 milliseconds to get a slow but smooth change. Finally I put it to 0.1 second as it has enough of a delay to be quick and smooth but not too quick that it may as well be blinking.

Video Result of Tutorial 5 --> https://www.youtube.com/watch?v=XCChGJjgfIo&feature=youtu.be




In my next post I will be running through a tutorial that I got to choose myself.

No comments:

Post a Comment