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 sirnoname » Thu 5. Feb 2015, 21:12

You must start without motors or maybe with a smaller setup. Sounds like there is some power moving into the arduinos.
You can be sure, last gamescom event the firmware worked very well over hours.
Also check the github, maybe you have old firmware?
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 Fuxl » Mon 9. Feb 2015, 09:26

Thanks for your help.

I changed the output pins in your code, and ....tataraatata ..... now its working stable.
Maybe there was really some power moving in and has destroyed my pins..... I never had such a problem. I already had some defect arduinos because of to much power. but there was alsways the complete arduino destroyed.

best regards
Fuxl
Fuxl
 
Posts: 4
Images: 15
Joined: Fri 12. Dec 2014, 10:59
Has thanked: 0 time
Been thanked: 1 time

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

Postby asticher » Sun 5. Apr 2015, 01:24

Hi Sir!
ich habe Dein Setup (Uno r3 und Sabertooth 2x60) 1:1 nachgebaut für ein 2DOF 360° FlightPit.
Alles funktioniert perfekt, nur eine Sache nicht:
Wenn der Inputwert sinkt (ccw) folgt der DC Motor perfekt dem Signal. Steigt der Inputwert (cw) dreht der Motor sofort einmal 360° cw bis er wieder auf dem Sollwert kommt.
An was kann das liegen?
Ich habe einen 360° Hallsensor (Cherry AN9) verbaut, der hat 2x 3 Anschlüsse (d.h. bei einem Output fällt die Spannung, beim anderen steigt Sie parallel dazu). Ich habe nur eine Output am Uno auf A0 angeschlossen und die 360° Option in Deiner Firmeware aktiviert. Im X-Sim Math Setup ist Split neg / pos aktiviert und das FB Signal ist schön kalibriert.

Danke Dir vorab vielmals!
"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 5. Apr 2015, 14:48

FB kalibrieren ist böse. Hört sich so an als würdest du nicht wirklich ein sauberes FB bekommen. Der Überschlag ist immer auf ca 1/4 als Entscheidungsmerkmal eingestellt. Da OS kannst du es selbst im Code ändern und optimieren. Generel hat man aber keine Kalibrierung von Potis am Simulator. Das soll per HW passen.
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 » Mon 6. Apr 2015, 23:40

Danke Sir, ein Problem war Layer 8 - falsche Firmeware :oops:
Jetzt dreht der Motor auch korrekt nach dem FB in cw/ccw...nur das FB Signal hat lediglich 0.5 bis 4.5 Volt und füllt nicht den ganzen Bereich.
Macht es Sinn das zu kalibieren oder gleich anderer Pot?
"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 » Mon 6. Apr 2015, 23:57

Eher eine Elektronik hinter dem Poti die das aussteuert. Du hast 4/5 der Auflösung, also mal kalibrieren versuchen, wäre nicht so viel Verlust.
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 » Wed 8. Apr 2015, 00:13

Hmpf, mit oder ohne FB Limits habe ich das angefügte Resultat...der Motor zentriert sich einfach nicht. Was mache ich blos falsch :roll:
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 sirnoname » Wed 8. Apr 2015, 00:45

Ja komisch, sieht aus wie invertiertes FB.
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, 01:35

Hallo Sir,

ich mache irgendwas komplett falsch...das selbe Problem hatte trust928 mit einer anderen H-brücke:
viewtopic.php?f=39&t=723&start=80#p6319
ich verzweifle langsam, daher folgende Fragen:
- Sollte der Motor sofort anfangen zu drehen und kalibrieren wenn die XPid Firmeware hochgeladen ist? Bei mir dreht er erst wenn der X-Sim Converter fertig gestartet ist.
- Ist das finale ArduinoXPID.dll Plugin ganz am Anfang von diesem Thread unter "You will need for this prject" das richtige für den Saabertooth?
- Ist die dort enthaltene Arduino Firmeware die richtige für den Sabertooth? Muss ich noch etwas anpassen? Oder das vom Github wo explizit forSabertooth draufstand? Diese Version ist seit ein paar Tagen aber weg.
- Muss man noch den Arduino nach dem upload an und abstecken damit die Firmeware aktiv ist?
Danke, Danke!
"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, 07:33

Der Motor ist spannungslos solange keine Befehle kommen.
Im Thread steht, das aktuelle Plugins und Fimrware immer auf Github sind.
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

PreviousNext

Return to Controllers and Drivers Projects

Who is online

Users browsing this forum: No registered users and 2 guests