GithubHelp home page GithubHelp logo

konrul-r10 / catfeeder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lance36/catfeeder

0.0 0.0 0.0 77 KB

ESP8266 based MQTT controlled cat feeder I use in order to keep my cats happy and healthy.

License: GNU General Public License v3.0

C++ 100.00%

catfeeder's Introduction

MQTT catFeeder

catFeeder is an Arduino (ESP8266) MQTT controlled cat feeder which I use to feed my cats when I'm away or in the bed at 6.30 AM on a Sunday morning. The project is forked upon https://github.com/jorgerance/catFeeder which usees a telegram bot.

i also added a pushbutton for manual operation and Home-assistant integration through a script and 2 mqtt sensor.

About the ESP8266:

Wikipedia:

The ESP8266 is a low-cost Wi-Fi chip with full TCP/IP stack and MCU (microcontroller unit) capability produced by Shanghai-based Chinese manufacturer, Espressif Systems.

Click here to access the full article

Main features:

  • Controlled via MQTT.
  • Wifi connection.
  • Possibility to check how much food can be still delivered with an HC-SR04 ultrasonic ranging sensor.
  • Multi access point (can manage more than one SSID / password). Removed because i dont need it, could be easily reintegrated?

Materials Needed:

  • 1 x NodeMCU V3 dev board (esp8266): ~2.65 USD. / ~5€
  • 1 x NodeMCU Base Breadboard (optional): ~1.88 USD. / 3€
  • 1 x L298N Dual H bridge driver: ~3.33 USD. / 7€
  • 1 x HC-SR04 ultrasonic ranging sensor: ~1.50 USD. / 2€
  • 1 x 12V 2A Power Supply*: ~6.58 USD. / i had one around :)
  • 1 x Cereal dispenser: ~10.00 USD. / ~ 12€ for a dual
  • 2 x MDF pieces, i used 45x15 and 15x15: ~6.00 USD. / 2-4 € worth of MDF
  • 2 x Little metal L bracket
  • 1 x Plastic enclosure for PSU: ~4.00 USD. / 1€ for a standard elecrtical box
  • 1 x 4 pieces lot 5x8mm couplings: ~5.50 USD. / 8.99 €
  • 1 x NEMA 17 Motor 1.7A: ~9.00 USD. // 12€
  • 1 x Misc. cables: ~2.00 USD. // had some laying around
  • 1 x Can of acrylic spray paint 5€

**Total cost: up to what you have available :)

Schematics:

There's actually no need of perfboard / protoboard. However, in order to mount the HC-SR04 on the top of the cereal dispenser you may use a hot glue gun.

Parameters to be updated on the .ino file:

Just search for REPLACEME inside the ino before uploading.

Necessary libraries:

#include <Stepper.h>
#include <ESP8266WiFi.h>
#include <ArduinoOTA.h>
#include <PubSubClient.h>
#include <NTPClient.h> (using a fork for leveraging getFormattedDate() find it here: https://github.com/taranais/NTPClient/releases)

How to control the cat feeder via mqtt/Home Assistant:

just publish "feed" to the MQTT command channel, which if you dont change anything is home/catfeeder/feed

You can use the script i provided under the HASS folder.

catfeeder's People

Contributors

lance36 avatar ppanagiotis avatar 335iguy avatar neukam avatar jorgerance avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.