HiLetgo 3pcs HC-SR501 PIR Infrared Sensor Human Body Infrared Motion Module for Arduino Raspberry Pi

Add your review

Add to wishlistAdded to wishlistRemoved from wishlist 0

Operating voltage range: DC 4.5-20V

Top Positive Review

I had fun making a little circuit that beeps, flashes an led and writes to an oled display when anything in the room moves. It came with a nice data sheet, making the wiring easy
Sensor:
Red wire to Vbus on Pico
Yellow wire to GP28 on Pico
Gray wire to GND on Pico
Oled:
Gnd to Gnd
VCC to 3V3(out)
SCL to I2Cx SCL
SDA to I2Cy SDA
LED:
GP15 to resistor to LED to Gnd
Buzzer:
GP14 to buzzer to Gnd

Micropython:
import machine
import utime
from ssd1306 import SSD1306_I2C

sensor_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)

Top Critical Review

Doesn??t work. Used with arduino, tried different boards, even tried a basic circuit with led and no code. Sometimes it worked but then would stop and when it did detect it would have e a five to ten second lag. The other two were DOA. Going back.

Customer Questions & Answers

range please – how far away can it be from the surface that you are measuring?
Answer: Depends on the sensitivity setting. I have had no problems in the 2 to 3 meter range which is perfect for my uses. Also, this is an infrared sensor that senses motion, so if your surface is stationery, you might consider an ultrasonic sensor instead.

can these be hooked in a circuit without an Arduino
Answer: I should think so. You just need a way of reading the values coming from the sensor to detect motion.

Minimum delay is 30 seconds not 3 seconds with adjustment fully turned left.
Answer: Three seconds for me.

User Reviews

0.0 out of 5
0
0
0
0
0
Write a review

There are no reviews yet.

Be the first to review “HiLetgo 3pcs HC-SR501 PIR Infrared Sensor Human Body Infrared Motion Module for Arduino Raspberry Pi”

HiLetgo 3pcs HC-SR501 PIR Infrared Sensor Human Body Infrared Motion Module for Arduino Raspberry Pi
HiLetgo 3pcs HC-SR501 PIR Infrared Sensor Human Body Infrared Motion Module for Arduino Raspberry Pi
Electronics Reviews and Ratings of Amazon Products
Logo
Enable registration in settings - general
Shopping cart