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 RafBR » Wed 21. Aug 2013, 00:10

Is the x-pid for use only with Synaptrix or It is meant to be used with USO aswell?
I am facing a problem to use Arduino x USO (error opening arduino com3) and thought maybe I should disable x-pid for not to have any conflict.
I will try to go back to my garage today and try it...
Is there any topic about Synaptrix here in the forum? I tryed the search tool but nothing specific about it...

Lets finish this post with the same question I did a few posts back:
- Is there any advantage or disvantage betwen USO and synaptrix for use with Arduino?

My regards!
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 RafBR » Wed 21. Aug 2013, 04:08

RafBR wrote:I am facing a problem to use Arduino x USO (error opening arduino com3) and thought maybe I should disable x-pid for not to have any conflict.

Not sure if it was the x-pid but I shut it off and USO works *
Still wondering about Synaptrix... :?
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 ericRacer » Mon 26. Aug 2013, 21:57

RacingMat wrote:Hi !

@ ericRacer : could you tell us what happens without optoisolator ? And why only INA1 ?
Thks


Because it does not work! :?
the signal from Arduino was too low (i didn't investigued very deeper). I could use a transistor or an amp-op but I had an opto on hand. I have used it mainly as an amplifier 1:1.

And the "INA1" I also used the INA2 for one side. :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 » Mon 26. Aug 2013, 22:27

You can of course only use XPID with the interface setup. XPID do not work with USO, you have to remove the comport of XPID from the USO.
However XPID is not in conflict with USO and you can use USO for another device on another comport.
You cannot use a comport twice in windows.
XPID is not synaptrix, it is direct output and you can setup the direct output port in the math setup and in the synaptrix.

The part of the electronic: Use for example a protoshield and ULN2308 as driver.
I do personally not use any optocopler parts.
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 RafBR » Sat 14. Sep 2013, 15:26

sirnoname wrote: Now you only need to compile and upload this firmware and it will start after your upload. After it has started the motor should go to the middle position.

Ok Arduino works fine, x-pid works fine... But after I upload the firmware arduino dont do nothing. It only starts to control the motors and go to middle position after I go to Interface Settings > set output 50%. After a while motors stops and I have to press set output again...
How could I have arduino controlling the motors right after I start x-sim? I mean, the Thanos AMC starts controlling them right after we power it on.
Maybe something in the firmware? Or only the x-pid plugin can do that?
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 sirnoname » Sat 14. Sep 2013, 17:25

Firmware!
Change as you like. The GUI of the X-Sim plugin only represents the EEPROM content of the X-PID firmware.
There is also a automatic power off checkbox in the plugin.
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 Tombo » Sat 21. Sep 2013, 10:24

Hi,
i just bought this dual hbridge.
http://cgi.ebay.de/ws/eBayISAPI.dll?ViewItem&item=221197919764
And now everything works fine for me when i start converter both go into middle position very fast but if i set set output one motr moves very slow. :?:
when connected to psu they move very fast. Normal wiper motors 12v. Default pid settings.

Edit:
I found out that this Problem is only present if one motor is at stop position. The motors run without load from an pc Psu when both motors are spinning they ran fast even if one motor stops the other one starts to move slow. Can this because of only one pc psu? Should i add a car battery?
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 » Tue 15. Oct 2013, 02:58

sirnoname wrote:Optocupler and galvanic parting:


If my Hall effect sensor is around 2 feet away from my Arduino , what is the best place to put the optocoupler ?
close to Arduino or Hall sensor ?
:?
thanks :)
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 PSArias » Sat 26. Oct 2013, 01:02

Hello everyone. First of all, thank you very much for your excellent work sirnoname :D
And now I have a couple of questions, somebody has successfully run it with this H-Bridge? (https://www.sparkfun.com/products/10182) Monster Moto Shield.
I'm using an Arduino UNO R3 and the Monster Moto Shield, but i'm lost...
Looking at the sample code provided by Sparkfun...
Code: Select all
int inApin[2] = {7, 4};  // INA: Clockwise input
int inBpin[2] = {8, 9}; // INB: Counter-clockwise input
int pwmpin[2] = {5, 6}; // PWM input

...I wired the pins as I show in the attached picture, Is it correct?
Just one more question, what is the expected behavior to put a value of 90% and press the Set button output?

Sorry for my english and thanks in advance!

Best regards.
Attachments
User avatar
PSArias
 
Posts: 78
Joined: Wed 13. Mar 2013, 00:35
Has thanked: 0 time
Been thanked: 0 time

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

Postby Tombo » Sat 26. Oct 2013, 12:19

Hi,
just tried this to. I've changed pinouts in ino file so i can stick the shield into arduino. But it doesn't work pot input is correct but output to h-bridge seems to have failures. Is there anything else to change in the firmware?
Tombo
 
Posts: 97
Images: 36
Joined: Fri 22. Feb 2013, 20:52
Location: Germany
Has thanked: 6 times
Been thanked: 8 times

PreviousNext

Return to Controllers and Drivers Projects

Who is online

Users browsing this forum: No registered users and 1 guest