I want Alexa automated blinds... so that's what I'm doing.
I'm going to be using this guide to create a particle bridge to Alexa: https://github.com/rlisle/alexaParticleBridge/blob/master/README.md
I'm using two reed switches and two continuous servos to do two independent jobs:
1. Pull the blinds apart (see code below "openServo", "posDetector1")
2. Twist the blinds
So, my two functions are "Toggle Blinds" and "Twist Blinds"
Toggle Blinds will check the existing status of the blinds and invert their positions. If you can read the code, I think you'll get a sense of that I'm trying to do from lines 56-87.
Twist Blinds is pretty self-explanatory and just uses one of the reed switches and servos.
I've written the attached code from bits and pieces from lots of places, I'm sure someone can tell me what I'm doing wrong... if I am?
Many thanks to @Moors7 (https://community.particle.io/users/Moors7 ) for all the help!
Comments