Skip to main content

Posts

Showing posts with the label fish feeder

Automatic Fish Feeder using Raspberry Pi Pico

Introduction We are going to build an automatic fish feeder which can feed the fish every 24 hours. It will have a knob to control the food portion. By default, it will feed the fish every day at 8AM but there will be 2 buttons to set the custom time. Also, there will be a display, which will show details like set time, portion size, real-time, and temperature. The device runs on a 9V power supply. Required Components Raspberry Pi Pico 3D Printed Funnel 9V Motor 5V Relay RTC Clock Display Module Potentiometer Push Button LM 7805 LM 7809 9V Power Adapter DC power Female Adapter Capacitor Resistor Vero Board Soldering Tools Acrylic Sheet Other random parts and components Circuit Diagram Code from machine import I2C, Pin from urtc import DS1307 from ssd1306 import SSD1306_I2C import utime import machine import time counter=-1 motor=Pin(2, Pin.OUT) led=Pin(25,Pin.OUT) push_button = Pin(3, Pin.IN) push_button1 = Pin(5, Pin.IN) push_button2 = Pin(4, Pin.IN) analog_value1 = machine.ADC(28) a...