Project tutorial
Self-service cat feeder

Self-service cat feeder © GPL3+

You can learn to use modern electronics and get your own food :-)?

  • 2 views
  • 0 comments
  • 0 respects

Components and supplies

About this project

The feeder is assembled from a can of chips and a plastic container. A limit switch with a built-in LED is used as a button. It took about a week to train the cat (trained in the evenings). The cat quickly figured out where to put your nose to pour a portion of dry food. A homemade dispenser rotates a servo. The servo drive is controlled by the Arduino board using a button that the cat presses on its own.

The button on which the cat presses with its nose:

dispenser device:

dispenser device lower part:

finished device:

Using the potentiometer, you can adjust the amount of feed per one press. An electronic key on the transistor is needed to disable the servo between pressing the button. This will prevent the servo drive from breaking if the feed is stuck in the dispenser. Details of work and assembly, see the video

Code

feeder_for_cat.inoArduino
#include <Servo.h>
int CatButton;  //  
Servo servo1;   //  servo  Servo

void setup() {

  pinMode(3, OUTPUT);     //  3 
  pinMode(11, OUTPUT);    // 
  servo1.attach(9);       //     

// 
  analogWrite(11, 20); //   
  servo1.write(10);    //       
  delay(250);          //       
  analogWrite(11, 0);  //   

}

void loop() {

  CatButton = analogRead(A0); //      

  if (CatButton > 700) {      //       
    analogWrite(11, 20);      //     ()     
    digitalWrite(3, HIGH);    //    
    servo1.write((map(analogRead(A1), 0, 1024, 0, 180))); //    
    delay(250);               //     
    servo1.write(10);         //  
    delay(250);               //     
    digitalWrite(3, LOW);     //    
    analogWrite(11, 0);       //    
    delay(500);               //       
  }

}

Custom parts and enclosures

feeder_for_cat_electrical_circuit_diagram_Hp1aj46FH7.jpg
Feeder for cat electrical circuit diagram hp1aj46fh7

Schematics

Feeder for cat Electrical circuit diagram
Feeder for cat electrical circuit diagram qajxy3n16n

Comments

Similar projects you might like

DIY Automatic Cat Feeder

Project tutorial by Rundhall

  • 7,853 views
  • 5 comments
  • 13 respects

DIY Arduino Cat Feeder

Project showcase by Alexander Ulitin

  • 6,579 views
  • 4 comments
  • 22 respects

Easy-to-Build Pet Feeder - Phone App control soon!

Project tutorial by Erik de Ruiter

  • 26,022 views
  • 23 comments
  • 65 respects

If This Then Cat

Project tutorial by Arduino_Genuino

  • 12,643 views
  • 4 comments
  • 18 respects

Squirrel Feeder Tweet

Project tutorial by 3magku

  • 1,724 views
  • 1 comment
  • 4 respects

How to Make a Laser Turret for Your Cat

Project tutorial by MisterBotBreak

  • 9,908 views
  • 4 comments
  • 28 respects
Add projectSign up / Login