Hackster is hosting Hackster Holidays, Ep. 6: Livestream & Giveaway Drawing. Watch previous episodes or stream live on Monday!Stream Hackster Holidays, Ep. 6 on Monday!
Jessica Chang
Created November 30, 2015

Distance Measuring Sensor assignment

Showcase (no instructions)9
Distance Measuring Sensor assignment

Story

Read more

Schematics

ir sensor schematic.png

Code

Code

Java
int IRsensor = 0; //a0 pin

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

void loop(){
  int val = analogRead(IRsensor);
  Serial.println(val);
  delay(100);

}

Credits

Jessica Chang

Jessica Chang

12 projects • 0 followers
jessmchang.com

Comments