element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Project14
  • Challenges & Projects
  • More
Project14
Blog Feeding cat remotely using smartphone
  • Blog
  • Forum
  • Documents
  • Theme Suggestions
  • Polls
  • Members
  • More
  • Cancel
  • New
Join Project14 to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: sa112
  • Date Created: 27 Jul 2018 2:11 AM Date Created
  • Views 1702 views
  • Likes 9 likes
  • Comments 12 comments
  • smartphone
  • pet
  • diy
  • raspberry pi
  • iot
  • arduino
  • remote
  • smart home
  • feed
Related
Recommended

Feeding cat remotely using smartphone

sa112
sa112
27 Jul 2018

Do you wanna feed your pets from outdoor? I have made a feeding machine which can be controlled on the browser using smartphone.

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

 

What you need to prepare

  • Obniz
  • Battery or USB adaptor & cable
  • Screw and pipe
  • Servo motor ( unlimited rotation)
  • Pet food - as much as possible

 

Step 1

Cut pipes and prepare the screw. I made a screw by using 3D printer. Then, connect screw to a motor. and  put them into a box.

 

Step 2

Connect servo motor to obniz.

io0: GND,

io1: VCC,

io2: signal

 

Then power up your obniz.

 

image

 

Step 3

Write codes below and put food into the bottle. Food will come out from the pipe.

image

 

Program

 

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">

  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
  <script  src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="  crossorigin="anonymous"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>

  <script src="https://unpkg.com/obniz@0.1.34/obniz.js"></script>
</head>

<body>
<div id="obniz-debug"></div>
<br>
<div>
  <h1> Pet Feeder </h1>
</div>

<button id="meal">Feeding</button>
<div id="dispMeal"></div>

<script>

function getTime(){
  var dateTime=new Date();
  var hour = dateTime.getHours();
  var minute = dateTime.getMinutes();
  return hour + ":" + minute;
}

/* This will be over written on obniz.io webapp page */
var obniz = new Obniz("OBNIZ_ID_HERE");

obniz.onconnect = async function () {
  var numberOfMeal = 0;
  var lastTimeMeal;
  $("#dispMeal").text("Number of feeding : "+numberOfMeal)
  var servo = obniz.wired("ServoMotor", {gnd:0, vcc:1, signal:2});

  $("#meal").click(async function(){
    numberOfMeal++
    lastTimeMeal = getTime();
    $("#dispMeal").text("Number of feeding : "+numberOfMeal+", The last time : "+lastTimeMeal)
    servo.angle(0.0);
    await obniz.wait(10000);
    servo.angle(6.9);
  })
}
    
</script>
</body>
</html>

  • Sign in to reply

Top Comments

  • mcb1
    mcb1 over 7 years ago in reply to ntewinkel +5
    seems I've developed a crazy-cat-guy reputation Not to mention someone from one of those countries that is excluded for 'legal reasons'
  • genebren
    genebren over 7 years ago +5
    Very nice project. Now, if I could only adapt this design to give my cat a pill. I have an aging cat that requires about 2 1/2 pills a day, that he does not really want to take (for a while I was able…
  • ntewinkel
    ntewinkel over 7 years ago +4
    I really like how you built that dispenser! nice work That Obniz looks like a nice dev board and platform too. I see it uses the ESP32 chip too. A few years ago I built a cat treat (or food) self-serve…
Parents
  • genebren
    genebren over 7 years ago

    Very nice project.  Now, if I could only adapt this design to give my cat a pill.  I have an aging cat that requires about 2 1/2 pills a day, that he does not really want to take (for a while I was able to hide the pills in peanut butter, but he has since decided that peanut butter is no longer a snack).  The current method is to first find then cat, then usually extracting the cat from underneath a bed, then to prying his mouth open and shooting in the pill(s).  That would take one complex machine.

     

    Welcome to the element14 community and thanks for sharing your project.

    Gene

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • genebren
    genebren over 7 years ago

    Very nice project.  Now, if I could only adapt this design to give my cat a pill.  I have an aging cat that requires about 2 1/2 pills a day, that he does not really want to take (for a while I was able to hide the pills in peanut butter, but he has since decided that peanut butter is no longer a snack).  The current method is to first find then cat, then usually extracting the cat from underneath a bed, then to prying his mouth open and shooting in the pill(s).  That would take one complex machine.

     

    Welcome to the element14 community and thanks for sharing your project.

    Gene

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
  • ntewinkel
    ntewinkel over 7 years ago in reply to genebren

    >for a while I was able to hide the pills in peanut butter

     

    We were able to hide little pills in shrimp for Charlie Kat for a while. (antibiotics, thankfully temporary)

    And then for some reason those little pills were no longer available the next time we needed them. grrrr.

    Course, that would not work for Liney-Kat because he doesn't like shrimp.

     

    For a previous aging kitty, we had the meds mixed into custom treats for a while, which worked pretty well too.

     

    -Nico

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • genebren
    genebren over 7 years ago in reply to ntewinkel

    We have tried many 'pill pockets' and other treats to make the pill taking easier on poor 'Spike', but he has so few vices or favorites that we can use.  He did however take to his new food (special kidney diet) nicely, which was a good thing (for all of us).  I might have to experiment to see if I could find a 'custom treat' to his liking.

    Gene

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • ntewinkel
    ntewinkel over 7 years ago in reply to genebren

    Always such a trick to find the right way, isn't it?

     

    The pill pockets never worked for us either - I think generally they were just too big or would fall apart, plus the cats never liked them.

    The custom treats were specially prepared by a pharmacy and sealed into blister packs. They were even able to make it her favourite fish flavours. That only worked until the blister-pack machine kept improperly sealing the package and she wouldn't eat them anymore.

     

    Glad you're taking the effort to keep your aging kitty healthy image

     

    -Nico

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube