LEDs with Ultrasonic Sensor

Hi everyone,

I really want to know how to make a LED lit by using an ultrasonic sensor. I have watched several videos about that and it looks interesting but I am not quiet sure how it really works and how to connect them. Thanks!

Welcome to the forum

What exactly do you want to do ?

I suspect that you want to turn an LED on (or off) when an object is within (or beyond) a certain distance from the sensor. Am I correct ?

Which Arduino and sensor do you have ?

1 Like

Did the videos have a tutorial link in the description?

  1. Learn to read the sensor.
  2. Save the reading as a variable.
  3. Learn to light a led.
  4. Learn to react to conditions, like lighting a led according to a variable value.
  5. Learn that your original question divided into two tasks that could be solved completely independent on each other. Lighting a led according to a variable value is completely independent on what sensor you have.
1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.