My light controller circuitry

Advertisements

Where can I buy arduino?

I bought my arduino from Partco Oy from Helsinki (in Finland). You can buy it from there too or fro example from amazon.com. There are thousands of arduino parts in amazon.com.

How mucht it cost? The smallest arduino cost’s only about 10 dollars, but the laargest arduino cost about 80 dollars.
Some of arduino parts can cost nearly 200 dollars like arduino 3G shield. But the cheapest arduino parts can cost less than 1 dollar.

What is Arduino?

“Arduino is a single-board microcontroller designed to make the process of using electronics in multidisciplinary projects more accessible. The hardware consists of a simple open source hardware board designed around an 8-bit Atmel AVR microcontroller, though a new model has been designed around a 32-bit Atmel ARM. The software consists of a standard programming language compiler and a boot loader that executes on themicrocontroller.

Arduino boards can be purchased pre-assembled or do-it-yourself kits. Hardware design information is available for those who would like to assemble an Arduino by hand. It was estimated in mid 2011 that over 300,000 official Arduinos had been commercially produced at that point.[1]

 

I think everybody can use arduino. It’s very easy to start without any before experience of using arduino or programming.

Alarm light

void setup() {
analogWrite(2, 255);
analogWrite(3, 255);
analogWrite(4, 255);
analogWrite(5, 255);
analogWrite(6, 255);
analogWrite(7, 255);
for(int i1 = 22; i1 <= 39; i1++) {
analogWrite(i1, 255);
}
delay(180000);
for(int i1 = 22; i1 <= 39; i1++) {
analogWrite(i1, 0);
}
for(int i = 255; i >= 0; i–) {
analogWrite(5, i);
delay(10);
analogWrite(6, i);
delay(10);
analogWrite(2, i);
delay(10);
analogWrite(3, i);
delay(10);
analogWrite(4, i);
delay(10);
}
analogWrite(7, 0);
delay(25200000); // 6 h = 21600000 ms; 7 h = 25200000 ms; 7,5 h = 27000000 ms; 8 h = 28800000 ms; 9 h = 32400000 ms;
for(int i = 0; i <= 255; i++) {
analogWrite(5, i);
delay(2000);
analogWrite(6, i);
delay(2000);
analogWrite(2, i);
delay(2000);
analogWrite(3, i);
delay(2000);
analogWrite(4, i);
delay(2000);
}
delay(900000);
}
void loop() {
analogWrite(7, 255);
analogWrite(2, 255);
delay(200);
analogWrite(2, 0);
delay(200);
analogWrite(3, 255);
delay(200);
analogWrite(3, 0);
delay(200);
analogWrite(4, 255);
delay(200);
analogWrite(4, 0);
delay(200);
analogWrite(5, 255);
delay(200);
analogWrite(5, 0);
delay(200);
analogWrite(6, 255);
analogWrite(7, 0);
delay(200);
analogWrite(6, 0);
delay(200);
for(int ii = 22; ii <= 39; ii++) {
analogWrite(ii, 0);
}
analogWrite(2, 255);
analogWrite(3, 255);
analogWrite(4, 255);
analogWrite(5, 255);
analogWrite(6, 255);
delay(200);
analogWrite(2, 0);
analogWrite(3, 0);
analogWrite(4, 0);
analogWrite(5, 0);
analogWrite(6, 0);
delay(200);
for(int ii = 22; ii <= 39; ii++) {
analogWrite(ii, 255);
}
}