Can you tell what you are controlling? My first idea was to control spotify. Up: play, down: pause, skipping songs and volume control with the directions.
With the sensor you can send 6 commands. Witch means you can trigger 6 unique automation per device.
Right now as it is my first evening with it I just wrote a basic room light control. So left movement turns the lights off in the living room, right turns them on. Up turns on the bed room and down again turns it off.
Other 2 commands right now donât have a use.
It for sure can be used to control a media center.
I will do some more testing and share my experience here.
Cool. Thanks for sharing this. Will definitely try it in future.
Iâm wonderingâŚ
How far can the sensor detects the gesture? Can it detects my gesture if I put the sensor on top of the TV while Iâm sitting on my couch 3-4 meters away?
It doesnât work from that far. You have to wave your hand 2-3 cm from the sensor. So the battery version is advised to use as a remote controller.
You can also attach the sensor to a lamp to control it instead of having a boring switch
I havenât checked if it works in darkness but lâll do that later.
Also lâll upload the sketch to github but firstly I need to revise it as I noticed that after a while the sensor stops to respond and needs to be restarted manually.
Could u also test if it would work behind plexiglass? Or spy mirrorâŚwell âŚwould like to build this in my magic mirror project âŚwhich BTW will be posted here as soon as itâs finished
The code was taken from bruhâs repository and modified to work with ADPS-9960 module.
After uploading the sketch to ESP8266 it will connect to your WIFI and MQTT broker.
Then you can play with the sensor.
Known problems:
ESP8266 stops after some time and needs to be restarted manually to work again (I think it is due to the âNONEâ gesture value that is included in the sketch - Iâll test when I have some free time).
@Flagun add a 1000uF/100uF capacitor on your 3.3V line, this sensor needs some serious juice and use a good power source for your 5V line to NodeMCU(esp8266).@thundergreen According to the docs, it is specifically made to be used behind dark glass (cough smartphone). @masterkenobi Since the light used to detect gesture is generated from the LED inside the sensor, your ambient light can be dark or bright.
I have to mention that it does color detection fairly well too, but remember to put a bright source of white light (eg, LEDs) next to the sensor. This is important for color sensing as the object usually covers the sensor and no light is reflected.
Also people ordering on ebay and Aliexpress, be sure to order the expensive APDS 9960 instead of cheap APDS9930 as the sellers intentionally interchangeably use keywords. They are not the same sensors, APDS9930 will not sense gesture.