XY Plotter automatisation


#1

Hi guys!

I’m working an art installation that draw maps all day. I’m using the Makeblock XY Plotter V2.0 (Arduino Leonardo) with a raspberry pi B with raspbian. Arduino sketch is working well (gCode interpreter included).

I’m using on RBi the processing (framework) app (GRemote) to load and execute a graphic gCode file (.nc), all is going well =)

My problem:

-> I need to schedule drawing sequence (every 5 minutes). I was thinking about executing scripts from crontab, but processing (java) need a GUI to run. I don’t know how to schedule task in the x.session running. Maybe i’ve to use python or something else to order my plotter without GUI. But, i’m a novice…

If you have any suggestion, i’ll be very happy! :smiley:


#2

Hi @lenuagesdepixels,
I just uploaded a little python script that should work for you.
It directly sends the gcode to the plotter serial without any GUI.

Regards
Marc


#3

Hi Marc!

I’ve just read your message (i was on holidays). It’s working great, thank you!

Best regards,
Pierre-Yves


#4