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 Tombo » Fri 9. Aug 2013, 16:01

Hi,
power offset is set to 0. The noise and led lighting begins after converter is startet. And the pot signal gets rough until i switch the powersupply on. This happens with both h bridges so i think there is a converter problem.
http://www.youtube.com/watch?v=m14Rnoo3Qf8&feature=youtu.be
1971
Tombo
 
Posts: 97
Images: 36
Joined: Fri 22. Feb 2013, 20:52
Location: Germany
Has thanked: 6 times
Been thanked: 8 times

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

Postby ericRacer » Sun 11. Aug 2013, 17:18

Hi.
@sirnoname,
I have a question for you ! I want to change your code because i wish to use 4 motors and later 7 motors (maybe) and i want to use the USO output of X-Sim. There are some thing i don't understand about the PID in your program. I know that the PID must be called at an interval of time very constant. Last year i had problems with my code when i was using the USO output. The communication was breaking the interval of time of the PID. Then i wonder what is your trick with your code ? :mrgreen:
User avatar
ericRacer
X-Sim Supporter
 
Posts: 80
Images: 36
Joined: Wed 28. Mar 2012, 15:04
Location: Canada, Qc, Jonquiere
Has thanked: 3 times
Been thanked: 2 times

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

Postby sirnoname » Sun 11. Aug 2013, 18:08

-inline parser with no break from serial port / asynchron to serial port
-tested about five PID algorithm out of the robotic section and this was the best one with floating point unit at MCU
Yes the intervall must be exact, else you could not outtake the time value from the formula.

Tell me more about 4 motors??? The arduino do not have 4 equal PWM outputs.
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 ericRacer » Sun 11. Aug 2013, 18:37

sirnoname wrote:-Tell me more about 4 motors??? The arduino do not have 4 equal PWM outputs.


You're right, but i was thinking about the arduino Mega2560.

thanks for your explanation :!:
Eric
User avatar
ericRacer
X-Sim Supporter
 
Posts: 80
Images: 36
Joined: Wed 28. Mar 2012, 15:04
Location: Canada, Qc, Jonquiere
Has thanked: 3 times
Been thanked: 2 times


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

Postby ericRacer » Fri 16. Aug 2013, 19:51



I bought the same one and very easy to wire, just to follow the picture on the first post. I didn't try yet with a big motor but it is works fine with a little one (for testing). For me i needed to add an optoisolator between the arduino and the INA1 (input) of the driver.

ps.: here is the optoisolator i used : https://www.sparkfun.com/products/9118
User avatar
ericRacer
X-Sim Supporter
 
Posts: 80
Images: 36
Joined: Wed 28. Mar 2012, 15:04
Location: Canada, Qc, Jonquiere
Has thanked: 3 times
Been thanked: 2 times

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

Postby RafBR » Tue 20. Aug 2013, 17:10

I have noticed that some people use the arduino with Synaptrix and others with USO...
What are the advantages and disvantages of using one or other of this two methods for output?

And if I want to drive three motors (3dof) with two arduinos, does it matter if I use USO or Synaptrix? Both can handle it?

Today I will finish my optocoupler board so Im planning to test the arduino with DSMHB ;)
Ill will keep the progress posted.

my regards,
Rafael.
User avatar
RafBR
X-Sim Supporter
 
Posts: 136
Images: 24
Joined: Tue 20. Mar 2012, 21:53
Location: Brasil
Has thanked: 6 times
Been thanked: 4 times

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

Postby RacingMat » Tue 20. Aug 2013, 20:42

Hi !

@ Rafael :You need only 1 arduino for 3 DOF but H-bridge accordingly to motors number.

I'm using USO and i have never used Synaptrix : sorry !

@ ericRacer : could you tell us what happens without optoisolator ? And why only INA1 ?
Thks
2 DOF playseat : arduino, motomonster, 12V truck wiper motors
http://www.x-sim.de/forum/viewtopic.php?f=37&t=943
User avatar
RacingMat
X-Sim Stage 2 edition
 
Posts: 456
Images: 147
Joined: Wed 20. Feb 2013, 21:30
Location: Marseille - FRANCE
Has thanked: 4 times
Been thanked: 130 times

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

Postby RafBR » Tue 20. Aug 2013, 21:04

most people say one arduino would be slow for more than two motors.
User avatar
RafBR
X-Sim Supporter
 
Posts: 136
Images: 24
Joined: Tue 20. Mar 2012, 21:53
Location: Brasil
Has thanked: 6 times
Been thanked: 4 times

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

Postby RacingMat » Tue 20. Aug 2013, 21:28

Ah, ah ! I would be very interested in seeing any harness test... ;-)
2 DOF playseat : arduino, motomonster, 12V truck wiper motors
http://www.x-sim.de/forum/viewtopic.php?f=37&t=943
User avatar
RacingMat
X-Sim Stage 2 edition
 
Posts: 456
Images: 147
Joined: Wed 20. Feb 2013, 21:30
Location: Marseille - FRANCE
Has thanked: 4 times
Been thanked: 130 times

PreviousNext

Return to Controllers and Drivers Projects

Who is online

Users browsing this forum: No registered users and 1 guest