Install neje laser 405nm 1000mw

Spread the love


Operating the laser is like operating a LED from a GPIO pinout. Except you don’t need a resistor or any packages to install.

The laser only has two leads. One lead is for signal, the other is ground.

Connect the red lead to pin 12 (GPIO 18) on your raspberry pi/Jetson.

Connect the ground wire to pin 14 (Ground) on the pi/jetson.

Red to pin 12 (GPIO 18), Black to 14 (Ground)

Python3 Code.

Create a python3 file called

#!/usr/bin/env python

import RPi.GPIO as GPIO
import time



GPIO.setup(18, GPIO.OUT)

for i in range(0,100):
    print('Led on')
    print('Led off')
    GPIO.output(18, GPIO.LOW)

Python3 code in PyCharm.

From the linux terminal, run the program.


The laser output is very weak, shine the laser against a surface and look for a reflection.

Success! We have a laser!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.