Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8082

Automation, sensing and robotics • Is this AI-design safe?

$
0
0
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

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
These are the parts:
and of course the python script is super simple:

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



Viewing all articles
Browse latest Browse all 8082

Trending Articles