View previous topic :: View next topic |
Author |
Message |
marcan Trick Member
Joined: 28 Jul 2005
|
5380. Posted: Fri Jun 23, 2006 8:00 am Post subject: |
|
|
The PS2 interface is really simple. It's basically a variation of SPI with a few more signals (a synchronous serial interface). You've got plenty of info on sites that show you how to interface a PS1 pad.
Summarising, it goes like this: all signals are open collector, pullups are provided at the console so you just have to read inputs and pull ouputs down when neccesary. You've got clock, command, and data, which are really clock, in, and out (as seen from the pad's point of view). Every 8 clock cycles a byte is read in from command and written to data. The pad must ONLY respond to the bus while SELECT is low (because the bus is shared between all memory cards and pads, or at least it was on the PS1, PS2 I think might not share them, but just pretend it does). PS2 sends a command, pad reports data (if any) on the successive bytes. After a correct byte the pad should bring the ACK line low for a couple cycles to acknowledge to the PS2 so it knows there is a pad connected. Signalling is 3.3V on the PS2 I believe, but since it's open collector you can use 5V logic. Just make sure 3.3V is above Vih for your MCU (it usually is, since most are TTL-CMOS compatible with a 2V Vih), and remember the pad port only provides 3.3V power supply, plus 9V-ish for the rumble motors (I use the 9V, stabilized down to 5V for my PIC, and ignore the 3.3V).
USB is waaaay more complex, you need a dedicated USB interfacing MCU (unless you're prepared to bitbang USB, which I think is crazy, but some have done it with 50Mhz MCUs and such. I wouldn't want to try it, hell, I even use the PIC's SPI port for the PS2 interface which IS fairly bitbangable). Anyway, I've got code for a USB HID interface for PIC18F MCUs (in assembler). It would be trivial to adapt it for 9 buttons (or, heck, even to emulate a keyboard or anything else. Most of the code is boilerplate USB handling stuff, all you need to do is edit the descriptors to describe whatever HID device you want and pump packets out the endpoint). Of course, this isn't right now "burn the HEX and forget", since you do have to change a few things, but I assume since you've had some experience with microcontrollers it shouldn't be a big deal.
BTW, right now I have PS2 code for the PIC16F87x, and USB code for the 18F4550. I'll add PS2 to the 4550 soon, I just haven't gotten around to it. |
|
Back to top |
|
|
sheep Trick Member
Joined: 12 Jul 2006 Location: Victoria, BC |
5381. Posted: Wed Jul 12, 2006 10:06 pm Post subject: |
|
|
So I'm going to start building a pad in athe next few days, based off DDRHomepad's design, the only real difference being that I need it connected to the computer, not a PS1. So would it be easier to use a USB gamepad, or usea PS1 controller and a PS -> USB converter? I've heard the converters cause some lag on the arrows, but I wouldn't have any idea on how to solder a USB gamepad. Suggestions?
Thanks. |
|
Back to top |
|
|
geckoinc99 Trick Member
Joined: 11 Feb 2005 Location: Chattanooga, TN |
5382. Posted: Thu Jul 13, 2006 7:25 pm Post subject: |
|
|
Borrow a controller board from a softpad that's made for USB. Then you just connect to the usually large contacts on the board used by the soft pad. That's how a lot of hardpads were made here. It's probably the easiest solution.
David _________________
Life is very different 3000 feet above the earth with only a wing to hold you up....
Can't wait to be there again. Wanna join me? Visit http://www.hanglide.com
|
|
Back to top |
|
|
sheep Trick Member
Joined: 12 Jul 2006 Location: Victoria, BC |
5383. Posted: Fri Jul 14, 2006 12:58 pm Post subject: |
|
|
Hm, thanks. Will any cheap softpad do? |
|
Back to top |
|
|
Jebus92 Basic Member
Joined: 15 Jul 2006 Location: LA |
|
Back to top |
|
|
marcan Trick Member
Joined: 28 Jul 2005
|
5385. Posted: Sun Jul 16, 2006 1:36 am Post subject: |
|
|
Considering I'm a 15 year old... yeah, you can, if you put some effort into it, and you've got someone else to drive you to Home Depot. |
|
Back to top |
|
|
Aflac Trick Member
Joined: 28 Mar 2005
|
5386. Posted: Tue Jul 18, 2006 6:26 am Post subject: |
|
|
Hey guys, I'm back (for those of you who remember me)! It's been a very very long time since I've done anything DDR-related.
Jebus92 - yes, it's very possible - as long as you can get access to power tools, are careful, and have access to Home Depot and money . I built my pad when I was 15.
hmm... now that I think about it... why did I come back here again? I know I had some reason......
Oh, I have a question. Are there any designs/is there a way to make an arrow panel that doesn't flex? I'm planning on building another pad to complement the one I already have, but the costs are a bit prohibitive - lexan is expensive, and plexiglass has already broken on me... I was thinking maybe of using some 1/4" or possibly even 1/8" plywood or something. I need to keep the cost of this new pad low, preferably below $100. |
|
Back to top |
|
|
geckoinc99 Trick Member
Joined: 11 Feb 2005 Location: Chattanooga, TN |
5387. Posted: Wed Jul 19, 2006 11:04 am Post subject: |
|
|
Aflac,
To keep the flex down on your pad so the panel doesn't crack (even with plexiglass), use a center support. Here's a link to a picture of mine:
http://www.geocities.com/geckoinc99/DDRpadpanel.jpg
I've had as much as 400 pounds on one of my squares and they have not cracked yet. Plexiglass will only crack if it flexes too much. This will stop it because then it's supported on all sides. I'm assuming you did Riptide's design, because the others have a completely flat bottom and shouldn't be able to flex. See if that helps.
David _________________
Life is very different 3000 feet above the earth with only a wing to hold you up....
Can't wait to be there again. Wanna join me? Visit http://www.hanglide.com
|
|
Back to top |
|
|
marcan Trick Member
Joined: 28 Jul 2005
|
5388. Posted: Wed Jul 19, 2006 4:10 pm Post subject: |
|
|
Pad lighting update!
Click for larger image
Beta 1 version of arrow lighting Works better than I thought it would! Contrast is exaggerated by the camera - you can actually see the graphic very clearly right next to the lamp, it's much more even than it looks, and contrast with the masked semicircle is not as much.
Design has the following layers:
- White cardboard for support
- Aluminum foil to reflect stray light upwards
- Plexiglass with lighted areas painted white (everything except semicircle and edges), on the bottom side to reflect light upward from inside the plexi, with a CCFL on the edge,
- Cardboard mask to remove extra light and improve contrast
- Graphic laser-printed onto semi-transparent polyester
- Thinner Lexan top cover |
|
Back to top |
|
|
markielowski Basic Member
Joined: 03 Oct 2003 Location: conneaut ohio |
5389. Posted: Wed Jul 19, 2006 4:48 pm Post subject: stickers? |
|
|
I am looking for the sticker set that goes on the sides of the real arcade dance pads. Does anyone know where i can get them for my homebuilt pad? |
|
Back to top |
|
|
ksuquix Basic Member
Joined: 31 May 2006
|
5390. Posted: Thu Jul 20, 2006 6:17 am Post subject: |
|
|
Aflac wrote: |
Oh, I have a question. Are there any designs/is there a way to make an arrow panel that doesn't flex? I'm planning on building another pad to complement the one I already have, but the costs are a bit prohibitive - lexan is expensive, and plexiglass has already broken on me... I was thinking maybe of using some 1/4" or possibly even 1/8" plywood or something. I need to keep the cost of this new pad low, preferably below $100. |
I'm currently working on my own design that's a wood design (although it has been so hot lately production is on hold).
Instead of using plexi and flexing, I have a wooden support structure that an electrical bus runs along the top of, while the buttons overhang it.
If you are interested, here is my preproduction sketch:
http://toysmakeuspowerful.com/~quixote/ddrboard/ddrboard.FCW
Here is a link to the viewer you will need to look at my sketch:
http://www.profantasy.com/library/dpv.asp
Note that the one I'm making has 8 dance buttons, just like the soft pads I have. This was the main reason I didn't use the other designs myself.
Cost-wise, it would be just over 1 sheet of plywood (I used 1/2" $20-$25), plus some 1/8" hardboard ($6), deck screws ($5 for a pound of them), galvanized flashing ($20), I used springs for my springiness: ($5 for 4 buttons, $10 for 8 buttons).
So, if you have to buy everything, even with misc costs, you should be able to do it under $75. As one of my hobbies is woodworking, I mostly did it with scraps for a cost around $30 for me.
The wood shaping is a little more demanding. I would highly recommend access to a table saw and router table for ripping all the various strips that are necessary, then making lap joints (which is where a lot of the strength of the frame comes from). If you don't have a table saw, a circular saw is ok, and a jigsaw is a pain but works. If you don't have a router table, you can use a router, radial arm saw, table saw (pref with dado blade), circular saw, or just a rubber mallet and a wood chisel.
Anyway, the state of my board right now is that I have the 4 main buttons working, and it works pretty well. Once I get all the buttons working, I was going to laminate a layer of walnut and maple to the tops of the buttons, round it out really well to make no sharp edges, then put a good coat of polyurethane on to make a nice shiny hardwood board.
At some point, I planned on getting full plans up, with various woodworking tips and tricks that apply, but if you want to start early, you can email me questions. _________________
|
|
Back to top |
|
|
Orion33428 Basic Member
Joined: 19 Jul 2006
|
5391. Posted: Fri Jul 21, 2006 4:35 pm Post subject: |
|
|
Sorry if this has been asked before (which it probably has >.<) but Im not sure which is the best pad design for me to build. I like stolis design, but his instructions are a little hard to follow. Now ddrhomepad's design seems much easier to build, but it doesnt give a material list..
So I guess my question is really what materials would I need for ddrhomepads design?
edit:
nevermind, found the list lol x.x
But I have another question, whats better to solder, the ps1 controler or the cheap soft ddr pads? |
|
Back to top |
|
|
slvrshdw Trick Member
Joined: 05 Jan 2005
|
5392. Posted: Fri Jul 21, 2006 7:35 pm Post subject: |
|
|
soft pad controllers FTW
ya, they are way easier to solder, just use them; its worth it _________________
|
|
Back to top |
|
|
kagelump Trick Member
Joined: 25 Apr 2005
|
5393. Posted: Tue Jul 25, 2006 12:14 am Post subject: |
|
|
I'm kinda trying to build a ddr selection box (basically, a terterbox), but one thing has stumpted me
how do i light up the illuminating pushbuttons?
WIP pictures:
picture1
picture2
picture3
basically, i'm thinking about sticking in 12v (that seems to be the voltage rating of the pushbutton lightbulb) of batteries into the box, so does anyone (probably with some knowledge of electrical stuff) have any idea how to make the buttons light?
right now, i'm just using a simple setup of soldering the pushbuttons to the gutted usb gamepad (with the barrier strip in between them)
thanks
edit:
just to clear things up, what i want is that the button lights up only when its pushed.
so is there a way to make it so that when electricity from one circuit passes through something, it switchs on another circuit?
kinda like a transistor, except i would think it has 4 pins =/
edit2:
okay, i just tried out using a transistor
the light bulb lighted, which was good
but i think i also fried my usb joystick controller, which is bad
now i need to go make another one ~_~ |
|
Back to top |
|
|
zombiejesus9001 Trick Member
Joined: 05 Apr 2004
|
5394. Posted: Wed Jul 26, 2006 9:01 am Post subject: |
|
|
I wanted to work on a home pad and I like what the person did with the washers and screw as the switch and to support the panel was bits of mouse pad. I wanted to do that idea but instead of using washers and screws I wanted to try something like cherry switchs you know the ones used in pop'n controllers I think. Has anyone tried using cherry switch's for a ddr pad is it even possible? Cause I was thinkin of using it as the switch and using cut up mouse pads to support the panel. |
|
Back to top |
|
|
slvrshdw Trick Member
Joined: 05 Jan 2005
|
5395. Posted: Wed Jul 26, 2006 6:40 pm Post subject: |
|
|
i think those types of switches break too easily with the pounding of DDR, which is why people use the screw/washer/sheet metal design _________________
|
|
Back to top |
|
|
Mix Ma$ta' Trick Member
Joined: 14 Jan 2003 Location: Baltimore |
5396. Posted: Sat Jul 29, 2006 9:17 am Post subject: |
|
|
You aren't going to be able to light those 12V buttons unless you diode the circuit first. The problem is that your USB controller isn't running on 12V, so whats effectively happening is that the 12V power source is bleeding into the controller and effectively, going into your controller. Also, be careful that you didn't do anything to your USB port or your computer/xbox/whatever you're working with here. Check out Ransai's diagram on how to wire a Pop'n Music controller for lights. It has all the stuff you'll need material wise and such, you can just use that diagram on how to light things while blocking the power from the actual board. |
|
Back to top |
|
|
marcan Trick Member
Joined: 28 Jul 2005
|
5397. Posted: Sun Jul 30, 2006 3:33 pm Post subject: |
|
|
Look back a few pages for my lighting circuit. Summarising, wire the buttons to light up the lights, with the buttons high-side (i.e. +12V to button, button to lamp, lamp to GND). Then take the Button to Lamp connection, and wire a 10K resistor to it and then connect that to the base of a small NPN transistor (BC547 works, or whatever cheap NPN type you can find). Transistor emitter goes to GND, and transistor collector to the USB pad. Voila, you've got lighting.
Alternatively you could probably just wire the button low-side and use a resistor and a zener to clamp the voltage down to something the USB controller can manage, but the transistor route is the safest. |
|
Back to top |
|
|
Aflac Trick Member
Joined: 28 Mar 2005
|
5398. Posted: Mon Jul 31, 2006 7:30 am Post subject: |
|
|
geckoinc99 wrote: | Aflac,
To keep the flex down on your pad so the panel doesn't crack (even with plexiglass), use a center support. Here's a link to a picture of mine:
http://www.geocities.com/geckoinc99/DDRpadpanel.jpg
I've had as much as 400 pounds on one of my squares and they have not cracked yet. Plexiglass will only crack if it flexes too much. This will stop it because then it's supported on all sides. I'm assuming you did Riptide's design, because the others have a completely flat bottom and shouldn't be able to flex. See if that helps.
David |
Actually, I'm using Stoli's design... the thing with my arrow panels is, they don't flex very much (at most, 1.5cm). I probably did something wrong with the screws that are keeping my arrow panels in, because within 6 months of having my pad, almost all of my upper OPTIX (Home Depot's brand of plexiglass) panels had a tiny crack next to at least one of the four screws.
Hmm... now that I actually think about my design... I have fairly round-headed screws sitting on top of the plexiglass panels, and I'm guessing this is what was causing the cracks. I had just thought of counter-sinking the plexiglass panels so that the screw heads don't mess with the plexiglass as much, but then I realized it might make the plexiglass weaker.
What I meant by "panels that don't flex" is panels that don't bend at ALL - they either move up and down as a whole, flat sheet, or they move so little that it's difficult to see the panel move. I recall whoever was talking about using parts from a bathroom scale as switches had little to no movement... don't remember who it was, though. Possibly marcan? |
|
Back to top |
|
|
marcan Trick Member
Joined: 28 Jul 2005
|
5399. Posted: Mon Jul 31, 2006 12:16 pm Post subject: |
|
|
That would be me . I used strain gages from a bathroom scale, which actually measure how much you're pressing. This does require quite a bit more electronics than your usual switch though, since you need amplifiers and some sort of adjustable comparator to generate an on/off signal from the pressure measurement.
|
|
Back to top |
|
|
|
|
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
|
Powered by phpBB 2 © 2001, 2002 phpBB Group
|