Close
0%
0%

ESP8266 basics ep. 1: Reed switch

Exploring the basics of electronics with NodeMcu, episode 1

Public Chat
Similar projects worth following
Today i made a simple circuit, to display the use of the reed switch, this can be applied to any switch.

Before i begin, i will assume that you know what the Arduino IDE is and you know how to put code in the NodeMCU.

A reed switch will close when a magnet is put near it.

In this simple circuit when the reed switch close, the led will turn green and the buzzer will activate.

You can replace the reed switch with any type of switch.

You can also add a resistor between the buzzer voltage line, to make it a little less annoying

The code is in the link section, copy and paste it in the arduino IDE.

The wiring diagram is in the image section.

You can also support me by purchasing the sensor kit that i use for my projects, from the amazon link.

  • 1 × NodeMCU
  • 1 × Reed switch breakout board
  • 1 × 3-color LED breakout board
  • 1 × Buzzer breakout board

  • 1
    Use a breadboard

    it will be simpler to work with

  • 2
    program the board before you wire everything to the NodeMCU

View all instructions

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates