Roland DXY-990
Roland DXY-990
https://github.com/TimeTravel-0/penplotterfeeder
https://pypi.python.org/pypi/Chiplotle
https://hackaday.io/project/12276-roland-dg-dxy-990
http://www.rolandforum.co.uk/viewtopic.php?f=49&t=2072
Milieu de page page http://www.synthfool.com/laser/
Cable Serial <> USB : http://cmc.music.columbia.edu/chiplotle/manual/_static/SerialPlotterCable_Chiplotle.pdf
CréerCréer un adaptateur àà partir d'un vieux "pen": https://www.flickr.com/photos/anachrocomputer/sets/72157624783555539
Convertisseurs HPGL
psdtoedit
Pstoedit est un vieux soft en ligne de commande pour convertir àà peu prèsprès n'importe quel fichier vectoriel en HPGL.
Installation sur Raspbian Jessie Lite :
$ sudo apt install ghostscript $ sudo apt install pstoedit
Utilisation :
$ PAGE_SIZE="a3" HPGL_VERSION=1 pstoedit -f "plot-hpgl:-plotformat hpgl" input.pdf output.hpgl
Les traits ont l'air d'êtreêtre appliquésappliqués deux fois, ce qui peut êtreêtre sympa pour les bics un peu récalcitrantsrécalcitrants mais çaça vaudrait la peine de chercher àà comprendre pourquoi.
Des variables d'environnement sont disponibles, voir sur sur https://www.gnu.org/software/plotutils/manual/en/html_node/Plotter-Parameters.html
Filtres et remplissage
Recherches HPGL
Envoi depuis une Raspberry Pi avec le script python python https://github.com/TimeTravel-0/penplotterfeeder Ratio de 40 sur les distances:
PD400,400;
envoie le pen àà x10mm, y10mm. Maximum travel size: x416, y259 (16640, 10360). Au-dessus le déplacementdéplacement est imprédictibleimprédictible (quelques millimètresmillimètres de décalage)décalage).
Control commands
Des commandes spécialesspéciales permettent de parler àà la machine grâcegrâce au caractèrecaractère d'échappementéchappement "ESC". Il a le code code ASCII 27, en python on l'obtient avec avec chr(27). En Nodejs, "\x1b".
[ESC].B"\x1b.B")[ESC].E[ESC].O[ESC].KIN;SP1;VS1;SI1,1;PA0,4000;DT$;LB RADISLAV EST BG$;PU;PD;CP;Raspberry pi
Interface Web
John a créécréé une app web pour importer un fichier HPGL, le prévisualiserprévisualiser et l'envoyer àà la machine : https://github.com/LgHS/hpgl-sender
(suivre les instructions du README)
Script Python
ssh pi@192.168.*.* sudo apt-get install git virtualenv git clone https://github.com/TimeTravel-0/penplotterfeeder.git cd penplotterfeeder virtualenv . . bin/activate pip install pySerial python plot.py tests.hpgl 1 0 0 /dev/ttyUSB0
Processing
Il est possible de générergénérer du HPGL directement depuis Processing avec cette librairie : https://github.com/ciaron/HPGLGraphics.
Cette lib ne prend pas en compte P3D (rotateX, vertex(float,float,float)), il faut repartir d'un Fork de PGGraphicsSVG (sur le github de Processing) et adapter pour le HPGL.
Fork HPGLGraphics
John a forkéforké la librairie Processing pour pouvoir définirdéfinir des tailles personnalisées,personnalisées, des marges et la vitesse du pen : https://github.com/drskullster/HPGLGraphics (v1.0.4)
Pour compiler :
brew install antgit clone clone https://github.com/drskullster/HPGLGraphics.gitcd HPGLGraphics/resourcesant -Dclasspath.local.location=[Processing path] -Dsketchbook.location=[Sketchbook path]