Git Product home page Git Product logo

archpi-zerow-sensors's Introduction

archpi-zerow-sensors

ArchLinuxARM Raspberry PI Zero send sensors (DHT22, DS18B20) to influxdb v1.8 using go

2 programs: 1 for DHT22 and one for DS18B20

TODO:

  • try and learn some Go
  • merge both programs into 1 and share single influxdb client
  • use config file for all settings
  • make non-root user read DHT22 sensor

Tested on:

  • Linux archlinuxarm 5.4.83-1-ARCH #1 SMP PREEMPT Mon Dec 14 15:44:54 UTC 2020 armv6l GNU/Linux
  • go version go1.15.6 linux/arm
  • InfluxDB 1.8.3
  • /boot/config.txt:
gpu_mem=16
initramfs initramfs-linux.img followkernel

device_tree=bcm2835-rpi-zero-w.dtb

# does not work if below is enabled..
#dtoverlay=dht11,gpiopin=17

dtoverlay=w1-gpio,gpiopin=24

Connections:

- DS18B20 data line connected to GPIO24
- DHT22 data line connected to GPIO17

Compile:

- go build dht22.go
- go build ds18b20.go
  • go dependencies to be picked up in common manner

Thanks to all who provided libraries and examples online

archpi-zerow-sensors's People

Contributors

tomhub avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.