[GUIDE] Arduino laser module ky-008 / hw-493 + code, câblage (2024)

SOMMAIRE ►

  • Module diode laser ky-008 datasheet, pinout
  • Connecter module diode laser ky-008 Arduino
  • Code Arduino pour contrôle du diode laser ky-008
  • Alarme simple basé sur module hw 493 / ky 008
  • Code Arduino pour système d’alarme avec laser

Le module laser pour Arduino peut être utilisé dans de nombreux projets intéressants, par exemple un pointeur laser automatique pour un chat. Nous allons voir comment connecter le module de capteur laser à Arduino avec un exemple de programme de microcontrôleur. En outre, nous assemblerons un circuit de signalisation simple en utilisant le module ky-008 / hw-493, où une sirène sur un buzzer sera activée lorsque le faisceau laser est interrompu.

Pour cette activité, nous aurons besoin:

  • Arduino Uno / Arduino Nano / Arduino Mega
  • module émetteur laser hw-493 / ky-008
  • capteur de lumière Arduino ky-018
  • buzzer
  • breadboard
  • fils de connexion
Matériel supplémentaire sur ce sujet:
  1. Jouet laser pour chat avec Arduino et module ky-008
  2. Branchement capteur de lumière KY-018 Arduino
  3. Branchement et utilisation d’un Buzzer Arduino

Arduino module diode laser KY-008 datasheet, pinout

[GUIDE] Arduino laser module ky-008 / hw-493 + code, câblage (1)

Caractéristiques module KY-008

  • Tension d’alimentation: 5 V
  • Consommation: 40mA
  • Puissance: 5mW
  • Longueur d’onde: 650nm
  • Profondeur: 8mm
  • Dimensions: 18.5 x 15 mm

Le composant principal du module KY-008 / HW-493 est une LED laser rouge avec un dissipateur thermique cylindrique en cuivre. La carte de l’émetteur laser comporte également des composants passifs qui assurent un fonctionnement stable de la LED et des contacts pour la connexion. Le faisceau laser est visible dans une pièce enfumée et crée un petit point lumineux sur la surface d’un objet situé à une distance maximale de 14 mètres de la source.

Comment brancher diode laser KY-008 Arduino Uno

[GUIDE] Arduino laser module ky-008 / hw-493 + code, câblage (2)

La connexion du module de capteur laser KY 008 à l’Arduino est assez simple du fait que seules trois broches sont utilisées. Mais il faut faire attention, car l’émetteur laser a ses propres particularités. La chose la plus importante est que le faisceau laser de 650nm ne doit pas être dirigé vers les yeux, de plus la LED laser devient très chaude pendant le fonctionnement, surtout si le module diode laser est alimenté avec un courant élevé.

Programme Arduino pour de mise en marche du diode laser

#define LASER 2 // broche de connexion du contact Svoid setup() { pinMode(LASER, OUTPUT);}void loop() { // faire clignoter la LED cinq fois for (byte i = 0; i <= 5; i++) { digitalWrite(LASER, HIGH); delay(500); digitalWrite(LASER, LOW); delay(500); } // pause 3 secondes delay(3000);}

Explication du code contrôle du diode laser HW-493 / KY-008:

  1. le contrôle du laser n’est pas différent de l’allumage d’une LED normale à partir de l’Arduino.

Système d’alarme simple basé sur un faisceau laser

[GUIDE] Arduino laser module ky-008 / hw-493 + code, câblage (3)

Dans le petit exemple suivant, nous dirigerons le faisceau laser vers la photorésistance d’un capteur de lumière. L’information provenant du capteur (variable int ldr) sera affichée sur le moniteur du port Arduino IDE. Si le laser est interrompu, le buzzer retentit. La fréquence du buzzer peut être modifiée dans le logiciel. Vous devrez également calibrer le capteur de lumière KY-018 et définir votre propre seuil à partir duquel l’alarme sera activée.

Programme Arduino pour système d’alarme avec diode laser

#define LASER 2 // broche de connexion module laser#define BUZZER 12 // broche de connexion buzzer#define LDR A1 // broche de connexion capteur de lumièrevoid setup() { Serial.begin(9600); pinMode(LASER, OUTPUT); pinMode(BUZZER, OUTPUT); pinMode(LDR, INPUT); delay(500); digitalWrite(LASER, HIGH); // laser en marche}void loop() { // mesure de la lumière à l'aide d'un capteur int ldr = analogRead(A1); Serial.println("Capteur de lumière: " + String(ldr)); // activer ou désactiver le buzzer if (ldr > 900) { tone(BUZZER, 100); } if (ldr < 900) { noTone(BUZZER); } delay(100);}

Explication du code Arduino du alarme basé sur laser diode:

  1. calibrer le capteur de lumière et régler le seuil d’activation de l’alarme.

Conclusion. L’intensité de l’émission de l’émetteur ky008 / hw493 Arduino dépend de l’intensité du courant. À faible intensité, le module fonctionne comme une LED conventionnelle, car il n’y a qu’une émission spontanée de photons. Lorsque le courant dépasse la valeur seuil, la puissance d’émission augmente fortement. La diode laser émet de la lumière perpendiculairement à la surface du cristal et est focalisée au moyen d’une optique.

5/5 - (2 votes)


Projets sur le thème: Branchement module diode laser KY-008 Arduino

  • Station météo Arduino avec Bluetooth module

  • Contrôle du chauffa*ge électrique par le sol Arduino

  • Projet mini Arduino avec boutons «Déchiffrez le code»

  • Minuterie de compte à rebours Arduino (chronometre)

[GUIDE] Arduino laser module ky-008 / hw-493 + code, câblage (2024)

FAQs

What is the range of the KY 008 laser? ›

A powerful range, reaching up to 60ft and more.

How do I connect my laser module to my Arduino? ›

It's very straightforward to connect the laser module to an Arduino. First, connect the 5V and Ground pins to 5V and GND on your Arduino. Then connect the Signal pin to any of the digital output pins on your Arduino. By setting the Signal pin high or low, you can turn the laser on and off.

What is the use of laser module? ›

Applications of laser diode modules include precise pointing and alignment of optical elements, printing and imaging systems, displays, bar code scanning, optical data storage, optical sensors, pumping of solid-state lasers, free-space optical communications, and medical applications (e.g. photodynamic therapy, ...

How does a laser sensor work? ›

A laser sensor is an electric device that uses a focused light beam to detect the presence, absence, or distance of an object. The light that a laser sensor emits is a small bright dot, similar to a laser pointer. This dot is bright enough to be easily seen even in direct sunlight.

How far can a 500mW laser go? ›

5mW: 1-2 miles. 50mW-100mW: 3-5 miles. 100mW-200mW: 5-8 miles. 200mW – 500mW: 8-11 miles.

How far can a military grade laser go? ›

This military grade laser pointer is the real deal. It can point a continuous beam for at least 10 miles. You can see it day or night. Warning: NEVER look at the beam directly as it WILL blind you.

How do I connect my laser to my computer? ›

The USB port is located on the right side of the machine, near the rear. USB cables have different connectors on each end. Turn the laser Off, then connect this end to the laser and connect the other end into any available USB port at the back of your computer. After connecting the USB cable, turn the laser back on.

How do I connect my Arduino to a line sensor? ›

Connect the Line Tracking Sensor module to the Arduino board as follows:
  1. Connect the VCC (Voltage) pin to the 5V pin on the Arduino.
  2. Connect the GND (Ground) pin to the GND pin on the Arduino.
  3. Connect the module's OUT1 and OUT2 pins to any digital pins on the Arduino (e.g., D2 and D3).
Aug 5, 2023

How long do laser modules last? ›

Typical lifetime of laser diode modules are 25,000 to 50,000 hours. If the laser diode temperature rises beyond the maximum operating temperature the long-term performance may degrade significantly, up to and including complete failure.

What is the difference between a laser and a diode laser? ›

A diode is not a laser at all, in that there is no coherence between the photons. A laser has a bunch of photons bouncing around together until they synchronize their wavelengths and polarities, before being released all at once. A diode is just a normal light source, like a light bulb.

What is the difference between laser diode and laser module? ›

A laser module would include one or more laser diodes as well as some optical and electronic components that are used for running the diodes and beam shaping. All this is usually enclosed in a robust enclosure.

Can a laser pointer damage a camera sensor? ›

Lasers having power as low as 5 milliwatts can damage the camera when they are pointed at it for a long time. When the laser power goes beyond 5 milliwatts, the extent of damage increases, and the duration of exposure needed to cause that damage decreases.

What can sensor detect? ›

A sensor is a device that detects and responds to some type of input from the physical environment. The input can be light, heat, motion, moisture, pressure or any number of other environmental phenomena.

Will a laser activate a motion sensor? ›

Yes, but whatever triggers the PIR motion sensor has to have a fair amount of heat associated with it. I trigger a PIR using an very small incandescent tree light, placed next to the PIR lens. Try it- you will notice it won't trigger much farther away. Lasers usually don't produce much heat (unless they are IR types).

What is the range of a laser range sensor? ›

Ranges from 3 mm (0.12 in) – 1270 mm (50 in)

What is the range of a laser pointer? ›

In total darkness we can see a <5mW 650nm laser around 500 - 1km away when it shines on a white surface. The divergence will make that projected dot 1km away a large dot that reach 20–30m in diameter, and very faint. Green YAG laser pointers at the same power, is in comperison visible up to 4–5km away.

What is the range of a solid state laser? ›

With the solid-state laser rangefinder modules from the ELEM range, you can measure non-cooperative targets and objects at distances of up to 60 kilometers.

What is the range of TOF10120 laser? ›

Laser Ranging TOF10120 Sensor Module Uart/I2C 3-5V Range 10-180cm.

References

Top Articles
Latest Posts
Article information

Author: Maia Crooks Jr

Last Updated:

Views: 6250

Rating: 4.2 / 5 (63 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Maia Crooks Jr

Birthday: 1997-09-21

Address: 93119 Joseph Street, Peggyfurt, NC 11582

Phone: +2983088926881

Job: Principal Design Liaison

Hobby: Web surfing, Skiing, role-playing games, Sketching, Polo, Sewing, Genealogy

Introduction: My name is Maia Crooks Jr, I am a homely, joyous, shiny, successful, hilarious, thoughtful, joyous person who loves writing and wants to share my knowledge and understanding with you.