For the automatization of the machine we will use the gestalt boards for controlling the stepper motors. Two boards will be used for controlling the 4 stepper motors of the base (2 steppers motors each) and the other to will control the motors for the XY frame. It is important to mention that for in order of one gestalt to control 2 stepper motor you have to move a small potentiometer inside the board. It can be done easily if you have an amperimeter of a electrical source that shows the current absorb by the system. For more information of electrical connections and how to make the fabnet, see the following site
What is significante to show in this section is where are going to be located the gestalt. It was decided to put them at the back of the machine, behind the wall of the base for two main reasons:
The following images exhibit the node places:
The general configuration of the nodes
The two base motor stepper board controller and their connections
Connections of the XY controllers
Extensions were needes. We used dupont cables, but the integrarion was pretty simple.
Now comes to real issue for this... the program for the machine. We had some examples to use as guides and, lucky me, I like to program... By comparing the file examples single_node.py and xy_plotter I could understand what functions were important to change and add more code. Because we need to control 4 nodes, we change the following definitions:
The next issue to solve is to read a csv file were the movements of the machine are goint to be. There are to worthy comments about this coordinates:
f = open('prueba.csv')
csv_f = csv.reader(f)
Now we have a matrix where every row is a command for the machine.
Finally we develop a program that will read a csv file and move around the working bed. Check it at this link.
For getting all the files, click here.