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 » Sat 3. Aug 2013, 13:54

http://lojabrasilrobotics.blogspot.com. ... r7800.html
This one have the reverse pin. Its for a single motor I *
If you say it should work then im buying it:smile:

Enviado de meu A500 usando o Tapatalk 2
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 3. Aug 2013, 14:30

You must only left one pin unconnected, thats all. You can remove the not needed code if you like.
The second bridge is here at me, working good.
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 3. Aug 2013, 20:29

At the first test my arduino gets broken. So i orderd a new one and it's in delivery. So i startet to reading this post again searching for my mistake. There is something i don't understand:
"For the first run you should switch both power offsets to zero (2x right for each output) and the PWM frequency to 3kHz (round buttons top right)."

Where did i find these settings?
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 sirnoname » Sat 3. Aug 2013, 21:15

Open the arduino plugin (does work without a arduino connected).
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 3. Aug 2013, 22:28

But how it will have enough information from two potentiometers (two motors) + forward and reverse with only two pins?

Enviado de meu A500 usando o Tapatalk 2
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 » Sat 3. Aug 2013, 22:45

have a look on this close up view of pins :

1948

as described on ebay http://cgi.ebay.fr/ws/eBayISAPI.dll?Vie ... 1439.l2649

The motor is runnning : DIR = 1 PWM = PWM
understand set DIR pin to high and PWN pin with a value between 1 (slow) and 255 (fast)
Motor Reverse: DIR = 0 PWM = PWM
understand set DIR pin to low and PWN pin with a value between 1 (slow) and 255 (fast)
and the motor will go reverse


Parking brake: DIR = X PWM = 0
understand whatever DIR pin is set to
if PWN pin is null = 0 then motor is braked


i'm right ? thanks for any confirmation :-)
Last edited by RacingMat on Sat 3. Aug 2013, 23:31, edited 1 time in total.
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 sirnoname » Sat 3. Aug 2013, 23:05

yes
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 » Sun 4. Aug 2013, 00:16

sirnoname wrote:yes

Ok I understand. So dont mater if the h-bridge have one or two dir pin per motor for the available firmware?

Edit: Sorry, too silly question after re-reading whole thread again ;)
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 Tombo » Fri 9. Aug 2013, 15:42

Hi,
today i builded one test setup to test if everything works correctly. Im using wiper motors and an arduino nano with the H bridges on the first post, the 17$ ebay ones.
When i start converter and go into interface settings the pot is recognized correctly and i have setted up the min and max. position by hand. Now i power up the motors and enter a value in the set out box. My motor moves to tjis position and holds but makes a grinding noise all the time and both of the leds on h bridge for left and right are lighted. Did i have to change something in the code?
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 sirnoname » Fri 9. Aug 2013, 15:48

Make a screenshot of your XPID settings in X-Sim.
I think the power offset is set to non zero = always motor power for faster reactions.
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