HELP Arduino Uno wiring - H-Bridge & Software

Topics and questions about AMC, h-bridges, JRK's etc.

HELP Arduino Uno wiring - H-Bridge & Software

Postby xidsim1 » Mon 23. Dec 2013, 12:53

Hi Everyone,
Obviously I am new to this and also admittedly not very PC literate!
I have been interested in building a sim for a long time now and have finally got around to starting this which I will be doing over the christmas period as I will have time however, I have come to an early stop.

On my dual H-bridge i have several wiring options but I can not get the software to move my motors. It could be the software but firstly I would like to know whether I have wired it correctly although starting the software up seems to be a challenge as I get a problem as others when trying to test the '3D SimforceGT' when infinite error codes come up on my screen.

So, my confusion with all the wiring from the pc to the wiper motors is as follows:

On the wiring information for the H-Bridge it says "PWM, Enable & Current sense", these I do not understand.

Where do I connect the H-Bridge to the Arduino Uno.

Colour picture of H-Bridge

H-Bridge Input Output Connections & Jumpers

H-Bridge Wiring Options, I am trying to do the middle option with 2 x motors connected


The jumpers are connected:
J1 EAB = On, J1 CAB = On


H-Bridge = Arduino pin # connection

PA = 10
PB = 9
EA = 2
CA = 3
EAB = 4
CAB = 5

I have got the Blink LED on the Arduino and 2 x LEDs on the H-Bridge, Both motors connected I believe.

The X-PID has picked up the COMPORT 3 and in the X-PID window I have done the minimum and maximum values from the POTs

When I try the motor output & enter 10% or 90% on the x-sim window and press 'SET OUTPUT' nothing happens.

Have a done anything wrong with the wiring?
How do I get the motors to move with the 'X-Sim CONVERTER' software?

Can anyone help me please?
Last edited by xidsim1 on Mon 23. Dec 2013, 14:59, edited 1 time in total.
xidsim1
 
Posts: 21
Joined: Mon 19. Nov 2012, 23:47
Has thanked: 0 time
Been thanked: 0 time

Re: Arduino Uno wiring - H-Bridge & Software 1st check

Postby sirnoname » Mon 23. Dec 2013, 14:34

Check first the pwm frequency and input voltage of the control circuit of your H-Bridge (both = 5V?).
Which arduino firmware are you using?
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: HELP Arduino Uno wiring - H-Bridge & Software

Postby xidsim1 » Mon 23. Dec 2013, 15:11

PWM Frequency = DC - 20kHz

Input voltage Levels PA,PB,EA,EB : 2.5V - 5.5V = logic high, 1.7V = logic low

I downloaded firmware recently, i am just trying to check it....
xidsim1
 
Posts: 21
Joined: Mon 19. Nov 2012, 23:47
Has thanked: 0 time
Been thanked: 0 time

Re: HELP Arduino Uno wiring - H-Bridge & Software

Postby xidsim1 » Mon 23. Dec 2013, 15:29

i'm not sure I have found the correct firmware details but it says XPID.ino

if this is not what you asked then how do i find the firmware details?
xidsim1
 
Posts: 21
Joined: Mon 19. Nov 2012, 23:47
Has thanked: 0 time
Been thanked: 0 time

Re: HELP Arduino Uno wiring - H-Bridge & Software

Postby xidsim1 » Mon 23. Dec 2013, 16:02

im sure the firmware is Arduino 1.0.5 and plugin_1-4
xidsim1
 
Posts: 21
Joined: Mon 19. Nov 2012, 23:47
Has thanked: 0 time
Been thanked: 0 time

Re: HELP Arduino Uno wiring - H-Bridge & Software

Postby xidsim1 » Mon 23. Dec 2013, 17:01

does anyone now how to try and move the motors manually with the pc mouse or something like that?
xidsim1
 
Posts: 21
Joined: Mon 19. Nov 2012, 23:47
Has thanked: 0 time
Been thanked: 0 time

Re: HELP Arduino Uno wiring - H-Bridge & Software

Postby sirnoname » Mon 23. Dec 2013, 18:10

If you use xpid you have to wire like in the ino file described.
If your H-Bridge can use 20kHz this is good.
You can use the input setup percent entries to move manually
http://www.x-sim.de/manual/interface1.html
or you can use the test tablet of X-Sim instead of a game
http://www.x-sim.de/manual/test_plugin.html
Or you can pass through a joystick

or, or, or ...
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: HELP Arduino Uno wiring - H-Bridge & Software

Postby xidsim1 » Mon 23. Dec 2013, 18:38

for some reason i have no 'input' values on the 'All inputs of found interfaces' in interface settings... in the 'output' i have x 2 :
X-PID 1.4 COM3 position 1
X-PID 1.4 COM3 position 2

is this correct?
xidsim1
 
Posts: 21
Joined: Mon 19. Nov 2012, 23:47
Has thanked: 0 time
Been thanked: 0 time

Re: HELP Arduino Uno wiring - H-Bridge & Software

Postby sirnoname » Mon 23. Dec 2013, 18:54

Why you want input values?
Simple select the position 1 (Position control of first arduino output) and enter 10%, 50% and 90% as example.
Then set this new output. Motor moves to new position.
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: HELP Arduino Uno wiring - H-Bridge & Software

Postby xidsim1 » Mon 23. Dec 2013, 19:07

when you say to 'wire as the ino file describes' is that in the arduino XPID interface software coding? which i have

if so then i am not sure where to connect those arduino pins to the H-Bridge 'enable (EA)', 'current sense (CA)' & 'PWM (PA)', although i have swapped them and no difference anyway

INPUT VALUES:
In the interface settings, in the 'TEST one interface output pin' i put 90% hit the 'set output' button = no movement, just 1 flash from a LED on the Arduino PCB

in the 'TEST one interface input pin" there is next to the 'Result:''no input selected

Which the example HTML you sent has 'LPTI Digital InPin10 *......' and in "All inputs of found interfaces" and 'Result: 0%'

So i am wondering whether I am missing the PC not finding the 'LPTI' ?
xidsim1
 
Posts: 21
Joined: Mon 19. Nov 2012, 23:47
Has thanked: 0 time
Been thanked: 0 time

Next

Return to Controllers and Drivers

Who is online

Users browsing this forum: No registered users and 2 guests