Privacy for cats

For cats, the litter box is not only a place to do one’s duty; it is also a safe space. Never stare at your cat when one’s in the litter box. Either they are there to use the toilet or for a safe space, cats feel the extreme emotional pressure when humans stare at them while they are in the litterbox.

My cat Nala is the shiest cat you will ever meet. She hides inside the litter box from Ginger, our other cat, when she gets chased. After having many occasions where we tried to look for Nala and found her in the litterbox and unintentionally interrupting her privacy, I decided to come up with a device.

This device shows you if the litterbox is occupied, and it also tells you when it needs to be emptied.

Default screen

It includes two sensors: the PIR sensor and a methane gas sensor. The PIR sensor will be placed inside the litterbox to tell one if it is occupied. The gas detector detects various types of gases that create an odor, but methane gas mainly. It tells you when the box has to be emptied.

When the gas detector detects the methane gas

When the litterbox needs to be emptied, the red LED turns on and it displays the message “Empty the box!”. Through various range testing, the adequate value that corresponded with times of the toilet being used was “110.”

When the PIR sensor detects the movement

When the cat is inside the box, the blue LED turns on and it graphically displays what the cat is doing inside the box.

When both sensors are on

This is when both sensors are activated.

 

Video demonstration of how this works:

https://drive.google.com/file/d/1c-2hyGFoSVJmicfLqxxD7Vq3-VhMbg-t/view?usp=sharing

 

Now that we  know that it works, it was time to actually get real.

For some reason, my 9V battery was not working; so I had it connect to my computer. It already told me that the box needs to be cleaned.


So I came back after cleaning; the display does not say that it needs to be cleaned anymore, so I needed to get a participant. Nala knew what was going on so I couldn’t get her inside the box, so I tried to get Ginger to be my first participant.

He seemed quite convinced, but he seemed uninterested because he already emptied his stomach before the testing.

 

The questions might be:

Why the gas detector?

-The commonly used sensor for movements would be the ultrasonic sensor; however, cats are very sensitive to sounds. So I used the PIR sensor that detects the infrared light coming from moving objects with heat.

Why do we need this to be visual?

-I have been working with cats since the introduction to physical computing class. My cat Nala is now 8 years old, so I wanted to do something fun with her and also wanted to make her life better and more convenient because all cats deserve the best life. As much as humans, cats need some privacy as well, and this gets often interrupted when we share the space. Cats can’t say “Hey I need some space”/”I need this to be cleaned” or when you find them in the litter box/private settings, their privacy is already interrupted. So I thought the mutual ground that we have is having things visual.

 

Schematic:

#include <Wire.h>
#include <LiquidCrystal.h>


//const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);


int GasPin = A0; 
int CatPin = 6; 
int LED1 = 8; 
int LED2 = 7;

void setup() {

lcd.begin(16,2);
pinMode(GasPin ,INPUT); 
pinMode(CatPin, INPUT); 
pinMode(LED1, OUTPUT); 
pinMode(LED2, OUTPUT);
pinMode(CatPin, INPUT); 
Serial.begin(9600);


lcd.print("=^._.^= S");



}


void loop() {




digitalWrite(LED1,LOW);


if (digitalRead(CatPin) == HIGH){ 
digitalWrite(LED1,HIGH); 
delay(1000);
lcd.setCursor(11,0);
lcd.print("O o o");
}

else { 
digitalWrite(LED1,LOW); 
//delay(1000);
lcd.setCursor(11,0);
lcd.print(" ");
}

if ((analogRead(GasPin))<190){
Serial.println(analogRead(GasPin));
digitalWrite(LED2, LOW);
lcd.setCursor(0,1);
lcd.print(" ");
}
else {
Serial.println(analogRead(GasPin));
digitalWrite(LED2, HIGH);
lcd.setCursor(0,1);
lcd.print("Empty the box!");
}



}

Author: kyungsec@andrew.cmu.edu

Junior in Art, trying to minor in physical computing.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.