The code to operate the actuators is optimized for each configuration (2, 3 or 4 actuators ).
Just load the right code, and apply the right FlyPT profile.
The arduino code doesn’t require any specific library.
In order to load the FlyPT profile, launch FlyPT (v3.4.2), right click>file>open and select the downloaded profile.
To complete the setup, click on the tile “Output::serial”, then on “update ports” and in the list “port” select the arduino USB port. Then just click on “connect” and the rig will move up.
In the main windwo, click on the game you want, and click on “connect”.
Now let’s dive into the FlyPT logic :
OUTPUTS
To add an output, right click>add>output> Serial. This module runs the communication between the computer and our hardware (an Arduino in this case).
The “start string” allows here to check if the FlyPT profile coresponds to the Arduino right code (A for 2 actuators, B for 3 actuators and C for 4 actuators).
Then we set the output to send the right data.
Rig
To add the rig, we do right click > add > rig. This module tells the software the mechanical caracteristics of your rig. simulateur de mouvement.
2 actuators | 3 actuators | 4 actuators |
2DOF with linear actuators | 3DOF with 3 linear actuators (1 at the back) | 3DOF with 4 linear actuators (1 at the back) |
Pose
Pour ajouter une “position”, on fait clique droit > add > position > from motion
Ce module détermine comment on utilise les données qui proviennent de la voiture. Il permet de régler le gain, et le filtrage notamment.
I’m trying to introduce limit switches without much success, have you tried it i know how to do it?
well I would say that the easiest way would be to link the switch directly to the enable pins of the driver.
The axis are very short when using simtools, the nema only turns about 1/8 of a turn. is there a way to scale the axis?
I am not using simtools
Hello,
we rebuild your setup and have some troubles with the connection to FlyPT. If I start the connection, nothing happens (A0 of the Arduino keeps low). If I change the Start String to C and modify the Arduino Code, the Output A0 gets high and the actuators are moving (too much). Then I had a look at your HBS86H settings. We ordered the motor and driver wich was shown in the shopping list. It seems that we don´t have the V3 – we just have 6 switches. I set our switches to off, off, off, off, on, on (3200 microsteppings) – right? It would be very nice if you can help us a little bit 🙂
Thanks in advance,
Markus