ronfrtek
Published © LGPL

Simple DIY Weather Station With DHT11 and OLED Display

In this tutorial we will learn how to create a simple weather station using Arduino, DHT11 sensor, OLED Display and Visuino to Display the T

BeginnerProtip1 hour7,847
Simple DIY Weather Station With DHT11 and OLED Display

Things used in this project

Story

Read more

Schematics

2019-12-16_0-17-30_8ntZ0IWjTP.jpg

Code

DHT11-OLED.visuino

Arduino
{
  "Version": "2",
  "Product": "Visuino Pro - Visual Arduino Programming",
  "Units": [
    {
      "Name": "__OpenWireRootUnit__",
      "*": [
        {
          "X": 928,
          "Name": "Arduino",
          "Instance": {
            "Serial": {
              "*": [
                {
                  "+": "TArduinoHardwareSerial"
                }
              ]
            },
            "+": "TArduinoBoard",
            "AnalogInputReference": "Default",
            "Modules": {
              "*": [
                {
                  "+": "TArduinoEEPROMModule"
                },
                {
                  "+": "TArduinoProcessor328Module"
                },
                {
                  "+": "TArduinoWatchdogTimerModule"
                }
              ]
            },
            "I2CChannels": {
              "*": [
                {
                  "InputPin": {
                    "SourcePins": [
                      {
                        "ID": "__OpenWireRootUnit__.DisplayOLED1.OutputPin"
                      }
                    ]
                  },
                  "+": "TArduinoI2C"
                }
              ]
            },
            "Digital": {
              "*": [
                {
                  "+": "TArduinoAdditionalDigitalSerial0Channel"
                },
                {
                  "+": "TArduinoAdditionalDigitalSerial0Channel"
                },
                {
                  "+": "TArduinoAdditionalDigitalInterruptChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMInterruptChannel"
                },
                {
                  "+": "TArduinoAdditionalDigitalChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMChannel"
                },
                {
                  "DigitalInputPin": {
                    "SourcePin": {
                      "ID": "__OpenWireRootUnit__.HumidityThermometer1.SensorOutputPin"
                    }
                  },
                  "+": "TArduinoAdditionalDigitalChannel"
                },
                {
                  "+": "TArduinoAdditionalDigitalChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMChannel"
                },
                {
                  "+": "TArduinoBasicDigitalPWMSPI0Channel"
                },
                {
                  "+": "TArduinoAdditionalDigitalSPI0Channel"
                },
                {
                  "+": "TArduinoAdditionalDigitalSPI0Channel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalChannel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalChannel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalChannel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalChannel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalI2C0Channel"
                },
                {
                  "+": "TArduinoCombinedAnalogDigitalI2C0Channel"
                }
              ]
            },
            "SPIChannels": {
              "*": [
                {
                  "+": "TArduinoSPI"
                }
              ]
            },
            "BoardType": "Arduino Uno"
          },
          "Type": "Component",
          "Y": 368
        },
        {
          "X": 640,
          "Name": "DisplayOLED1",
          "Instance": {
            "Elements": {
              "*": [
                {
                  "Name": "Draw Bitmap1",
                  "+": "TArduinoMonochromeGraphicsElementDrawBitmap",
                  "Bitmap": {
                    "Data": "qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr\/\/\/\/qqqqqqqqqqqqqqqqqqqqqqqqqqr\/\/\/\/\/+qqqqqqqqqqqqqqqqqqqqqqqqq\/\/\/\/\/\/\/6qqqqqqqqqqqqqqqqqqqqqqqv\/\/\/\/\/\/\/\/qqqqqqqqqqqqqqqqqqqqqqq\/\/\/\/\/\/\/\/\/6qqqqqqqqqqqqqqqqqqqqqr\/\/\/\/\/\/\/\/\/\/qqqqqqqqqqqqqqqqqqqqqv\/\/\/\/\/\/\/\/\/\/6qqqqqqqqqqqqqqqv6qqq\/\/\/\/\/\/\/\/\/\/\/6qqqqqqqqqqqqqr\/\/\/+qr\/\/\/\/\/\/\/\/\/\/\/+qqqqqqqqqqqqq\/\/\/\/\/6v\/\/\/\/\/\/\/\/\/\/\/\/qqqqqqqqqqqqr\/\/\/\/\/+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qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",
                    "Width": 96,
                    "Height": 64
                  },
                  "Y": 30
                },
                {
                  "X": 5,
                  "Name": "Text Field1",
                  "InputPin": {
                    "SourcePin": {
                      "ID": "__OpenWireRootUnit__.AnalogToText1.OutputPin"
                    }
                  },
                  "+": "TArduinoMonochromeGraphicsElementTextFeld",
                  "Size": 4,
                  "Y": 5
                },
                {
                  "X": 75,
                  "Name": "Draw Bitmap2",
                  "+": "TArduinoMonochromeGraphicsElementDrawBitmap",
                  "Bitmap": {
                    "Data": "qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr6qqqqqqqqqvqqqqqqqqqq+qqqqqqqqqv+qqqqqqqqq\/6qqqqqqqqv\/6qqqqqqqq\/\/qqqqqqqqv\/\/qqqqqqqq\/\/+qqqqqqqv\/\/+qqqqqqq\/\/\/6qqqqqqr\/\/\/qqqqqqqv\/\/+qqqqqqq\/\/\/6qqqqqqr\/\/\/qqqqqqqr\/\/6qqqqqqqv\/\/qqqqqqqqv\/6qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqg==",
                    "Width": 32,
                    "Height": 32
                  }
                },
                {
                  "X": 105,
                  "Name": "Text Field2",
                  "InputPin": {
                    "SourcePin": {
                      "ID": "__OpenWireRootUnit__.AnalogToText2.OutputPin"
                    }
                  },
                  "+": "TArduinoMonochromeGraphicsElementTextFeld",
                  "Size": 2,
                  "Y": 5
                }
              ]
            },
            "OutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.Arduino.I2CChannels.I2C.InputPin",
                  "ID": "__OpenWireRootUnit__.Arduino.I2CChannels._Item0.InputPin"
                }
              ]
            },
            "+": "TArduinoDisplaySSD1306I2C"
          },
          "Type": "Component",
          "Y": 256
        },
        {
          "X": 256,
          "Name": "HumidityThermometer1",
          "Instance": {
            "SensorOutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.Arduino.Digital.Digital[ 7 ].DigitalInputPin",
                  "ID": "__OpenWireRootUnit__.Arduino.Digital._Item7.DigitalInputPin"
                }
              ]
            },
            "+": "TArduinoDHTSensor",
            "TemperatureOutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.AnalogToText1.InputPin"
                }
              ]
            },
            "HumidityOutputPin": {
              "SinkPins": [
                {
                  "ID": "__OpenWireRootUnit__.AnalogToText2.InputPin"
                }
              ]
            }
          },
          "Type": "Component",
          "Y": 592
        },
        {
          "X": 400,
          "Name": "AnalogToText1",
          "Instance": {
            "OutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.DisplayOLED1.Elements.Text Field1.InputPin",
                  "ID": "__OpenWireRootUnit__.DisplayOLED1.Elements._Item1.InputPin"
                }
              ]
            },
            "InputPin": {
              "SourcePin": {
                "ID": "__OpenWireRootUnit__.HumidityThermometer1.TemperatureOutputPin"
              }
            },
            "+": "TArduinoFloatToText",
            "Precision": 0
          },
          "Type": "Component",
          "Y": 336
        },
        {
          "X": 400,
          "Name": "AnalogToText2",
          "Instance": {
            "OutputPin": {
              "SinkPins": [
                {
                  "Name": "__OpenWireRootUnit__.DisplayOLED1.Elements.Text Field2.InputPin",
                  "ID": "__OpenWireRootUnit__.DisplayOLED1.Elements._Item3.InputPin"
                }
              ]
            },
            "InputPin": {
              "SourcePin": {
                "Name": "__OpenWireRootUnit__.HumidityThermometer1.Humidity(%)",
                "ID": "__OpenWireRootUnit__.HumidityThermometer1.HumidityOutputPin"
              }
            },
            "+": "TArduinoFloatToText",
            "Precision": 0
          },
          "Type": "Component",
          "Y": 416
        }
      ],
      "Type": "Diagram",
      "Selection": [
        "DisplayOLED1"
      ]
    }
  ],
  "Content": "OpenWire Diagram"
}

Credits

ronfrtek

ronfrtek

302 projects • 75 followers
Arduino Fan!

Comments