Statistics: Posted by oli_lab — 04 Feb 2016, 10:33
CODE:
void loop() { // read the input on analog pin 0: int sensor1Value = analogRead(A0); // print out the value you read: Serial.println(sensor1Value); delay(10); // delay in between reads for stability // read the input on analog pin 1: int sensor2Value = analogRead(A1); // transform values from 0-1023 to 2000-3023 sensor2Value = map(sensor2Value, 0, 1023, 2000, 3023); // print out the value you read: Serial.println(sensor2Value); delay(10); // delay in between reads for stability // read the input on analog pin 2: int sensor3Value = analogRead(A2); sensor3Value = map(sensor3Value, 0, 1023, 4000, 5023); // print out the value you read: Serial.println(sensor3Value); delay(10); // delay in between reads for stabilityStatistics: Posted by rlgsbt — 03 Feb 2016, 07:30
Statistics: Posted by joffo78 — 02 Feb 2016, 17:19
Statistics: Posted by oli_lab — 04 Feb 2016, 10:33
CODE:
void loop() { // read the input on analog pin 0: int sensor1Value = analogRead(A0); // print out the value you read: Serial.println(sensor1Value); delay(10); // delay in between reads for stability // read the input on analog pin 1: int sensor2Value = analogRead(A1); // transform values from 0-1023 to 2000-3023 sensor2Value = map(sensor2Value, 0, 1023, 2000, 3023); // print out the value you read: Serial.println(sensor2Value); delay(10); // delay in between reads for stability // read the input on analog pin 2: int sensor3Value = analogRead(A2); sensor3Value = map(sensor3Value, 0, 1023, 4000, 5023); // print out the value you read: Serial.println(sensor3Value); delay(10); // delay in between reads for stabilityStatistics: Posted by rlgsbt — 03 Feb 2016, 07:30
Statistics: Posted by joffo78 — 02 Feb 2016, 17:19