Sad Cat Heated Bed

by stefanmarkovic in Circuits > Arduino

379 Views, 0 Favorites, 0 Comments

Sad Cat Heated Bed

FINAL CAT HEATER.PNG

Hello! My name is Stefan Markovic and in this instructable I will be displaying and breaking down a Tinkercad Arduino mockup for a Heated Cat Bed. The project consists of a potentiometer that essentially controls the Temperature Sensor, the RGB LED for visual aid, and the DC Motor. There is also a Switch to completely turn off every component. The DC Motor is used as a replacement for an output device where the heating pad or strip would be used as Tinkercad does not have components that act as heaters. Also note, the Temperature Sensor activates the DC Motor with a reading in Celcius ranging between 20-50 degrees Celcius, no where near what a cat should experience! This is done for simplicity sake to give you a larger range of values when changing the Heat input on the sensor. In practice, the temperature would range from 10-25 degrees Celcius as this is the ideal temperature for cats.

Supplies

Here are all the components you will need:

  1. Arduino Uno R3
  2. Potentiometer
  3. LED RGB
  4. Temperature Sensor (TMP36)
  5. DC Motor (In Practice you would use a programmable Heating Strip/Pad)
  6. Slideswitch
  7. A Breadboard
  8. 4 1k Ohm Resistors
  9. Small Wires
  10. Cushion or Old Pet Bed (if you were to implement in

Assembly

SAD CAT COMPONENTS.PNG

Before we work on any code, we need to assemble the circuit first.

First, you want to connect the 5V and the GND from the Arduino into the Positive and Negative rails of the Breadboard. You will also need two wires to stretch from one side of the Breadboard to the other to provide Power to the entire circuit.

Next you will want to connect the Analog components, in our case we have 2, the Potentiometer and Temperature Sensor. For the Potentiometer, connect the left leg (Terminal 1) to the positive rail, the right leg (Terminal 2) to the negative rail, and the middle leg (the Wiper) to any of the Anaolog Pins (in our case it's A0). For the Temperature Sensor its essentially the same. Left leg (Power) in the positive rail, right leg (GND) in the negative rail, and the middle leg (Vout) connected to a Analog Pin (in our case it's A1). It does not matter which Analog Pins your components are connected to.

After that you will connect the Digital Input/Output pins, this includes our remainding components.

  • The Slideswitch's left leg is connected to Pin 1, middle leg connects to the positive rail with a resistor, and right leg connects to the negative rail.
  • The LED RGBs far left leg is for the RED light (pin 4). The Cathode connects to the negative rail (middle left leg. The middle right led is for the BLUE light (pin 3). The far right leg is for the GREEN light (pin 2).
  • The DC Motors left leg (Terminal 1) connect to the negative rail and the right leg (Terminal 2) connect to any pin (in opur case Pin 7).

The Code

CODE (1).PNG
CODE (2).PNG
CODE (3).PNG

Here is the code that makes the Heated Cat bed work.

The Void Loop is essentially 3 different Potentiometer inputs inside a if-statement that works based on the state of the Switch. Within the 3 Potentiometer inputs, there is the colour of the RGB light and the 10 degree Celcius temperature interval required from the TMP36 to make the motor spin.

Here is a link to a Google Doc with the code:

SAD CAT CODE

Diagrams

circuit diagram png.PNG
FINAL CAT HEATER.PNG
Kozy Kat.JPG

Circuit in Action!

Sad Cat Heater