m (Created page with "thumb === Step 1: Read a sensor value or potentiometer value === run this to receive singles bytes of a sensor value. Receive ...") |
(No difference)
|
Revision as of 14:28, 16 May 2012
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.