Git Product home page Git Product logo

curtainrobot's Introduction

Curtain Robot

Introduction

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.

Components

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.

Logic

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.

Videos

Housing

  • I haven't written the STL files for the housing or spindles yet

Rough Notes

IR Remote Button codes

Left to right, top to bottom (like reading)

  1. FFA25D
  2. FF629D
  3. FFE21D
  4. FF22DD
  5. FF02FD
  6. FFC23D
  7. FFE01F (up arrow)
  8. FFA857
  9. FF906F (down arrow)
  10. FF6897
  11. FF9867
  12. FFB04F
  13. FF30CF
  14. FF18E7
  15. FF7A85
  16. FF10EF
  17. FF38C7
  18. FF5AA5
  19. FF42BD
  20. FF4AB5
  21. FF52AD

repeat: FFFFFFFF

curtainrobot's People

Contributors

jcszamosi avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.