Skip to content

jsvana/sensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sensor

Binary to run on a Raspberry Pi, read regular values from a DHT11 temperature and humidity sensor, and submit values to an MQTT topic.

Hardware

This assumes you're using a DHT11 temperature and humidity sensor.

Refer to this page for Raspberry Pi pinouts. Make sure you connect the data line to a pin labeled "GPIO" on that page, and pass that pin to the binary.

Building

(Arch Linux x86_64 cross compilation instructions)

Required packages:

  • arm-linux-gnueabihf-gcc (AUR) (need to edit PKGBUILD files for -stage1, -stage2, and the final package
cross build --target armv7-unknown-linux-gnueabihf --release

Deployment

Ensure the running user is in the gpio group, otherwise you'll see errors like this: Error: Permission denied: /dev/gpiomem. Then,

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published