Thursday, August 27, 2015

8/26 In Class Exercise



Lesson 2

In your Arduino software, change the number in the delay procedure calls to 500 (from 1000) as shown


Exercise 1.
Modify the code so that the light is on for 100 msec and off for 900 msec



Exercise 2.
Modify the code so that the light is on for 50 msec and off for 50 msec. What happens?

-The light blinks really fast


Exercise 3.
Modify the code so that the light is on for 10 ms and off for 10 ms. What happens?

-The light isn't blinking


Now pick up the Arduino and gently wave it back and forth, in a dark room. What happens?

--A trail of light


What do you think is happening here?

--The lighting is blinking so fast we dont notice a change until we move it back and forth.


Lesson 3


In our new schematic, instead of connecting the resistor to +5V power, we'll connect it to ground.

Before you change your breadboard, make a guess of what will happen:

I think the light will go out.
Lesson 5





No comments:

Post a Comment