r/Python • • Nov 13 '19

Cool BrachioGraph, an ultra-cheap Python-powered drawing machine

2.2k Upvotes

56 comments sorted by

152

u/EvilDMP Nov 13 '19

All the code and building instructions: https://www.brachiograph.art.

16

u/drimago Nov 14 '19

this looks amazing and I am definitely adding it to the list of projects I will build with my son! quick question, is there a way to draw with color? By that I don't mean use a different color pen, but draw a color picture. I wonder if this process can be adapted to your machine:

https://gph.is/2VkN5KY

12

u/EvilDMP Nov 14 '19

Yes - I have an idea for how to achieve that! I have to think through the details first.

1

u/kurti256 Nov 14 '19

Please could you make a link to that project here if you manage it please ๐Ÿ˜Š

2

u/mangoed Nov 14 '19

Perhaps the easiest way is to swap the pens manually. The program needs to split the picture into color channels (maybe CMYK, but you can choose your custom colors), then trace each color separately into a vector image, then, after drawing one color, prompt you to change the pen.

1

u/drimago Nov 14 '19

Yes that's 2hat I was thinking about in broad stokes (pun most definitely intended!). The only issue I see is: at the end of the drawing the arm needs to come back to the same position where it started from. Otherwise it will draw the same picture starting from another position with a different colour. Anyway this is a great gadget to build!

1

u/EvilDMP Nov 16 '19

No need to go back to the same position. The servo motors just go to whatever position you command.

And yes, that is exactly what I had in mind, a prompt to change the pen.

7

u/mangoed Nov 14 '19

A noob question: how do you connect motors to RPi? I've checked the manual but can't find the pinout. Servo motors have 3 female pins grouped together, RPi has male 40-pin GPIO connector, how do you plug one to another? Do you need some extra hardware or adapters between the motors and RPi?

9

u/EvilDMP Nov 14 '19

https://www.brachiograph.art/get-started/wiring.html - it would be nice to find a better solution.

2

u/derpydog3 Nov 14 '19

A servo has 2 wires for power and 1 for positioning (using a PWM signal). Hook the power to 5v and ground and the PWM to one of you GPIO pins. You will need to come up with a connector that does this or split them up your self.

28

u/CN906 Nov 13 '19

Awesome job, thanks for sharing.

39

u/naught-me Nov 13 '19

Those 2 little servos give a lot more precision than I'd expect.

1

u/jhflores Nov 14 '19

It's three, no?

5

u/naught-me Nov 14 '19

One doesn't affect the precision at all - it's just being used to raise and lower the pencil, to choose when to mark and when not to.

35

u/[deleted] Nov 13 '19

The shape of coding to come

7

u/oneironology Nov 14 '19

Free coding, a collective improvisation

9

u/lambdaq django n' shit Nov 14 '19

is the drawing lines required to be continuous?

16

u/moh853 Nov 14 '19

I don't think so. It seems the servo at the tip pushes the pen up when needed, otherwise two servos would've been enough.

3

u/MattR0se Nov 14 '19

I was just about to ask what that thing is doing.

4

u/ObviousB0t Nov 14 '19

A Python Plotter, nice.

3

u/ryry_reddit Nov 14 '19

Cool project ! This may the one I actually try to make.

3

u/Prince_ofRavens Nov 14 '19

I want this! Is there like, an instrucable?

4

u/Prince_ofRavens Nov 14 '19

Found it, thanks

4

u/ultra_reader Nov 14 '19

Link please?

4

u/Prince_ofRavens Nov 14 '19

Check ops comment down below

5

u/fuuman1 Nov 13 '19

Wow. So fucking cool.

2

u/agent3dev Nov 13 '19

looks awesome

2

u/Retroviper328 Nov 13 '19

That's really cool, nice one mate

2

u/SweatyPotatoSkin Nov 14 '19

super bad ass!

2

u/moh853 Nov 14 '19

I am very surprised those servos are this accurate. Fantastic work, and I love how you're using everyday items like the clipper.

2

u/twowheels Nov 14 '19

Yeah, equally surprised here. I would have expected this to require a stepper motor for that level of accuracy. I wonder if there's a notable amount of drift over time.

2

u/Yellow_Robot Nov 14 '19

"from shit and sticks" Ex-Soviet proverb.

2

u/mick14731 Nov 14 '19

If you wanted all the up votes, you needed to go with dick butt for the image.

2

u/2Girls1Fidelstix Nov 14 '19

No one mentioning iRobot?

Was waiting for the bridge to appear.

2

u/[deleted] Nov 14 '19

Awesome work! Iโ€™m inspired to say the least. May I ask what gave you this idea?

1

u/CrypticGator Nov 13 '19

Kyrie Irving?

1

u/m4xc4v413r4 Nov 13 '19

Very nice, thanks for sharing.

1

u/[deleted] Nov 13 '19

It's great, thanks so much.

1

u/algerbrex Nov 14 '19

This is really cool, thanks for the find!

1

u/aliavni Nov 14 '19

Cool. Great job!

1

u/Anik2603 Nov 14 '19

Very nice.

1

u/wrt_ideas Nov 14 '19

This is amazing......thanks a lot for sharing....and keep up the good work๐Ÿ‘๐Ÿ‘

1

u/Pablusha Nov 14 '19

And this is open-source project.Really i appreciate it.You are the best,keep going on.I hope i'll be like you :)

1

u/benbihi Nov 24 '19

I found this thread very helpful and extremely valuable. I've put together a blog post about 10 Python beginner Project and thought it'll help your audience and anyone who want to grasp the Python basics quickly and easily

https://www.astateofdata.com/python-programming/python-projects-for-beginners-learn-with-examples/

1

u/choiceisanillusion Nov 13 '19

Amazing :) thanks for sharing mate

1

u/Hukkinen Nov 14 '19

Nice. Before long machines and AI are able to liberate us from the painful, burdensome, and challenging work of drawing portraits and creating art.

What a time to be alive! ='D

-10

u/[deleted] Nov 13 '19

So a printer.

Still cool though.

14

u/Sxcred Nov 13 '19

No no. Drawing machine.

7

u/[deleted] Nov 13 '19

im not belittling it. It was a bad joke is all. Its really impressive.

1

u/Sxcred Nov 14 '19

At my state of Python knowledge this is far past me itโ€™s really cool.

3

u/[deleted] Nov 13 '19

A printer prints.