Skip to content

Latest commit

 

History

History
64 lines (40 loc) · 2.04 KB

README.md

File metadata and controls

64 lines (40 loc) · 2.04 KB

Temparature and humidity controller.

Table of contents

General info

This project is distributed system for wireless temperature and humidity monitoring using PaspberryPi and XBee modules.

Requirements

System was build with:

  • 2 pieces RapsberyPi 3B +

  • 2 pieces ARPI600 Expansion Board

ARPI600

  • 2 pieces XBee 2mW Wire Antenna - Series 2 (ZigBee Mesh)

S2XB24

  • 2 pieces DH11 Temperature & Humidity Sensor

DH11

Setup

  1. Configuration of RPis settings and installation of required software and libraries for XBee radio communication.
  • The first step is enabling serial port of RaspberryPi to be able to connect using SSH.

  • Then next is installing required libraries: GPIO, XBee, and LAMP.

  • On the computer that we will use to connect to the RaspberryPi, we must install the USB driver for UART (cp2102 driver) and Digi software to support XBee modules called XCTU.

  • In the next step, connect the RPi through the ARPI600 board using a USB cable and set the jumpers on the board as shown on the photo below

jumpers1

  • Now we can connect to RPi using SSH.

  • Next set up XBee wireless module connections using Digis XCTU tool. First we need to move the jumpers on the board as below

jumpers2

  • Configure the XBee 1 module as COORDINATOR:

coordinator

  • Configure the XBee 2 module as END DEVICE:

end device

  • test connectivity

connect

  1. Implementation of necessary scripts to support communication between the coordinating and end device.
    • Scripts for first RPi which is the coordinator
      • pro_coordinator.py
      • pro_web.py - script used for update the measurement results from the end device
      • simple php website for measurements display
    • Scripts for second RPi which is the end device
      • pro_end.py
      • systemctl - autostart settings on the end device