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 RacingMat » Thu 10. Jul 2014, 21:55

Thanks hc26!

yes, the code is compatible: arduino UNO and DUE!

good luck for your project :)
Let us know your progress

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

Postby wallytattoo » Fri 25. Jul 2014, 15:33

Hi all, someone would be so kind to pass me the profile of x-sim.
I can not configure it, there are some settings that I do not notice.
I would be grateful and try my arduino code.
A greeting
wallytattoo
 
Posts: 22
Joined: Tue 15. Jul 2014, 11:54
Has thanked: 5 times
Been thanked: 0 time

Re: Finished 2DOF 12V DC wiper arduino playseat

Postby pipis2014 » Fri 25. Jul 2014, 18:55

wallytattoo wrote:Hi all, someone would be so kind to pass me the profile of x-sim.
I can not configure it, there are some settings that I do not notice.
I would be grateful and try my arduino code.
A greeting



have a look here:
viewtopic.php?f=37&t=943&start=150#p12133
pipis2014
 
Posts: 16
Images: 105
Joined: Mon 31. Mar 2014, 20:55
Location: Athens, Greece
Has thanked: 8 times
Been thanked: 5 times

Re: Finished 2DOF 12V DC wiper arduino playseat

Postby profetadelmus » Sat 26. Jul 2014, 11:05

wallytattoo wrote:Hi all, someone would be so kind to pass me the profile of x-sim.
I can not configure it, there are some settings that I do not notice.
I would be grateful and try my arduino code.
A greeting


remeber that you can load online shared profiles of other users in extractor!

Enviado desde mi SM-N9005 mediante Tapatalk
User avatar
profetadelmus
 
Posts: 79
Images: 32
Joined: Sun 22. Dec 2013, 05:14
Location: Vigo - Spain
Has thanked: 10 times
Been thanked: 3 times

Re: Finished 2DOF 12V DC wiper arduino playseat

Postby wallytattoo » Wed 30. Jul 2014, 15:56

Thank you very much for the replies.
Now I have another question about the Arduino code, and I do not understand much because I started using recently.
that part of the code defines the arduino pin, I think it is
Code: Select all
 
  inApin int [2] = {
   7, 4}; / / INA Clockwise input
inBpin int [2] = {
   8, 9}; / / INB: Counter-clockwise input
pwmpin int [2] = {
   5, 6}; / / PWM input
cspin int [2] = {
   2, 3}; / / CS: Current sense input ANALOG
enpin int [2] = {
   0, 1}; / / EN: Status of output switches (Analog pin)


I do not understand what you mean is what is in brackets {7, 4};

I assign to the inApin pin 2 is variable and {7, 4}; or as I interpret this to know what are the pins.
a greeting
wallytattoo
 
Posts: 22
Joined: Tue 15. Jul 2014, 11:54
Has thanked: 5 times
Been thanked: 0 time

Re: Finished 2DOF 12V DC wiper arduino playseat

Postby RacingMat » Wed 30. Jul 2014, 17:53

Hi!
It's an array to store 2 values.
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: Finished 2DOF 12V DC wiper arduino playseat

Postby mosky2014 » Wed 13. Aug 2014, 12:46

RacinMat
Thanks for share all this detailed project.
I started my project ( Sorry I will follow all your steps) to build my 2 DOF.

I'm trying to get all the build material

I have 2 wiper motors (not used), 3 arduino R3,
I'm waiting for my motor driver shield ( bought DX )
Next weekend I'll start with the chasis.

Thanks again to share and support us.
mosky2014
 
Posts: 34
Joined: Fri 25. Jul 2014, 15:39
Has thanked: 1 time
Been thanked: 0 time

Re: Finished 2DOF 12V DC wiper arduino playseat

Postby RacingMat » Sat 16. Aug 2014, 11:10

Hi Mosky2014!

You're welcome!
Following the steps is good! it will hopefully spare you some errors and trials...

About the wiper motors, I would strongly advice you to order NIDEC SMolka!
if not, check that the ground is isolated from outer body! and that they are almost irreversible!

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

Postby gingercat » Wed 3. Sep 2014, 21:18

There's a bug in the source code in the first post, the hex to decimal conversion doesn't take into account that 'A' has a value of 10, and the conversion will be setting it to 0:
Code: Select all
if (x[i]>47 && x[i]<58 ){//for xA to xF

should be
Code: Select all
if (x[i]>47 && x[i]<58 ){//for x0 to x9


then
Code: Select all
if (x[i]>64 && x[i]<71 ){//for x0 to x9
      x[i]=x[i]-65; 

should be
Code: Select all
if (x[i]>64 && x[i]<71 ){//for xA to xF
      x[i]=10 + (x[i]-65); 

Should add - thanks for the code!
gingercat
 
Posts: 2
Joined: Sun 17. Aug 2014, 17:55
Has thanked: 0 time
Been thanked: 1 time

Re: Finished 2DOF 12V DC wiper arduino playseat

Postby RacingMat » Thu 4. Sep 2014, 09:22

Thanks Gingercat for reading carefully the code!

Yes, the comments are swaped! I have to correct this!
but I have to think about your +10

Have you started building a sim?

__________________
Edit: yes, you're right! 8-)
my mistake I did recently when I made a change in the post
-65 should be -55 in order to convert "A" into "10"
Thanks
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

PreviousNext

Return to Motion simulator Projects in progress

Who is online

Users browsing this forum: No registered users and 1 guest