lab11 / powerblade

1 in² AC power meter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PowerBlade isn't reversible

brghena opened this issue · comments

Need to come up with a solution to allow PowerBlade reversibility.

The problem, is that a load at 10 W one direction measures identically to a load at 0 W the other direction. Put another way, we don't know which direction we are plugged in. However, it is easy to tell the difference with higher wattage loads (~20 watts and up). For example, a 100 watt load plugged in backwards will read -100 W.

One solution that might work for now, is to keep track in FRAM of which direction you are plugged in. If you ever register multiple readings less than -20 watts (or some number like that) make the decision that you are backwards and reverse the real power logic. This will still allow us to detect a 0 W load, as long as the load has previously drawn greater than 20 W.

How do you reset a powerblade's orientation if you move it to a new device?

On Fri, Jul 22, 2016 at 3:02 PM Branden Ghena notifications@github.com
wrote:

Need to come up with a solution to allow PowerBlade reversibility.

The problem, is that a load at 10 W one direction measures identically to
a load at 0 W the other direction. Put another way, we don't know which
direction we are plugged in. However, it is easy to tell the difference
with higher wattage loads (~20 watts and up). For example, a 100 watt load
plugged in backwards will read -100 W.

One solution that might work for now, is to keep track in FRAM of which
direction you are plugged in. If you ever register multiple readings less
than -20 watts (or some number like that) make the decision that you are
backwards and reverse the real power logic. This will still allow us to
detect a 0 W load, as long as the load has previously drawn greater than 20
W.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#8, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAUt3kuAD-Bx8xjg7SYmfVO6jkms7ZCoks5qYRO4gaJpZM4JTCjC
.

It should automatically swap directions whenever it sees a load less than -20 W. So if it's moved and flipped, it should automatically detect that when the load turns on.