12 May, 2010

Tasks first set 1-12

Tasks


5) Make the blink twice as slow:
[...]
//make led blink on for 2s and off for 2s
digitalWrite(led, HIGH);
delay(2000);
digitalWrite(led, LOW);
delay(2000);
[...]
-----------------------------------------------------------

6) Make the LED blink fast
[...]
//make the led turn on for (50ms) and off (50ms)

digitalWrite(led, HIGH);
delay(50); //this is quite fast but still visible.
digitalWrite(led, LOW);
delay(50);

/*if the program was delayed for 9 milli seconds it would look like the led is solid on. */
[...]
-------------------------------------------------------------

7) Get led to stay on mostly then flash off.
[...]
digitalWrite(led, HIGH);
delay(10000); //stay on for 10 seconds
digitalWrite(led, LOW);
delay(100); //flash off for 100ms
[...]
-------------------------------------------------------------
8) Now the other way around from '7'
[...]
digitalWrite(led, HIGH);
delay(100); // illuminate for 100ms
digitalWrite(led, LOW);
delay(10000); //stay off for 10 sec
[...]
-------------------------------------------------------------
9) What has LEDs
iPods, computers (eg HDD activity), the arduino, network hubs/switches, tv.

Some cordless phones detect whether there is a message and makes a LED light up for 500ms every 4 seconds.
-------------------------------------------------------------
10) I have downloaded Fritzing
-------------------------------------------------------------
11) I have made a Fritzing diagram for the 7-Segment LED display
-------------------------------------------------------------
12) Fritzing project
A RGB colour mixer looks interesting by getting different colours to change by using a potentiometer. 

No comments:

Post a Comment