![Page 1: ArTe Arduino Letizia Jaccheri Pisa February 2010](https://reader031.vdocuments.mx/reader031/viewer/2022032703/56649d2f5503460f94a06905/html5/thumbnails/1.jpg)
ArTe Arduino
Letizia Jaccheriwww.letiziajaccheri.com
Pisa February 2010
![Page 2: ArTe Arduino Letizia Jaccheri Pisa February 2010](https://reader031.vdocuments.mx/reader031/viewer/2022032703/56649d2f5503460f94a06905/html5/thumbnails/2.jpg)
Structure
How to start
how many do have a computer?
connected?
windows/mac/linux?
IDE and language
Project
![Page 3: ArTe Arduino Letizia Jaccheri Pisa February 2010](https://reader031.vdocuments.mx/reader031/viewer/2022032703/56649d2f5503460f94a06905/html5/thumbnails/3.jpg)
Set up
FTDI Basic Breakout - 3.3V
LilyPad Arduino AT Mega 168
![Page 4: ArTe Arduino Letizia Jaccheri Pisa February 2010](https://reader031.vdocuments.mx/reader031/viewer/2022032703/56649d2f5503460f94a06905/html5/thumbnails/4.jpg)
Arduino software
Download
Select serial port
Select board – AT Mega 168
Install the USB drivers
![Page 5: ArTe Arduino Letizia Jaccheri Pisa February 2010](https://reader031.vdocuments.mx/reader031/viewer/2022032703/56649d2f5503460f94a06905/html5/thumbnails/5.jpg)
Programmin steps
Write/reuse
Verify/Compile
Upload
Run
![Page 6: ArTe Arduino Letizia Jaccheri Pisa February 2010](https://reader031.vdocuments.mx/reader031/viewer/2022032703/56649d2f5503460f94a06905/html5/thumbnails/6.jpg)
Language
based on processing which is based on java
http://www.arduino.cc/en/Reference/HomePage
![Page 7: ArTe Arduino Letizia Jaccheri Pisa February 2010](https://reader031.vdocuments.mx/reader031/viewer/2022032703/56649d2f5503460f94a06905/html5/thumbnails/7.jpg)
Language (comments)
// This is a comment. It doesn't do anything.
/* This is a comment. It doesn't do anything. Comments just make code easier for you and other people to understand */
![Page 8: ArTe Arduino Letizia Jaccheri Pisa February 2010](https://reader031.vdocuments.mx/reader031/viewer/2022032703/56649d2f5503460f94a06905/html5/thumbnails/8.jpg)
Language (variables)
int ledPin = 13;
// This statement declares a variable called "ledPin" and sets its initial value to 13.
// We'll use "ledPin" later to control the LED that is on the LilyPad
![Page 9: ArTe Arduino Letizia Jaccheri Pisa February 2010](https://reader031.vdocuments.mx/reader031/viewer/2022032703/56649d2f5503460f94a06905/html5/thumbnails/9.jpg)
Language (variables)
int switchPin = 2;
// This creates a variable called "switchPin" //and sets its initial value to 2
// We'll use "switchPin" later to read data from //a switch attached to petal 2.
![Page 10: ArTe Arduino Letizia Jaccheri Pisa February 2010](https://reader031.vdocuments.mx/reader031/viewer/2022032703/56649d2f5503460f94a06905/html5/thumbnails/10.jpg)
Language (variables)
int switchValue;
// This creates a variable called "switchValue", // but does not initialize it
![Page 11: ArTe Arduino Letizia Jaccheri Pisa February 2010](https://reader031.vdocuments.mx/reader031/viewer/2022032703/56649d2f5503460f94a06905/html5/thumbnails/11.jpg)
Language (delay)
delay(1000); // This tells the LilyPad to do nothing for 1000 milliseconds (1 second).
![Page 12: ArTe Arduino Letizia Jaccheri Pisa February 2010](https://reader031.vdocuments.mx/reader031/viewer/2022032703/56649d2f5503460f94a06905/html5/thumbnails/12.jpg)
Language (digitalWrite)
digitalWrite(ledPin, HIGH); // This sets ledPin (pin 13 on the LilyPad as defined above) to +5 volts // Setting pin 13 to +5 volts/HIGH will turn the LED on the LilyPad on.
digitalWrite(ledPin, LOW); // This sets ledPin to 0 volts // Setting pin 13 to 0 volts/LOW will turn the LED on the LilyPad off.
![Page 13: ArTe Arduino Letizia Jaccheri Pisa February 2010](https://reader031.vdocuments.mx/reader031/viewer/2022032703/56649d2f5503460f94a06905/html5/thumbnails/13.jpg)
Language (if while)
if (switchValue == LOW)
// if the switch is pressed
{digitalWrite(ledPin, HIGH);}
while (switchValue == LOW) {digitalWrite(ledPin, HIGH);
delay(100);
digitalWrite(ledPin, LOW); delay(100);
switchValue = digitalRead(switchPin);}
![Page 14: ArTe Arduino Letizia Jaccheri Pisa February 2010](https://reader031.vdocuments.mx/reader031/viewer/2022032703/56649d2f5503460f94a06905/html5/thumbnails/14.jpg)
Program structure
Variables
Setup
Loop
![Page 15: ArTe Arduino Letizia Jaccheri Pisa February 2010](https://reader031.vdocuments.mx/reader031/viewer/2022032703/56649d2f5503460f94a06905/html5/thumbnails/15.jpg)
examples
• blink• RGB• sound• switch
![Page 16: ArTe Arduino Letizia Jaccheri Pisa February 2010](https://reader031.vdocuments.mx/reader031/viewer/2022032703/56649d2f5503460f94a06905/html5/thumbnails/16.jpg)
Art project
Poetic message – technology possibilities
![Page 17: ArTe Arduino Letizia Jaccheri Pisa February 2010](https://reader031.vdocuments.mx/reader031/viewer/2022032703/56649d2f5503460f94a06905/html5/thumbnails/17.jpg)
In ArTe
In the ArTe project we see technology as a possibility to introduce in our life more creativity, cooperation, and openness
Sewing as a way of seing
![Page 18: ArTe Arduino Letizia Jaccheri Pisa February 2010](https://reader031.vdocuments.mx/reader031/viewer/2022032703/56649d2f5503460f94a06905/html5/thumbnails/18.jpg)
![Page 19: ArTe Arduino Letizia Jaccheri Pisa February 2010](https://reader031.vdocuments.mx/reader031/viewer/2022032703/56649d2f5503460f94a06905/html5/thumbnails/19.jpg)
The LED on the lillac gown displays a beautiful yellow color to symbolize day light. The LED switches to a deep blue night color and again to yellow. Day after day. By moving my arms, jumping, walking, falling down I alter this cycle. The more I stress the less I am able to observe the cycle of life. I cannot really observe myself. I need somebody else to tell what they see on my gown LED. Beautiful or less beautiful patterns can arise while I busy myself. These patterns do not always match the lilac color of my gown.
the lillac gown
![Page 20: ArTe Arduino Letizia Jaccheri Pisa February 2010](https://reader031.vdocuments.mx/reader031/viewer/2022032703/56649d2f5503460f94a06905/html5/thumbnails/20.jpg)
![Page 21: ArTe Arduino Letizia Jaccheri Pisa February 2010](https://reader031.vdocuments.mx/reader031/viewer/2022032703/56649d2f5503460f94a06905/html5/thumbnails/21.jpg)
the lillac gown (cont.)
I understand more and more the programs that govern my gown but I do not fully understand the relationships between my movements and its effects. I needed the help of both my student Hallgeir to write the code and my friend, fashion design Urd, to find my unique lilac Lilypad gown, and I need Daniela who believes in science, to observe my gown and its program to find the motivation to change. I do not fully understand the details of acceleration but I am aware I will. I know that the beautiful cycle of yellow and deep blue will come again and again.
![Page 22: ArTe Arduino Letizia Jaccheri Pisa February 2010](https://reader031.vdocuments.mx/reader031/viewer/2022032703/56649d2f5503460f94a06905/html5/thumbnails/22.jpg)
![Page 23: ArTe Arduino Letizia Jaccheri Pisa February 2010](https://reader031.vdocuments.mx/reader031/viewer/2022032703/56649d2f5503460f94a06905/html5/thumbnails/23.jpg)
Plan
Decide what to do
Choose the components
Design
Program, test and may be sew
10.30 presentations and discussion
10.45 log writing and send/store arduino programs
![Page 24: ArTe Arduino Letizia Jaccheri Pisa February 2010](https://reader031.vdocuments.mx/reader031/viewer/2022032703/56649d2f5503460f94a06905/html5/thumbnails/24.jpg)
Log writing
What I learned about Arduino is …
What I take with me from today from Arduino is …
![Page 25: ArTe Arduino Letizia Jaccheri Pisa February 2010](https://reader031.vdocuments.mx/reader031/viewer/2022032703/56649d2f5503460f94a06905/html5/thumbnails/25.jpg)
Conclusions
- What did we learn in the 2 days- Most positive- What can be improved?
- Which questions do we have?