Amal Mathew
Published © GPL3+

Remote Controlled Pet Feeder

With this simple Arduino project you can feed your pet using a remote control.

BeginnerFull instructions provided30 minutes26,355

Things used in this project

Hardware components

Arduino UNO
Arduino UNO
You can use any similar kind of boards
×1
SG90 Micro-servo motor
SG90 Micro-servo motor
You can use any Servo motor ,doesn't have to be very powerful
×1
IR receiver (generic)
IR receiver(TSOP1738)
×1
JustBoom IR Remote
JustBoom IR Remote
You can use any Remote control (IR)
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Breadboard (generic)
Breadboard (generic)
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Scissors
Hot glue gun (generic)
Hot glue gun (generic)

Story

Read more

Schematics

IRremote_Servo_Control

Decode_IR

Code

Decode_IR

Arduino
Use this code to decode IR remote
/*
 
 The IR sensor's pins are attached to Arduino as so:
 Pin 1 to Vout (pin 11 on Arduino)
 Pin 2 to GND
 Pin 3 to Vcc (+5v from Arduino)

*/

#include <IRremote.h>

int IRpin = 11;
IRrecv irrecv(IRpin);
decode_results results;

void setup()
{
  Serial.begin(9600);
  irrecv.enableIRIn(); // Start the receiver
}

void loop() 
{
  if (irrecv.decode(&results)) 
    {
      Serial.println(results.value, DEC); // Print the Serial 'results.value'
      irrecv.resume();   // Receive the next value
    }
  
  
}

IRremote_Servo_Control

Arduino
Add decoded value from your remote in this code
#include <IRremote.h>
#include <Servo.h>

int IRpin = 11;  // pin for the IR sensor

IRrecv irrecv(IRpin);
decode_results results;
Servo myservo;



void setup()
{
  Serial.begin(9600);
  irrecv.enableIRIn(); // Start the receiver
  myservo.attach(9);  // attaches the servo on pin 9 to the servo object
  
 
}

void loop() 
{
   
  if (irrecv.decode(&results)) 
    {
      
      irrecv.resume();   // Receive the next value
    }
  
   if (results.value == 33441975)  // change according to your IR remote button number
     {
       myservo.write(0);
       delay(15);
     }
     if (results.value == 33446055)  // change according  to your IR remote button number
     {
       myservo.write(30);
     delay(15);
     }
     
}     

Credits

Amal Mathew

Amal Mathew

24 projects • 79 followers
Maker | Not much to boast about – just a human, open-source believer. Simple as that.

Comments