Blinking LED with button and with light resistorr (analog 0, earth, 5v) (PWM)
Below is breadboard view of Arduino example 6. Please look final code example to make needed in and out put adjustments to make it work.

Arduino Workshop Materials – KoKoMYs 31 October to 1 November 2009
Blinking LED with button and with light resistorr (analog 0, earth, 5v) (PWM)
Below is breadboard view of Arduino example 6. Please look final code example to make needed in and out put adjustments to make it work.

Posted in Examples.
Blinking LED with button and with potentiometer (analog 0, earth, 5v) (PWM)
Below is breadboard view of Arduino example 5. Please look final code example to make needed in and out put adjustments to make it work.

Posted in Examples.
Blinking LED with button (4)
Below is breadboard view of Arduino example 3. Please look final code example to make needed in and out put adjustments to make it work.

Posted in Examples.
Blinking breadboard LED
Below is breadboard view of Arduino example 2. Please look final code example to make needed in and out put adjustments to make it work.

Posted in Examples.
/*
Simple Firmata example. Load Firmata to Arduino with LED connected to pin 5 and
potentiometer connected to pin 0.
*/
import processing.serial.*;
import cc.arduino.*;
Arduino arduino;
public static final int HALOO = 6;
void setup() {
size(470, 280);
arduino = new Arduino(this, Arduino.list()[0], 57600);
arduino.pinMode(5, Arduino.OUTPUT);
}
void draw() {
background(arduino.analogRead(0));
}
void mousePressed() {
println(”Hiiri painettu.”);
arduino.digitalWrite(5, Arduino.HIGH);
}
void mouseReleased() {
println(”Hiiri vapautettu.”);
arduino.digitalWrite(5, Arduino.HIGH);
}
Posted in Examples, Processing and Firmata.
// Below is the final code example done during KoKoMys Arduino work shop
int lediPinni = 5;
int nappiPinni = 4;
int potikkaPinni = 0;
void setup() {
Serial.begin(9600);
Serial.println(”Mahtava ohjelma käynnistyi!!!”);
pinMode(lediPinni,OUTPUT); // arduinolle ilmoitetaan pinnin moodi.
pinMode(nappiPinni,INPUT);
digitalWrite(nappiPinni,HIGH); // aktivoi pullup resistori, muista aina tehdä
}
void loop() {
Serial.println(analogRead(potikkaPinni));
if (digitalRead(nappiPinni)==LOW) { // jos nappi pohjassa, suoritetaan seuraavan lohkon käskyt.
//digitalWrite(lediPinni,HIGH);
analogWrite(lediPinni,analogRead(potikkaPinni)/4);
//Serial.println(”Nappi painettu!”);
// tässä välissä tehdään se varsinainen toiminta, esim. lähetetään MIDIä jonnekin.
//delay(10);
} else { // jos nappula ei ole painettuna
//Serial.println(”Nappi ei painettu!”);
digitalWrite(lediPinni,LOW);
}
}
Posted in Final Arduino Code.
Here is couple simple tutorials for different Arduino projects. One of the best sources for more projects is the Blog of Make Magazine:
More projects:
Please post links to interesting projects to the comments of this post!
Posted in Arduino Tutorials.
In the Workshop we will explore the following topics
- Connecting Arduino to computer
- Connecting actuators and sensors to Arduino
- Arduino IDE (Integrated Development Environment)
- Midi Output
- Voltage output (Possibilities in circuit bending)
- Sending Serial Datan from Arduino to ex. Pure Data and Processing)
Posted in Workshop themes.