so I'm in a green engineering class in high school, and my friend and I have been tasked with a special project, measuring the amount of power drawn by an arduino so that we can determine the energy efficiency of each person's project (automated model homes).
My plan is to run the DC wall power supply through a circuit that will determine the voltage and amperage drawn by the arduino from the DC wall power supply, and then output the power to the Arduino (where it was going originally. The big problem here is that I don't know the equivalent resistance of the Arduino, because it varies as the Arduino does different things (turns on motors, blinks lights, etc.).
As the output of this ammeter/voltmeter circuit I would like to have two leads that output an analog voltage that correlate to amperage and voltage, which I can then read from Arduino code.
The code is not the problem here (duh, this is an EE site), I just don't know enough about circuits to make an ammeter that has an analog output.
For voltage, I thought about just running the positive of the power supply to an analog pin with a 5MOhm resistor in between. Would this work?
nop
loop, and use that for the "base" power consumption. subtract this base draw from the contestant's entries to determine how much power they're using beyond the unavoidable draw of the arduinos. \$\endgroup\$