Official Sparky Thread - Sparky Jr USB

From my first experience with sparky, and from working on masterstrike, I’m a little nervous about powering LEDs directly off the ATMEGA (using common ground on sparky produced some weird results)… i would recommend taking a page from masterstrike and using PNP transistors if possible…

is this in megatron? hmm, was it running of off 3.7 battery?
looking to make sure i am considering all options

Interesting. This sparky is going in a wired setup along with a master$trike. Shouldn’t have any problems there, right?

The rainbow ribbon wire came in today. Waiting for my programmer (and male round pin headers) to come in; if it’s not here by Saturday I may just use the round female headers (though it will be more difficult to do it neatly). I’m using a MCC with a madcatz fightpad pcb piggybacked to it (would have used a dual strike, but d3v wanted gamecube support). The M$ will be used to switch USB lines and toggle power to…something (can’t say until I know it will work). Sparky Jr will to the light show thing. I may try to MS Paint a wiring schematic to make sure I’m doing it right.

[[]] [^]
[X] [O]

well ps uses some funny looking pastels and might be a headache to try and match with the leds. from the available pallete i would suggest something like this:

Purple [[]] Green [^]
Cyan [X] Red [O]

Yeah… LEDs on megatron uses USB 5v… but with 8 arc eyes wired to consume 20ma per led x 2 led x 3 colors x 8 buttons, thats 960ma theoretical max that could flow through the atmega (whether its common anode or cathode)? i’m not quite sure how it adds up or affects the chip… its probably safer to run at 10ma, plus the TE pcb and dualstrike will together eat about 80ma…

yet on megatron stick (common anode LED), ps3 did not complain about overdrawing current… something does not add up… especially given that usb is only rated for 500ma…

so

  1. primary concern is the amount of current flowing through atmega…
  2. second is the amount of current available via usb (should be 500ma - 80ma = 420ma left for LEDs)…
  3. third concern is that pnp transistors are 80% efficient on top of that at best…

i think you saw an implementation i have with a step up before the atmega.

can you tell me what the issue was on the megatron in detail?

Maybe i’m totally missing something, but a step up only boosts voltage and doesn’t really boost the available current? As far as my limited knowledge goes, you can only truly run the LEDs at 20ma with an alternate power source (drawing current from second usb port, for example some external HDD cases come with a double ended USB cable to draw power from 2 ports, or a battery etc…)

On megatron, I saw a whole bunch of issues… colors would get stuck, leds would randomly turn on and off, brightness levels sometimes changed if holding one button and pressing another… if i press too many buttons (draw too much current), it could reset the atmega, or cause it to freeze… all kinds of wierd stuff…

So when i get some time i’ll try to drop to 10ma and solder as common cathode and see what happens…

you still have the one with the 5 onboard 0805 SMD LED right?
i have new ones

You gave me a new one from a new batch shortly before I went on vacation during the last week of Sep…gotta find some time to sit down and sort out and wire everything… =D

I am going to starting my TvC tri mod tonight with Sparky Jr. Who knows, maybe i will finish it.

TvC SE

  1. Sanwa JLF-8Y
  2. PS-KN buttons
  3. Arcy Eyes
  4. Sparky Jr
  5. 360 PCB from another SE… …i know, talk about fit
  6. Chimp

writes up soon. ppl. still in the processing of moving. alittle upset because i dont remember where i packed some of my tools i need T_T. box hunting i go

Programmer and round male pin headers came in last night. Time to get wiring and dowloading arduino

The repository has been updated
sparky - Revision 70: /trunk/Arduino Files/Sparky

Cool. I’ll have a look tonight, hopefully, and will be picking yoru brain as I go along. Hopefully, redoing the RGB chain shouldn’t take all night…

Progress on the TvC Wii Quad Mod

So far so good. One of my more organized builds.
Tested on Wii, PC (XBOX and PS3)

nice clean work! wiring is looking good using those rainbow ribbons, lol where did you get those from? are you tvc stick pcb for the base wii functionality and a chimp for everything else? cant wait to see a finished product

I got my ribbon here

sweet, thanx :slight_smile:

essentially, yes.

with cables

haven’t dremmeled out the holes yet,
but here are the connectors

i intend to keep it modular and not have wires hanging all over the place. that’s why there is a hacked Wii cable and a USB B breakoutboard

Got the headers and harnesses all done up. Hopefully I can get most of the wiring done tomorrow and take some pics soon. A lot more than I thought and a bit less room than expected, I tell you…