IFD:Interaktive Elektronik 2012/5. Meeting

From Medien Wiki
< IFD:Interaktive Elektronik 2012
Revision as of 14:28, 16 May 2012 by Mschied (talk | contribs) (Created page with "thumb === Step 1: Read a sensor value or potentiometer value === run this to receive singles bytes of a sensor value. Receive ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Potentiometer A0 Serial Steckplatine.png


Step 1: Read a sensor value or potentiometer value

run this to receive singles bytes of a sensor value. Receive the bytes using processing, puredata or other software.


char analogValue; // char is a byte

void setup () {
  Serial.begin(9600);
}

void loop () {
  analogValue = analogRead(A0);
  Serial.write(analogValue);
  delay(100);
}

Step 2: Read multiple sensor values

Problems + Solutions - discussion in class. Homework: 1. Get Arduino running with one or more sensors and write a small test sketch in processing (or a program in your favourite language) to receive the two values.

2. Build a sensor of conductive material and experiment with it. Find an application using it. Document your Experiments in drawings, videos, photos.