This repo contains a small script laser.py that controls an ultra-fast galvanic mirror laser system.
- Clone the directory and copy the script into wherever you need it
- Install the
pyserialpackage:pip install pyserial - Plug in the galvanic mirror laser
The laser operates in
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 laserYou 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 boundsDeveloped by Jens E. Pedersen <jeped@kth.se>
Neurocomputing Systems at KTH Royal Instititute of Technology
