{"id":21244798,"url":"https://github.com/azazhassankhan/smart_grid_monitoring_system","last_synced_at":"2025-03-15T04:25:57.545Z","repository":{"id":179515307,"uuid":"468893576","full_name":"AzazHassankhan/Smart_Grid_Monitoring_System","owner":"AzazHassankhan","description":"The Smart-Grid-Monitoring-System repository is a comprehensive and innovative solution for the development and implementation of state-of-the-art smart grid monitoring systems. ","archived":false,"fork":false,"pushed_at":"2023-10-14T21:19:14.000Z","size":257,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T20:13:03.353Z","etag":null,"topics":["8051-microcontroller","8051-projects","c","embedded-systems","protius","sensors","simulation"],"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/AzazHassankhan.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}},"created_at":"2022-03-11T20:39:40.000Z","updated_at":"2023-10-14T21:20:21.000Z","dependencies_parsed_at":"2023-10-15T19:11:16.094Z","dependency_job_id":null,"html_url":"https://github.com/AzazHassankhan/Smart_Grid_Monitoring_System","commit_stats":null,"previous_names":["azazhassankhan/smart_grid_monitoring_system-"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzazHassankhan%2FSmart_Grid_Monitoring_System","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzazHassankhan%2FSmart_Grid_Monitoring_System/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzazHassankhan%2FSmart_Grid_Monitoring_System/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AzazHassankhan%2FSmart_Grid_Monitoring_System/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AzazHassankhan","download_url":"https://codeload.github.com/AzazHassankhan/Smart_Grid_Monitoring_System/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243684505,"owners_count":20330880,"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":["8051-microcontroller","8051-projects","c","embedded-systems","protius","sensors","simulation"],"created_at":"2024-11-21T01:30:55.592Z","updated_at":"2025-03-15T04:25:57.513Z","avatar_url":"https://github.com/AzazHassankhan.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Smart Grid Monitoring System.\nThe Smart-Grid-Monitoring-System repository is a comprehensive and innovative solution for the development and implementation of state-of-the-art smart grid monitoring systems. \n## 📜 Slave Code Overview:\n\n### 🌐 Port and Pin Definitions:\n\n**output:** Port P1 is defined for receiving data from ADC808.  \nChannel selecting pins (add_a, add_b, add_c) determine which channel to read from.  \nal enables the selected channel.  \nrd and wr control reading and starting conversion.  \nINTR monitors the conversion process.  \nPins (winding1, winding2, winding3, winding4) control a stepper motor.  \nmotor controls another motor.  \n\n### Function Prototypes:\n\nThis code defines several functions, which are the magical spells that control the microcontroller's behavior.\n🕰️ **TimerDelay() Function:**\n\nThis function casts a time-delay spell, allowing precise timing control.\n\n⚡ **Interrupt Service Routine (rec):**\n\nThis wizardry responds to UART communication from a master device. Commands like 'V', 'P', and 'T' trigger sensor readings and data transmission.\n\n🔌 **ADC Functions:**\n\nadc1(), adc2(), and adc3() handle analog-to-digital conversions for different sensors and return their readings.\n\n📡 **Data Transmission Functions:**\n\ncondition1(), condition2(), condition3(), condition2a(), and condition3a() send data back to the master device based on sensor readings.\n\n🌡️ **Temperature and Pressure Formulas:**\n\nFormulas for temperature and pressure conversion are applied to sensor data before transmission.\n\n🔁 **Main Loop:**\n\nIn the main function, the code initializes necessary components and starts the timer.\n\n🪄 **Stepper Motor Control:**\n\nThe code controls a stepper motor based on pressure conditions, rotating it to specific angles.\n\n⚡ **Endless Magic:**\n\nThe code runs indefinitely, continuously reading sensor data and responding to master device commands, ensuring your microcontroller's capabilities are at your command.\n\n## 📜 Master Code Overview:\n\n📌 **Microcontroller and Ports:**\nThe code starts with the definition of ports for various components such as an LCD, registers, keypad, and street lights. These ports serve as gateways for data and control. 🔌\n\n👉 **Function Prototypes:**\nThe code introduces function prototypes for fundamental operations like delay, LCD commands, LCD display, string manipulation, initialization, and timer delay. Functions are the building blocks of this magic! 🛠️\n\n⏱️ **TimerDelay() Function:** \nThis function conjures precise delays through timer control. In the world of embedded systems, timing is everything, and this function ensures accuracy! 🕰️\n\n⏳ **Delay() Function:**\nDelays are like spells for timing and synchronization in microcontroller projects. This function grants you control over time.\n\n👉 **Command and Display Functions:**\nThese functions communicate with the LCD display, issuing commands and conjuring characters on the screen. The LCD becomes your visual storyteller! 🖥️\n\n💡 **Initialization (init) Function:**\nThe code commences by initializing the LCD, welcoming the world with \"Starting...\". Magic begins here! ✨\n\n🎛️ **Sensor Functions:**\nThese functions handle data from various sensors. Voltage, pressure, and temperature are revealed on the LCD, granting you insights into your environment. 🌡️\n\n🔢 **Keypad Function:**\nThe keypad function interprets keypresses and conjures signals. It's akin to a magic wand that allows you to cast different spells by pressing keys! 🪄\n\n📡 **UART Communication:**\nThe 8051 microcontroller communicates through UART, sending and receiving data. It's the microcontroller's language! 📬\n\n💡 **Street Lights Control:**\nYou can control street lights with the press of a button, enhancing safety and efficiency. Let there be light! 💡\n\n👾 **Main Function:**\nThe main function orchestrates it all. It's the master magician conducting the embedded symphony. 🎵\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazazhassankhan%2Fsmart_grid_monitoring_system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazazhassankhan%2Fsmart_grid_monitoring_system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazazhassankhan%2Fsmart_grid_monitoring_system/lists"}