Giter Site home page Giter Site logo

djeskoswe / catfeeder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jorgerance/catfeeder

0.0 1.0 0.0 22 KB

Arduino based (NodeMCU - ESP8266) Telegram controlled cat feeder I use in order to keep my cats happy and healthy when I'm away.

Home Page: https://www.hackster.io/jrance/cat-feeder-with-esp8266-arduino-and-telegram-61c4e6

License: GNU General Public License v3.0

Arduino 100.00%

catfeeder's Introduction

catFeeder

catFeeder is an Arduino (ESP8266) Telegram controlled cat feeder which I use to feed my cats when I'm away.

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 Telegram bot.
  • 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).

Bill of materials (with shipping):

  • 1 x NodeMCU V3 dev board (esp8266): ~2.65 USD.
  • 1 x NodeMCU Base Breadboard (optional): ~1.88 USD.
  • 1 x L298N Dual H bridge driver: ~3.33 USD.
  • 1 x HC-SR04 ultrasonic ranging sensor: ~1.50 USD.
  • 1 x 12V 2A Power Supply*: ~6.58 USD.
  • 1 x Cereal dispenser: ~10.00 USD.
  • 1 x 80x25x1.8cm piece of wood: ~6.00 USD.
  • 1 x Plastic enclosure for PSU: ~4.00 USD.
  • 1 x 4 pieces lot 5x8mm couplings: ~5.50 USD.
  • 1 x NEMA 17 Motor 1.7A: ~9.00 USD.
  • 1 x Misc. cables: ~2.00 USD.

Total cost: 52,44 USD.

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:

Define how many steps will the stepper motor rotate in order to deliver one dose:

const int stepsPerDose = 100;

Define de max. distance the ultrasonic sensor measures when the cereal dispenser is empty:

float max_food = 23.50;

Replace "XXXXXXX" with your Telegram Token:

#define BOTtoken "CHANGEME_TELEGRAM_TOKEN"

Add one of those statements for each SSID you want to be able to connect:

wifiMulti.addAP("CHANGEME_SSID1", "CHANGEME_SSID1_PASS");
wifiMulti.addAP("CHANGEME_SSID2", "CHANGEME_SSID2_PASS");

Necessary libraries:

#include <Stepper.h>
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
#include <WiFiClientSecure.h>
#include <UniversalTelegramBot.h>

How to control the cat feeder via Telegram bot:

catfeeder's People

Contributors

jorgerance avatar

Watchers

James Cloos 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.