wptm's 2DOF arduino wiper sim

Running simulator build projects.
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: wptm's 2DOF arduino wiper sim

Postby NeoTokyoNori » Fri 12. Apr 2013, 16:51

wptm wrote:So, I've decided to use some more robust h-bridge. The Pololu one is sure the best. Or simply the jrk12v is the all in one solution. But before, I want to give a try to make Thanos (Tronicgr)'s H-Bridge connected to the Arduino. I've started it from the scratch, just finished etching the PCB.
Am I right, that it's a good idea to try the Arduino (open source) solution with Tronicgr's H-Bridge?


I wish you luck on the h-bridge! that's a good start.

I think it just needs to accept pwm signal and motor direction/enable signal for it to work,
so lets hope that it works ok.
User avatar
NeoTokyoNori
 
Posts: 62
Images: 12
Joined: Mon 28. Jan 2013, 15:02
Location: Japan
Has thanked: 6 times
Been thanked: 1 time

Re: wptm's 2DOF arduino wiper sim

Postby wptm » Tue 16. Apr 2013, 17:46

I'm ready with soldering of the Thanos dsmhb 1.2 H-Bridge.
1422 1423

I've used first IRF3205 mosfets, but it was not working. You can see here my first test with that mosfet:
http://www.x-sim.de/forum/viewtopic.php?f=39&t=132&start=320#p7334

After that, I was reading a lot on other forums. Finally, I've decided to give a try to use IRL540N instead of IRF3205. I've also made a custom arduino code for testing it. Here's the code and below the new test video:
Code: Select all
int PWM1 = 10;
int PWM2 = 9;
int M1IN1 = 2;
int M1IN2 = 3;
int M2IN1 = 4;
int M2IN2 = 5;
void setup() {
  pinMode(PWM1, OUTPUT);
  pinMode(PWM2, OUTPUT);
  pinMode(M1IN1, OUTPUT);
  pinMode(M1IN2, OUTPUT);
  pinMode(M2IN1, OUTPUT);
  pinMode(M2IN2, OUTPUT);
}

void loop() {
 analogWrite(PWM2, 220);
 digitalWrite(M2IN1, LOW);
 digitalWrite(M2IN2, HIGH);
 analogWrite(PWM1, 220);
 digitalWrite(M1IN1, LOW);
 digitalWrite(M1IN2, HIGH);
 delay(1000);
 analogWrite(PWM2, 0);
 digitalWrite(M2IN1, LOW);
 digitalWrite(M2IN2, LOW);
 analogWrite(PWM1, 0);
 digitalWrite(M1IN1, LOW);
 digitalWrite(M1IN2, LOW);
 delay(2000);
 analogWrite(PWM2, 220);
 digitalWrite(M2IN1, HIGH);
 digitalWrite(M2IN2, LOW);
 analogWrite(PWM1, 220);
 digitalWrite(M1IN1, HIGH);
 digitalWrite(M1IN2, LOW);
 delay(1000);
 analogWrite(PWM2, 0);
 digitalWrite(M2IN1, LOW);
 digitalWrite(M2IN2, LOW);
 analogWrite(PWM1, 0);
 digitalWrite(M1IN1, LOW);
 digitalWrite(M1IN2, LOW);
 delay(2000);
}

User avatar
wptm
 
Posts: 64
Images: 57
Joined: Tue 29. May 2012, 21:43
Location: Hungary
Has thanked: 8 times
Been thanked: 4 times

Re: wptm's 2DOF arduino wiper sim

Postby wptm » Mon 22. Apr 2013, 16:14

I've upgraded my self made Thanos (Tronicgr) H-Bridge (dsmhb 1.2) with heat sinks.
1472 1473

And it has been tested with the Arduino board, with Sirnoname's xpid.ino 1.3 firmware.


Next, is to put back the motors to the frame.
User avatar
wptm
 
Posts: 64
Images: 57
Joined: Tue 29. May 2012, 21:43
Location: Hungary
Has thanked: 8 times
Been thanked: 4 times

Re: wptm's 2DOF arduino wiper sim

Postby wptm » Wed 1. May 2013, 18:52

Well, well. The theory is proven: the seat moves. It does not move smooth, but it's already a success.
I have problems with weakness of the motors, and "stray currents" kill the mosfets still sometimes. Now my h-bridge having rest again, I've run out of mosfets. I'll buy this gadget to be ready to test the mosfets, as I'm most of the time not sure which went wrong:
http://www.ebay.com/itm/190821060462
I'm also planing to make some mods on the h-bridge to change the logical N mosfets to harder ones.

Here's a video:
User avatar
wptm
 
Posts: 64
Images: 57
Joined: Tue 29. May 2012, 21:43
Location: Hungary
Has thanked: 8 times
Been thanked: 4 times

Re: wptm's 2DOF arduino wiper sim

Postby wptm » Fri 12. Jul 2013, 23:42

1809
Pot can turn 360 degree, so it would not damage in case of bad setup, due to its position. The center of the wiper's gear was drilled on a turner machine. There's a thread inside the hole, and a bolt is glued into. So, at the back of the wiper you would have an axis for your pot.
User avatar
wptm
 
Posts: 64
Images: 57
Joined: Tue 29. May 2012, 21:43
Location: Hungary
Has thanked: 8 times
Been thanked: 4 times

Re: wptm's 2DOF arduino wiper sim

Postby wptm » Fri 19. Jul 2013, 21:57

First time it works. I've adapted Racingmat's Arduino USO firmware to my dsmhb1.2 h-bridge.
User avatar
wptm
 
Posts: 64
Images: 57
Joined: Tue 29. May 2012, 21:43
Location: Hungary
Has thanked: 8 times
Been thanked: 4 times

Re: wptm's 2DOF arduino wiper sim

Postby RacingMat » Wed 24. Jul 2013, 13:11

hé hé !!
well done ! I'm glad you succedded (after all those mosfet's burns :? )
you deserve driving your own dynamic playseat !!

you could try to add more longitudinal effects : braking/acceleration -->> front/back seat mouvements

Thanks for the thanks ;)
RacingMat
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

Previous

Return to Motion simulator Projects in progress

Who is online

Users browsing this forum: No registered users and 2 guests