Finished 2DOF 12V DC wiper arduino playseat

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: Finished 2DOF 12V DC wiper arduino playseat

Postby billo2404 » Mon 26. Jan 2015, 01:32

grazie Mat...finalmente qualcosa succede :D :D :D
purtroppo però non sono ancora a posto del tutto:
praticamente i motori si mouvono e si fermano solo smanettando con entrambi i pot.
un potenziometro non riesce a controllare un motore in avanti, stop, indietro ma devo sempre muoverli entrambi.
Purtroppo non conosco il linguaggio per programmare arduino ma è possibile che le uscite di arduino che ho preso siano errate?

Thanks Mat. ..Finally something happens :D :D :D
unfortunately are not yet in place: practically all engines it happen and stop just fiddle around with both pot.
a potentiometer is unable to control an engine forward, stop, back but I always have to move them both.
Unfortunately I don't know the arduino programming language but it is possible that the arduino outputs that I took are wrong?
User avatar
billo2404
 
Posts: 70
Images: 72
Joined: Tue 2. Jul 2013, 18:29
Location: Roma (ITALY)
Has thanked: 7 times
Been thanked: 2 times

Re: Finished 2DOF 12V DC wiper arduino playseat

Postby RacingMat » Mon 26. Jan 2015, 07:55

I dont understand every things you wrote :-/
I'm not home to check properly your wiring diagram. Try to match motomonster wiring (pwm, inA, inB)
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: Finished 2DOF 12V DC wiper arduino playseat

Postby billo2404 » Thu 29. Jan 2015, 01:43

Ciao Mat, finalmente tutto sembra essere ok e devo ringraziarti per questo...da solo non ce l'avrei mai fatta ;)
La cosa strana è che le uscite di arduino che a me funzionano bene sono altre rispetto a quelle indicate da te, sono impazzito con il tester ma alla fine ci sono riuscito.
Te le elenco così se ti va puoi verificare:


Hi Mat, finally everything seems to be ok and I must thank you for this ... do not alone would never made ;)
The strange thing is that the outputs of the arduino that I work well are other than those indicated by you, are crazy with the meters but in the end I succeeded.
You the list so if you like you can check:


-----------MOT 1-------------
in ---------> A5 out------> pin7 = inA
. .................................> pin8 = inB
...................................> pin5 = PWM1

-----------MOT2--------------
in--------->A4 out-----> pin9 = inA
.................................> pin4 = inB
.................................> pin6 = PWM2

it's possible?
User avatar
billo2404
 
Posts: 70
Images: 72
Joined: Tue 2. Jul 2013, 18:29
Location: Roma (ITALY)
Has thanked: 7 times
Been thanked: 2 times

Re: Finished 2DOF 12V DC wiper arduino playseat

Postby RacingMat » Thu 29. Jan 2015, 09:50

billo2404 wrote:You the list so if you like you can check:

-----------MOT 1-------------
in ---------> A5 out------> pin7 = inA
. .................................> pin8 = inB
...................................> pin5 = PWM1

-----------MOT2--------------
in--------->A4 out-----> pin9 = inA
.................................> pin4 = inB
.................................> pin6 = PWM2

it's possible?

Well done!

In my previous message I gave you pin numbers of VNH chips (1 to 30 pins). It was not easy to make the correspondance...
The Olimex board (integrating VNH chip) pinout is:
Olimex pin 5 = inA motor1
Olimex pin 4 = inB motor1
Olimex pin 6 = pwm1

So I checked everything and you're close to the result: in fact inA and InB are switched together but you have found the pot's polarity correcting this
it's a great achievement for you! :D

Arduino /.. VNH3SP30 motor1
Ard GND <-> Olimex GND pin
Ard 5V <-> Olimex 5V
Ard pin 4 <-> Olimex pin 5 inA motor1
Ard pin 9 <-> Olimex pin 4 inB motor1
Ard pin 6 <-> Olimex pin 6 pwm1

Arduino /.. VNH3SP30 motor2
Ard GND <-> Olimex GND pin
Ard 5V <-> Olimex 5V
Ard pin 7 <-> Olimex pin 5 inA motor2
Ard pin 8 <-> Olimex pin 4 inB motor2
Ard pin 5 <-> Olimex pin 6 pwm2


Arduino / Potentiometers
Ard pinA4 <-> center pin of pot 1
Ard pinA5 <-> center pin of pot 2
Ard pinGND <-> 0 ohm's pin potentiometer 1 & 2
Ard pin 5V <-> 10k ohm's pin potentiometer 1 & 2

CONGRATS!
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: Finished 2DOF 12V DC wiper arduino playseat

Postby billo2404 » Fri 30. Jan 2015, 18:55

grazie Mat, ho appena finito di testare i movimenti con il monitor seriale e ho potuto verificare bene le uscite di arduino.
Alcuni IN A e IN B erano invertiti quindi le riassumo qui quelle corrette al 100%
ARDUINO OUT
8 = IN B mot 1
7 = IN A mot 1
6 = PWM mot 1
9 = IN B mot 2
4 = IN A mot 2
6 = PWM mot 2
ARDUINO IN
A4 = pot mot 2
A5 = pot mot 1
Ora arriva lo scoglio più difficile...xsim :cry:


Thanks Mat, I just finished testing the serial monitor movements and I could check the arduino outputs.Some IN A and IN B were reversed so I summarize here the correct at 100%
ARDUINO OUT
8 = IN B mot 1
7 = IN A mot 1
6 = PWM mot 1
9 = IN B mot 2
4 = IN A mot 2
6 = PWM mot 2
ARDUINO IN
A4 = pot mot 2
A5 = pot mot 1
Now comes the rock more difficult ... xsim :cry:
User avatar
billo2404
 
Posts: 70
Images: 72
Joined: Tue 2. Jul 2013, 18:29
Location: Roma (ITALY)
Has thanked: 7 times
Been thanked: 2 times

Re: Finished 2DOF 12V DC wiper arduino playseat

Postby RacingMat » Sat 31. Jan 2015, 09:50

In fact, inA and inB are correlated to motor power feed: gnd and 12v on which side of the motor ;-)

Good achievement for this step!
:-D
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: Finished 2DOF 12V DC wiper arduino playseat

Postby theater » Tue 3. Feb 2015, 02:45

salve ragazzi sono nuovo sto creando un 2 dof con arduino e moto monster seguendo la guida di racing mat che trovo stupenda ho comprato tutto

arduino r3, motomonster shield clone in cina , 2 potenziometri 10k e alimentatore 50 amp, mori tergicristalli fiat panda

ho caricato tutto il codeci di racing mat sul arduino collegato moto e pot quando giro il potenziometro gira il motore
dopo questo installato xsim conv ed extractor tutto in unico pc caricato il profilo che c'è nella guida faccio partire il gioco rfactor ma non funziona esco dal gioco dandomi un error error opening uso comport com5 non so cosa fare ho provato di tutto illuminatemi ragazzi grazie di cuore :D
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Hi guys I'm new I'm creating a 2 dof with Arduino and motorcycle monster following the guidance of racing mat that I find amazing I bought everything

arduino r3 , motomonster shield clone in china , two potentiometers 10k and 50 amp power supply , mori wipers fiat panda

I loaded all of Codeci racing mat on Arduino connected bike and ride the potentiometer pot when the engine is running
after this installed xsim conv and extractor all in one pc loaded the profile that 's in the guide I start the game rfactor but it does not work I left the game giving me an error error opening use comport com5 not know what to do I tried everything enlighten guys thanks heart : D
Last edited by theater on Tue 3. Feb 2015, 15:57, edited 1 time in total.
theater
 
Posts: 11
Joined: Mon 15. Dec 2014, 20:53
Has thanked: 1 time
Been thanked: 0 time

Re: Finished 2DOF 12V DC wiper arduino playseat

Postby RacingMat » Tue 3. Feb 2015, 10:29

hello,

can you post screenshots of windows Comport and error?

Maybe you can change arduino comport manually (different from 5) and try again
follow this tutorial http://plugable.com/2011/07/04/how-to-c ... -windows-7
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: Finished 2DOF 12V DC wiper arduino playseat

Postby spyderwash » Tue 3. Feb 2015, 11:54

ma quale codice hai caricato quello che lavora in uso ?


but what code you have uploaded what works in uso?
spyderwash
X-Sim Supporter
 
Posts: 201
Images: 10
Joined: Tue 19. Feb 2013, 19:43
Location: ITALY VARESE
Has thanked: 2 times
Been thanked: 0 time

Re: Finished 2DOF 12V DC wiper arduino playseat

Postby theater » Tue 3. Feb 2015, 15:55

ho caricato il codice che si trova in prima pagina non sono esperto i motori sono tergicristallo panda

I uploaded the code that is on the front page are expert wiper motors are panda
Attachments
theater
 
Posts: 11
Joined: Mon 15. Dec 2014, 20:53
Has thanked: 1 time
Been thanked: 0 time

PreviousNext

Return to Motion simulator Projects in progress

Who is online

Users browsing this forum: No registered users and 5 guests