{"id":31044855,"url":"https://github.com/phien-ntace/smart_node_cpp","last_synced_at":"2026-05-07T01:10:03.567Z","repository":{"id":304692550,"uuid":"1019017587","full_name":"phien-ntace/smart_node_cpp","owner":"phien-ntace","description":"Use Raspberry Pi 5 to read values from the DHT11 and BH1750 sensors, display the data on an ILI9341 LCD, and publish the sensor values to an MQTT server","archived":false,"fork":false,"pushed_at":"2025-08-03T08:21:51.000Z","size":103,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-03T10:12:38.309Z","etag":null,"topics":["bh1750","dht11","ili9341","mqtt","pwm","raspberry-pi"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phien-ntace.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-13T15:00:30.000Z","updated_at":"2025-08-03T08:21:54.000Z","dependencies_parsed_at":"2025-07-14T21:08:08.124Z","dependency_job_id":"66eabd3f-0402-4dd2-8d23-5e66add4ef6f","html_url":"https://github.com/phien-ntace/smart_node_cpp","commit_stats":null,"previous_names":["phien-ntace/smart_node_cpp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phien-ntace/smart_node_cpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phien-ntace%2Fsmart_node_cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phien-ntace%2Fsmart_node_cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phien-ntace%2Fsmart_node_cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phien-ntace%2Fsmart_node_cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phien-ntace","download_url":"https://codeload.github.com/phien-ntace/smart_node_cpp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phien-ntace%2Fsmart_node_cpp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275136706,"owners_count":25411709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bh1750","dht11","ili9341","mqtt","pwm","raspberry-pi"],"created_at":"2025-09-14T16:52:16.285Z","updated_at":"2026-05-07T01:09:58.548Z","avatar_url":"https://github.com/phien-ntace.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Smart Node\n\nThis project uses a **Raspberry Pi 5** to:\n\n- Read sensor data from **DHT11** (temperature \u0026 humidity) and **BH1750** (light intensity).\n- Display the sensor values on an **ILI9341** LCD screen.\n- Publish the sensor data to an **MQTT server**.\n- Control an **LED** using **PWM**.\n\n---\n\n## Wiring Details\n\n### 🔹 BH1750 Light Sensor\n\n| BH1750 Pin | Raspberry Pi 5 Pin           |\n|------------|------------------------------|\n| VCC        | Pin 1 (3.3V)                 |\n| SCL        | Pin 5 (GPIO 3 / SCL1)        |\n| SDA        | Pin 3 (GPIO 2 / SDA1)        |\n\n### 🔹 DHT11 Temperature \u0026 Humidity Sensor\n\n| DHT11 Pin | Raspberry Pi 5 Pin           |\n|-----------|------------------------------|\n| Data      | Pin 7 (GPIO 4)               |\n\n### 🔹 LED (PWM Controlled)\n\n| LED Pin | Raspberry Pi 5 Pin             |\n|---------|-------------------------------|\n| Anode   | Pin 32 (GPIO 12 / PWM0)        |\n\n### 🔹 ILI9341 LCD (SPI Interface)\n\n| LCD Pin   | Raspberry Pi 5 Pin                  |\n|-----------|-------------------------------------|\n| LED       | 3.3V                                |\n| SCK       | Pin 23 (GPIO 11)                    |\n| SDI/MOSI  | Pin 19 (GPIO 10)                    |\n| D/C       | Pin 12 (GPIO 18)                    |\n| RESET     | Pin 16 (GPIO 23)                    |\n| CS        | Pin 24 (GPIO 8 / SPI0_CE0)          |\n| GND       | GND                                 |\n| VCC       | 5V                                  |\n\n### 🔹 Paho MQTT\n- sudo apt update\n- sudo apt install git cmake build-essential libssl-dev\n#### Paho MQTT C\n##### Clone Paho MQTT C\n- git clone https://github.com/eclipse/paho.mqtt.c.git\n- cd paho.mqtt.c\n##### Build\n- cmake -Bbuild -H. -DPAHO_WITH_SSL=TRUE\n- sudo cmake --build build/ --target install\n- sudo ldconfig\n#### Paho MQTT C++\n##### Clone Paho MQTT C++\n- cd ..\n- git clone https://github.com/eclipse/paho.mqtt.cpp.git\n- cd paho.mqtt.cpp\n##### Build\n- cmake -Bbuild -H. -DPAHO_WITH_SSL=TRUE -DPAHO_BUILD_STATIC=FALSE\n- sudo cmake --build build/ --target install\n- sudo ldconfig\n---\n\n## Features\n\n- Real-time sensor readings displayed on LCD.\n- MQTT communication for remote monitoring.\n- PWM control for LED brightness based on ambient light.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphien-ntace%2Fsmart_node_cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphien-ntace%2Fsmart_node_cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphien-ntace%2Fsmart_node_cpp/lists"}