I had fun building a little circuit that would beep, blink an LED and write on an OLED display when anything moves in space. It comes with a nice data sheet that simplifies wiring. Sensor: red wire to Vbus on pico, yellow wire to GP28, gray wire to GND on pico, LED on Gnd Buzzer: GP14 to buzzer on Gnd Micropython: import machineimport utimefrom ssd1306 import SSD1306_I2Csensor_pir = machine.Pin(28, machine.Pin. IN, machine.Pin.PULL_DOWN)sda=machine.Pin(20)scl=machine.Pin(21 )i2c=machine.I2C(0, sda=sda, scl=scl, freq=400000)led = machine.Pin( 3, machine.Pin.OUT)oled = SSD1306_I2C(128, 32, i2c)buzzer = machine.Pin (14, machine.Pin.OUT)def pir_handler(pin): utime.sleep_ms(100) if pin.value() : print (i2c.scan()) oled.text('Motion detected!', 0, 0) oled.show() utime.sleep_ms(1000) for i in range (20): led.toggle() buzzer.toggle () utime.sleep_ms(100) utime.sleep_ms(100) oled.fill(0) oled.show ()sensor_pir.irq(trigger=machine.Pin.IRQ_RISING, handler=pir_handler)
Driveway Alarm Wireless Motion Detector Alarm 600 Feet Long Range Outdoor Weather Resistant Motion Sensor & Detector Security Alert System Monitor Protect Outside/Inside Property
36 Review
π Htzsafe Solar Driveway Alarm System: 1/4 Mile Long Transmission Range - Solar Powered, Weatherproof Motion Sensor & Detector DIY Security Alert System
10 Review
YoLink Smart Outdoor Motion Detector: 1/4 Mile Range LoRa-Powered Wireless Sensor for Driveway Alert, Trespassing Alarm, Remote Monitoring & Alerts - Alexa, IFTTT Compatible. Hub Required!
11 Review
Stay Safe And Secure: Wireless Motion Sensor And Pager Bed Alarm For Elderly And Kids
19 Review
Effortlessly Navigate Your Laptop Or Desktop With The Perixx PERIPAD-501 Wired USB Touchpad
27 Review
HUANUO Adjustable Laptop Stand Riser For Desk - Fits Up To 15.6 Inch Notebook, Mesh Ventilated Cooling With 8 Tilt Levels For Improved Airflow & Ergonomics
29 Review
Dingsun SVideo To HDMI Converter: 3RCA AV Support 1080P/720P Compatible With WII U, PS2/PS3, STB, Xbox & More!
43 Review
2 Pack Battery And Charger Kit Bundle For Olympus Tough TG-Tracker, TG-5, TG-2IHS, TG-3, TG-4 Waterproof Digital Camera Includes 2 Replacement (1500Mah) LI-90B, LI-92B Batteries + Charger + More
43 Review