Arduino Based Wireless (RF) Weather Station Network

6,443

71

8

About: Hello , my name is John Vasilakis and this is my Arduino profile ! Visit my site www.ardumotive.com

In this DIY guide I will show you how to make your own wireless weather station!

My communication protocol will allow you to have up to 10 sensor stations in your wireless network, but you can change and extend it up to 254 stations! The RF technology and the module that we used will allow you to have a long range distance between your sensors and master station that will have in your room. You can power on your sensor stations with 5V battery (or even with 3.7V) or a solar panel system!

Every "Sensor Station" can have a:

  • Photocell / photoresistor Light sensor
  • DHT-22/DHT11 Temperature/Humidity Sensor
  • DS12B20 Waterproof Temp Sensor

In this project I decided to make my own PCB that is based on Arduino UNO microcontroller - Atmega328p.

Bellow you will find the electronic schematic with PCB layout so you can easily produce it!

Let's get started!

~Projects can be found here:

https://www.ardumotive.com/arduino-wireless-weathe...


Video presentation:

Step 1: What You Will Need - Hardware Part List

For Master Station you will need:

  • Our custom PCB circuit *
  • Atmega328 (with Arduino UNO bootloader)
  • 28 dip socket
  • 16 MHz crystal oscillator
  • 2x22 pF capacitors
  • 1x100nF ceramic capacitor
  • 1x10uF Electrolytic Capacitor
  • 1x10K resistor
  • Screw terminal 2P 2.54mm
  • 2xPin Header
  • 1x5 Female 2.54mm

----> Or use an Arduino board with breadboard

~Power by 5V power adapter or USB powerbank~

For every Slave - Sensor Station you will need:

  • Our custom PCB circuit *
  • Atmega328 (with Arduino UNO bootloader)
  • 28 dip socket
  • 16 MHz crystal oscillator
  • 2x22 pF capacitors
  • 1x100nF ceramic capacitor
  • 1x10uF Electrolytic Capacitor
  • 1x10K resistor
  • Screw terminal 2P 2.54mm
  • 2xPin Header
  • 1x5 Female 2.54mm

----> Or use an Arduino board with breadboard

One of the following sensors:

~Power by 5V power adapter or USB powerbank or battery pack~

*You will also need a TTL to USB module or an Arduino UNO board for the programming procedure.

Step 2: The Circuit - Electronic and PCB Schematic


Find the electronic and pcb schematic at link below:

Master Station:

https://easyeda.com/mi.vasilakis/Wireless-Weather-...


Slave/Sensor Station:

https://easyeda.com/mi.vasilakis/slave

You can make any changes you want!

Step 3: Arduino Connection Pins

--> For Master Station

LCD

  • RS pin to Arduino Pin 3
  • EN pin to Arduino Pin 4
  • D4 pin to Arduino Pin 5
  • D5 pin to Arduino Pin 6
  • D6 pin to Arduino Pin 7
  • D7 pin to Arduino Pin 11

DHT Sensor

  • Data pin to Arduino Pin 2

HC-12

  • TX pin to Arduino Pin 8
  • RX pin to Arduino Pin 9

--> For Slave/Sensor Station

DHT Sensor

  • Data pin to Arduino Pin 8

DS18B20 Sensor

  • Data pin to Arduino Pin 2

Photocell

  • to Arduino A0

Step 4: The Code

How to program our PCBs:

Connect your circuit with TTL to USB module with 5 cables to the programming header. The pins RX and TX must be cross-connected.

NOTE: If you are using the Arduino UNO board make sure to remove the ATmega328 IC from it first and connect the headers RX to RX and TX to TX pins of the board. The RS pin must be connected to Arduino UNO reset pin.

-------------CONFIGURATION-----------------

Master

/***CONFIGURATION ****/
const long interval = 5000; // ms

const int slaves = 1; //Number of slaves (max 16) (go to line 95 and complete the if statement for every sensor) /*********************/

Slave

/***CONFIGURATION ****/
const long interval = 5000; // ms

String ADDR = "0"; //Device address from 0 to f #define SENSOR_TYPE 1 // Type of sensor in slave unit. Can be 1 for DHT, 2 for DS18B20 or 3 for PHOTOCELL

/*********************/

Download the code from here and open it with Arduino IDE. Inside you will also find the libraries for this project.

Step 5: 3D Parts

Download and print the case of the master and slave stations with your 3D printer!

Step 6: Well Done!

I hope you liked this, let me know in the comments !!!

Arduino Contest 2019

Participated in the
Arduino Contest 2019

Share

    Recommendations

    • Backyard Contest

      Backyard Contest
    • Growing Beyond Earth Maker Contest

      Growing Beyond Earth Maker Contest
    • Colors of the Rainbow Contest

      Colors of the Rainbow Contest

    8 Discussions

    1
    None
    AxelA22

    2 months ago

    Hi!
    Nice project! Thanks for sharing!
    I'm working on a similar one and i was wondering how to power the sattelite?
    What did you chose and what's the autonomy?

    Thanks and congratulations!

    1 reply
    0
    None
    Giannis VasilakisAxelA22

    Reply 2 months ago

    Currently I am using a power adapter
    You can use battery, power bank, solar panel or 5v power adapter if you have a power socket near.

    1
    None
    CaioD4

    2 months ago

    Great project!
    Is the inverse possible? one sensor station broadcasting to multiple displays? I'd love to use that for monitoring my laser cutter water temperature!

    1 reply
    2
    None
    diy_bloke

    2 months ago on Step 6

    Is that an orange DHT on your master? Or is it just reflected light from the case?

    1 reply