Cats DSC07535

Published on April 11th, 2014 | by C Bratt


Cat litter with microcontrolled motion detection and LED counter



Ikea: Metod/ Maximera 40cm (490.243.06)
Ikea: Trofast (800.892.39)
Ikea: Utrusta 40cm(802.046.73)
Ikea: Variera Drawe mat (800.128.53)

Trixie 2-Way Cat Flap door
Arduino Uno single-board microcontroller
Adafruit PIR motion sensor
Adafruit Neopixel Stick 8x
Metal Pushbutton

Some cables and a plastic box that previously housed a soldering iron from Biltema.


I wanted to hide the cat litter box in our small bathroom. Only problem was that it was so well hidden and odor free that I forgot it all the time! :( . Problem was then solved with a programmable micro-controller, motion sensor and a led strip with 8x individual controlled led’s that could change colors. Led strip work as a counter and change colors based on how many times the cat enters the cabin. It resets the counter when the button is pushed.
1-4x   = Green
5x     = Orange
6-7x   = Red
8x     = Pulsing Red and Orange

Future update plans:
* Larger and higher plastic litter box.
* Fancier wiring.
* Add a GSM module to the controller and make it send text SMS when the box needs to be emptied, or when the cat breaks a certain visit/day/time pattern.




Free-standing Billy lockers
Kids workbench

The Author

C Bratt

15 Responses to Cat litter with microcontrolled motion detection and LED counter

  1. cbratt cbratt says:

    HI skuxhausen!
    Will se if i can save the sourcecode and shareit. Also take some better pics on how i connected the pir, button and neopixel led’s on the arduino board. Give me a few days with it and i can update this post.

  2. skuxhausen says:

    C Bratt, could you by any chance talk through how you connected all that together? I’d really like to make something similar but I’m not experienced at coding for an arduino.

  3. Ella says:

    Anyone else concerned that the cats have to use the facilities in a dark inclosed space, next to a loud rocking machine? Many cats are afraid of washing machines or at least would not like to be so close to it. This is at best a thoughtless hack, if not selfish.

    • C Bratt C Bratt says:

      I was a little worried about this very well, although I know that cats have very good night vision. Mounted a small white LED inside the box so that it does not become completely pitch black.

  4. ineade says:

    this is really cool! I would love to see an instructable so I could also make it.

  5. Fırsat says:

    That is so brilliant thinking.

  6. tikismoke says:

    Very compressive. You should post in on with schematics and code. I also have the same problem and certainly going to do the same now I see this.


  7. Cassie says:

    Brilliant. This is very Instructables worthy.

  8. Saskia says:

    You should sell (or get a patent on) this idea, especially if you get the app working ^^ awesome!

  9. Jenna says:

    Please do an step by step tutorial on for this hack, pretty please.

  10. Jenna says:

    Please do an step by step tutorial on for this hack, pretty please.

  11. C Bratt C Bratt says:


    It has really fulfilled the purpose it was made for, no odor and have never forgotten to clean it. Also have updated the “hack” quite a lot since the post was made. New litter box and new controller box. Dunno how to update the images and description here tow.

  12. Mina says:

    The best cat-litter-box solution I’ve ever seen!!! Bravo!!!

  13. Zully H says:

    So cool! Best hack I’ve seen in a while

  14. Jenna says:


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Back to Top ↑