2DOF 12V double current Arduno Popolu

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.

2DOF 12V double current Arduno Popolu

Postby Monaco85 » Tue 3. Dec 2013, 22:38

Hi i want to start my Project today because i ordered today 20 meter 25x25x2mm steel
2 24 Volt 16nm Wiper Motors
Arduino One


I read the last two Weeks in this forum and decided to build a 2DOF as first Simulator because of the costs and the difficults to build.
I want to dokument my building project here step by step.

I hope it is okay that it will be nearly similar to the 2DOF here in this forum.

Big thankts to Matracing, Tombo, Dennisnojack and sirnoname. They inspired me and helped me to by a few Problems.



I used Popolu instead of Motomonster
http://www.pololu.com/picture/view/0J3753

I used the code from matracing

See here
viewtopic.php?f=37&t=943

For the poololu you have to Chance These definition

Code: Select all
/* VNH2SP30 pin definitions*/
int inApin[2] = {
2, 7}; // INA: Clockwise input
int inBpin[2] = {
4, 8}; // INB: Counter-clockwise input
int pwmpin[2] = {
9, 10}; // PWM input
int cspin[2] = {
0, 1}; // CS: Current sense ANALOG input
int enpin[2] = {
6, 12}; // EN: Status of switches output (Analog pin)
int statpin = 13; //not explained by Sparkfun
/* init position value*/
int DataValueL=512; //middle position 0-1024
int DataValueR=512; //middle position 0-1024

When iam finished and wanted to play i had some Problems. with the supply. I cant get the current for the wipers with only one dps 600pb.
So i had to use two and share current. The Pinout is here.
http://www.rcgroups.com/forums/showthread.php?t=1581061

(I testet with 24V for the vipers. But i really want to say, that this is to much. The whole seat is jumping arround. :-) )

One think i want to tell everybody is that you have to look for electrical Problems.
The first Thing you have to do is to dejam the wipers.

https://www.google.com/search?q=elektro ... B757%3B506

This is the easiest way.

Next dejam the pololu from the arduino. Herefor i build a 8 Port optocuppler Board. You see the Board and shematic in the rar file.

I think thats it. matracing done the experience at first i just followed and optimized something.

As i saw on this Video his seat was jumping arround so i used bigger arms to get the seat stable.

Any questions, ask me like i asked the DOF builder :-)
Attachments
optokoppler.rar
(30.47 KiB) Downloaded 692 times
Last edited by Monaco85 on Sat 29. Mar 2014, 16:27, edited 1 time in total.
Monaco85
X-Sim Supporter
 
Posts: 55
Joined: Wed 27. Nov 2013, 12:32
Has thanked: 2 times
Been thanked: 0 time

Re: 2DOF 24V Wiper Arduino Motomonster

Postby RacingMat » Wed 4. Dec 2013, 11:01

Hi Monaco85!

Good luck for your project!

Beware,as I told you, Motomonster is limited to 16V maximum (and not 41V)
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: AW: 2DOF 24V Wiper Arduino Motomonster

Postby Tombo » Wed 4. Dec 2013, 16:06

But you can take pololu vnh5019 Arduino shield. Little Bit of pinout changing and up to 24V. works with Same code

Gesendet von meinem GT-S5830 mit Tapatalk 2
Tombo
 
Posts: 97
Images: 36
Joined: Fri 22. Feb 2013, 20:52
Location: Germany
Has thanked: 6 times
Been thanked: 8 times

Re: 2DOF 24V Wiper Arduino Motomonster

Postby Monaco85 » Wed 4. Dec 2013, 22:06

RacingMat
Mhh i thought this Motoshield works between 16 and 24 Volt.
http://dx.com/p/monster-moto-shield-for ... red-161274
VNH2SP30 works up to 41V. Maybe i need to change the Mosfet.
Ich will see if its here.

EDIT: Ahh okay now i read the Datasheet. the VNH2SP30 will protect at 16V. Okay.
I will buy the popolu. I hope it will not go in Overvoltage at 24V.

Tombo
i thank you for your pn. If this shield doenst work i defnitly change to Pololu.
What do you mean with pinout changing. I thought popolu and motomonster has the same pinout.
Monaco85
X-Sim Supporter
 
Posts: 55
Joined: Wed 27. Nov 2013, 12:32
Has thanked: 2 times
Been thanked: 0 time

Re: AW: 2DOF 24V Wiper Arduino Motomonster

Postby Tombo » Thu 5. Dec 2013, 12:07

You can find the right Pins on pololu direkt in documentation. If you DON'T FIND them or have some Problems i will draw a Diagramm when im at Home. It is very simple.

Edit:
so now im at home you simple have to change this line of code
Code: Select all
int inApin[2] = {
  7, 4};  // INA: Clockwise input
int inBpin[2] = {
  8, 9}; // INB: Counter-clockwise input
int pwmpin[2] = {
  5, 6}; // PWM input
int cspin[2] = {
  2, 3}; // CS: Current sense ANALOG input
int enpin[2] = {
  0, 1}; // EN: Status of switches output (Analog pin)
int statpin = 13;  //not explained by Sparkfun


to this line
Code: Select all
int inApin[2] = {
  2, 7};  // INA: Clockwise input
int inBpin[2] = {
  4, 8}; // INB: Counter-clockwise input
int pwmpin[2] = {
  9, 10}; // PWM input
int cspin[2] = {
  2, 3}; // CS: Current sense ANALOG input
int enpin[2] = {
  0, 1}; // EN: Status of switches output (Analog pin)
int statpin = 13;  //not explained by Sparkfun


like you can see in this picture http://a.pololu-files.com/picture/0J3753.600.jpg?bba16ba4b29c7648cb955b527c8d34c0
Tombo
 
Posts: 97
Images: 36
Joined: Fri 22. Feb 2013, 20:52
Location: Germany
Has thanked: 6 times
Been thanked: 8 times

Re: 2DOF 24V Wiper Arduino Motomonster

Postby Monaco85 » Sun 8. Dec 2013, 18:04

Thank you Tombo. I will ask you if i get some problems with my software.

Today i started my Project.


25x25x2mm steel
Attachments
Monaco85
X-Sim Supporter
 
Posts: 55
Joined: Wed 27. Nov 2013, 12:32
Has thanked: 2 times
Been thanked: 0 time

Re: 2DOF 24V Wiper Arduino Motomonster

Postby vell001 » Tue 10. Dec 2013, 12:57

Hi, Monaco85

I will start my project soon, best wish to you... ;)
User avatar
vell001
 
Posts: 21
Joined: Sat 30. Nov 2013, 13:02
Has thanked: 4 times
Been thanked: 1 time

Re: 2DOF 24V Wiper Arduino Motomonster

Postby Monaco85 » Sat 22. Feb 2014, 01:05

I finished Hardware. Now i will start with arduino and wiperdriver.
Attachments
Monaco85
X-Sim Supporter
 
Posts: 55
Joined: Wed 27. Nov 2013, 12:32
Has thanked: 2 times
Been thanked: 0 time

Re: 2DOF 24V Wiper Arduino Motomonster

Postby RacingMat » Sat 22. Feb 2014, 09:48

hi Monaco85!

It looks good! Well done!

So you will use pololu in 24V? Eager to see what it gives 8-)
Mat
PS : Maybe you could change the topic's name? and remove motomonster
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: 2DOF 24V Wiper Arduino Motomonster

Postby Monaco85 » Sat 22. Feb 2014, 11:46

I have both here. Motomonster and Pololou. First i start with Motomonster and 12 V. If it works I will try with 24 V. The Pololou is only for Backup. I know that it will work with only 12 V
Monaco85
X-Sim Supporter
 
Posts: 55
Joined: Wed 27. Nov 2013, 12:32
Has thanked: 2 times
Been thanked: 0 time

Next

Return to Motion simulator Projects in progress

Who is online

Users browsing this forum: No registered users and 1 guest