r/ArduinoProjects • u/run7b • Jul 23 '19
My XY table - code and question in the comments.
3
u/billyboogie Jul 24 '19
Still cheaper than print cartridges.
1
u/run7b Jul 24 '19 edited Jul 24 '19
This was a few dollars more than a print cartridge. The total cost was $75:
[jumper wires - $5](https://www.amazon.com/gp/product/B07PLZC26F/ref=ox_sc_act_title_1?smid=ATHZ0BI0D2RLH&psc=1
[3x L298N drivers - $10](https://www.amazon.com/gp/product/B00XAGRQTO/ref=ox_sc_act_title_3?smid=A30Y6WWS77DGEW&psc=1
Arduino - $10
Roller blades from thrift store (for bearings) - $5
3
1
u/Saintskinny51792 Jul 24 '19
hello XY table, nice to meet you!
1
u/run7b Jul 24 '19
You can meet it's brother too: https://www.youtube.com/watch?v=uyq7RJbFZEI
1
u/Saintskinny51792 Jul 25 '19
That's freakin' awesome! and rather hypnotizing lol I could watch that thing for an hour
1
u/whowhatwutwidit Jul 24 '19
Make it precise enough to do Engineering Lettering and you got yourself a time saver there
1
6
u/run7b Jul 23 '19
Link to repository containing code: https://github.com/smeschke/xy_plotter/blob/master/README.md
There is a lot of great documentation on how to create g-code. There is a lot of great documentation on how to use an Arduino to run stepper motors. I was unable to find the link between the g-code and the Arduino.
My solution was to use [Python and OpenCV to record my mouse clicks](https://github.com/smeschke/xy_plotter/blob/master/manual_annotation.gif) and then convert that data into instructions for the Arduino. It would be just as easy to parse this information from g-code. This works well and it is simple, but it is limited by the Arduino’s memory. There is only room for about 15 characters.
How are Arduino 3-axis machines controlled? Should stepper-motor instructions be serially from a computer to the Arduino? Is there some software for this purpose?