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
Danf



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

PostPosted: Sun Aug 21, 2011 6:13 pm    Post subject:  Reply with quote

You can get the mp3 trigger library here. https://github.com/sansumbrella/MP3Trigger-for-Arduino
and a little tutorial about it here. http://interaction.dundee.ac.uk/~...-mp3-trigger-module-with-arduino/
This is for the mp3 trigger v2 from sparkfun http://www.sparkfun.com/products/9715

The tutorial says you ave to name your files TRACK001.MP3, TRACK014.MP3, TRACK176.MP3 etc, and that's true for using the triggers or the trigger command in serial but for the play command in serial the name doesn't matter.
The command - trigger.play(5) plays the 5th file.
I took I think 52 sounds from the Jedi mp3's and named the first 8 that I wanted to play specifically 01laugh.mp3,  05leia.mp3 etc, 01 thru 08  then the 4 songs are 09 thru 12 and the rest are 13 thru 52  in 4 categories.
The servo library comes with arduino so there's no need to download anything for that.
Back to top
View user's profile Send private message Send e-mail
Danf



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

PostPosted: Sun Aug 21, 2011 6:20 pm    Post subject: Reply with quote

I sent Bill Porter a link to my video and he put it in the project showcase on his sight.
http://www.billporter.info/playst...-controller-arduino-library-v1-0/
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 7:49 pm    Post subject: Reply with quote

Thanks Dan,
I was looking at the pic you posted and was trying to see how you would power servos.
I assume the servos would need their own power supply and they would just use the signal wire from the ardiuno.
And the signal wire to the Sabertooth would be all you need to power the feet and dome.

I hope that guy does post your video, You really have something to be proud of and you've done a lot of work on this project.

As soon as the board arrives, I will see if I can help.
I'm not very good.
Blake is working on my Arc32 as I can't code it at all.
It would be cool if Blake could tie this board into your setup and it could power and control the servo hookups.
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: Mon Aug 22, 2011 2:53 am    Post subject: Reply with quote

Wow, I made it to Hackaday!
http://hackaday.com/2011/08/21/hackaday-links-august-21-2011/
Bill who wrote the Ps2 library submitted it.
Calvin, I did use another LM6805 voltage reg for the servo controlling my dome motor since they can only handle about one amp. They do have to share a common ground though with the arduino. I've benn reading a bit about ubec's which are supposed to be a lot more efficient  and can handle more amps. I've seen some on ebay for under $10 that are up to 5 amps. I wonder if Todd is familiar with these and could chime in.
also, here is a good tutorial on building your own arduino
http://www.instructables.com/id/P...duino-Arduino-compatible-circuit/
Back to top
View user's profile Send private message Send e-mail
wheels



Joined: 17 Jun 2011
Posts: 29

PostPosted: Mon Aug 22, 2011 10:05 am    Post subject: Reply with quote

Having seen this in person, I have decided to go this route for sounds and controls.
Way to go Dan!
_________________
--Randy
Member of the Winning Droid Hunt Teams from D*C '05, '06, '07, '08 and CIV
Back to top
View user's profile Send private message
admin
Site Admin


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

PostPosted: Mon Aug 22, 2011 4:27 pm    Post subject: Reply with quote

Dan,
I found this one on eBay
http://www.ebay.com/itm/DCDC-Powe...hash=item3cba3cfc9a#ht_3225wt_922

Down further they list more with higher amps.
I was thinking about building a 5v rail like I use to make for a computer,
But I'm not sure about how much electrical noise it would generate.

I also found this here for connecting wiring via screw terminals
http://store.fungizmos.com/index....=04fde8802d03ffd6c9c172d638149191

Congrads on making it to Hackaday !!!!
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: Wed Aug 24, 2011 12:44 am    Post subject: Reply with quote

Dan,
How did you connect the Mp3 to the Arduino?
Calvin
Opposes,
I see it in the tutorial
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: Wed Aug 24, 2011 2:07 am    Post subject: Reply with quote

Two things that drove me nuts on the mp3 trigger - to use the serial you cant use the power jack at the bottom of the board, you have to power it with 5 v to the pins by the serial pin.
In the pic its the row of holes on the right.

what took me forever to figure out is there is a tiny switch at the bottom  of the board in the middle that has to be switched to usb to use that power.

also on the volume control - 0 is full volume 255 is no volume -
Back to top
View user's profile Send private message Send e-mail
Danf



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

PostPosted: Wed Aug 24, 2011 2:28 am    Post subject: Reply with quote

I was looking at these ubec's
http://www.ebay.com/itm/Corona-CB...cessories&hash=item1c1724e98b
http://www.ebay.com/itm/Hobbywing...cessories&hash=item415be2ee73
I was thinking the 5 amp to allow for more servos later on but now I'm thinking the 3amp should be more than I need for now for less than half the price, and I could always add another one later.
I probably need one for the dome as well as the body.
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: Wed Aug 24, 2011 7:30 pm    Post subject: Reply with quote

Dan,
1st I want to tell you how PROUD I am of your work.
I hope you don't mind but I spoke with John about the dome light system
and your Padawan System.
He said he would be happy and is excited about your work and is willing to help tying in the lights.

I hope I did not overstep my bounds speaking to him about you work,
But you 2 have come up with the best 2 systems I've seen in all my years.
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 4 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