Download Arduino 0018 and also the ftid driver for the COM Port:
(if you buy a new Arduino from June2010 you don’t need the driver annymore)
Downaload and Install FIRMATA from this link:
firmata.org/wiki/Download
- open from the Examples of Arduino the AnolgInSerial example
this is the script:
void setup() {
Serial.begin(9600);
}
void loop() {
// read the analog input into a variable:
int analogValue = analogRead(0)/4;
// print the result:
Serial.println(cancel ln)(analogValue,BYTE);
// wait 10 milliseconds for the analog-to-digital converter
// to settle after the last reading:
delay(10);
}
I wrote in RED what you have to change before uploading
UPLOAD ON YOUR BOARD
Now open Touch077 and place a DAT Serial In
In this jpeg you can see what you have to change in the Parameter of the Serial DAT
IT WORKS REALLY GOOD!! This is the value from an anaolg in attached to a light sensor…
Try it and make your own controller!
ciaaooooo!