0% found this document useful (0 votes)
155 views12 pages

Electrical Unit Consumption Python Project

This project calculates electrical unit consumption for various devices based on their power rating and usage time, helping users manage energy consumption and costs. It features a flowchart for the calculation process and includes Python code for implementation. The project promotes energy efficiency but has limitations such as estimation inaccuracies and the need for manual data entry.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
155 views12 pages

Electrical Unit Consumption Python Project

This project calculates electrical unit consumption for various devices based on their power rating and usage time, helping users manage energy consumption and costs. It features a flowchart for the calculation process and includes Python code for implementation. The project promotes energy efficiency but has limitations such as estimation inaccuracies and the need for manual data entry.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 12

Electrical Unit Consumption

Based on Device
Python Project Presentation
Abstract
• This project calculates the electrical unit
consumption of different devices based on
power rating and usage time. It helps users
understand energy consumption, calculate
electricity bills, and promote energy efficiency.
Flowchart
• Start -> Input device details -> Convert W to
kW -> Calculate kWh -> Input cost/unit ->
Calculate total cost -> Display -> Repeat? ->
End
Advantages
• - Easy energy and cost calculation
• - Promotes energy awareness
• - Useful for homes and industries
• - Reduces electricity bills
Disadvantages
• - Only estimates (may vary)
• - Doesn't consider efficiency
• - Manual data entry needed
Applications
• - Residential energy monitoring
• - Industrial energy audits
• - Smart home systems
• - Energy awareness campaigns
Python Code (Part 1)
• def calculate_consumption():
• devices = []
• total_units = 0
• total_cost = 0

• cost_per_unit = float(input("Enter cost per


unit: "))
• while True:
• name = input("Device name: ")
Python Code (Part 2)
• power_watts = float(input("Power (W): "))
• hours = float(input("Hours used: "))

• power_kw = power_watts / 1000


• units = power_kw * hours
• cost = units * cost_per_unit

• devices.append((name, units, cost))


Python Code (Part 3)
• total_units += units
• total_cost += cost

• more = input("Add another? (y/n): ")


• if more != 'y': break

• print("\n--- Report ---")


Python Code (Part 4)
• for device in devices:
• print(f"{device[0]}: {device[1]:.2f} kWh, ₹
{device[2]:.2f}")

• print(f"Total: {total_units:.2f} kWh, ₹


{total_cost:.2f}")

• calculate_consumption()
Sample Output
• Enter cost/unit: 7
• Device: Fan, Power: 75W, Hours: 8
• Device: AC, Power: 1500W, Hours: 6

• --- Report ---


• Fan: 0.60 kWh, ₹4.20
• AC: 9.00 kWh, ₹63.00
• Total: 9.60 kWh, ₹67.20
Conclusion
• This Python project effectively calculates
device energy use and cost. It aids in efficient
energy planning and promotes conservation.
Further enhancements could include GUI or
IoT integration.

You might also like