ULTRASONIC SENSOR

Good morning, Just wondering if any one has any experiences with using an Arduino Uno with regards to making the device turn a light on & also to make the light intensify with brightness if one was to walk closer to the source?

With regards

DAFYDD CLAUD MIGGIANO.

An ultrasonic sensor can measure a distance (2cm..2m approx) ..calculate a value 0..255 for light intensity, based on distance analogWrite(lightpin, your calulated value (must be a PWM-pin) You will find this easy when you see it work...