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

example controlling adafruit powerswitch tail II based on ambient light sensor #8

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

jmil
Copy link

@jmil jmil commented Aug 12, 2016

When you come home, you turn on a light. Here, Circuit playground serves as a light sensing sentinel, noticing you turned on a light and, through the PowerSwitchTail II relay, turning on other lights and devices for you. Just tune the light sensitivity for the light you always turn on compared to the ambient level, and put CircuitPlayground somewhere out of the way but still able to detect the change.
NOTE: Don't have CircuitPlayground receive light from the same device(s) it turned on, or it will be
stuck in a self-feedback loop.
Also: The response time is necessarily slow to avoid rapid oscillations sent to the PowerSwitch II,
which could conceivably damage some downstream AC devices. Set this with the Slide Switch (+) or (-)

Jordan Miller added 2 commits August 11, 2016 22:42
…ays based on the slide switch to limit power oscillations to downstream AC devices
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

Successfully merging this pull request may close these issues.

1 participant