{"id":16684845,"url":"https://github.com/simform-solutions/stm32-temperaturelogger-iot","last_synced_at":"2025-07-15T15:39:39.211Z","repository":{"id":91318695,"uuid":"167348526","full_name":"simform-solutions/STM32-Temperaturelogger-IOT","owner":"simform-solutions","description":"STM32 with DS18B20 temperature sensor provides data logging on sd card and cloud","archived":false,"fork":false,"pushed_at":"2019-01-24T10:58:01.000Z","size":86920,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-14T23:36:22.727Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/simform-solutions.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":"2019-01-24T10:23:49.000Z","updated_at":"2025-03-15T12:56:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"ddf73bbf-2e54-4def-86f8-bca75c273eb3","html_url":"https://github.com/simform-solutions/STM32-Temperaturelogger-IOT","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simform-solutions/STM32-Temperaturelogger-IOT","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simform-solutions%2FSTM32-Temperaturelogger-IOT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simform-solutions%2FSTM32-Temperaturelogger-IOT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simform-solutions%2FSTM32-Temperaturelogger-IOT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simform-solutions%2FSTM32-Temperaturelogger-IOT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simform-solutions","download_url":"https://codeload.github.com/simform-solutions/STM32-Temperaturelogger-IOT/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simform-solutions%2FSTM32-Temperaturelogger-IOT/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265443549,"owners_count":23766410,"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","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":[],"created_at":"2024-10-12T14:45:14.349Z","updated_at":"2025-07-15T15:39:39.200Z","avatar_url":"https://github.com/simform-solutions.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":" \nSTM32 POC\n\n    STM32 POC Definition :- \nSTM32F103C8 MCU collect Temperature data from DS18B20 Temperature sensor and get current Date \u0026 Timestamp from DS1307 RTC module Realtime Temperature data with  Date \u0026 Timestamp data store in sdcard and send Temperature data to cloud using sim800a GSM module.\n\n Schematic Diagram\n\n![alt text](https://github.com/simformsolutions/STM32-Temperaturelogger-IOT/blob/master/screenshots/screenshot1.png)\n\n\nDS18B20 Temperature sensor connect with stm32 MCU using 1 wire bus protocol\nDS1307 RTC module connect with stm32 MCU using I2C protocol\nSD card module connect with stm32 MCU using SPI protocol \nSIM800 GSM module connect with stm32 MCU using UART protocol \nSD card module using FatFs library for perform read,write operation with stm32 MCU\nSIM800 GSM module send real-time Temperature data to Thingspeak cloud platform \nKalman Filter formula applied for reduce inaccuracies from Temperature value and to predict accurate Temperature value\n\nWorking :-\n\nSTM32 MCU first initialize and configure clocks and GPIO port for working with external sensors and devices.STM32 read temperature data every second interval and get current date and time from DS1307 RTC module and store temperature with date \u0026 time stamp data into sd card csv file.\nSD card adapter module first time initialize with STM32 MCU then STM32 check for program defined csv file name in sd card if it's not there then stm32 will create it and write temperature and date \u0026 time stamp data into csv file.when stm32 get new data it append into csv file.\nSTM32 initialize SIM800 GSM module GPRS and HTTP services for sending temperature sensor data over cloud by sending AT commands over UART communication protocol to SIM800 GSM module.\n\nCode :-\n\n This following code first configure clock and enable GPIO port then initialize UART communication and send AT commands for configure GPRS services and initialize RTC module.\n\n![alt text](https://github.com/simformsolutions/STM32-Temperaturelogger-IOT/blob/master/screenshots/screenshot2.png)\n\nThis following code initialize sd card with STM32 and create csv file if not present in sd card.\n\n![alt text](https://github.com/simformsolutions/STM32-Temperaturelogger-IOT/blob/master/screenshots/screenshot3.png)\n\nThis following code get current Date \u0026 Time from RTC module and get temperature data from sensor and write  temperature and date and time stamp data into csv file.\n\n![alt text](https://github.com/simformsolutions/STM32-Temperaturelogger-IOT/blob/master/screenshots/screenshot4.png)\n\n\nThis following code stm32 send AT commands to GSM module for intialize http service and send temperature data to cloud.\n\n\n![alt text](https://github.com/simformsolutions/STM32-Temperaturelogger-IOT/blob/master/screenshots/screenshot5.png)\n\n This following code apply kalman filter formula on temperature data and give filter value\n \n\n![alt text](https://github.com/simformsolutions/STM32-Temperaturelogger-IOT/blob/master/screenshots/screenshot6.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimform-solutions%2Fstm32-temperaturelogger-iot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimform-solutions%2Fstm32-temperaturelogger-iot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimform-solutions%2Fstm32-temperaturelogger-iot/lists"}