Code Monkey home page Code Monkey logo

nodemcu-garage-lights's Introduction

NodeMCU Garage Lights

This code is designed to monitor the status of a reed switch and activate a relay to turn on garage lights when the switch circuit is closed. In this application, a closed switch indicates that the garage door is open.

Hardware Requirements

  • NodeMCU board
  • Reed switch
  • Relay module
  • Garage lights

Wiring

Alt text

Installation

  1. Clone this repository to your local machine using git clone https://github.com/rafaelcpalmeida/nodemcu-garage-lights.git.
  2. Open the nodemcu-garage-lights.ino file in the Arduino IDE.
  3. Connect your NodeMCU board to your computer and select the appropriate board and port in the Arduino IDE.
  4. Upload the code to the NodeMCU board.
  5. Connect the reed switch and relay module to the NodeMCU board according to the wiring diagram provided in the schematic.png file.
  6. Connect your garage lights to the relay module.
  7. Power on the NodeMCU board and test the code by opening and closing the garage door to trigger the reed switch.

Usage

When the reed switch is closed (garage door is open), the relay will activate and turn on the garage lights. When the switch is open (garage door is closed), the relay will deactivate and turn off the lights.

License

This code is released under the MIT license. See the LICENSE file for more information.

nodemcu-garage-lights's People

Contributors

rafaelcpalmeida avatar

Watchers

 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.