Skip to content

Jormono1/Lego-Pen-Plotter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

88 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lego-Pen-Plotter

Pen plotter built entirely of lego elements including motors and controller. Programmed with PyBricks and Python.

Lego design files available on Rebrickable

Text Generator

I've developed a program that converts typed words into coordinates for the pen plotter, at the time of this writing, it is the only functional program I have developed for the plotter Plotter Sign

Work Flow

  • Build Pen Plotter
  • Install Pybricks firmware on hub
  • run Plotter_Font.py on your computer (NOTE: ensure the Seed A and Seed B files are in the same directory as Plotter_Font.py)
  • when prompted, type out whatever text you wish the pen plotter to write
  • when prompted, supply a file name. The file will be save directly into the same directory
  • open the pybricks web ui
  • upload the file(s) that Plotter_Font.py generated
  • Connect to your hub via bluetooth
  • Remove the Technic brick with the two 8 tooth gears attached, place an index card to be written on, and replace the technic brick to hold the index card securely in place
  • send the (first) file by pressing the "play" button, if you hover your cursor over the button a tooltip will pop up which reads "Run this program [F5]"
  • send the next file if applicable

Etch A Sketch Mode

In Etch A Sketch mode we forgo precompiled instructions in favor of manually controlling the plotter by use of an xbox controller. The left stick controls X and Y Movement, A button toggles the pen. Y button triggers a homing sequence manually, X button toggles to the alt control mode where x and y movement are split between the left and right thumbsticks. LB and RB decrease/increase the speed for faster travel or more detailed control. This allows for a more free-form experience, you could draw pictures or write words. You'll probably need to be a better artist than I am! This program includes safeguards that stop the user from "crashing" the plotter by driving it out of bounds. It will simply ignore inputs from the xbox controller that tell it to move beyond pre-defined boundaries. Simply load the script to the hub, this will disconnect the hub from your computer automatically and allow you to connect an xbox controller see the pybricks documentation for a guide on pairing an xbox controller to the hub.

IMG20260428153418

About

Pen plotter built entirely of lego elements including motors and controller. Programmed with PyBricks and Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages