Skip to content

liugetu/lego-plotter-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lego Plotter Project

A plotter robot built with Lego that draws images on paper.

Hardware design based on http://jander.me.uk/LEGO/plott3r.html.

Build instructions (PDF / 44MB)

Set up to use Python with the Lego brick

Instructions

To send the image and generate the coordinates:

python3 convert.py cara1.jpg

This will generate a file coordenadas.txt containing the drawing coordinates.

To preview what will be drawn (it will be deformed because it doesn't have the same aspect ratio as the paper (not fixed)):

python3 preview.py

To send the files to the robot (change the IP address to yours):

scp exec4.py coordenadas.txt stop.py robot@169.254.206.221:/home/robot/

The default password to access the robot is maker.

To enter the robot and start drawing (I recommend using a different terminal):

ssh robot@169.254.206.221
python3 exec4.py

To exit this mode, just enter exit.

image In case it doesn't work well and can't stop, or you want to level up the pen:
python3 stop.py

Note: a white paper should be used, otherwise, the color sensor might not work well.

Gallery

IMG_3946.mov

Oops moment

When the robot decided to do its own thing:

About

A plotter robot built with Lego

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages