Highlights
A power supply system distributes electrical power to a consumer network. The amount of supplied power will be based on input sensor values that the system receives. In the system, there are three electricity generators including a primary power generator G0 and two auxiliary smaller generators G1 and G2 to provide power. Generator G0 is always ON in a normal operating condition, whereas G1 and G2 are ON only when extra powers are needed. The power supply system uses two sensors, sensor 1 (S1) and sensor 2 (S2), to detect whether extra power is needed. The sensors monitor two load points in the consumer network. A microcontroller is utilised to read and process the sensors’ values and control the generators accordingly.
A sensor, either S1 or S2, provides a feedback of the power consumption level at a corresponding load point to the microcontroller. Each sensor has 4-bit wide, and the sensor value is represented in percentage (0% to 100% of power consumption). The sensor values are used to control the auxiliary power generators, G1 and G2, which are only ON when the measured power consumptions are above certain thresholds.
You will design this system using KL25Z as the microcontroller to control the above operation. Write a C program that allows a KL25Z to read the values from all sensors and to control the status (ON/OFF) of all generators. Initially G1 and G2 are OFF when the reading values are low. The generator G1 will be turned ON when the value of measured power consumption from S1 is over 35%. The generator G2 is ON when S2’s value is over 50%. Note that S1 and S2 are independent and their values could be changed (increased and decreased independently) over the time.
If the measured power consumptions are very high, i.e. the values of S1 and S2 are both over 85%, the power supply system will likely be overloaded, therefore all generators should be isolated from the consumer network to if both sensor values are still above 85% after 5 seconds. The microcontroller should then switch G0, G1 and G2 OFF to isolate all generators from the network and give a warning.
The map of the inputs and outputs is:
• Use eight “D” pins for S1 and S2 inputs (4 each)
• Red LED represents for G0
• Green LED represents for G1
• Blue LED represents for G2
• An LED is ON continuously when a Generator is ON and vice versa. If two or three Generators are ON, you need to blink the corresponding LEDs alternatively (each LED can blink in 1 second).
Marking components
The assignment submission (100%) will consist two parts: A (70%) and B (30%) as follows:
A. The Assignment Report (items 1-4 below) with total mark will be 70%:
1. Describe problem specification (5%)
2. Full system block diagram (15%)
o Input–5%
o Output–5%
o Calculatethethresholdandexplanation–5%
3. State diagram with comments (25%) o Statediagram-15%
o ExplanationandComments-10% 4. Codes with comments (25%)
o Sensorvaluereading–5%
o G1isON–5%
o G2isON–5%
o AllGsareOFFafter5seconds–5% o Usingfunctionforeachstate–5%
This Engineering Assignment has been solved by our Engineering Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.