How to make a simple laser alarm with your own hands

27 August 2024 2 minutes Author: Cyber Witcher

In this article, we will consider how to create a laser alarm that will notify you when someone passes by it. It will be an excellent project for beginners in the field of electronics and programming. Laser alarm can be useful for the security of the premises or just as an interesting automation experiment.

Required components:

Connection diagram

summer

  • Anode (marked on the case, positive pin) → D3 pin of the ESP8266

  • Cathode → GND ESP8266

LED

  • Cathode (shorter lead) → GND ESP8266

  • Anode → to a 100 Ohm resistor. Resistor to pin D4 ESP8266

Light sensor module

  • D0 → пін D5 ESP8266 

  • GND → GND ESP8266

  • VCC → пін 3V3 ESP8266 

Laser

  • S → D6 pin of ESP8266

  • – → GND ESP8266 ESP8266

  • Central contact → pin 3V3

The laser must be placed directly in front of the light sensor so that the beam hits the photodiode. ESP8266 can be powered via a regular USB.

Firmware

**If you do not have the Arduino IDE installed, I advise you to watch the video tutorial, which shows how to install and configure it.

At this link you will find information on how to download the firmware to the ESP8266.**

Download the firmware from this link and download it to the ESP8266 according to the instructions above. Also, for work, you need to create a bot in Telegram and find out your id.

Importantly! You need to flash the ESP8266 before connecting all the components. If batteries or other parts are connected to it during the firmware, you risk burning (literally) your computer and ESP8266.

Principle of operation

It is quite simple: if the laser does not shine on the photodiode, the ESP8266 understands that someone (or something) is in its way, and warns about it. We hope that everything worked out for you!

If you have any problems, you can contact us at [email protected].

Other related articles
Found an error?
If you find an error, take a screenshot and send it to the bot.