Skip to content

ncskth/laser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Galvanic laser pointer control

This repo contains a small script laser.py that controls an ultra-fast galvanic mirror laser system.

Installation

  1. Clone the directory and copy the script into wherever you need it
  2. Install the pyserial package: pip install pyserial
  3. Plug in the galvanic mirror laser

The laser operates in $x \times y$ coordinate space, restricted to $(0, 800)$ in both directions.

Usage: terminal

The script can either be used from the terminal, and controlled with the wasd keys. Note that this assumes the device is plugged in at /dev/ttyUSB0.

> python3 laser.py
Connected to laser

Usage: python

You can also use it in a python script like so:

import laser
with laser.Laser() as l:
    l.move(0, 0)       # Upper left
    l.move(200, 200)
    l.move(800, 800)   # Bottom right
    l.move(1000, 1000) # No effect; out of bounds

Acknowledgements

Developed by Jens E. Pedersen <jeped@kth.se>

Neurocomputing Systems at KTH Royal Instititute of Technology

About

Python interface for mirror galvanometer laser pointer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages