User:Zuhui//Prototyping/Virtual Plotter: Difference between revisions

From XPUB & Lens-Based wiki
< User:Zuhui‎ | ‎ | Prototyping
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
===[[Pen plotters]]===
<br><br>
continuing from the virtual Linux
continuing from the virtual Linux
==Terminal==
==Terminal==
Line 10: Line 12:
===virtual Chiplotle3 install in Terminal===
===virtual Chiplotle3 install in Terminal===
  $ su
  $ su
  $ nano /etc/group
  $ nano /etc/group
  add user name at the end of 'dialout'
  add user name at the end of 'dialout'
Line 15: Line 18:
: <code>etc/group</code>file is managing groups in your computer, it lists which users are belong to which groups
: <code>etc/group</code>file is managing groups in your computer, it lists which users are belong to which groups
: <code>dialout</code> is related to serial port or modem(?). to use the serial port, i need permission to access this group
: <code>dialout</code> is related to serial port or modem(?). to use the serial port, i need permission to access this group
<br>
<br>
$ su
go to desktop or wherever and make directory to virtualize
$ python3 -m venv . → message will pop up to suggest a command which is:
$ apt install python3.11-venv
for some reason i had to do this again because the command below couldn't find the directory:<br>$ python3 -m venv .
$ source bin/activate
$ pip3 install Chiplotle3
connect the plotter
$ chiplotle3 → it will create its configuration file: /home/"username"/.chiplotle/config.py
then you have
chiplotle3>
<br><br>
'''plotter set up'''
when plotter is connected, go to 'devices → USB' select the plotter
you can check the portname at $cd dev → $ ls. this case it was "ttyUSB0", and the other one was "tty.usbserial-130"
$ nano /home/"username"/.chiplotle/config.py.
change the line “serial_port_to_plotter_map = None” → serial_port_to_plotter_map = {'dev/portname' : 'generic'}
go back to virtual folder
$ chiplotle3
chiplotle3>plotter = instantiate_plotters()[0]
select your plotter
take the hpgl file and put it into the virtual folder
$ plotter.write_file(“FILENAME.hpgl”)

Latest revision as of 20:33, 13 May 2025

Pen plotters



continuing from the virtual Linux

Terminal

inkscape

$ su
$ apt install inkscape
$ exit
$ inkscape 

🎉🎉

virtual Chiplotle3 install in Terminal

$ su
$ nano /etc/group
add user name at the end of 'dialout'

what does it do?

etc/groupfile is managing groups in your computer, it lists which users are belong to which groups
dialout is related to serial port or modem(?). to use the serial port, i need permission to access this group



$ su
go to desktop or wherever and make directory to virtualize
$ python3 -m venv . → message will pop up to suggest a command which is: 
$ apt install python3.11-venv
for some reason i had to do this again because the command below couldn't find the directory:
$ python3 -m venv .
$ source bin/activate
$ pip3 install Chiplotle3
connect the plotter
$ chiplotle3 → it will create its configuration file: /home/"username"/.chiplotle/config.py
then you have
chiplotle3>



plotter set up

when plotter is connected, go to 'devices → USB' select the plotter
you can check the portname at $cd dev → $ ls. this case it was "ttyUSB0", and the other one was "tty.usbserial-130"
$ nano /home/"username"/.chiplotle/config.py.
change the line “serial_port_to_plotter_map = None” → serial_port_to_plotter_map = {'dev/portname' : 'generic'}
go back to virtual folder
$ chiplotle3
chiplotle3>plotter = instantiate_plotters()[0]
select your plotter
take the hpgl file and put it into the virtual folder
$ plotter.write_file(“FILENAME.hpgl”)