Dimmable LED kitchen light (Arduino, APDS-9960, RGBWW led)
-
-
@mfalkvidd excellent, nice work :thumbsup:
-
Love it. Have you tried the APDS-9930? I have them laying around, but haven't got time to try them
-
Love it. Have you tried the APDS-9930? I have them laying around, but haven't got time to try them
-
@mfalkvidd a video with cool 8 bit music :-) nice
-
Great looking light setup...... now if you could just get the the sensor to control the kids as well I might be able to get them to do the washing up too. ;)
-
@mfalkvidd Haven't checked all details. But for most less accurate but much cheaper. I believe I paid about 8 times less for the 9930 an aliexpress.
-
@mfalkvidd - Nice work.
Q: How close to the sensor does your hand need to be? and can this distance be controlled? -
@mfalkvidd Haven't checked all details. But for most less accurate but much cheaper. I believe I paid about 8 times less for the 9930 an aliexpress.
Great project, I have ordered a 9960 and I can't wait to receive it and play with it, this could be a good start.
@TheoL said:
@mfalkvidd Haven't checked all details. But for most less accurate but much cheaper. I believe I paid about 8 times less for the 9930 an aliexpress.
I didn't know about this one, thank you about the information ! From what I see quickly the 9930 is only a proximity detection sensor, it cannot sense movement like the 9960. It can sense distance so it could be used for this application but it has shorter range, 10cm instead of 10 to 20 for the 9960.
-
Could this also have been done using a ultrasonic distance sensor?
-
@mfalkvidd - Nice work.
Q: How close to the sensor does your hand need to be? and can this distance be controlled?@gregl said:
@mfalkvidd - Nice work.
Q: How close to the sensor does your hand need to be? and can this distance be controlled?The sensor starts registering at about 25cm/10in distance and reports maximum proximity at about 5cm/2in (anything closer than that results in a reading of 255).
setProximityGain might affect this, but I haven't tried.
-
Could this also have been done using a ultrasonic distance sensor?
@Cliff-Karlsson said:
Could this also have been done using a ultrasonic distance sensor?
My experience with the HC-SR04 is that consecutive readings vary too much. A smoothening algorithm (take the median of 5 readings for example) might work, but one reading of the HC-SR04 takes 60 ms which already is 3 times longer than the sample rate I use for the ADPS-9960 so the dimming would probably "stutter" a lot. The speed of sound is simply too slow :)
-
@mfalkvidd - Great work! This is exactly what I had in mind - now i can follow this great example and spare me some hours! Thanks!
-
I would like to remove the need for holding still to "lock" the light level, but it is a bit hard since the sensor will get several readings while I remove my hand which will set the light level at all sorts of values.
Setting a timeout that "resets" the level to an earlier value when the sensor stops detecting should be possible, but will require some experimenting to get right.
Implementing a PID regulator might be useful as well, but would require revisiting some long forgotten math skills.
-
I would like to remove the need for holding still to "lock" the light level, but it is a bit hard since the sensor will get several readings while I remove my hand which will set the light level at all sorts of values.
Setting a timeout that "resets" the level to an earlier value when the sensor stops detecting should be possible, but will require some experimenting to get right.
Implementing a PID regulator might be useful as well, but would require revisiting some long forgotten math skills.
-
@mfalkvidd Nice project man!
Did you consider protecting the sensor somehow from direct air contact? Kitchen stuff stends to get real greasy over time...@Yveaux said:
@mfalkvidd Nice project man!
Did you consider protecting the sensor somehow from direct air contact? Kitchen stuff stends to get real greasy over time...Thanks!
I did not consider that. I think the sensor will sense transparent plastic and glass but I haven't tested, so maybe it is possible to put some protection in front of it. -
@Yveaux said:
@mfalkvidd Nice project man!
Did you consider protecting the sensor somehow from direct air contact? Kitchen stuff stends to get real greasy over time...Thanks!
I did not consider that. I think the sensor will sense transparent plastic and glass but I haven't tested, so maybe it is possible to put some protection in front of it.@mfalkvidd I have so far not been able to cover the sensor. It's very sensitive. So if somebody knows a material that can cover the sensor while keeping it operating, I'll be be much obliged.