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
Danf



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

PostPosted: Thu Sep 01, 2011 1:22 am    Post subject:  Reply with quote

here is a wire diagram for the lynxmotion connector that I think you said you have


for others using a connector taken from some other hardware  this is the plug from the controller



connections are:
ground to ground
+5vdc or red power 3.3v to 3.3v
clock (CLK) to pin13
command (CMD) to pin11
attention (ATT) to pin10
data (DAT) to pin12

that's it. the others aren't used. Load the example that came with the libary and open the serial monitor, make sure its set to 57600 and start pressing buttons. you should see messages in the serial monitor.
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: Thu Sep 01, 2011 7:19 pm    Post subject: Reply with quote

Thanks Dan,
I now have my Ps2 talking to the Arduino.
I also had to reconfigure the Lynxmotion cable to match the pins.
Here's a new diagram for the Padawan Cable.
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 Sep 01, 2011 7:24 pm    Post subject: Reply with quote

Just for fun, I tried the Padawan system on the Arduino Mini Pro 5v to see if it would work like the Uno and it does.
The pin configuration is the same and for powering the Ps2 use VCC and the ground next to it..
I bought the Pro for TeeCee's lights.

Dan,
Do you have a update for your code to work with the lights?
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: Fri Sep 02, 2011 12:17 am    Post subject: Reply with quote

For those that haven't bought some of the stuff - it looks like Lynxmotion does a ~ 15% discount over Halloween each year (anniversary sale).

I'll just put a reminder up to pick the stuff I need up then.  Worth saving $20 or so on what I need to order.
_________________
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: Fri Sep 02, 2011 8:55 pm    Post subject: Reply with quote

Dan,
I hope I'm not asking to many questions but I'm trying to get mine working. If I become a pain please let me know.

I have the Arduino and the Mp3 connected and working, Kinda.
I put in a song to test and I noticed I can't stop the song until it has played the entire song.
Does this happen to you?
I printed your code and did not see anything to tell the Mp3 to stop playing.
Is there away to code a stop play button?
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: Sat Sep 03, 2011 12:34 am    Post subject: Reply with quote

Brian- thanks for the heads up on the sale Very Happy

Calvin-right now I don't have a stop button in the code. If you trigger another sound the first will stop and the new one will play so if I want to stop a song I just hit a beep. It should be easy enough to put in a stop though. Let me know if you want me to do that and if so what button or combo you think would be good.

My latest codes can be downloaded here

Download body_r2.pde from Host-A

Download dome.pde from Host-A

And here is a zip file including body, dome, and all the sounds I have on my sd card in order and named to work with the code

Download padawan.zip from Host-A
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: Sat Sep 03, 2011 12:49 am    Post subject: Reply with quote

Hum,
I have only 2 sounds on the card and I don't have it working correctly yet.
If a new sound will stop the playing sound that's perfect.
I'll download your new code and the sounds and try it again.

Happy Grampa day,
I didn't know, I must have missed a post.
Brenda tuned me in.
I'm so happy for you and your family!!!'!!!!!!
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: Sat Sep 03, 2011 1:01 am    Post subject: Reply with quote

oops. I forgot to mention for the dome arduino you need the following library's

ledcontroll  (for Teeces logics)

EasyTransfer  (from Bill Porter-http://www.billporter.info/easytransfer-arduino-library/)

for the body arduino

ps2x (from Bill Porter-http://www.billporter.info/playst...-controller-arduino-library-v1-0/)

SoftEasyTransfer (included with EasyTrasfer above)

MP3 Trigger (https://github.com/sansumbrella/MP3Trigger-for-Arduino)

NewSoftSerial (http://arduiniana.org/libraries/newsoftserial/)

You need to run a wire from  pin 8 on the body arduino to pin 0 on the dome arduino (I do it through the 1/4" phono plug)
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: Sat Sep 03, 2011 1:10 am    Post subject: Reply with quote

Wow,
That's allot of stuff.
But I'll figure it out.
We need a Dans Padawan class setup.
Hahahahahaaa
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: Tue Sep 06, 2011 2:25 am    Post subject: Reply with quote

Here is my current hardware setup. The dome controller servo has a separate 5v reg power. will probably be replaced with one of the 3amp ubec's from eBay.



Click to see full size image



Last edited by Danf on Mon Sep 26, 2011 1:02 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
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 6 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