Home Creators Posts Import Register Favorites Logout

Content

Hi folks! 

Happy Thanksgiving to my U.S. Patreons for last week, and Happy Advent to you all. I thought I'd have a bit of fun in December and create a little "Advent Calendar" for you all - a new video about a sensor, piece of hardware, or code snippet (hopefully) for each day of Advent. 

I'm going to have to keep the videos brief, but if there's any that particularly interest you and you'd like me to extend into a full tutorial, please let me know and I'll see what I can do!

So, here's Day One - recognising hand gestures (waving up, down, left, right, towards or away from the sensor) using an Arduino and a PAJ7620, which you can buy for around $7 from https://www.banggood.com/custlink/KvGDbyvLBU 

Code available from https://github.com/playfultechnology/arduino-gesture-recogniser 

There's lots of interesting ways you could use this in an Escape Room - let me know if you end up using it in a prop/puzzle!

   

Files

Arduino Gesture Recognition with PAJ7620

This is a short video tutorial demonstrating how you can recognise simple hand gestures (waving up, down, left, right, forwards, and backwards) using a PAJ7620 sensor module and an Arduino. Part of my Escape Room Tech Advent Calender for 2019! Code available from https://github.com/playfultechnology/arduino-gesture-recogniser I'm using the PAJ7620 gesture recogniser from https://www.banggood.com/custlink/KvGDbyvLBU For more projects, see https://www.patreon.com/playfultech

Comments

Katelyn Cahill-Rowley

Hello, I had this gesture recognizer working in a puzzle and now it isn't. I did update the code, but the old version doesn't work anymore either. If I get any reading, it's Transmission error error code 2. I did look around on the git but I can't find out what the error codes mean. What is error code 2?

James Sheahan

Hi Alistair. I got some PAJ7620 boards and have been trying to install the PAJ7620 library but when I try to add your library (from https://github.com/playfultechnology/arduino-gesture-recogniser/tree/master) as a zip (Sketch > Libraries > Add .ZIP Library...), the IDE gives me an error. The error says "Error: 13 INTERNAL: Library install failed: moving extracted file archive to destination dir: library not valid." I have installed other libraries using ZIPs from GitHub the same way without issue so I'm not sure why this one doesn't work. Any ideas why this doesn't install? Is it because I should only be installing the paj7620 library and not the entire arduino-gesture-recogniser.zip? If so, how do I just get the PAJ7620 .zip to install. Thanks a lot, James. P.S. As you mentioned in an earlier comment, I got some APDS-9960s first (by mistake) and the distance and reliability was terrible.

Richard

Awesome little sensor. I would love to see a code that has a puzzle attached to it similar to the Konami code up, up, down, down, left, right, left, right, ;)

Sven Hurt

Hey Alastair, I found the APDS-9960 to be less expensive + it has an rgb sensor. Did you compare those two in terms of reliability?

Fox

Hey Alastair, Does this only work for single gestures or is it possible to store a series of gestures and once it matches the desired "password" perform an action like unlocking a maglock? Maybe setting a wave to clear all and start over? I haven't tried it yet, just want to know if its possible before I spend the time.