Thursday, 25 April 2013


Two LEDs Running at Different Speeds

int ledOnePin = 13;
int ledTwoPin = 12;

void setup() {               
  pinMode(ledOnePin , OUTPUT); 
  pinMode(ledTwoPin , OUTPUT); 
}

void loop() {
    initializeLed(ledOnePin , 500);
    initializeLed(ledTwoPin, 1000);
}

void initializeLed(int led, int time) {
  digitalWrite(led, HIGH);
  delay(time);
  digitalWrite(led, LOW);
  delay(time);
}

Two LEDs Running

int ledOnePin = 13;
int ledTwoPin = 12;

void setup() {               
  pinMode(ledOnePin , OUTPUT); 
  pinMode(ledTwoPin , OUTPUT); 
}

void loop() {
    initializeLed(ledOnePin , 1000);
    initializeLed(ledTwoPin, 1000);
}

void initializeLed(int led, int time) {
  digitalWrite(led, HIGH);
  delay(time);
  digitalWrite(led, LOW);
  delay(time);
}

Blink LED Mostly On

int ledPin = 13;

void setup() {
  pinMode(ledPin , OUTPUT); 
}

void loop() {
    initializeLed(ledPin, 1000, 1);
}

void initializeLed(int led, int onDelay, int offDelay) {
  digitalWrite(led, HIGH);
  delay(onDelay);
  digitalWrite(led, LOW);
  delay(offDelay);
}

Blink LED Mostly Off

int ledPin = 13;

void setup() {             
  pinMode(ledPin , OUTPUT); 
}

void loop() {
    initializeLed(ledPin, 1, 1000);
}

void initializeLed(int led, int onDelay, int offDelay) {
  digitalWrite(led, HIGH);
  delay(onDelay);
  digitalWrite(led, LOW);
  delay(offDelay);
}

Tuesday, 23 April 2013

The Changed Blink Program 


int ledPin = 13;
void setup()   {
pinMode(ledPin, OUTPUT);
}
void loop()
{
digitalWrite(ledPin, HIGH);
delay(100);
digitalWrite(ledPin, LOW);
delay(100);
}


I changed the timer so that the light will blink so fast it doesn't look like it's blinking.

The Blink program

int ledPin =  13;
void setup()   {              
pinMode(ledPin, OUTPUT);   
}
void loop()                   
{
 digitalWrite(ledPin, HIGH);
 delay(1000);
 digitalWrite(ledPin, LOW);
 delay(1000);
}

Monday, 22 April 2013


LED YouTube Video 4




This was a simple project but I thought it looked cool and could be something fun to try. He mentioned where he got the idea from and provided links to useful websites in the description.

LED YouTube Video 3




I liked this project as it showed plenty of uses for the cube as well as advice on getting the hardware and information about each activity. I also liked it because you can use the Arduino Uno to run it.

Sunday, 14 April 2013

LED YouTube Video 2

http://www.youtube.com/watch?v=cQhBm_EgB0w



This is an extremely cool project where they build a ring that spins around and has LEDs attached to it, to create certain shapes including a globe. They provide a link to more information including code and layout.

LED YouTube Video 1



I found this video interesting as he showed what a made board is to look like and he described what he used. A good thing about this is you can talk to the author and he will send you the code if you want.

Useful Sites - Part 2




























Arduino Clone