Project in progress
Cat Litter Use Counter and Indicator

Cat Litter Use Counter and Indicator © GPL3+

Detect cat using litter, count the number of visits and display info.

  • 451 views
  • 0 comments
  • 2 respects

Components and supplies

Necessary tools and machines

09507 01
Soldering iron (generic)
If using Vero Board
88w2802 40
Premium Female/Male Extension Jumper Wires, 40 x 6" (150mm)
If soldering then just use single strand wire
4859917
10 Pc. Jumper Wire Kit, 5 cm Long
84y7278 40
Drill / Driver, 20V
For enclosure box

About this project

We have three cats and the cat litter tray can get full quite quickly. Before we we have realised that the cat litter needs changing one of the cats has decided to go somewhere else in the house. This varies depending on how much the cats have been allowed out and the weather. An indication of cat litter use would be useful so that we can easily gauge when it is time to change the litter.

Cats in the litter are detected using an ultrasonic range finder which sends out a ping above the cat litter tray at regular intervals. If the distance measured is less than the length of the tray then a cat is sitting in the litter tray. This detection is used to count the number of visits and output the count onto a display.

Blue pixels indicate no. of visits. All pixels green to indicate cat presence detection for testing etc. Red pixels indicate cat litter needs changing. Circuitry is in an enclosure so that it cannot be disturbed by cat activity.

Cat presence detection includes a debounce feature. All variables for cat litter tray length, debounce delay, no. of NeoPixels, error margin and ratio for detections to LED indication can be set at the top of the code for personalisation and adjustments.

Possible improvements:

- If a continuous power supply can be guaranteed this could be made to be self-calibrating. The user would need to press a button each time the litter gets changed, having inspected it closely, and the code would calculate the average maximum.

- It turns out that the NeoPixels are rather bright and a glow can be seen upstairs during the night, especially when all eight pixels are lit. A night shutoff button could be included to allow the user to switch off the LEDs temporarily but for the code continue counting visits.

- An automatic version of night shut off might use a PIR to detect cat or human activity in the general vicinity and activate the LEDs and the ping loop for a handful of minutes. This is probably better because it makes sure that we do no forget to turn the lights back on in the morning and end up back at square one with the cats having 'accidents' elsewhere in the house.

- If using PIR as above, the Arduino could be put into lower power mode and be sleeping with LEDs and ping off until there is an interrupt from the PIR. This would allow it to be ran off batteries.

Code

Cat litter ping

Schematics

Circuit
D5a5c06f 3464 4acd ac4c e311e290a317 ekrqzbzmxf

Comments

Similar projects you might like

Frequency Counter

Project tutorial by moty

  • 8,757 views
  • 3 comments
  • 6 respects

Self-service cat feeder

Project tutorial by issaom

  • 1,645 views
  • 0 comments
  • 6 respects

How to Make a Cat Laser Pointer

Project tutorial by circuito.io team

  • 8,579 views
  • 3 comments
  • 12 respects

Sampling Scope & Frequency Counter

Project showcase by Veldekiaan

  • 6,738 views
  • 17 comments
  • 42 respects

Gear Indicator Project

Project tutorial by JorisH

  • 4,569 views
  • 3 comments
  • 8 respects

Handheld Geiger Counter with Arduino Nano

Project tutorial by Pedro52

  • 3,127 views
  • 3 comments
  • 14 respects
Add projectSign up / Login