Description: This is the SparkFun RGB and Gesture Sensor, a small breakout board with a built in APDS-9960 sensor that offers ambient light and color measuring, proximity detection, and touchless gesture sensing. With this RGB and Gesture Sensor you will be able to control a computer, microcontroller, robot, and more with a simple swipe of your hand! This is, in fact, the same sensor that the Samsung Galaxy S5 uses and is probably one of the best gesture sensors on the market for the price.
The APDS-9960 is a serious little piece of hardware with built in UV and IR blocking filters, four separate diodes sensitive to different directions, and an I2C compatible interface. For your convenience we have broken out the following pins: VL (optional power to IR LED), GND (Ground), VCC (power to APDS-9960 sensor), SDA (I2C data), SCL (I2C clock), and INT (interrupt). Each APDS-9960 also has a detection range of 4 to 8 inches (10 to 20 cm).
Based on 6 ratings:
0 of 1 found this helpful:
First I would like to say that these sensors are awesome, they can do soo much and they are very easy to use. But just as a warning, be very careful with them. if you are prototyping and have things wired up with a header and jumpers, if you are waving your hands around the sensor and you manage to knock the ground wire off of the sensor, it will never sense again :(
While working on a final Project for my embedded systems class this past semester, my partner and I found this out it a very hard way, the weekend before our project was due. luckily SparkFun and their Awesome!!! order fulfillment team were able to get an order for two more of them placed on Saturday ready for a 10am local pickup on Monday (the same Monday the project was due). you guys rock! these Sensors are AWESOME!!!
works very well with a raspberry pi. Sometimes the far and near gestures are a bit hard to achieve.
0 of 1 found this helpful:
Did not like being interrogated what I was going to use this for ‘and respond in a full sentence’ before I could purchase this. Apparently it is NOT export restricted and I was asked due to a ‘glitch in the system’, I was told when I followed up on what that was about. Anyway. Not impressed. Can’t help wondering why I was really asked.
I am sorry you had this issue while ordering from us. This problem has been corrected and won’t happen again. Thank you for the feedback!
Great product. I made an nice project with it. But my project is for outside use and I need to protect it. I read the datasheet for the APDS 9660 (page 18) and they suggest to cover it with a rubber with 2 holes. I must say that it really improve the detection of the gestures especially the NEAR and the FAR. They also suggest to cover it with a 1mm with a specific Makrolon or Lexan window. I cannot find any of these products on Internet. Anybody has any suggestion? Sparkfun rocks
This sensor worked exactly as described to detect gestures. I was able to use the provided software library as a reference to help write a similar library in LabVIEW and use the sensor with a myRIO.
The breakout board takes care of some wiring busywork. The APDS-9960 itself is marvelously documented (datasheet is clear, complete and one of the best I’ve ever seen). Documented features do what they say they’ll do. And Sparkfun’s existing Arduino library code is exquisitely well-commented and exhaustive—made a great launchpad to write my own (JS/Johnny-Five) support for the gesture sensor. One of the best complex multi-sensors I’ve ever worked with.
One of our awesome customers has written some code for using this Gesture Sensor with the Windows 10 IoT Core here. There is no C# library so the customer converted it from the C++ library and added a helper to use it.
If you are having trouble detecting gestures while standing in front of the sensor try this tip.
In the Arduino driver, the enableGestureSensor method set the IR LED to a 300% boost. Change it to 100%, and now you should be able to stand in front of it, and it will detect all the gestures when your hand is within 10-20 cm. Edit this line: (setLEDBoost(LED_BOOST_100)) in this repository
You are not able to have custom gestures using the sensor by itself. The sensor is able to recognize basic gestures as listed in the Supported gestures section of our Hookup Guide.
You could use an Arduino microcontroller for a more complex sequence of gestures. The best would be to use the reference language and the example code for gestures to write condition statements over a period time. The condition statements would check if you swipe right and up. Try using boolean values after the sensor recognizes the gestures and changing it to TRUE if the gesture is met within a certain amount of time. You can write a counter to keep the gestures within a certain time window. If the counter exceeds a certain value, you could reset the boolean values. Once the two gesture conditions are met in the if() statement, the result would be to make a pin turn HIGH using the digitalWrite() function.
If you require a certain sequence (for example: to swipe right and hover up), try using additional values to keep track of what gesture was used first. You would have to use some more condition statements (or add an additional condition) to determine if you are using the correct gesture sequence.