This repository contains code, description, notes, and maybe eventually a circuit diagram for a robot I am making so that I can open and close my curtains using a remote control. A stretch goal of this project is to incorporate an alarm clock so that the curtains will open and close on a user-defined schedule.
For this project I am cribbing heavily from this youtube tutorial for the hardware setup, although I have not (yet) stolen any of their code.
For this project I'm using an Elegoo Uno R3, an AX-1838HS IR receiver with a 38KHz universal IR remote control, and a Creality 3D 42-34 two-phase stepper motor.
Code lives here and is adapted from the code that came with the Elegoo Super Starter Kit module on controlling a stepper motor with an IR remote.
The goal is to have the curtains closing as long as the down arrow on the remote is depressed and opening as long as the up arrow is depressed. Right now I am approximating that by having the up or down arrow select the motor direction and then having the motor increment 1/4 revolution every time a "repeat" signal is detected. This is imperfect because there is a very brief pause every 1/4 revolution while the code loops, but it might be good enough if those pauses are not noticeable in the actual curtain movement.
- I haven't written the STL files for the housing or spindles yet
Left to right, top to bottom (like reading)
- FFA25D
- FF629D
- FFE21D
- FF22DD
- FF02FD
- FFC23D
- FFE01F (up arrow)
- FFA857
- FF906F (down arrow)
- FF6897
- FF9867
- FFB04F
- FF30CF
- FF18E7
- FF7A85
- FF10EF
- FF38C7
- FF5AA5
- FF42BD
- FF4AB5
- FF52AD
repeat: FFFFFFFF