HELP Arduino Uno wiring - H-Bridge & Software

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

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

Postby RacingMat » Tue 7. Jan 2014, 16:22

Hi Xidsim1,

Motomonster can handle smoothly 12v wipers (Max 16v)
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: HELP Arduino Uno wiring - H-Bridge & Software

Postby xidsim1 » Thu 9. Jan 2014, 18:37

Hi Racing Mat, THANKS for the info, really appreciated!

Maybe before i go that route would it be easier for ,e to learn how to change the arduino coding to tell it what my H-Bridge uses as PWM, Enable and Current sense?

If so how do i change the coding in the Arduino uno software? I am willing to learn but need a direct link to a tutorial and then maybe someone to ask any questions... Do you know of any links? ( when i search I get confused for what to look for ) Thanks
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 RacingMat » Thu 9. Jan 2014, 20:16

Hi!

Do you have any coding skill?
You can start learning Arduino on arduino.cc

Can you tell us what is your Hbridge model? Maybe it's ok.
Arduino drives the H bridge by PWM but some boards need 2 pins for direction others only one...
Mat
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: HELP Arduino Uno wiring - H-Bridge & Software

Postby xidsim1 » Thu 16. Jan 2014, 15:38

Hi Racing Mat

No i have no idea of coding..... but willing to learn.

The H-Bridge is from robotpower.com (i think?), it is a simple H-Bridge,

At the beginning of this thread are pictures, wiring diagram and small detail of the pwm, enable and current sense positions. I intend to use the wiring diagram in the middle powering 2 x motors
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 » Fri 7. Mar 2014, 12:38

Sorry everyone I have been away working and now back and able to work on this.

Can anyone help me?
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 adrianovrm » Fri 7. Mar 2014, 18:54

L think l can help you in using this H-brigde, it is excact the same h-brigde l use onto my project , it has a special to manage the pwm and CC and CCW movements.
1. The jumpers must the close just at EA and CA . Leave EAB and CAB open, this are the jumpers near the conector bourne.
2. At conector Bourne we will have the PA and PB and EA and - . This 4 conectors must be connect to arduino like that:
PA : CC or CCW [0 or 1 logical] -> values 0 (low) and 255 (high) for arduino
PB : PWM Must be a PWM pin;
EA : ENABLE of the motor , always High for motor move
- : Must be attached to the arduino gnd;

How the H bridge must be programmed at arduino:
Lets say that you use pin 13 for EA pin 8 for PA and 6 for PB,

So a simple code to make arduino move your motor !

//----
// the setup routine runs once when you press reset:
void setup()
{
pinMode(13, OUTPUT);
pinMode(8, OUTPUT);
pinMode(6, OUTPUT);
digitalWrite(13, HIGH); // enabling motor movement - when digitalWrite(13, LOW); motor doent move .
}

// the loop routine runs over and over again forever:
void loop()
{
// moving CC of CCEW depending on connection of the terminal motors onto M1 and M2 point of the simple H
digitalWrite(8, HIGH);
analogWrite(6,0);
delay(5000);
digitalWrite(8, LOW);
analogWrite(6,255);
delay(5000);
// l dont know if xpid.ino is prepare to work with this simple H - cause each H have the way of commanding
// is xpid.ino is not prepare to that - it will not work with the simple H . have to look the code
// l have my own file (arduino.ino) - l just pick so fast code from xpid.ino - very few things - but logical is similar
// but my code is much bigger cause it works with lcd - sdcards and keyboard . so it hard to you understand now - l
// suggest a study of arduino programming - l think you will need . l have just teachers of arduino in portugueses but
// sure you can find guys teaching arduino language and english in youtube.
}

// obs - digitalwrite and digitalread commands are slow when compared with direct bit access, but it is advance for you // now - lets wire on things simple for now - to make you feel taste or blood heheheheh...
// ---------
adrianovrm
X-Sim Supporter
 
Posts: 214
Joined: Tue 20. Nov 2012, 07:35
Has thanked: 0 time
Been thanked: 1 time

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

Postby adrianovrm » Fri 7. Mar 2014, 18:56

Show some pics of your project ?
adrianovrm
X-Sim Supporter
 
Posts: 214
Joined: Tue 20. Nov 2012, 07:35
Has thanked: 0 time
Been thanked: 1 time

Previous

Return to Controllers and Drivers

Who is online

Users browsing this forum: No registered users and 3 guests