CODE of Ultrasonic sensor with Arduino Uno
Lesson-7 ->Introduction to Ultrasonic sensor
CODE of Ultrasonic sensor with Arduino Uno
CODE:
After making the connection, click on the code bar.
Drag and Drop the “If Else” block in the “coding area”. Then read the ultrasonic sensor trigger and echo pin and compare it with the distance 20cm
If the distance will be lesser than 20cm then the Led will glow else the Led will not Glow.
Back to Lesson
Login
Accessing this course requires a login. Please enter your credentials below!
Username or Email Address
Password
Remember Me
Lost Your Password?
Register
Don't have an account? Register one!
Register an Account