Code Monkey home page Code Monkey logo

homedisplay's Introduction

Air quality station!

This is fun project using PI-PCIO and air quality sensor (SDC40) as a tiny home air quality station with a display!

Example:

Normal Night mode

Waht is it?

  1. Connects to the wifi and updates the timing info from the ntp server.
  2. Connect to SDC40 Sensor for CO2 via I2C, get Temp and Humidity and CO2 level
  3. Display Information on 2-inch Color display (ST7789) via spi.
  4. Date and time and Counter.

Hardware, how to connect

  1. RPI-PICO W (to connect to wifi and update the time)
  2. SDC40 Air Quality sensor
  3. ST7789 Display

Pinout

ST7789 RPI-PICO SDC4x RP-PICO
BLK GP15 SDA GP24
DC GP20 SCL GP25
RESET GP21 VCC 3.3Vout
CSN GP17 GND GND
SDA GP19
SCL GP18
VCC 3.3Vout
GND GND

Build

to build the binary:

cd pico-sdk
git submodule update --init
cd ..

To get the time data from ntp server a wifi connection is required. To define the wifi ssid and password, either define env variables WIFI_SSID and WIFI_PASSWORD or just define inline with cmake command:

WIFI_SSID="TEST" WIFI_PASSWORD="pass" cmake -DPICO_BOARD=pico_w

then make a build folder and build via cmake:

mkdir build
cd build
cmake -DPICO_BOARD=pico_w -DPICO_SDK_PATH=./pico/pico-sdk ..

now you can build either with cmake --build . or make all -j

homedisplay's People

Contributors

amirhm avatar

Stargazers

Luqman avatar  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.