SRT100 actuators : Code

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.

2 Actuators3 Actuators4 Actuators
Arduino CodeV2.0 V2.0 V2.0
FlyPT profileV2.0

V2.0V2.0

Motor layoutM1 : front right

M2 : front left

M1 : front right

M2 : rear

M3 : front left

M1 : front right

M2 : rear right

M3 : rear left

M4 : front left

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 actuators3 actuators4 actuators
2DOF with linear actuators3DOF 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've been passionate about cars since I was a kid! I learned the multiple variations of the Skyline R34 through the Gran Tursimo series, until I discovered GTR2 at the wheel of a keyboard. A few years later, I plunged back into Sim Racing with a G27 which made me enter the DIY world. Always looking for an immersion out of reach in reality, I develop projects that I take care to make accessible to any 3D printer owner!
Posts created 102

5 thoughts on “SRT100 actuators : Code

  1. I’m trying to introduce limit switches without much success, have you tried it i know how to do it?

  2. 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?

  3. 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

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts

Begin typing your search term above and press enter to search. Press ESC to cancel.

Back To Top