Arduino Open Source X-PID firmware incl.360°option

AMC, H-Bridge projects etc.
Please use the image gallery for your pictures, a short tutorial can be found here.
The first image in the first post will be shown in the project gallery.

Re: Arduino Open Source X-PID firmware incl.360°option

Postby asticher » Fri 10. Apr 2015, 20:09

sirnoname wrote:Der Motor ist spannungslos solange keine Befehle kommen.
Im Thread steht, das aktuelle Plugins und Fimrware immer auf Github sind.


Befehle komme ja bereits ohen X-Sim an sobald FB Signal übertragen werden (TX/RX blinkt)...dennoch dreht sich der Motor nicht.
Im aktuellen Github Res:
https://github.com/X-Sim/X-PID-Arduino- ... or-control
finde ich KEINE dll Datei. Wo ist die denn?
Sind die anderen Fragen kein Antwort wert? :roll:
"No Brain, No Pain"

3DOF 360° Full Motion Simulator with Valve Index, AMD Ryzen 7, 32GB mem; Gigabyte Board UHD; GTX2080; Samsung M.2 SSD; Thrustmaster Warthog with FFB; Saitek Pro Pedals, Lilliputs & TM MFDs, Body Shaker + 5.1,
User avatar
asticher
 
Posts: 102
Images: 20
Joined: Wed 5. Sep 2012, 20:18
Location: Germany near Munich
Has thanked: 6 times
Been thanked: 1 time

Re: Arduino Open Source X-PID firmware incl.360°option

Postby sirnoname » Fri 10. Apr 2015, 20:18

Du machst alles richtig, die DLL ist sozusagen unwichtig und nur ein Monitor.
In Github muss man den Branch auswählen. Glaube da sind mitlerweile das normale, Sabertooth und Motomonster.
If a answer is correct or did help you for a solution, please use the solve button.
User avatar
sirnoname
Site Admin
 
Posts: 1829
Images: 45
Joined: Thu 1. Sep 2011, 22:02
Location: Munich, Germany
Has thanked: 35 times
Been thanked: 128 times

Re: Arduino Open Source X-PID firmware incl.360°option

Postby asticher » Fri 10. Apr 2015, 21:58

Negative...keine es gibt nur zwei Branches, eines von Dir für zwei H-Brücken und eines von Riclamer (funktioniert ebenfalls nicht wirklich).
Ich habe eine alte Github Firmeware die explizit für den Saber war zum Glück noch gespeichert und ausprobiert...sie funktioniert gut (Motor folgt dem FB) nur immer wenn das FB von 0 auf 100% springt oder umgedreht, wechselt der Motor schlagartig die Laufrichtung ergo endlosschleife (360° Option ist true!!!). Manchmal läuft er drüber und versucht sich zu kalibieren was dann immer schlimmer wird. Auch schauckelt sich das System auf bei schnellen Richtungswechseln (motor surrt und versucht ständig zu regeln obwohl er auf dem FB ist). Ich habe bereits die Pod Deadzone erhöht (50) :|
Link zur Firmeware:
https://dl.dropboxusercontent.com/u/11075624/XPID.ino
Attachments
"No Brain, No Pain"

3DOF 360° Full Motion Simulator with Valve Index, AMD Ryzen 7, 32GB mem; Gigabyte Board UHD; GTX2080; Samsung M.2 SSD; Thrustmaster Warthog with FFB; Saitek Pro Pedals, Lilliputs & TM MFDs, Body Shaker + 5.1,
User avatar
asticher
 
Posts: 102
Images: 20
Joined: Wed 5. Sep 2012, 20:18
Location: Germany near Munich
Has thanked: 6 times
Been thanked: 1 time

Re: Arduino Open Source X-PID firmware incl.360°option

Postby asticher » Sun 12. Apr 2015, 00:34

Hm, ich hab jetzt den dritten Branch gefunden mit der richtigen Version - Danke!
Jetzt dreht der Motor nicht mehr in die Gegenrichtung. Ein weiters Problem habe ich entdeckt: Der Motor erzeugt extreme Störspitzen die den FB Hallsensor bereits auf 30cm beeinflussen. Daher die vollkommen verrückten FB Ausschläge. Ich schirme jetzt alles ab und montiere den FB weit weg. Hoffentlich klappt es dann :-) Falls Dich interessiert, findest Du hier
http://www.virtual-jabog32.de/forum/vie ... 44&t=12289
Fotos vom Projekt.
"No Brain, No Pain"

3DOF 360° Full Motion Simulator with Valve Index, AMD Ryzen 7, 32GB mem; Gigabyte Board UHD; GTX2080; Samsung M.2 SSD; Thrustmaster Warthog with FFB; Saitek Pro Pedals, Lilliputs & TM MFDs, Body Shaker + 5.1,
User avatar
asticher
 
Posts: 102
Images: 20
Joined: Wed 5. Sep 2012, 20:18
Location: Germany near Munich
Has thanked: 6 times
Been thanked: 1 time

Re: Arduino Open Source X-PID firmware incl.360°option

Postby sirnoname » Sun 12. Apr 2015, 22:35

Eigentlich sollte es keine Poti Kabel geben. Poti gleich am Arduino. Notfalls 2 Arduinos für 2 Motoren, kostet ja nix. Nur die Leitungen von der H Brücke zum Motor können lang sein. H-Brücken Anschlüsse müssen auch kurz sein, sonst gibts einen Sound.
Die Motoren lassen sich nur durch Optokoppler vom Arduino zur H Brücke trennen. Dazu musst du aber zum Arduino Forum wechseln wie die das gemacht haben beim z.B. Motomonster. H-Brücken immer mit dem Oszi nachmessen dass diese gut durchschalten, also die Vorwiderständer der Optokoppler soweit verkleinern das der Strom aus dem Datenblatt passt.
If a answer is correct or did help you for a solution, please use the solve button.
User avatar
sirnoname
Site Admin
 
Posts: 1829
Images: 45
Joined: Thu 1. Sep 2011, 22:02
Location: Munich, Germany
Has thanked: 35 times
Been thanked: 128 times

Re: Arduino Open Source X-PID firmware incl.360°option

Postby asticher » Fri 17. Apr 2015, 22:54

Now a short summary from the previous german threads in english:
I had inexplicable and extreme Motor and FB motions sometimes, esp. after Fullturns.
Reason was due:
1. Upload wrong Firmeware
2. Unshielded cabels, a VERY sensitive Hallsensor and a very strong DC brushed Motor (70A).
After double shielding, grounding and extending distance from Motor to FB it work out.
THX Sir for help!!!
"No Brain, No Pain"

3DOF 360° Full Motion Simulator with Valve Index, AMD Ryzen 7, 32GB mem; Gigabyte Board UHD; GTX2080; Samsung M.2 SSD; Thrustmaster Warthog with FFB; Saitek Pro Pedals, Lilliputs & TM MFDs, Body Shaker + 5.1,
User avatar
asticher
 
Posts: 102
Images: 20
Joined: Wed 5. Sep 2012, 20:18
Location: Germany near Munich
Has thanked: 6 times
Been thanked: 1 time

Re: Arduino Open Source X-PID firmware incl.360°option

Postby asticher » Fri 17. Apr 2015, 23:08

So zum nächsten "kleinen" problem. Der Hallsensor geht leider nur von 97 bis 910. Die mitte ist 498.
Auch nach dem set im dialog, wird die Mitte mit 512 berechnet (d.h. es werden 48% im Dialog angezeigt) .
Das Pit ist daher -8° schräg. Ich habe dann die richtigen min/max/target values in deine Firmeware eingetragen/hochgeladen. Diese werden aber ignoriert, Pit ist immer noch schräg. Den FB um 8° schräg drehen bringt nichts, da dann das Pit bei z.B. 180° -> 172° steht.
Wie kann ich den Mittelwert also ändern?
"No Brain, No Pain"

3DOF 360° Full Motion Simulator with Valve Index, AMD Ryzen 7, 32GB mem; Gigabyte Board UHD; GTX2080; Samsung M.2 SSD; Thrustmaster Warthog with FFB; Saitek Pro Pedals, Lilliputs & TM MFDs, Body Shaker + 5.1,
User avatar
asticher
 
Posts: 102
Images: 20
Joined: Wed 5. Sep 2012, 20:18
Location: Germany near Munich
Has thanked: 6 times
Been thanked: 1 time

Re: Arduino Open Source X-PID firmware incl.360°option

Postby asticher » Tue 21. Apr 2015, 00:05

Ok, auch auf das Problem gibt es eine offensichtlich einfache Lösung: In der Math Section gibt es einen Axis Offset Calibration Slider.
Damit kann man die falsche Feedback Zentrierung ausgleichen.

Translate: If FB Signal is not just centered, it can by compensate with tuning the Axis Offset Calibration Slider in the Math Section.
Last edited by asticher on Tue 21. Apr 2015, 22:40, edited 1 time in total.
"No Brain, No Pain"

3DOF 360° Full Motion Simulator with Valve Index, AMD Ryzen 7, 32GB mem; Gigabyte Board UHD; GTX2080; Samsung M.2 SSD; Thrustmaster Warthog with FFB; Saitek Pro Pedals, Lilliputs & TM MFDs, Body Shaker + 5.1,
User avatar
asticher
 
Posts: 102
Images: 20
Joined: Wed 5. Sep 2012, 20:18
Location: Germany near Munich
Has thanked: 6 times
Been thanked: 1 time

Re: Arduino Open Source X-PID firmware incl.360°option

Postby asticher » Tue 21. Apr 2015, 22:39

Hi Sir,

and next hopefully last problem: If the Input-signal is increasing or decreasing, the drive/cockpit and the FB Signal follows smooth and exactly.
As soon as the Inputsignal goas back to center position, the drive has a big delay (~0.5sec) and then follows stepwise and abrasive.
I tryed out some other PIT Seetings, but it dosn´t seem to change this problem.
Also i tried out smoothing the input signal, no change.
I prey for help!
Attachments
"No Brain, No Pain"

3DOF 360° Full Motion Simulator with Valve Index, AMD Ryzen 7, 32GB mem; Gigabyte Board UHD; GTX2080; Samsung M.2 SSD; Thrustmaster Warthog with FFB; Saitek Pro Pedals, Lilliputs & TM MFDs, Body Shaker + 5.1,
User avatar
asticher
 
Posts: 102
Images: 20
Joined: Wed 5. Sep 2012, 20:18
Location: Germany near Munich
Has thanked: 6 times
Been thanked: 1 time

Re: Arduino Open Source X-PID firmware incl.360°option

Postby asticher » Tue 28. Apr 2015, 20:03

This weekend i mounted the FB Pod direct to the motor axis to avoid any scope at all. Bevor, the Pod was mounted on the basket witch had about 0.2° scope because of the key connection on the actuator axis. This has given some more precision and the stepwise following to center is reduced. But on slight turnrates (about 3° per sec) it´s still there. Now i try to modify the sabertooth power profil, maybe it works.
"No Brain, No Pain"

3DOF 360° Full Motion Simulator with Valve Index, AMD Ryzen 7, 32GB mem; Gigabyte Board UHD; GTX2080; Samsung M.2 SSD; Thrustmaster Warthog with FFB; Saitek Pro Pedals, Lilliputs & TM MFDs, Body Shaker + 5.1,
User avatar
asticher
 
Posts: 102
Images: 20
Joined: Wed 5. Sep 2012, 20:18
Location: Germany near Munich
Has thanked: 6 times
Been thanked: 1 time

PreviousNext

Return to Controllers and Drivers Projects

Who is online

Users browsing this forum: No registered users and 2 guests