Home Raspberry Pi Sensors Lasers! KY-008 laser module for Raspberry Pi & Arduino

Lasers! KY-008 laser module for Raspberry Pi & Arduino

You can never go wrong with lasers!

Tech details:

  • Wavelength: 650nm (red)
  • Operating voltage: 5V
  • Range: Unlimited* (in vacuum)
  • Current draw: 30mA

Connectivity:

3 pin connector, pins as follows:

  • VCC(+): 5V Supply
  • N/A
  • GND (-): Ground

You can connect this directly without risking any damage to your microcomputer.

What does it do?

Apart from destroying the space ships in numerous movies, laser module can be used in a much safer manner. Two main uses for KY-008 laser module involve ‘tripwire’ detecting and using it as a pointer.  Lasers are a great way to draw distances and limits as they shoot straight often at very long distances. Coupled with a photoresistor or specialised laser detecting module can be used to detect a breach in the path of the laser. In theory lasers (as light do) can travel until they hit something, in practice laser light will scatter in the atmosphere, and while going through the (imperfect) lens which causes the scatter and increased dot size.

Last but not least, don’t look at the beam, this thing can obliterate space ships, imagine what it can do to your retina!

How to use it?

KY-008 laser module

This is one of the simpler modules, that requires very minimal interaction. Unless you need to have an access to the power state of the laser, you could put the sensor in the separate circuit. To create the ‘tripwire’ behaviour only photo sensing module needs to be connected to your device.

Buy on Aliexpress.com

The KY-008 laser module is connected only to the power pins unless you need to enable and disable the laser whenever not in use. The VCC (+) pin goes to the 5V pin on the Raspberry Pi (red) and (-)GND is connected to the ground pin (black). Alternatively, you can connect the laser module to any 5V power source and use the photosensor module to enable and disable sensing.

Sample code:

This module does not require code to operate.

PayPal

Nothing says "Thank you" better than keeping my coffee jar topped up!

Patreon

Support me on Patreon and get an early access to tutorial files and videos.

image/svg+xml

Bitcoin (BTC)

Use this QR to keep me caffeinated with BTC: 1FwFqqh71mUTENcRe9q4s9AWFgoc8BA9ZU

M5Paper

Programable, ESP32 based awesome dev platform with 4.7 e-ink display by M5Stack

More HATs

Argon One M.2

Enclose Raspberry Pi 4 inside this great case with custom I/O, cooling and GPIO and M.2 SSD support

More cases on

Best Raspberry Pi Projects

How to use Raspberry PI as WOL (wake on lan) server

0
While you could wake up your PC from a mobile directly, having a dedicated server capable of doing so is the best solution. The reason is simple. You can hook up as many devices as you wish with a single endpoint. This is why Raspberry Pi is perfect for this.

How fast Raspberry Pi NAS is?

0
Let's see how fast Raspberry Pi NAS really is?

Argon18: Argon ONE SSD modification

0
Argon One case just got better - now you can boot it from USB without ruining the design thanks to Argon 18: Argon One SSD modification

The most pointless upgrade to my NAS – Raspberry Pi 3B+

0
This upgrade is almost pointless!

HOW TO...

C/C++ and MicroPython SDK for Raspberry Pi Pico on Windows

0
A guide to SDK toolchain for Raspberry Pi Pico and C/C++ , Micropython on Windows.

A comprehensive guide to Grafana & InfluxDB

0
How to use Grafana and InfluxDB on Raspberry Pi for IoT sensors in home automation

How to boot Raspberry Pi 4 from USB

0
How to set up and boot Raspberry Pi 4 from USB drive - headless guide.

Raspberry Pi Zero, Raspberry Pi 3A+ WiFi without keyboard or cables

0
Getting Raspberry Pi boards connected in seconds

Everything you need to start using JSON

0
It's JSON not Jason, just saying!