Giter Club home page Giter Club logo

smart_grid_monitoring_system's Introduction

Smart Grid Monitoring System.

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.

๐Ÿ“œ Slave Code Overview:

๐ŸŒ Port and Pin Definitions:

output: Port P1 is defined for receiving data from ADC808.
Channel selecting pins (add_a, add_b, add_c) determine which channel to read from.
al enables the selected channel.
rd and wr control reading and starting conversion.
INTR monitors the conversion process.
Pins (winding1, winding2, winding3, winding4) control a stepper motor.
motor controls another motor.

Function Prototypes:

This code defines several functions, which are the magical spells that control the microcontroller's behavior. ๐Ÿ•ฐ๏ธ TimerDelay() Function:

This function casts a time-delay spell, allowing precise timing control.

โšก Interrupt Service Routine (rec):

This wizardry responds to UART communication from a master device. Commands like 'V', 'P', and 'T' trigger sensor readings and data transmission.

๐Ÿ”Œ ADC Functions:

adc1(), adc2(), and adc3() handle analog-to-digital conversions for different sensors and return their readings.

๐Ÿ“ก Data Transmission Functions:

condition1(), condition2(), condition3(), condition2a(), and condition3a() send data back to the master device based on sensor readings.

๐ŸŒก๏ธ Temperature and Pressure Formulas:

Formulas for temperature and pressure conversion are applied to sensor data before transmission.

๐Ÿ” Main Loop:

In the main function, the code initializes necessary components and starts the timer.

๐Ÿช„ Stepper Motor Control:

The code controls a stepper motor based on pressure conditions, rotating it to specific angles.

โšก Endless Magic:

The code runs indefinitely, continuously reading sensor data and responding to master device commands, ensuring your microcontroller's capabilities are at your command.

๐Ÿ“œ Master Code Overview:

๐Ÿ“Œ Microcontroller and Ports: The 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. ๐Ÿ”Œ

๐Ÿ‘‰ Function Prototypes: The 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! ๐Ÿ› ๏ธ

โฑ๏ธ TimerDelay() Function: This function conjures precise delays through timer control. In the world of embedded systems, timing is everything, and this function ensures accuracy! ๐Ÿ•ฐ๏ธ

โณ Delay() Function: Delays are like spells for timing and synchronization in microcontroller projects. This function grants you control over time.

๐Ÿ‘‰ Command and Display Functions: These functions communicate with the LCD display, issuing commands and conjuring characters on the screen. The LCD becomes your visual storyteller! ๐Ÿ–ฅ๏ธ

๐Ÿ’ก Initialization (init) Function: The code commences by initializing the LCD, welcoming the world with "Starting...". Magic begins here! โœจ

๐ŸŽ›๏ธ Sensor Functions: These functions handle data from various sensors. Voltage, pressure, and temperature are revealed on the LCD, granting you insights into your environment. ๐ŸŒก๏ธ

๐Ÿ”ข Keypad Function: The keypad function interprets keypresses and conjures signals. It's akin to a magic wand that allows you to cast different spells by pressing keys! ๐Ÿช„

๐Ÿ“ก UART Communication: The 8051 microcontroller communicates through UART, sending and receiving data. It's the microcontroller's language! ๐Ÿ“ฌ

๐Ÿ’ก Street Lights Control: You can control street lights with the press of a button, enhancing safety and efficiency. Let there be light! ๐Ÿ’ก

๐Ÿ‘พ Main Function: The main function orchestrates it all. It's the master magician conducting the embedded symphony. ๐ŸŽต

smart_grid_monitoring_system's People

Contributors

azazhassankhan 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.