Assignment 4
Assignment 4
In this assignment, we will analyse the charging/discharging behaviour of laptop battery using our web
tool and will extract battery statistics. In the Assignment 1 folder, download the subfolder ‘Code’ and
open the file ‘index.html.’
If you want to get statistics of charging or discharging, click the ‘Get Statistics’ link and you will get data
of current charge level changing with time. The data table can be exported to excel.
Q1: Design an experiment to model the charging/discharging behaviour of your laptop’s battery. Clearly
mention key assumptions involved in your experimental design. For example, should we keep WiFi or
antivirus on while performing this experiment? Is your experiment reproducible? What are the key
sources of error in your experimental design and how could you mitigate them?
Q2: Estimate the total charge cycles completed by your device since you bought it. Figure out the date
of purchase and then calculate number of days till today since it was first used. Now roughly guess after
how many hours or days, you charge your device and hence calculate the total cycle count for your
battery. The total cycle count hence depends on your usage pattern.
Note that you could use half of your battery’s charge in one day, and then recharge it fully. If you did the same
thing the next day, it would count as one charge cycle, not two. So, it might take several days to complete a
cycle.
Hint: Open ‘Run’ by pressing Winkey+R and then type: powercfg /batteryreport /output "e:\rep.html"
This will save a report on your battery as E:\rep.html. Change the path as necessary and refer to it for
analysing your battery usage patterns
Q3: Both for charging and discharging as well, collect data points, export to excel/Matlab and derive
insights. What is a good curve fitting model (linear, exponential or something else) for:
i. Charging
ii. Discharging
Q4: Can we model your battery as a capacitor and if yes, what shall be its equivalent capacitance value?
Will that value have some relation with the actual capacity of battery defined in mAh? Are there any
missing variables here?
Compare your results in table above with your colleagues whose devices are considerably newer or
older than yours in terms of total cycle count from Q#2 but have almost same capacity in mAh. Do they
claim different results? Why?