A budget-friendly DIY macro pad or a replacement for the Elgato stream deck. Components Required Cherry MX Switches Raspberry Pi Pico LED- the color of your choice Copper clad and other related items to make PCB board Other miscellaneous items Circuit Diagram PCB and Circuit Diagram via EasyEDA Project Link https://oshwlab.com/anurag_mehta/macropad-pcb Code: import time import digitalio import board import usb_hid import rotaryio from adafruit_hid.keyboard import Keyboard from adafruit_hid.keycode import Keycode from adafruit_hid.keyboard_layout_us import KeyboardLayoutUS from adafruit_hid.consumer_control import ConsumerControl from adafruit_hid.consumer_control_code import ConsumerControlCode led = digitalio.DigitalInOut(board.LED) led.direction = digitalio.Direction.OUTPUT keyboard = Keyboard(usb_hid.devices) write_text = KeyboardLayoutUS(keyboard) button = digitalio.DigitalInOut(board.GP15) button.direction = digitalio.Direction.INPUT button.pull = digitalio.Pull.UP encoder = rotar...
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...