Arduino – Simple weather station

I recently picked up a clone Arduino Uno from China via ebay along with some sensors and other bits and pieces to learn a bit about Arduino – First project a simple weather station.

For wiring instructions and arduino Libraries I used Adafruit, DHT22 here and 16×2 LCD here.

Then cobbling together some code from here which I made a few changes to:

  • Changed Fahrenheit to Celsius
  • Added a degree’s Celsius character
  • Changed the LCD and DHT22 Pins
  • Changed the error code to “looking”
  • Added a five second delay as the humidity reading was flickering on the display
  • Added the F as described in the comments – see bottom of post

Next I aim to setup a DHT22 in the garden with a transceiver (battery powered) to communicate with a Arduno Nano or Uno indoors and display on a bigger 20×4 LCD display – to show: Temp outside, Temp Inside, Pressure and Humidity. Perhaps also using a pi to play about with the IoT.

Parts used:

  • 16×2 LCD Display (with header pins soldered on)
  • Mini Breadboard
  • Jumper Wires
  • 10K Resistor
  • 10K Potentiometer
  • Solid core wire
  • USB phone charger to power the Arduino
  • Arduino Uno Clone (and A to mini B USB cable)

From Reddit – “Thaliur mega2560,  I know it’s not important for a project of this scale, but in the long run, it might be a good idea to make a habit of wrapping static strings in “F()” (with the text, including quotes, between the parentheses). This way, the string will be read from the Arduino’s flash memory whenever it’s needed. If you have a project with many static strings, they will quickly fill up the controller’s RAM otherwise.”

Code can be found on github here:

Part two here