For this assignment, you need to create an Arduino program that takes input from an IR distance sensor and controls an LED (you can use the default LED connected to pin 13 on the Arduino board) as follows:  If no object is within range of the sensor, the LED is not lit.  If an object is between 10 and 30 cm away from the sensor, the LED is lit.  If an object is between 30 cm and 80 cm away from the sensor, the LED blinks 5 times per second.

open the attached file for the instructions

Get 15% discount on your first order with us
Use the following coupon
FIRST15

Order Now

Hi there! Click one of our representatives below and we will get back to you as soon as possible.

Chat with us on WhatsApp