Arduino Playground is read-only starting December 31st, 2018. For more info please look at this Forum Post

Schwaebisch Gmuend

Participants

Advanced Topics

  • Flash / Processing / VVVV
  • More complex communication: gyro / Sharp distance sensor / Ultrasonic / Encoders / LCD (Small displays)
  • Servo / Stepper /Arduino Shield?
  • RFID
  • Wireless / Bluetooth

Example Code


int val = 0;       // variable to store the value coming 
                   // from the sensor 
void setup() { 
  Serial.begin(9600);  // open the serial port to send 
                       // data back to the computer at 
                       // 9600 bits per second 
} 
void loop() { 
  val = analogRead(0);    // read the value from 
                                  // the sensor 
  Serial.print(val);
  Serial.print(",");

  val = analogRead(1);    // read the value from 
                                  // the sensor 
  Serial.print(val);
  Serial.print(",");  


  val = analogRead(2);    // read the value from 
                                  // the sensor 
  Serial.println(val);

  delay(100); 
}