Arduino UNO/Duemilanove 2dof firmware

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 UNO/Duemilanove 2dof firmware

Postby ferslash » Sat 26. Jan 2013, 19:35

guys congratulations :D:D:D: well done, i think i will trying your project soon. !!!!
ferslash
 
Posts: 226
Images: 4
Joined: Tue 3. Jul 2012, 18:08
Location: Mexico, Guadalajara
Has thanked: 8 times
Been thanked: 1 time

Re: Arduino UNO/Duemilanove 2dof firmware

Postby Eurospike » Sun 27. Jan 2013, 02:35

Hi Ale
here is my circuit as requested, hope it is OK if not let me know what you need, only guessed on this my electronics knowledge is a bit rusty so expect I have made a mistake somewhere

1101

Thanks

Trevor
Eurospike
 
Posts: 8
Images: 2
Joined: Fri 28. Dec 2012, 01:38
Location: Buckingham UK
Has thanked: 0 time
Been thanked: 0 time

Re: Arduino UNO/Duemilanove 2dof firmware

Postby prilad » Sun 27. Jan 2013, 10:01

Hi Eurospike.

I found information about this driver
Module Features:

Dual BTS7970 chip structure (max current 68A)
5V isolation from MCU. This way MCU is effectively protected.


And you (and all ) don't need additional isolation for this driver... It must work correctly.
User avatar
prilad
 
Posts: 174
Images: 1
Joined: Tue 3. Apr 2012, 14:20
Location: Dubna, Moscow reg., Russia
Has thanked: 3 times
Been thanked: 37 times

Re: Arduino UNO/Duemilanove 2dof firmware

Postby Eurospike » Sun 27. Jan 2013, 22:11

Hi Ale
OK I have now removed the opto isolators and connected the Arduino Uno directly to my Motor Driver H-Bridge. First I connected it with just 2 lines with M1 DIR1 = IN1_L & M1 PWM = IN2_L in Half bridge mode as you firs told me. Still have issues if I set the motor position below 127 then everything move to the correct place with no issues. If I set the motor position above 127 then this is where I start to get issues. The movement of the motor is not smooth and it jerks a lot. This will sometimes cause the power supply to trip & I have tried 2 of them so this does not seem to be the problem. If I use the sin wave oscillator then the motor will follow but is jerky on the way up. If I use the Meande (Square wave) setting then the motor just stays at the bottom of the run as the motor does not move if you set the motor position to high above its current position. –any help on this please?
Secondly I used all 3 connections as you advised later in the thread. This is how I connected with 3 wires. M1 DIR1=IN1_L , M1 DIR2=IN2_L , M1 PWM=EN . Now this works much better :) . If I adjust the motor position in both directions the motor moves nice and smooth. I then switched on the SIN oscillator and this works fine with no jerking. If I then switch on the Meande (Square wave) oscillator then I start to see problems again. This only seems to be a minor problem now but will cause me issues. If I increase the frequency of the oscillation then my power supply will trip out. Please let me know if you think this would be normal? I am using 2 server power supplies that I have converted, do you think these may be a problem, one is 62A and the other 47A?
Below is a screen shot of the x-SIM Ctl with my settings for motor 1.

Many thanks for all your advice and help :)
Trevor
1102
Eurospike
 
Posts: 8
Images: 2
Joined: Fri 28. Dec 2012, 01:38
Location: Buckingham UK
Has thanked: 0 time
Been thanked: 0 time

Re: Arduino UNO/Duemilanove 2dof firmware

Postby telfel » Sun 27. Jan 2013, 22:34

HI Trevor

Can I ask the specs of the motors and your PSU.s

regards Terry
User avatar
telfel
 
Posts: 108
Images: 54
Joined: Thu 22. Mar 2012, 19:05
Location: Borders Scotland UK
Has thanked: 2 times
Been thanked: 9 times

Re: Arduino UNO/Duemilanove 2dof firmware

Postby Eurospike » Mon 28. Jan 2013, 00:27

Hi Terry
The Motors I am using are wiper motors from a VW Passat made by Bosch, dont know much else about them http://www.ebay.co.uk/itm/121051554968?ssPageName=STRK:MEBOFFX:IT&_trksid=p3984.m1432.l2649.
The Power supplies I am using are converted Server PSU's the first being a Dell NPS-750BB 12volt 62 Amp. The other one is a HP DPS-600PB 12volt 47 amp.
Hope this helps

Thanks

Trevor
Eurospike
 
Posts: 8
Images: 2
Joined: Fri 28. Dec 2012, 01:38
Location: Buckingham UK
Has thanked: 0 time
Been thanked: 0 time

Re: Arduino UNO/Duemilanove 2dof firmware

Postby prilad » Mon 28. Jan 2013, 06:47

Hi, Trevor

Eurospike wrote:If I adjust the motor position in both directions the motor moves nice and smooth. I then switched on the SIN oscillator and this works fine with no jerking. If I then switch on the Meande (Square wave) oscillator then I start to see problems again. This only seems to be a minor problem now but will cause me issues. If I increase the frequency of the oscillation then my power supply will trip out. Please let me know if you think this would be normal? I am using 2 server power supplies that I have converted, do you think these may be a problem, one is 62A and the other 47A?


I don't see any problem on your screen short. Everything works as it should work. When you tested motors with square wave - PWM changes very strongly, but in real games there will not square wave.

And you can change any parameters (in first - reduce KpLO and KpHI) and see results.

Regards,
ALE
User avatar
prilad
 
Posts: 174
Images: 1
Joined: Tue 3. Apr 2012, 14:20
Location: Dubna, Moscow reg., Russia
Has thanked: 3 times
Been thanked: 37 times

Re: Arduino UNO/Duemilanove 2dof firmware

Postby nullrnd » Mon 28. Jan 2013, 09:39

Eurospike wrote:If I increase the frequency of the oscillation then my power supply will trip out. Please let me know if you think this would be normal? I am using 2 server power supplies that I have converted, do you think these may be a problem, one is 62A and the other 47A?


Hi Eurospike.
When you turn oscillator on the high frequencies, motors need a lot of energy to fast move and change directions. I do not know whether you're doing with the power supply, but it requires that the load was not only on the +12V line. The load must also be on the line at least +5V. How to modify it, I do not know, I can only suggest to try to use a different power source.
nullrnd
 
Posts: 2
Joined: Tue 10. Apr 2012, 11:33
Location: Russia, Rostov-on-Don
Has thanked: 1 time
Been thanked: 1 time

Re: Arduino UNO/Duemilanove 2dof firmware

Postby Eurospike » Mon 28. Jan 2013, 17:06

hi nullrnd
The Dell power supply is rated at 62 amps on the 12volt rail and 7 amps on the 3.3volt rail. It is a server hot swap power supply so is different from your average PC power supply. I will try the test again with my car battery to see if I get any problems with that.

Thanks for the help and advice everyone. I do not have an amp meter or oscilloscope so really can not help much more at the moment with any further info.

Many thanks

Trevor
Eurospike
 
Posts: 8
Images: 2
Joined: Fri 28. Dec 2012, 01:38
Location: Buckingham UK
Has thanked: 0 time
Been thanked: 0 time

Re: Arduino UNO/Duemilanove 2dof firmware

Postby cubizme » Mon 4. Feb 2013, 20:09

Hi Prilad,

How is your project ? :) ,when are you finish it ? I hope I will see your project as soon as :D

Good luck, Prilad

Best Regards,
Letrung
cubizme
 
Posts: 23
Images: 73
Joined: Thu 27. Dec 2012, 12:50
Has thanked: 9 times
Been thanked: 4 times

PreviousNext

Return to Controllers and Drivers Projects

Who is online

Users browsing this forum: No registered users and 3 guests