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 brillo76 » Mon 16. Jun 2014, 12:25

Thanks sirnoname,
I have resolve this issue.
I have disabled the "vmware network adapter" and I have put the new "assettocorsa.dll" plugin.
brillo76
 
Posts: 11
Joined: Thu 5. Jun 2014, 09:24
Has thanked: 0 time
Been thanked: 0 time

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

Postby esmadja » Mon 30. Jun 2014, 00:47

After further research I have edited the portions of the post which were inaccurate.

Everyone always starts asking for help by first saying how great the project is... and this is so true. There obviously is a lot of work that went in to x-sim, the drivers and the XPID firmware, thank-you so much to sirnoname.

I have got the latest XPID 2.0 moto monster firmware working after a couple of modifications.
https://github.com/X-Sim/X-PID-Arduino- ... e/XPID.ino

In the setup routine I got a couple of compilation errors that PD4, PD7, PB0, PB1 were not defined.
I set them to 4, 7, 8, and 9.

int PD4 = 4;
int PD7 = 7;
int PB0 = 8;
int PB1 = 9;

Thanks,
Last edited by esmadja on Thu 3. Jul 2014, 07:28, edited 1 time in total.
esmadja
 
Posts: 9
Joined: Sat 17. May 2014, 17:54
Location: Santa Clara, California
Has thanked: 2 times
Been thanked: 0 time

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

Postby esmadja » Wed 2. Jul 2014, 07:00

After further research I've edited this post as it was incorrect.

I am using the Arduino Uno. If you have been able to use the code provided without having to declare PD4, PD7, PB0, PB1 please let me *
Even though these ports are defined in some of the header files they don't seem to be defined for the Uno i.e. when selecting "Arduino Uno" from Tools->Board in Arduino IDE.

If instead I select "Arduino Diecimila or Duemilanouve w/ ATmega168" or "Arduino Nano w/ Atmega168" then it compiles fine.

Otherwise I get the following errors;
XPID.ino: In function 'void setup()':
XPID:280: error: 'PD4' was not declared in this scope
XPID:281: error: 'PD7' was not declared in this scope
XPID:282: error: 'PB0' was not declared in this scope
XPID:283: error: 'PB1' was not declared in this scope

These errors are correct as mentioned in the above by adding these 4 lines;
int PD4 = 4;
int PD7 = 7;
int PB0 = 8;
int PB1 = 9;

Of course if I select a board that already has these variables defined I don't need the above. In fact I would get a different error which must be a result of the variables already being defined in the header file.
XPID:183: error: expected unqualified-id before numeric constant

Arduino setup with position 2 actuator off center with PWM and ControlInput led on
ArduinoUno Setup


X-Sim converter showing actuator off center by 13%
X-Sim Converter
esmadja
 
Posts: 9
Joined: Sat 17. May 2014, 17:54
Location: Santa Clara, California
Has thanked: 2 times
Been thanked: 0 time

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

Postby wallytattoo » Thu 24. Jul 2014, 15:48

hello, wanted to see if I can help because I'm a bit confused, which is the value potentiometer, 10kohm, 100kohm.
one regards for all
wallytattoo
 
Posts: 22
Joined: Tue 15. Jul 2014, 11:54
Has thanked: 5 times
Been thanked: 0 time

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

Postby sirnoname » Thu 24. Jul 2014, 15:55

All between 1K and 100K. Must be linear pots!
In case of 1K, more power goes over the analogue input and it is stabilized. Over 100K you may get jitter of other nearby devices.

int PD4 = 4;
int PD7 = 7;
int PB0 = 8;
int PB1 = 9;

Removed now!
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 wallytattoo » Thu 24. Jul 2014, 16:52

Muchas gracias.
wallytattoo
 
Posts: 22
Joined: Tue 15. Jul 2014, 11:54
Has thanked: 5 times
Been thanked: 0 time

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

Postby wallytattoo » Fri 25. Jul 2014, 13:43

Hello again over here to get me other questions. I do not want to steal your time, but I need help.
Trying to understand how I have to set the x-sim and do not understand anything.
First, in the sim-extractor I have to configure something?
Second, in the x-sim extractor that I set?
How do I set that are 2 motors.
I could explain more in detail as I am quite inexperienced with x-sim.
They are grateful
wallytattoo
 
Posts: 22
Joined: Tue 15. Jul 2014, 11:54
Has thanked: 5 times
Been thanked: 0 time

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

Postby sirnoname » Fri 25. Jul 2014, 14:17

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 wallytattoo » Sun 27. Jul 2014, 06:19

Hi, i was seeing and setting according to the training video and it worked fine.
Now when I loaded Jan l arduino firmware and configured the port some bugs me not to be evil or have attached some pictures to see if I can help out.
Attachments
in this drop-down box in the lower image I did not miss anything, it is normal
wallytattoo
 
Posts: 22
Joined: Tue 15. Jul 2014, 11:54
Has thanked: 5 times
Been thanked: 0 time

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

Postby sirnoname » Sun 27. Jul 2014, 08:27

Did you do what the second picture is telling you?
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 1 guest