View previous topic :: View next topic |
Author |
Message |
MinN_Limited Trick Member
Joined: 28 Aug 2005 Location: Cambridge, Ontario, Canada |
5320. Posted: Sat May 27, 2006 8:52 pm Post subject: |
|
|
vesper wrote: | Are the four corner brackets supposted to keep everything from falling out, or am I missing something? |
I believe so
@Scorpion: Do you know how the usb port can be overclocked to run at 1000Hz? I'd like to have mine running as accurately as possible |
|
Back to top |
|
|
Pyro.699 Basic Member
Joined: 08 Dec 2005
|
5321. Posted: Sun May 28, 2006 10:01 am Post subject: |
|
|
Hello,
I have spent the last 4 nights experimenting with making my own DDR pad!
Countless wodoen modlles have been made, attached to led lights.
Now, i have the complete clockwork down to one thing. I want my pad to be strictly USB 2.0.
QUESTION:
How do i mkae my computer reconize the signals coming out of my pad!
(please dont say vga programming, i dont want to get my books out! lol)
Any really simple way?
Thanks
~Cody Woolaver |
|
Back to top |
|
|
marcan Trick Member
Joined: 28 Jul 2005
|
5322. Posted: Sun May 28, 2006 2:56 pm Post subject: |
|
|
The simple way: buy a digital USB gamepad and connect the pads to it. You usually need switch outputs with a common ground and NO current on open switch (depends on the IC on the gamepad you use, but having some voltage in there while the switches are open is unsafe if you don't know the specs). Refer a few pages back if you use lights for a simple and safe circuit to use that I posted (diagram included). Summary: you need an NPN transistor for each switch - any common signal type is fine, no need for power stuff. e.g. BC547 is OK. light (-) to power supply (-) and transistor emitter, light (+) to the specific switch wire and to a 10Kohm resistor which is itself connected to transistor base, the common wire for all switches to power supply (+). Transistor Collector to the switch on the USB gamepad, and make sure you tie the gamepad's ground and your pad's ground together.
The hard (but very powerful and awesome way), which is what I used: build a digital USB interface circuit yourself with a USB connection and a PSX pad connection, with support for PC USB and XBox pad USB (and PSX pads via PSX port), with programmable lighting support and an LCD screen for configuration. Nice thing is you can set the lights to come on when you step, OR when you are SUPPOSED to step (stepmania has an option for that). Of course, you need at least some basic knowledge of electronics to get this to work, and programming skills for the microcontroller (but now that I've done all the work I suppose you can skip that )
Been messing around with lighting. Current prototype, which will probably turn into the final thing and which I like a lot from my testing, looks like this: medium-thickness plexi with three edges painted solid white. Fourth edge has a CCFL lamp running alongside it. Bottom is painted thin white, and topped off with aluminum foil to catch stray light. Aluminum foil around lamp reflects all light into the acrylic. Theory is: light enters the acrylic and bounces around between the top and bottom due to total internal reflection (i.e. like an optical fiber). Edges reflect light back in (possible idea: replace white paint with aluminum foil and test). Paint on bottom inhibits reflection and catches light, diffusing it upward onto the arrow graphic which sits on top. A piece of thin Lexan (which is a very poor transmitter of light BTW - plain acrylic is way better which is why I used it underneath) is placed on top to protect the arrow graphic.
It looks like this (excluding the arrow graphic and top lexan):
The lines represent different paths the light could take. Grey is aluminum foil, white is paint, the circle is the CCFL tube. Paint is present on the edges near and far away from the "camera" in that view, but I don't show it since it's a cut-through view.
Light reflects off the sides of the acrylic only if it comes in at an oblique angle - that's why you need paint on the sides, and why the light from the bottom shines through (Indeed why you can see through acrylic at all - light has to already be INSIDE the acrylic and entering at a shallow angle to be reflected off. This is why you can't see outside of the acrylic if you look into it from the edges, and why if you shine a light into an edge all the other edges light up)
This is the lighting method that laptop TFT screens use too.
Of course the light is brighter near the lamp. In fact it is also brighter on the other side due to the reflection from the edge - the middle is darkest (but still reasonably lighted). I'm considering creating a pattern of paint on the bottom to compensate. Where there is no paint the light doesn't come out, so the light would be better distributed. Also I will not paint the bottom where my arrow graphic has large areas of black - it would waste the light.
Photos to come! It looks real neat. I think this CCFL tube is also not that bright - others I've seen are too bright to look at and this one definitely isn't. I'll be ordering a set of tubes soon, and see if I can build a powerful inverter to run them (I'll need four). |
|
Back to top |
|
|
marcan Trick Member
Joined: 28 Jul 2005
|
5323. Posted: Sun May 28, 2006 8:11 pm Post subject: |
|
|
I made a neat block diagram of my pad circuitry. Completion of the pad (with basic firmware, which will improve over time) is in sight
Click image for a larger version
I'll set up a page with information and photos of the build process soon. Camera being fussy about the connection to download the photos now :\ |
|
Back to top |
|
|
HitokiriX Trick Member
Joined: 27 Mar 2004 Location: Berwyn, PA |
5324. Posted: Mon May 29, 2006 8:05 am Post subject: |
|
|
Now THAT my friends could possibly be the most sophisticated DDR pad ever created up to date. It's probably just me but I don't understand most of it, especially the four arrow panels in a row with lighting to the left of it. Chances are I'm just reading the diagram wrong or something, but w/e. I'd never be able to build a monster like that anyway. If you could build those and sell em....what a killing that would be. |
|
Back to top |
|
|
marcan Trick Member
Joined: 28 Jul 2005
|
5325. Posted: Mon May 29, 2006 9:01 am Post subject: |
|
|
Hey, thanks! The diagram just looks all hi-tech and all, but it's really not *that* sophisticated. It's not to scale or a diagram of the real thing, just a layout of how the things plug into each other (except power, which goes just about everywhere and which I omitted). The pad looks just like any homemade pad, except it's quite thin (somewhere around an inch), and it has a 15-pin plug on top, four control pushbuttons, and light tubes around the center square (one for each arrow panel). The control box is just a dull grey box with an LCD display and buttons, and lots of wires inside. |
|
Back to top |
|
|
Pyro.699 Basic Member
Joined: 08 Dec 2005
|
5326. Posted: Mon May 29, 2006 10:58 am Post subject: |
|
|
Wow, that did make sence, nice diagram!
Umm, do you think you can explain each part abit more? like where each individual whire goes?
Like, what cards do we need? and where do we plug the four whires from the usb to the card?
My most confusing question, is where do i get this card? and how much?
Thanks
~Cody |
|
Back to top |
|
|
marcan Trick Member
Joined: 28 Jul 2005
|
5327. Posted: Tue May 30, 2006 6:41 am Post subject: |
|
|
All boards and electronics are homemade, except the LCD module of course (that is just a standard Hitachi-compatible character LCD, 4x20 chars). The main control board is actually quite simple, since the microcontroller does most of the work. It's just the microcontroller, a lot of connectors, a bunch of resistors, and a few other things. You could build it yourself onto a prototyping board if you wanted, although I made my own custom PCB. I'll upload the layouts. It's not hard to make your own, it works kinda like home-made B/W photo developing, except instead of a photo you get a board. All electronics are thru-hole and the board is single sided, so it's just about as simple as you can get.
Most of this stuff is modular - if you just want to build a controller board for a regular switch-based pad with light support and only running from USB it's much simpler - only the microcontroller and a few extra things, and you don't need amp boards or anything else. If you just want a digital pad with only PS2 support you can even do with a much simpler (and cheaper) microcontroller, and almost no extra components.
Anyway, camera's behaving now here's a bunch of photos. I've removed many of the during construction ones - I'll have all of them once I finish on a webpage detailing the process.
Click for larger image
An amplifier board
Click for larger image
The top left and top right panels, with holes for the control buttons
Click for larger image
The hole for the data connector to the pad (on the top left edge of the base)
Click for larger image
Soldered cables to the connector, and screwed into place
Click for larger image
Connector for top-left control buttons
Click for larger image
Top-right control buttons and connector
Click for larger image
Routing cables underneath top-left, and setting up amp board in place
Click for larger image
Temporary test rig, with a power supply. Note I added a power LED between the top left control buttons
Click for larger image
We've got power!
Click for larger image
Now that I've soldered the other end of the cable, how about testing it through the control box electronics?
Click for larger image
Yep, it works! (read the text in the LCD display - and that's without the nifty animation!)
Click for larger image
Middle square setup
Click for larger image
Mockup of lighting solution. Looks pretty good!
Click for larger image
Pad with non-sensor squares in place (not screwed in yet), and edges of sensor squares glued onto the base. You can see the bottom sensor wooden panel - the sensor's underneath.
Click for larger image
Testing the lighting system - looks good!
Click for larger image
Top half of the control box - you can see the LCD, the buttons, and the pad connector
Click for larger image
Bottom half. Top-left is the PS2 pad connector (here plugs in a cable with the real plug on the other side), and on the right you can see (top to bottom): power selection switch, external power input, USB connector. You can see the board (that big chip in the middle is the microcontroller).
Click for larger image
Board by itself. Notice most of it is connectors! You can see the adjustment trimmers (left are for the analog inputs from the sensors, and right is LCD contrast adjust), the four lighting power transistors standing up in a row, the microcontroller, and the voltage regulator next to the USB port (flat with a screw). The rest is: capacitors, quartz crystal for the microcontroller, resistors, and two signal transistors.
IMG_0906_s.jpg
Click for larger image
Bottom side of the board. With lots of last-minute fixes of course
So there. It's getting close to done
I could've sworn I had more photos of the middle square and the sensors though :\ dunno where they went. |
|
Back to top |
|
|
vesper Trick Member
Joined: 06 Dec 2005
|
5328. Posted: Tue May 30, 2006 9:13 am Post subject: Wiring Problem |
|
|
I'm having some trouble with the wiring, and since the above posters seem to know what they're doing I think I'll give it a shot asking here
Each wire connects to one of those black pads at the bottom, with the big center one being the ground. I used electrical tape to hold the wires down, but this doesn't work. Depending on how I hold the PCB, sometimes the buttons will register and sometimes it wont.
What should I do to hold the wires down? I was thinking of soldering them directly to those black pads, but there is a sticky adhesive-type goo covering most of them. Am I supposed to clean that off with Windex or something? Any ideas are appreciated |
|
Back to top |
|
|
marcan Trick Member
Joined: 28 Jul 2005
|
5329. Posted: Tue May 30, 2006 9:18 am Post subject: |
|
|
scratch off the black until you get to copper, and solder. Or scratch the traces that lead to each black area (the green varnish there is quite thin) and solder there. |
|
Back to top |
|
|
vdl Basic Member
Joined: 30 May 2006
|
5330. Posted: Tue May 30, 2006 9:43 am Post subject: |
|
|
my wooden pad pics http://3priedez.net/dpad4/index.html
uses ipac controller and mini buttons.
i'll make detailed photos for next board. |
|
Back to top |
|
|
vesper Trick Member
Joined: 06 Dec 2005
|
5331. Posted: Tue May 30, 2006 9:44 am Post subject: |
|
|
marcan wrote: | scratch off the black until you get to copper, and solder. Or scratch the traces that lead to each black area (the green varnish there is quite thin) and solder there. |
Thanks a lot, I'm waiting for my soldering iron to heat up right now, I'll let you know how it goes
Marcan, I want to have your babies
I left the top 4 pieces of plexiglass at school, but other than ALL THE WIRING WORKS |
|
Back to top |
|
|
vesper Trick Member
Joined: 06 Dec 2005
|
5332. Posted: Tue May 30, 2006 10:42 am Post subject: |
|
|
I need to realign some of my corner brackets because the plexiglass was sliding a wee bit, but other than that everything works fine
Also, I seemed to have forgotten to add buttons for stuff other than up, down, left, and right, so I'll have to add some of those real quick too |
|
Back to top |
|
|
Pyro.699 Basic Member
Joined: 08 Dec 2005
|
5333. Posted: Tue May 30, 2006 11:10 am Post subject: |
|
|
AWESOME!
Ok, one more request please ^^:
can you gime a full list of all the of parts requird?
like, all the cards, and whires... (i know the wood/metal and plexy glass...)
and an aproximate cost.
also, where did you buy all this equpment!
Thankyou verry much!
~Cody |
|
Back to top |
|
|
slvrshdw Trick Member
Joined: 05 Jan 2005
|
5334. Posted: Tue May 30, 2006 11:49 am Post subject: |
|
|
first of all, thats GOTTA be the most advanced homepad ever built right?
Quote: | What should I do to hold the wires down? I was thinking of soldering them directly to those black pads, but there is a sticky adhesive-type goo covering most of them. Am I supposed to clean that off with Windex or something? Any ideas are appreciated |
i just drilled thru the black part and then soldered (altho its not easy to get the solder to stick..for me anyway)
altho i might be late..
im getting pics of my NEW sensor setup..still fine tuning it, but almost there
i'll get pics later tonight _________________
|
|
Back to top |
|
|
marcan Trick Member
Joined: 28 Jul 2005
|
5335. Posted: Tue May 30, 2006 12:50 pm Post subject: |
|
|
Pyro.699 wrote: | can you gime a full list of all the of parts requird?
like, all the cards, and whires... (i know the wood/metal and plexy glass...)
and an aproximate cost.
|
This is still a Work-In-Progress - parts and cost are likely to vary. Most of it is generic electronics available at any decent electronics shop. Personally I get everything from my neighbor - he runs a big local electronics supplier. Anyway, digi-key.com likely carries everything. I'm getting the CCFL tubes from them, since I can't find them anywhere else, but my neighbor is cheaper for the rest
The "cards" (PCBs/circuit boards you mean I guess?) are all (except for the LCD) custom made, so you can't just buy them anywhere (although you can likely send the Gerber files to batchpcb or something and have them made).
The major parts are:
- PIC18F4550-I/P-ND microcontroller ($11.43 at digi-key) - you can get free samples from the manufacturer (samples.microchip.com). Grab a bunch of 16F876-I/P too while you're at it, if you use the samples thing (they're free, upto 3 of each of 4 part numbers!)
- Quartz crystal for the PIC. Several values are possible, just changing the PIC settings. I use 8Mhz, but 4Mhz and 16Mhz and 24Mhz all would work with a readjustment of the PLL settings.
- 20x4 character LCD w/ backlight (parallel interface). Digi-key has several starting at $30 or so. You can probably find a cheaper source for them.
- 4x MAX492 dual opamps (you need four chips, each of which has two opamps). $5.57 each at digi-key.
- four strain gage pressure sensors. I'm told these are real expensive. Me, I stole them from a broken digital bathroom scale (probably the best way). Make sure the scale has four of them, the kind that has four legs which you can visibly see are detached from the main body where each has a sensor under it. My scale was somewhere around $50 or so, It was a fairly nice wooden "designer" model, but it was broken and some 3 years old, so it was essentially free. You can definitely find cheaper ones. All four sensors worked, so what the hell.
- resistors, lots, several values etc. Cheap. I'll make a list when I get to putting the schematics and board designs online. Get them at any decent electronics shop (NOT radioshack! They're expensive as hell! come on, 5 resistors for $1? I can get each resistor for $0.01 at my neighbor's!)
- 4x power MOSFETs for switching the lights. I use IRF510.
- some capacitors etc. Relatively cheap too. Will make a list.
- 7805 voltage regulator. Fairly common and cheap. Unnecessary if you can supply a clean 5V power supply (e.g. if you only use USB mode you don't need it).
- two NPN signal transistors. Pretty much any normal kind will do. I use BC547. Cheap.
- Three potentiometers. You can do without two of them and have less precise measuring (you won't be able to set the inputs to go the full byte range for the PIC), but it will do. The third is for contrast adjustment on the LCD. You can also do without it and just tie it to ground, it will be just a tiny bit too much contrast but perfectly fine.
- connectors, wire, etc. I'll leave how you do this up to you. Just make sure you twist the wires for the sensors, and that you don't pick up too many interferences.
- pushbuttons for configuration and start/select
- PIC programmer (compatible with 18F4550). there are plenty of designs on the net. I use a WISP628, but pretty much anything will work as long as it supports the 18F4550. I'm pretty sure a standard parallel Tait-style with the windows ICPROG software will do.
Then you need your lighting system, which can be as simple as LEDs with resistors. I use CCFLs and matching inverters. The main board provides switched grounds and you can use the internal 5V or provide your own power supply to the lights withing reasonable values.
Of course, all this for the full blown analog-based adjustable configurable pad with USB and PS2 support and an LCD for settings etc etc etc. Get rid of the backlight adjustment for the LCD and you can skip a transistor, get rid of backlight altogether and you can get a cheaper LCD module, get rid of the LCD and you use fixed settings but you save $30. No lighting, no power MOSFETs. Get rid of the PS2 support and you save on some resistors and another transistor. Get rid of PS2 power support and external power support and you can skip the regulator. Use standard contact switches instead of the whole analog kaboodle and you get to skip the whole amp boards, the opamps, the input trimmers, and a bunch of cables. In the end, if you just make it into a simple USB digital pad it boils down to the PIC and a couple of resistors, plus the quartz crystal and some capacitors. You could even use a cheaper PIC. If you just want a PS2 pad interface, you could even skip the quartz crystal and use internal clock. But what's the fun in that? |
|
Back to top |
|
|
-Scorpion- Trick Member
Joined: 16 Feb 2005
|
5336. Posted: Tue May 30, 2006 1:57 pm Post subject: |
|
|
You can overclock your USB rate using this tool:
http://www.majorgeeks.com/download.php?det=4469
Note that this could irreparably damage your Computer. However, I've changed a bunch of Computers to 1000Hz and never had anz problems. |
|
Back to top |
|
|
marcan Trick Member
Joined: 28 Jul 2005
|
5337. Posted: Tue May 30, 2006 4:05 pm Post subject: |
|
|
-Scorpion- wrote: | Note that this could irreparably damage your Computer. However, I've changed a bunch of Computers to 1000Hz and never had anz problems. |
Doubt it could do that. It changes the polling rate, not some physical clock that could cause damage. If anything, it could corrupt the USB driver or something, but I'd say it's about as risky as changing the desktop wallpaper. |
|
Back to top |
|
|
The Wise Fool Trick Member
Joined: 27 Jan 2006 Location: Western Washington |
5338. Posted: Tue May 30, 2006 4:45 pm Post subject: |
|
|
-Scorpion- wrote: | I don't know about DDR, but ITG is sampled at 1000Hz. |
RoXor disagrees with you.
ITGPS2 FAQ wrote: | Why is the timing window slightly larger on ITG PS2 than in the arcade?
The timing windows for the PlayStation 2 are exactly 2ms larger than for the arcade. This is because the input sampling is less accurate on the PS2 (60Hz sample rate) compared to the arcade (100Hz sample rate). With a lower sampling rate and identical timing windows, you will generally get fewer Fantastics than at a higher sampling rate for an identical performance.
The 2ms number was arrived at by playing both the PlayStation 2 game and arcade game side-by-side with the same controller and calibrating the PS2 timing window until our test player consistently achieved the same number of Fantastics on both versions. |
You were off by one digit.
Anyways, I don't really care if my pad samples at the same rate the PS2 does, rather than the same rate the arcade does. |
|
Back to top |
|
|
-Scorpion- Trick Member
Joined: 16 Feb 2005
|
5339. Posted: Tue May 30, 2006 6:37 pm Post subject: |
|
|
@The Wise Fool
This is awkward. The manual of the ITG I\O module states that the device is updated in an interval of 100Hz in isochronous mode, but then sends information in a 1000Hz resolution. If no button has been pressed within 10ms, no information is being send. I guess they did it this way to save bandwith!? I'll give you a link to the manual if I can find it again. Some AC distributor sold parts and had it on their homepage. |
|
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
|