Oversikt innlegg
mai 2012 m ti o to f l sø « nov 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Logg inn
Schematics of Circuit and arduino code for the Lue project
int bend1, bend2, temp;
void setup() {
//Serial.begin(9600); //debug
}
void loop() {
bend1= analogRead(1);
bend1= map(bend1, 0, 1023, 0, 255);
analogWrite(9, bend1);
bend2= analogRead(2);
bend2= map(bend2, 0, 1023, 0, 255);
analogWrite(10, bend2);
temp= analogRead(3);
temp= map(temp, 0, 1023, 0, 255);
//Serial.println(temp); //debug
temp= map(constrain(temp, 119, 132), 132, 119, 0, 255); //callibration here
analogWrite(11, temp);
}
Publisert i Uncategorized
Presentasjon av gruppenes prosjekter
Gruppe 1: utvikle en kokong av ull med lys inni. Lyset skal aktiveres ved at man berører og strekker på innsiden av kokongen. 
Gruppe 2: Lage et veggpanel/oppslagstavle med forskjellige lys-effekter
Gruppe 3: Lage interaktive puffer som lyser når man sitter på de
Gruppe 4: lage kosebamse som interagerer med en lysende gardin, til et barnerom
Gruppe 5: strikke barne-luer som kommuniserer med hverandre via lys
Gruppe 6: teppe som reagerer på kroppstemperatur og lyser opp ved berøring
Publisert i Uncategorized
Publisert i Uncategorized
Many leds in series connected to arduino pwm
Do you want to power many leds? You can with this setup have approximately 30 leds per arduino.
Fredrik made a circuit for arduino pwm (dimmer) for 10-15 leds. See image of circuit. To power the circut you need external power (5-12 v transformator ) that you connect to the black round power input on the arduino (left bellow usb). The external power in to arduino can beused from pin named “Vin” on Duemilla or 9 v on older arduinos (see red cable in image, connected further to + on the bread board). You will also need a transistor connected from one of the pwm pin 9, 10, or 11 (silver round with 3 legs, 2N2222). How to connect see schematics in second image:
Fredrik uses pwm pin 9 (white cable). A potentiometer connected to analogue 0 (zero) controls the resistance and dimming of all the leds). Fredrik recommends 10 leds per transistor and pwm channel. That means that you with 3 pwm channels can power approximataly 30 leds per arduino.
Schematics for circuit:
Publisert i Uncategorized
Intens jobbing..
Publisert i Uncategorized












