Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PowerBlade isn't reversible #8

Open
brghena opened this issue Jul 22, 2016 · 2 comments
Open

PowerBlade isn't reversible #8

brghena opened this issue Jul 22, 2016 · 2 comments

Comments

@brghena
Copy link
Member

brghena commented Jul 22, 2016

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.

@ppannuto
Copy link
Member

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
#8, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAUt3kuAD-Bx8xjg7SYmfVO6jkms7ZCoks5qYRO4gaJpZM4JTCjC
.

@brghena
Copy link
Member Author

brghena commented Jul 22, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants