Answered step by step
Verified Expert Solution
Question
1 Approved Answer
/) inte trig5) intechon 6) in e Led 1 = 13, intled 2-12 void setup() { serial.begin(9600); PinMode(trig, OUTPUT) Pinmode cochos INPUT); Pinmodelledi,output); pinMode(ledz, our
/) inte trig5) intechon 6) in e Led 1 = 13, intled 2-12 void setup() { serial.begin(9600); PinMode(trig, OUTPUT) Pinmode cochos INPUT); Pinmodelledi,output); pinMode(ledz, our PUT); 3 voida Loop() { digital write (trig, HIGH) delay microseconds (1000); digital write (trig, Low); in dastate = pulse Cech., HIGH); int distance - C duration *0,034)/2 if( di Stance_300) (digital wite Cleda, HIGH) delay(2000) serial.print(distance); ol 2 cled2), HIGH); digital write 3 name AIR 15 sinsar
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started