Skip to content

Instantly share code, notes, and snippets.

@dreamer1048576
dreamer1048576 / PersonSensor.py
Created October 14, 2025 09:07
Person Sensor - @micropython Module SourceCode - for OpenMV H7
# PersonSensor.py
#### Person Sensor *** v2 *** !! Not ```v1``` !!
##### Have to change I2C address to 0x44 on v1, 0x62 on v2
## https://www.taiwansensor.com.tw/product/person-sensor-by-useful-sensors-%e5%be%ae%e5%9e%8b-ai-%e4%ba%ba%e8%87%89%e8%be%a8%e8%ad%98-%e4%ba%ba%e8%87%89%e8%bf%bd%e8%b9%a4-%e6%a8%a1%e7%b5%84-ai-%e5%85%8d%e8%a8%93%e7%b7%b4/
## exam on OpenMV H7+ ; Pure I2C, No Interrupt Pin
# ## https://github.com/moonshine-ai/person_sensor_circuit_python/blob/main/code.py
## ERR: `I2C read error: 'I2C' object has no attribute 'readfrom_into'` on OpenMV H7+ w/ pyb.I2C, not machine.I2C
# Hardware Connect via OpenMV H7+ & Person Sensor v2