Arduino Workshop, Part 1

This week we’ll have an arduino workshop going on besides the projects we’re working on.

Today we started with basics of electronics and arduino. Therefore Simone Jones started by explaining basic rules of electronics, pleas look at the slideshow for more information about that. We started by plugging a LED into pin 13 of an Arduino – board and wrote the script in order to let it blink.

In the 2nd step we used pin 12 to wire 3 LED’s – first serial then parallel -> see the pictures for the schematics. This is the code that we used:

//blink

/* 020608 first try

we’ll turn on and of a led in order to make it… BLINK!

*/

int ledPin = 12;

int ledPin2 = 13;

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

}

void loop()
{
digitalWrite(ledPin, HIGH);
delay(1000);
digitalWrite(ledPin, LOW);
delay(1000);

digitalWrite(ledPin2, HIGH);
delay(1000);
digitalWrite(ledPin2, LOW);
delay(500);

}

0 Responses to “Arduino Workshop, Part 1”


  • No Comments

Leave a Reply

Recent Tweets

Creative Commons License