The Codest
  • Sobre nós
  • Serviços
    • Desenvolvimento de software
      • Desenvolvimento de front-end
      • Desenvolvimento backend
    • Staff Augmentation
      • Programadores Frontend
      • Programadores de back-end
      • Engenheiros de dados
      • Engenheiros de nuvem
      • Engenheiros de GQ
      • Outros
    • Aconselhamento
      • Auditoria e consultoria
  • Indústrias
    • Fintech e Banca
    • E-commerce
    • Adtech
    • Tecnologia da saúde
    • Fabrico
    • Logística
    • Automóvel
    • IOT
  • Valor para
    • CEO
    • CTO
    • Gestor de entregas
  • A nossa equipa
  • Case Studies
  • Saber como
    • Blogue
    • Encontros
    • Webinars
    • Recursos
Carreiras Entrar em contacto
  • Sobre nós
  • Serviços
    • Desenvolvimento de software
      • Desenvolvimento de front-end
      • Desenvolvimento backend
    • Staff Augmentation
      • Programadores Frontend
      • Programadores de back-end
      • Engenheiros de dados
      • Engenheiros de nuvem
      • Engenheiros de GQ
      • Outros
    • Aconselhamento
      • Auditoria e consultoria
  • Valor para
    • CEO
    • CTO
    • Gestor de entregas
  • A nossa equipa
  • Case Studies
  • Saber como
    • Blogue
    • Encontros
    • Webinars
    • Recursos
Carreiras Entrar em contacto
Seta para trás VOLTAR
2020-04-28
The Codest

Alimentador automático para gatos

Arkadiusz Buras

Imagine such a situation: it is 6:00 AM on a Saturday morning, you are laying comfortably in your bed, still sleeping soundly. Suddenly, you hear your cat scratching on the door, its loud meows become unbearable and your cat has all the time in the world to let you know what its needs. Do you know what it really needs?

Imagine such a situation: it is 6:00 AM on a Saturday morning, you are laying comfortably in your bed, still sleeping soundly. Suddenly, you hear your cat scratching on the door, its loud meows become unbearable and your cat has all the time in the world to let you know what its needs. Do you know what it really needs? I know – your cat wants food now! Right now! How do I know that? Because at some point I started feeding my cat at that time… And, of course, it became a new standard time for getting food.

This scenario inspired me to build an automatic cat feeder, which would remove the troubles of morning cat feeding and keep the cat happy.

First generation

The first generation of the cat feeder was a simple MVP made of some cardboard, simple servo and ESP WeMos. It used servo to rotate the top container by 180 degrees to dispense the food.

A microcontroller was connected to my local Wi-Fi and communicated with the Smart Home server running HomeAssistant over the MQTT protocol. Thanks to that, I was able to use the HomeAssistant automation system to schedule feeding and dispensing food through Google Home commands. Each feeding was defined as a special event in the Google Calendar. It allowed me to easily control the cat’s feeding time and change it when necessary.

Of course, this generation encountered some problems:

  • the top container would sometimes detach from the servo handle and spill the whole food (I called it “the Jackpot Effect”),
  • it didn’t have the best design,
  • the cardboard started to deteriorate.

As with most MVPs, it was used for only 2 years until it broke.

Second generation

I decided that next cat feeder should:

  • be built from 3D printed parts,
  • use Raspberry Pi 3,
  • have a small camera to watch how cat reacted and what the animal was doing.

I started whole process from designing basic elements for food partitioning. Then, when the designs were ready, all elements were printed using the Creality Ender-3 and PLA

Parts

After ensuring that everything worked, I proceeded to designing and printing the rest of the parts:

Base for RaspberryPi (Level 0)

It has special places for screws to help install Raspberry Pi. Additionally, on the front, there is a small hole for easy access to Raspberry Pi’s SD card.

Bowl holder

This plastic part is used for placing a metal food bowl (of course, it was printed with gold filaments, for my cat’s fame and glory). It is connected with the base using 2 neodymium magnets.

Servo holder (Level 1)

This level is used for holding the servo while it rotates the part on the next level. It also has a small slope for better food serving.

Ration mechanism container (Level 2)

This is a simple generic level that portions food from a container placed above. It is rotated by the servo.

Food container holder (Level 3)

This part is used for holding the food container. It is the only plastic part that was not 3D printed. I wanted to minimize food contact with 3D printed parts. In theory, transparent PLA plastic doesn’t have any toxic contaminants, but I bought the cheapest cereal dispenser and took the food container part, just to be on the safe side. Also, it looks really cool.

Housing and lid

The last two parts were the housing and the lid. Nothing special here, except for more gold to make it look better and win the cat’s admiration.

All parts

Final assembly

Software

Raspberry Pi is running a Raspbian provisioned using the ansible playbook to run these services:

MotionEye

MotionEye is an open source software for building your own private monitoring. It detects any camera connected to Raspberry Pi. Additionally, out of the box, you get motion detection, an endpoint for sharing the stream and webhook support.

Servo service

This service controls the rotation of the servo. It is a simple Python script that connects to the MQTT server running my Smart House software and awaits for a message to trigger the rotation.

Led service

Just as the servo service, it implements a protocol for light source controlled by the MQTT in HomeAssistant.

Home assistant automation

And, finally, the HomeAssistant automation that triggers feeding.

It triggers food dispensing in two situations:

  • when the feeding time pops up in the calendar,
  • when the International Space Station is above my home location.

This automation código looks like this:

– alias: Feed the cat
trigger:
– platform: state
entity_id: ‘binary_sensor.iss’
from: ‘off’
to: ‘on’
– platform: state
entity_id: calendar.cat_feed_schedule
from: ‘off’
to: ‘on’
action:
– service: script.feed_the_cat

Resumo

Obviously, this version isn’t the last one. But it serves its purpose – the cat is well nourished and I have my lazy mornings 🙂

Ler mais:

– E-commerce: New state of the game 2020 (report)

– Como gerir uma empresa durante a crise?

– Ruby programming. Beginner’s terminal – part 2

Artigos relacionados

The Codest

The Codest Valor principal #1

O The Codest acredita em quatro valores cruciais que são o núcleo de todas as acções tomadas pelas equipas do The Codest. Neste artigo, o nosso CEO e cofundador, Greg Polec, explica o que...

The Codest
Greg Polec CEO
The Codest

História de sucesso do The Codest: Conheça o nosso Finance Lead Iza

Nesta série de artigos, partilhamos as histórias de colegas do The Codest que tiveram um impacto na forma atual da nossa empresa. No artigo seguinte, perguntamos...

The Codest
Monika Krupa Marketing Lead
The Codest

História de sucesso do The Codest: Conheça Lukasz Brzeszcz

Desta vez, a estrela da história de sucesso do The Codest é Lukasz Brzeszcz, o nosso programador e criador de software Ruby. Como começou o percurso de Lukasz com o The Codest e o que o ajudou...

The Codest
Monika Krupa Marketing Lead
The Codest

Utilizámos a abordagem MVP para mudar com êxito a marca The Codest

Há algum tempo, anunciámos a nova abertura do The Codest. Realizámos um intenso processo de rebranding e apresentámo-lo ao mundo há alguns dias. É...

The Codest
Jakub Czosnyka Marketing Lead
The Codest

TheCodestReview #2 - sumo semanal de engenharia de software

Olá e sejam muito bem-vindos ao segundo episódio da nossa série TheCodesReview. Esta semana focámos a qualidade em projectos de engenharia de software, a importância da arquitetura de front-end e a transição...

The Codest
Kamil Ferens Diretor de Crescimento

Subscreva a nossa base de conhecimentos e mantenha-se atualizado sobre os conhecimentos do sector das TI.

    Sobre nós

    The Codest - Empresa internacional de desenvolvimento de software com centros tecnológicos na Polónia.

    Reino Unido - Sede

    • Office 303B, 182-184 High Street North E6 2JA
      Londres, Inglaterra

    Polónia - Pólos tecnológicos locais

    • Parque de escritórios Fabryczna, Aleja
      Pokoju 18, 31-564 Cracóvia
    • Embaixada do Cérebro, Konstruktorska
      11, 02-673 Varsóvia, Polónia

      The Codest

    • Início
    • Sobre nós
    • Serviços
    • Case Studies
    • Saber como
    • Carreiras
    • Dicionário

      Serviços

    • Aconselhamento
    • Desenvolvimento de software
    • Desenvolvimento backend
    • Desenvolvimento de front-end
    • Staff Augmentation
    • Programadores de back-end
    • Engenheiros de nuvem
    • Engenheiros de dados
    • Outros
    • Engenheiros de GQ

      Recursos

    • Factos e mitos sobre a cooperação com um parceiro externo de desenvolvimento de software
    • Dos EUA para a Europa: Porque é que as empresas americanas decidem mudar-se para a Europa?
    • Comparação dos centros de desenvolvimento da Tech Offshore: Tech Offshore Europa (Polónia), ASEAN (Filipinas), Eurásia (Turquia)
    • Quais são os principais desafios dos CTOs e dos CIOs?
    • The Codest
    • The Codest
    • The Codest
    • Privacy policy
    • Website terms of use

    Direitos de autor © 2026 por The Codest. Todos os direitos reservados.

    pt_PTPortuguese
    en_USEnglish de_DEGerman sv_SESwedish da_DKDanish nb_NONorwegian fiFinnish fr_FRFrench pl_PLPolish arArabic it_ITItalian jaJapanese es_ESSpanish nl_NLDutch etEstonian elGreek cs_CZCzech pt_PTPortuguese