powerblade icon indicating copy to clipboard operation
powerblade copied to clipboard

PowerBlade isn't reversible

Open brghena opened this issue 7 years ago • 2 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.

brghena avatar Jul 22 '16 19:07 brghena

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 [email protected] 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 https://github.com/lab11/powerblade/issues/8, or mute the thread https://github.com/notifications/unsubscribe-auth/AAUt3kuAD-Bx8xjg7SYmfVO6jkms7ZCoks5qYRO4gaJpZM4JTCjC .

ppannuto avatar Jul 22 '16 19:07 ppannuto

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.

brghena avatar Jul 22 '16 19:07 brghena