Der code ist im "raster.py" script im "pulseraster" branch: https://github.com/fablabwinti/LasaurApp/tree/pulseraster/backend Folgendes funktionniert auf Raspberry Pi (raspbian) oder auf einem normalen Linux. Dependencies installieren: apt-get install git python-numpy python-pil apt-get install python-cairo # optional, nur für --simulate-svg git clone --branch pulseraster https://github.com/fablabwinti/LasaurApp.git cd LasaurApp/backend ./raster.py -w 300 -e 0.2 --simulate --save-preview preview.png /home/pi/Tiger-7.png Generiert "preview.png". Muss auf dem Raspberry Pi als root gestartet werden, weil es (unnötigerweise) noch ein par GPIOs konfiguriert (sollte okay sein wenn nichts angehängt ist). Das ist weil es mal eine Version vom Lasersaur gab bzw. immer noch gibt mit Raspberry stat BBB. usage: raster.py [-h] -w WIDTH -e ENERGY_DENSITY [-f MAX_FEEDRATE] [--max-intensity MAX_INTENSITY] [--binary] [--ppmm PPMM] [--bidirectional] [--skip-empty] [--lead-in LEAD_IN] [--pos-x POS_X] [--pos-y POS_Y] [--cut] [--cut-feedrate CUT_FEEDRATE] [--cut-intensity CUT_INTENSITY] [-s] [--simulate-svg filename.svg] [--save-preview filename.png] FILENAME Raster-engrave an image. positional arguments: FILENAME PNG or JPEG file to be raster-engraved optional arguments: -h, --help show this help message and exit -w WIDTH, --width WIDTH width (mm) of the image (height is calculated) -e ENERGY_DENSITY, --energy-density ENERGY_DENSITY exposure of fully black areas (Ws per mm^2), about 0.3 to mark wood, 0.9 to engrave wood -f MAX_FEEDRATE, --max-feedrate MAX_FEEDRATE maximum feedrate (mm/min) --max-intensity MAX_INTENSITY maximum laser intensity or duty (in percent), enforced by reducing the feedrate (default: 80) --binary binary mode (disables dithering and interpolation) --ppmm PPMM desired pulses per mm (of the laser output), default 20.0, will usually be lower because of the minimum pulse duration, unless the requested energy density is high enough --bidirectional raster in both directions (twice as fast, probably worse quality) --skip-empty skip white pixels (faster, but maybe it can affect quality) --lead-in LEAD_IN distance (mm) for acceleration before and after raster lines (default: 2mm; acceleration to 8000mm/min requires 22mm, but rastering during acceleration seems to work well) --pos-x POS_X start x position --pos-y POS_Y start y position --cut cut a box around the result --cut-feedrate CUT_FEEDRATE feedrate for cutting the box --cut-intensity CUT_INTENSITY intensity (in percent) for cutting the box -s, --simulate do not connect to driveboard, print statistics instead --simulate-svg filename.svg create SVG output during simulation --save-preview filename.png save laser-scaled and dithered image for preview