-
1Step 1
- The best way to attach the photocell to the board is by using GPIO0 and GPIO1. The photocell is attached to the 3V pin (pin 11) on the MetaWear board as well as pin 8. A resistor is hooked up in series between pin 8 and pin 9.
- I used the sample iOS App code to set the value of GPIO1 low (0V) and read the analog value on GPIO0 to get a metric for whether the light was on or off. You should experiment and also calibrate your device to determine the threshold for dark versus light.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.