Giter VIP home page Giter VIP logo

simple-indoor-weather-station's Introduction

Indoor Weather Station - Raspberry Pi Pico - MicroPython

This is a simple weather station project for the Raspberry Pi Pico. It displays temperature and humidity data from a DHT11 sensor on an SSD1306 OLED display, plots the temperature data, and shows a smiley face based on the conditions. The project also synchronizes the time using NTP (Network Time Protocol).

Project

Hardware Setup

Components Needed

  • Raspberry Pi Pico
  • DHT11 sensor
  • SSD1306 OLED display

Wiring

  • Connect the DHT11 sensor data pin to the appropriate GPIO 2 on the Raspberry Pi Pico.
  • Connect the SSD1306 OLED display using the SoftI2C interface on GPIO 4 (SDA) & 5 (SCL).

PinOut

Source & Copyright: Dan Halbert

Software Setup

  1. Configure your Wi-Fi network settings in a config.py file, see config.py-example. Provide your Wi-Fi SSID and password.

  2. Possibly update the code with the correct I2C pins and any other pin configurations based on your hardware setup.

  3. Set the NTP server to match your region. For example, if you are in Germany, use the "datetime[4] + 1" configuration.

  4. Upload the code to your Raspberry Pi Pico.

Running the Code

The code reads temperature and humidity data every 30 seconds from the DHT11 sensor and displays the data on the OLED display. It also plots the temperature data over time (24 hours, every 15 minutes) and shows a smiley face based on temperature and humidity conditions. The plot shows temperature data in a specified range (10 - 35 Grad Celsius) and maps it to the display for visualization.

Troubleshooting

  • If the code fails to read the sensor, you will see a "Failed to read sensor" message.

  • Ensure that your Raspberry Pi Pico is properly connected to the DHT11 sensor and that you have an active Wi-Fi connection.

simple-indoor-weather-station's People

Contributors

pauluselektrus avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.