MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    Gesture control with APDS-9960

    Development
    8
    18
    6778
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • broberg
      broberg Project Sponsor last edited by broberg

      Since my plan of using a touchfoil blew up in my face due to my own stupid assumptions. I have to look in to other means of controlling my mirror. (No, a IR-frame is sadly not an option due to the shape and size of my mirror.)

      Searching here there is one Gesture module (MMM-Swipe) that uses the HC-SR04 ultrasonic sensor,
      It’s a cheap sensor and most of the work is done, so I have ordered one of those too.
      The cons are however that is limited to three inputs, left, right and “push”.

      The APDS-9960 Sensor ( https://www.sparkfun.com/products/12787 ) However has also swipe up/down,
      and it’s a optical sensor, so with a smidge of luck, it might work behind the glass (not counting on it though).
      Bad thing is the range is only 10-20cm above (without anything in it’s way), so basically has to swipe on the mirror itself.

      And, the APDS isn’t MM2 ready, it isn’t really raspberry ready either so it would probably require some long nights tinkering for me. So if the first tests are a success I might need some help getting the sensor to work with the MM2.

      strawberry 3.141 1 Reply Last reply Reply Quote 0
      • strawberry 3.141
        strawberry 3.141 Project Sponsor Module Developer @broberg last edited by

        @broberg looking forward to your results

        i think this could be also interesting http://www.exp-tech.de/pimoroni-skywriter-hat-3d-gesture-sensor-raspberry-pi

        Please create a github issue if you need help, so I can keep track

        broberg 1 Reply Last reply Reply Quote 0
        • broberg
          broberg Project Sponsor @strawberry 3.141 last edited by

          @strawberry-3.141 Yeah I saw that one to when I was looking around,
          It works basically on the same principle as the touch foil I have besides me right now, so anything of metal would disrupt it I think, (I’m really hopeful the optical sensor will work through the mirror glass)

          cowboysdude 1 Reply Last reply Reply Quote 0
          • cowboysdude
            cowboysdude Module Developer @broberg last edited by

            @broberg Let us all know if it does 🙂

            1 Reply Last reply Reply Quote 0
            • broberg
              broberg Project Sponsor last edited by

              Well, It doesn’t work through the glass. But it works!

              and it’s somewhat sensitive to get the motions right, maybe that is a software issue and not hardware, BUT it does read side to side and up down. Which is good and opens up to navigate modules easier.

              But it bugs me that I have to build a box for it outside the mirror.

              1 Reply Last reply Reply Quote 1
              • broberg
                broberg Project Sponsor last edited by

                Okey guys, I’d really need some guidance. My head goes round in circles and I don’t know where to start.

                As mentioned before I’ve gotten the sensor to work with the help of wiringPi and a c library converted for the pi.

                Then I Found this : https://github.com/jiahuang/apds-gesture
                a control driver for node, but that is using a Tessel and I can’t really understand how to replace the tessel line with Raspberry.

                I’m guessing I need an i2c module to let the apds-gesture connect to the raspberrys pins?

                B 1 Reply Last reply Reply Quote 0
                • B
                  bibi @broberg last edited by

                  @broberg did you find any suitable solution or stopped your project?

                  broberg 1 Reply Last reply Reply Quote 0
                  • broberg
                    broberg Project Sponsor @bibi last edited by

                    @bibi It’s on hold, the big drawback is that I haven’t included space for any sensor in the frame, so any addon would “stick out” and look wonky.
                    So maybe I’ll just add some physical buttons and make a tree style menu instead.

                    B 1 Reply Last reply Reply Quote 0
                    • B
                      bibi @broberg last edited by

                      @broberg yea haven’t neither think about room for it while building my one… :smiling_face_with_open_mouth_cold_sweat:

                      1 Reply Last reply Reply Quote 0
                      • ?
                        A Former User last edited by

                        I’m not sure whether it is compatible with APDS-9960, but I made a module for GroveGesture Sensor(PAJ7620u2 compatible)
                        https://github.com/eouia/MMM-GroveGestures

                        2.1.0 demo

                        image

                        1 Reply Last reply Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy