Skip to content

PetrikDevs/raspberry-pm-sensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

raspberry-pm-sensor

Standalone particulate matter measuring station. Made for Raspberry Pi 4 with Sensirion SEN44 sensor.

Connection: UART

sen44.py module example usage

from sen44 import SEN44

sensor = SEN44()  # Automatic initialization of sensor

sensor.start()  # Start measurement (also starts ventillation)

version = sensor.get_version()  # -> SEN44Version object
print(f"Firmware version: { version.firmware_major }.{ version.firmware_minor } ")
print(f"Hardware version: { version.hardware_major }.{ version.hardware_major }")
print(f"Protocol: { version.protocol_major }.{ version.protocol_minor }")

for _ in range(10):
    measurement = sensor.measure()  # -> Measure object from sen44
    print(f"Ambient temperature: { measurement.ambient_temp }")
    print(f"Ambient humidity: { measurement.ambient_humidity }%")
    print(f"pm10p0: { measurement.pm10p0 }  pm2p5: { measurement.pm2p5 }\n")

    sensor.sleep(5000)  # 5s

sensor.stop()

SEN44 Driver: Sensirion

This is a work in progress.

About

Standalone particulate measuring station

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors