Skip to content

A project to set up Arduino-powered sensors to transmit measurements to Raspberry Pi, that in turn can visualize them. Sensors can also be used as a remote switch.

License

Notifications You must be signed in to change notification settings

pskowronek/weather-sensors-n-remote-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Language versions:

EN PL DE FR ES

Weather sensors & remote control Build Status

The project is to measure temperature, atmospheric air pressure, humidity and luminosity by using arduino-powered sensors. Sensors send their data every ~15m (configurable) by using RFM69 modules and collected by using RPi. RPi is also used to visualize data by using Grafana and InfluxDB. Arduino sensors can be optionally used to turn on external devices (analog pin 1 is being set to high when trigger node sends a command to do so).

The project consists of two main parts (folders):

  • Arduino - two Arduino Projects:
    • WeatherNode - sensor and switch devices (optionally)
    • TriggerNode - triggering remotely switch on sensors running WeatherNode
  • rpi - installation scripts and python program (that can be set as a Service) to collect data from Arduino sensors

RPi part can be supplied with air quality measurements from this project (take a look here).

Hardware

List of parts you will need:

  • Arduino Mini Pro or similar (preferred 3V 8MHz for battery life-span)
  • RPi ZeroW (or similar)
  • RFM69 modules for 433MHz connectivity
  • BME280 modules for temp, humidity & atm pressure
  • TSL2561 modules for luminosity (optional)
  • a couple of wires, battery housing etc

Software

List of software/libraries you will need:

  • Arduino IDE
  • libraries for WeatherNode & TiggerNode (via Arduino library): RFM69, SparkFunBME280, Adafruit_TSL2561, LowPower

Wiring

For guidance how to connect modules to Arduino or RPi refer to Arduino/WeatherNode/WeatherNode.ino and this page.

If you intend to use batteries to power Arduino sensors then you need to modify your Arduino to lower current consumption - removal of power LED is a must. Use Vcc pin to provide 3V directly (if you plan to use 2xAAs). To further extend battery life you may want to reconfigure fuses on your Arduino so it could run below 2.8V, even as low as 1.8V (requires bootloader modifications).

Installation (RPi)

This project contains installation scripts under rpi directory: 01_install.sh, 02_setup.sh, 03_run.sh and finally 04_enable_service.sh. Hopefully this should let you get going.

Screenshots / Photos

Screenshots

Screenshots

Photos

Assembled

More photos of the assembled sensors are here.

License

The code is licensed under Apache License 2.0, pictures under Creative Commons BY-NC.

Authors

About

A project to set up Arduino-powered sensors to transmit measurements to Raspberry Pi, that in turn can visualize them. Sensors can also be used as a remote switch.

Topics

Resources

License

Stars

Watchers

Forks