Southern R2 Builders Group Forum Index Southern R2 Builders Group
A Place for Star Wars Fans
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   Join! (free) Join! (free)  
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PS2 Controller
Page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
 
Post new topic   Reply to topic    Southern R2 Builders Group Forum Index -> Electronics
View previous topic :: View next topic  
Author Message
Please Register and Login to this forum to stop seeing this advertising.






Posted:     Post subject:

Back to top
admin
Site Admin


Joined: 23 Aug 2010
Posts: 330
Location: Jacksonville, Florida

PostPosted: Thu Aug 18, 2011 11:55 am    Post subject:  Reply with quote

Dan,
Could you post a pic of how you connected the Ps2 receiver cable to the board?
I'm going to order the board tonight and start building Brenda a system for her new droid. She has the teecee system on order already.
I have a Ps2 receiver cord already and I think it will work.
Calvin
Back to top
View user's profile Send private message Send e-mail Visit poster's website
admin
Site Admin


Joined: 23 Aug 2010
Posts: 330
Location: Jacksonville, Florida

PostPosted: Thu Aug 18, 2011 2:04 pm    Post subject: Reply with quote

Have you tried to see if the code has a fail safe?
I'm not sure but this line of code could be it.

if(error == 1) //skip loop if no controller found
 return;
I'm so overjoyed about this setup.
AWESOME WORK!!!!!!!!!!!!!!!!!!!!!!!!!!

Calvin
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Blsith



Joined: 24 Aug 2010
Posts: 191

PostPosted: Thu Aug 18, 2011 4:13 pm    Post subject: Reply with quote

admin wrote:
Do you think this setup could also control Teecee's light system.
It also uses a Arduino.
Calvin


Once I get my logics in and built I'm going to play around with doing this.  Specifically I've been looking at it for the JEDI Control, but using I2C it should be nothing to make the arduino work.  What I may do with Teeces is work out the I2C commands for each action, and then make an intermediary board that all it does is convert the JSL code from the JEDI into the standard I2C for everyone.
_________________
Brian Lube - R4-P17 -  Member of the Southern R2 Builders  -  [URL=http://r4-p17.blogspot.com][/URL]
Back to top
View user's profile Send private message AIM Address
admin
Site Admin


Joined: 23 Aug 2010
Posts: 330
Location: Jacksonville, Florida

PostPosted: Thu Aug 18, 2011 6:47 pm    Post subject: Reply with quote

I downloaded the Ardiuno software and it's installed.
I copied the 1st part of your code and have it on the 1st Tab of the editor.
Do I need to open a 2nd Tab and copy the PSX2 code to this tab?
I guess this is the code library?
Calvin
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Danf



Joined: 25 Aug 2010
Posts: 80
Location: Brandon, Fl

PostPosted: Thu Aug 18, 2011 11:35 pm    Post subject: Reply with quote

Calvin,   if you haven't already, download the Arduino PS2 Controller Library V1.7 from this site.
http://www.billporter.info/playst...-controller-arduino-library-v1-0/
unzip it and put the whole folder into the libraries folder in the arduino folder. Then move the PS2X_Example folder into the main arduino folder.  Now if you open the example or either of my sketches it should automatically include the library. It doesn't show the library but if you click on  verify it shouldn't give you any errors.

From other threads I've read on c6c and Ps2 failsafe may depend on the controller. I can tell you with my madcatz mini that says 2.4Ghz on it if I turn off the controller while moving or turning the dome it stops. On my test bed I had it hooked up to 3 servos and if I turned off the controller they would all go to center. I haven't been able to check what happens if I get to far away because I tried walking out of the store and as far as I could go and still see him thru the window (about 60-70 feet) and never lost signal! Plastic Droid, don't know how far you could go in an alum one.
Back to top
View user's profile Send private message Send e-mail
admin
Site Admin


Joined: 23 Aug 2010
Posts: 330
Location: Jacksonville, Florida

PostPosted: Fri Aug 19, 2011 12:00 am    Post subject: Reply with quote

I'll give it a try.
If your turning off the remote and the dome stopped, That's perfect.
The code is recognizing the loss of signal and that is the same as a failsafe.
Great, I was worried about that.
I can't wait till the board arrives to start learning this setup.
Calvin
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Danf



Joined: 25 Aug 2010
Posts: 80
Location: Brandon, Fl

PostPosted: Fri Aug 19, 2011 12:02 am    Post subject: Reply with quote

Here is a pic of Randy's test. you ca just see the Ps2 socket on the left. He had a bunch of telephone wire that we soldered to the back of the pins and it works great for sicking in the arduino pins.

Click to see full size image
Back to top
View user's profile Send private message Send e-mail
admin
Site Admin


Joined: 23 Aug 2010
Posts: 330
Location: Jacksonville, Florida

PostPosted: Fri Aug 19, 2011 12:19 am    Post subject: Reply with quote

I have this remote:
http://www.lynxmotion.com/p-552-ps2-robot-controller.aspx

And this line:
http://www.lynxmotion.com/p-73-ps2-controller-cable.aspx

I hope the remote will work.
Calvin
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Danf



Joined: 25 Aug 2010
Posts: 80
Location: Brandon, Fl

PostPosted: Fri Aug 19, 2011 1:19 am    Post subject: Reply with quote

Looks good. and I think that is the connector that he recommends in his site.
Back to top
View user's profile Send private message Send e-mail
admin
Site Admin


Joined: 23 Aug 2010
Posts: 330
Location: Jacksonville, Florida

PostPosted: Sun Aug 21, 2011 2:08 am    Post subject: Reply with quote

Dan,
Do you have the library file for the Mp3Trigger?
I was compiling your code and need this:
#include <MP3Trigger.h>
Do you think I will need the Servo file?
#include <Servo.h>

Your 1st code you posted compiled without any problems,
But when I did the Mp3 addition it asked for the Lib.

Calvin

Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Southern R2 Builders Group Forum Index -> Electronics All times are GMT
Page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
Page 3 of 9

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Card File  Gallery  Forum Archive
Powered by phpBB © 2001, 2002 phpBB Group
BlackAndWhite style created by feather inju
Create your own free forum | Buy a domain to use with your forum