Hi, I’m very new to arduino and this is my first project so please don’t laugh at what I’m sure is a very easy solution haha!
I’m currently doing a project which involves a RGB LED strip and an ultrasonic SRF05 sensor.
I have got the LED strip working on its own and i have got the Sensor working on its own
my trouble now is to connect the code together so that the sensor uses the measuemrnts to dim/brighten the lights
my aim is someone walking up to the sensor will brighten up the lights and vice versa walking away dims the lights.
Can anyone help at all?!
I have attached the code i have for the sensor and the code for the LED’s
RGBSensorCode.zip (1.03 KB)