I’ve been lurking here in the forums learning a lot about SmartThings but seem to have gotten myself stuck on my current project. I have reached out to @ogiewon seeking some help as I have noticed he has done some Arduino work but I didn’t want to drop my whole project in his lap without his invitation.
I am in way over my head and hoping someone can help. I have been setting up our smart home over the last month and have been adding locks, dimmers, outlets and switches to ST. I have also been working on my first custom project which is motor control for a 120v motorized projector screen and a 12v linear actuator that lowers the projector from the ceiling. The idea is to create a routine “Turn on Theater” triggered either by a smartphone or voice with an Amazon Echo that lowers both the projector and screen and turns on the projector and bluray player. When the movie is done, one command “Turn off Theater” turns everything off and lifts everything back into the ceiling.
I have already cut all the holes in the ceiling and installed my screen and projector “lift” (I don’t know why they call it a lift when it actually lowers the projector ). I purchased my first Arduino for this project, a ST shield and a 4 channel relay. I also bought the Arduino starter kit and have been going through the examples learning how to build circuits and code Arduino.
Learning Arduino and putting everything together is fun, but very time consuming and I really just need a solution that works as soon as possible. I know the code is simple for someone who knows what they are doing. Unfortunately, that someone just isn’t me yet! My wife has been very patient with all the holes in the ceiling of our brand new house, but we also have a toddler that needs constant attention and it has been made clear that this project needs to be wrapped up as soon as possible!
I feel comfortable wiring the relays to the projector lift and screen but am at a total loss when it comes to writing the code. Like I said, I think I just bit off a little more than I can chew at this point in time.
I also wanted to mention I am using an Arduino Uno R3 for this project
I’ve been working on the SmartThings side of things using the Alexa Helper SmartApp to create all the virtual switches. I have an Alexa Switch (Virtual On/Off) called “Theater”. I have set a Scenario within Alexa Helper named Theater that reacts to the switch both On and Off. Turning the theater switch on activates a ST routine called “Turn on Theater”. The ST routine turns on an Aeon Labs SmartStrip (should always be on anyways) as well as the following virtual switches:
Projector Power (vOn/Off) -> Need to find a way to link to child switch #1 on SmartStrip…
Receiver Power (vOn/Off) -> Need to find a way to link to child switch #2 on SmartStrip…
Lower Projector Screen (vMomentary)
Lower Projector (vMomentary)
When the Theater switch is turned off it triggers a ST routine called “Turn off Theater” which turns off Projector Power and Receiver Power and activates Raise Projector Screen (vMomentary) and Raise Projector (vMomentary).
The projector screen takes approximately 10 seconds to raise or lower and the projector itself takes approximately 5 seconds. I’d like the momentary input to activate a timed output on the relays so that the relays aren’t constantly energized with the motors at their limit switches. I also want to ensure that the raise and lower relays cannot be engaged at the same time.
I hope this is all making sense and is something someone may be interested in helping me with. Thanks so much to everyone in advance! Even though it’s my first post, I am so grateful to the community that has already helped me so much!