It's for a water pump controlled by a pico. It seems to work but the darn thing kept saying "basic safety" so naturally i'm concerned about the safety of the design
These are the parts:
Code:
TOP VIEW (like your photo) ┌────────────── XY-MOS MOSFET MODULE ──────────────┐ │ │ │ IN terminal (LEFT) OUT terminal (RIGHT) │ ┌───────────┐ ┌───────────┐ │ │ IN+ IN- │ │ OUT+ OUT- │ │ └───┬───┬───┘ └───┬───┬───┘ │ │ │ │ │ └───────┼───┼───────────────────────┼───┼───────── │ │ │ │ │ │ │ │ Battery +──┘ │ │ └─── Pump - (black) │ │ Battery -──────┘ └────── Pump + (red)Flyback diode (1N5819) ACROSS the pump (recommended): OUT+ / Pump+ ----|<|---- OUT- / Pump- stripeBOTTOM PINS (control header) Pico GND --------------------------> GND Pico GPIO15 --------------------------> TRIG/PWM- https://www.amazon.com/dp/B07VQHCK6P?re ... title&th=1
- https://www.amazon.com/dp/B0FG2C5222?re ... asin_title
- https://www.amazon.com/dp/B07NWD8W26?re ... title&th=1
- https://www.amazon.com/dp/B0DT9QHHBK?re ... title&th=1
Code:
from machine import Pinimport timepump = Pin(15, Pin.OUT)led = Pin("LED", Pin.OUT)while True: pump.on() led.on() time.sleep(15) led.off() pump.off() time.sleep(15)Statistics: Posted by raspberyrobot — Sun Jan 04, 2026 1:15 am