MakerWorld
3D Printer Accessories
Zum Modell
CASE FOR RASPBERRY PI PICO W 2
8
Downloads
7
Likes
0
Makes
built this case to wrap the conveyor into a nice clean box. here is the print file and my script for the pi. if requested i can provide the mount for the reed switch as well. *******************************************pico pi script ***************************************************************** from machine import ADC, Pinfrom time import ticks_ms, sleep# === INPUT PINS ===reed_sensor = ADC(26) # GP26 - Reed switchir_sensor = Pin(0, Pin.IN) # GP0 - IR fallback# === OUTPUTS: Stepper via ULN2003 (GP2–GP5)IN1 = Pin(2, Pin.OUT)IN2 = Pin(3, Pin.OUT)IN3 = Pin(4, Pin.OUT)IN4 = Pin(5, Pin.OUT)# === LED Indicatorsblue_led = Pin(6, Pin.OUT) # GP6 - Trigger blinkyellow_led = Pin(7, Pin.OUT) # GP7 - Motor activered_led = Pin(8, Pin.OUT) # GP8 - Wait countdowngreen_led = Pin(15, Pin.OUT) # GP15 - Heartbeatheartbeat_led = Pin("LED", Pin.OUT)# === Timing + Thresholdsheartbeat_timer = 0heartbeat_interval = 2000motor_running = Falsemotion_start = 0motion_confirmed = Falsemotion_hold_time = 1
Hast du dieses Modell gedruckt? Einloggen und dein Make teilen!
Melde dich an, um einen Kommentar zu hinterlassen
AnmeldenNoch keine Kommentare – sei der Erste!