Skip to main content

Sugar - Laser Red Dot Module

Red Dot Laser.png

Function


Open laser emission after receiving control signal

Signal:Timing Signal

Principle of the Module

The laser emitter produces laser through the effect of stimulated emission of radiation. When the laser medium is activated by external energy, its atoms or molecules are in an excited state. When they collide with photons corresponding to the excited state, the excited atoms or molecules will jump to a lower energy level while releasing a beam of photons coherent with the stimulated radiation, which is the laser.

Wiring

Untitled-1.png

Future Board Lite InterfaceCable
Red Dot Laser.pngSugar Cube Red Dot Laser ModulePort3White PH2.0-3Pin Interface Cable1694663456622-fdd52039-7a0c-451f-96a0-feabdc797516

warning Supports connecting to Port1, Port2, Port3, and Port4.Pay attention to the consistency between the interface and the actual usage when programming.

Blocks - Function Description

NumberBlock ImageBlock Function
1image-20240315170254130Controls the enabling or disabling of the red laser module on the control port

Program 1 - A Complete Program

image-20240315170318908

By controlling the on and off of the laser through a loop

Using Kittenblock

Use offline download to run the program to see the effect

Using on Microbit

Robotbit_压缩后.png

Programming Environment

Microsoft MakeCode for micro:bit Use the Makecode programming environment

Add the Sugar plugin

image-20240311154521941image.png

Search for Sugar in extensions, click Add

Circuit Connection

image.png

Microbit InterfaceCable
2Red dot laser.pngSugar Cube Red Dot Laser ModuleP0White PH2.0-3Pin Interface Cableuntitled.100.png

warning Supports connection to P0, P1, P2, P8, etc. Pay attention to the consistency of the interface and the actual interface during programming

Blocks - Function Description

NumberBlock ImageBlock Function
1image-20240315170440970Controls the enabling or disabling of the red laser module on the control port

Case: Control by button

image-20240315170518245