nfg.forums

NFG Forums => Controller Technic => Topic started by: micro on February 15, 2011, 03:06:53 AM

Title: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on February 15, 2011, 03:06:53 AM







You might remember the one wireless Saturn controller (http://nfggames.com/forum2/index.php?topic=4065.0) I made a year ago.

Now I've found a cheap 2.4GHz transceiver with some very neat features like adjustable data rate, 128 different channels, auto retransmit...
NRF24L01+ by Nordic Semiconductors:

(http://i.imgur.com/r3hWk.jpg)

So what I'm planning to do with these transceivers is to build an universal wireless controller system. So once a controller is equipped with that transceiver you're able to use it on every console you got a receiver for.
Right now I've completed a SNES controller and receivers for SNES and Saturn. Unfortunately the 4. transceiver on the pic was DOA. So I have to wait until I got some more transceivers before I can make more controllers & receivers.

(http://i.imgur.com/qUxvX.jpg)

(http://i.imgur.com/ugPd0.jpg)

(http://i.imgur.com/S13pV.jpg)

(http://i.imgur.com/9Fcrc.jpg)

(http://i.imgur.com/FAjMT.jpg)

You can see right now I can use the SNES controller on the SNES and Saturn.
I will keep you posted if there's any progress.

When everything's finished I will also release the schematics and hex files.


Title: Re: Universal wireless controller for all retro consoles
Post by: NFG on February 15, 2011, 07:11:34 AM
That's a pretty neat little project.  =D
Title: Re: Universal wireless controller for all retro consoles
Post by: ulao on February 16, 2011, 04:21:24 AM
Yeah this is quite neat.
Title: Re: Universal wireless controller for all retro consoles
Post by: Fwirt on February 17, 2011, 07:16:35 AM
Very cool project!  Would you be able to tell us where you ordered the tranceivers? (And those cool little enclosures you put the console-side in?)

Also, on the SNES controller, how does the battery charging circuit work/how long does the battery last?
Title: Re: Universal wireless controller for all retro consoles
Post by: micro on February 17, 2011, 04:39:19 PM
Yeah I also love how small the enclosures for the receivers are. :D Unfortunately they are too thick for a NES but they're small enough for a N64.
The series is called SOAP, manufactured by TEKO: http://www.reichelt.de/?;ARTICLE=34080 (http://www.reichelt.de/?;ARTICLE=34080)

In my old wireless Saturn pad I installed the charging circuit inside the pad. This time the charging circuit will be external because I plan on making some more pads and each charging circuit will cost around 5€. This way I will be saving a lot of money as well as space inside the pad.
The IC used for charging is a MAXIM 1811 (http://www.maxim-ic.com/datasheet/index.mvp/id/2536).

Right now inside the SNES pad is a Ipod Shuffle battery with mere 250mAh of capacity. I guess the battery lasts for about 10 to 15 hours. But there's more space inside the SNES controller than inside the Saturn controller. Maybe a GBA Micro battery would fit. The GBAM battery got 600mAh so do the math :)
Title: Re: Universal wireless controller for all retro consoles
Post by: micro on February 23, 2011, 01:59:09 PM
Now I got a new USB Programmer that will replace  my old programmer for the parallel port.

I've also started writing in AVR assembly language. I've completely rewritten the Saturn receiver.  Now it works without 2x 74HC153. But damn, the Saturn timings are brutal!
The Saturn SMPC manual says that after s0&s1 has been changed, d0-d3 are read after 2us.
First I had my AVR run at 8MHz. Changing s0 by the saturn triggered an interrupt and d0-d3 were put out after 1.83us. Guess what, that wasn't fast enough!
So the AVR is running at 16MHz now and it works.

But I'm still wondering if it's possible at 8MHz somehow...

Title: Re: Universal wireless controller for all retro consoles
Post by: bigsanta on April 01, 2011, 10:22:53 AM
Excellent work on updating the original tut !I was planning on reworking the original so i could get a wireless neo geo AES stick .Would you be able to do  one of these updated versions for the neo geo,as it should be nothing to get one knocked up considering it doesn't use any ASIC/IC encoders ,just basic on off switches ?
Title: Re: Universal wireless controller for all retro consoles
Post by: micro on April 01, 2011, 04:32:38 PM
Yes, Neogeo support for the old 433MHZ transmitter/receiver would work, but I don't plan on working with the old 433MHz stuff again.

However, sometime I'll probably make an Neogeo receiver for the new wireless system. But at the moment I've got almost no time to work on the project so this won't happen soon I'm afraid.  Next up is support for the N64.
Title: Re: Universal wireless controller for all retro consoles
Post by: ulao on April 02, 2011, 03:55:41 AM
Quoted0-d3 are read after 2us.
Yeah I read that two but other say its 7us.  Also when working with dream cast the patent says the pits are 6 clocks apart ( 83 ns on a 12 mhz ) but its actually 9.  Sega...
Title: Re: Universal wireless controller for all retro consoles
Post by: public-pervert on April 06, 2011, 10:53:20 PM
wow! another neat work, micro! can't wait o build my own!  :)
Title: Re: Universal wireless controller for all retro consoles
Post by: micro on April 11, 2011, 05:22:19 AM
Small update:
As I said, no more internal Lithium battery chargers because of the pricey charge-IC. So today I finished the external charger. I used the transparent case of a SD memory card:

http://i.imgur.com/OKtHM.jpg (http://i.imgur.com/OKtHM.jpg)
http://i.imgur.com/5GINr.jpg (http://i.imgur.com/5GINr.jpg)
Title: Re: Universal wireless controller for all retro consoles
Post by: micro on April 17, 2011, 10:20:44 PM
Yesterday I've finished the N64 receiver. As always I've drilled out some holes and used plenty of hot glue on the parts that get stressed mechanically.
It was also the first time I made the programming port accessible from the outside. This way I don't have to open the receiver to (re-)flash the microcontroller.

Here are some pics I shot:

(http://img813.imageshack.us/img813/8716/84678756.th.jpg) (http://img813.imageshack.us/i/84678756.jpg/)(http://img815.imageshack.us/img815/1589/66814414.th.jpg) (http://img815.imageshack.us/i/66814414.jpg/)
(http://img27.imageshack.us/img27/4445/31332975.th.jpg) (http://img27.imageshack.us/i/31332975.jpg/)(http://img14.imageshack.us/img14/7600/71413885.th.jpg) (http://img14.imageshack.us/i/71413885.jpg/)(http://img24.imageshack.us/img24/597/59442816.th.jpg) (http://img24.imageshack.us/i/59442816.jpg/)
(http://img402.imageshack.us/img402/2906/53853517.th.jpg) (http://img402.imageshack.us/i/53853517.jpg/)(http://img703.imageshack.us/img703/7740/53942142.th.jpg) (http://img703.imageshack.us/i/53942142.jpg/)(http://img15.imageshack.us/img15/1958/56083911.th.jpg) (http://img15.imageshack.us/i/56083911.jpg/)
(http://img718.imageshack.us/img718/214/85048172.th.jpg) (http://img718.imageshack.us/i/85048172.jpg/)(http://img706.imageshack.us/img706/1124/97027804.th.jpg) (http://img706.imageshack.us/i/97027804.jpg/)(http://img844.imageshack.us/img844/125/45259825.th.jpg) (http://img844.imageshack.us/i/45259825.jpg/)

You can see a regular controller may be plugged in besides the receiver, but 2 receivers side by side are to wide I'm afraid...
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on April 18, 2011, 10:29:35 PM
this is freaking awesome, micro!  :o

will you make a tutorial on how to do it?

again, i can't wait to build my own.  ;D
Title: Re: Universal wireless controller for all retro consoles
Post by: bigsanta on April 20, 2011, 07:31:40 AM
Quote from: micro on April 17, 2011, 10:20:44 PM
Yesterday I've finished the N64 receiver. As always I've drilled out some holes and used plenty of hot glue on the parts that get stressed mechanically.
It was also the first time I made the programming port accessible from the outside. This way I don't have to open the receiver to (re-)flash the microcontroller.

Here are some pics I shot:

(http://img813.imageshack.us/img813/8716/84678756.th.jpg) (http://img813.imageshack.us/i/84678756.jpg/)(http://img815.imageshack.us/img815/1589/66814414.th.jpg) (http://img815.imageshack.us/i/66814414.jpg/)
(http://img27.imageshack.us/img27/4445/31332975.th.jpg) (http://img27.imageshack.us/i/31332975.jpg/)(http://img14.imageshack.us/img14/7600/71413885.th.jpg) (http://img14.imageshack.us/i/71413885.jpg/)(http://img24.imageshack.us/img24/597/59442816.th.jpg) (http://img24.imageshack.us/i/59442816.jpg/)
(http://img402.imageshack.us/img402/2906/53853517.th.jpg) (http://img402.imageshack.us/i/53853517.jpg/)(http://img703.imageshack.us/img703/7740/53942142.th.jpg) (http://img703.imageshack.us/i/53942142.jpg/)(http://img15.imageshack.us/img15/1958/56083911.th.jpg) (http://img15.imageshack.us/i/56083911.jpg/)
(http://img718.imageshack.us/img718/214/85048172.th.jpg) (http://img718.imageshack.us/i/85048172.jpg/)(http://img706.imageshack.us/img706/1124/97027804.th.jpg) (http://img706.imageshack.us/i/97027804.jpg/)(http://img844.imageshack.us/img844/125/45259825.th.jpg) (http://img844.imageshack.us/i/45259825.jpg/)

You can see a regular controller may be plugged in besides the receiver, but 2 receivers side by side are to wide I'm afraid...


Awesome !
Well, to resolve the problem of using the two(1player and 2player ports/3 and 4 p) rf receivers on the N64,you have a few options.

Have a few versions/models

A- the standard 1player version

B- a dual version which has two joypad plugs in one bigger shell

C- The N64 joypad plugs, come out of the rf receiver's shell ,on a short cable.As we're dealing with Rf and not IR ,the user doesn't have to worry about losing line of sight with the RF's shell laying on their unit or near the console.

What about a small LED low battery indicator ? A low power comparator like the lm2903 could be used .
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on August 22, 2011, 11:41:28 PM
I'm looking forward to a tutorial, Micro!  ;D
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on August 24, 2011, 04:43:42 AM
Quote from: public-pervert on August 22, 2011, 11:41:28 PM
I'm looking forward to a tutorial, Micro!  ;D

Soon (I hope :P)

I have resumed work and I hope I can finish it within the next 3 or 4 weeeks, but I can't promise....

Right now I'm working on the N64 transmitter. Somehow I thought I'd be cool to integrate a large LiPo battery into a memory card's case or something. That led to the idea of integrating the whole wireless circuit into a rumble pack:

(http://i.imgur.com/zCw2h.jpg)

Once the large vibrating motor is discarded there's plenty of room for the microcontroller and the wireless transmitter.
The rumble pack would also provide voltage via 2x AA batteries.
This way you wouldn't need a LiPo battery, 3.3V voltage regulator, recharge IC, etc.... It would be cheaper to build.

The N64 controller itself would only need one or two tiny modifications, all the stuff would be in the rumble pack.

On the downside, the finished N64 controller would be bulkier and heavier with the rumble pack sticking out (although not quite as heavy as an untouched rumble pack with the vibrating motor still inside)

What do you guys think?



Quote from: bigsanta on April 20, 2011, 07:31:40 AM
What about a small LED low battery indicator ? A low power comparator like the lm2903 could be used .
I think the 3.3V voltage regulator I've used also got an "error" pin. I believe when the voltage is dropping to 3.3V or below the pin will be driven low.
Probably, a battery indicator is something nice to have. I will have a closer look at it once everthing else is finished (and is working, too :))
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on August 24, 2011, 09:26:30 PM
wow! this is a really good idea, micro  ;D will be revolutionary!

this is one of my favourite threads  :)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on September 04, 2011, 10:09:09 AM
update:
N64 wireless controller is finished, works great!  :D
Some pics I made:

(http://img7.imageshack.us/img7/8360/45751341.th.jpg) (http://img7.imageshack.us/i/45751341.jpg/) (http://img641.imageshack.us/img641/1475/94048492.th.jpg) (http://img641.imageshack.us/i/94048492.jpg/) (http://img30.imageshack.us/img30/3008/95250358.th.jpg) (http://img30.imageshack.us/i/95250358.jpg/)

(http://img190.imageshack.us/img190/3240/40969121.th.jpg) (http://img190.imageshack.us/i/40969121.jpg/) (http://img577.imageshack.us/img577/1463/55519173.th.jpg) (http://img577.imageshack.us/i/55519173.jpg/) (http://img690.imageshack.us/img690/2135/66644537.th.jpg) (http://img690.imageshack.us/i/66644537.jpg/)

(http://img190.imageshack.us/img190/9646/84925548.th.jpg) (http://img190.imageshack.us/i/84925548.jpg/) (http://img834.imageshack.us/img834/9620/53008411.th.jpg) (http://img834.imageshack.us/i/53008411.jpg/) (http://img268.imageshack.us/img268/6554/68201604.th.jpg) (http://img268.imageshack.us/i/68201604.jpg/)

Essentially, modding the controller means routing the data pin to the memory card port and installing a LED, that's all.
The rest of the circuit is inside the rumble pack.

I also did some measurements. It turned out that the N64 controller is quite power hungry: The wireless circuit draws only 2 mA, but the N64 controller itself draws about 14 mA!!
Under normal circumstances I would cut the N64 controller's power and only turn it on  when I want to read the current status. Unfortunately if I would do that, the N64 controller would reset the analog stick everytime I'd turn off the power.
So the controller needs to be turned on the whole time.

16 mA is no problem when you're using 2x AAA (rechargeable or disposable) batteries within the rumble pack, because the capacity of such batteries lies between 800 and 1000 mAh usually. This should last a while :)
You could also  install a large (800++ mAh)  LiPo battery inside the rumble pack, there would be plenty of space if the battery compartment is removed by using a Dremel.

An all-internal mod inside the N64 controller is possible, too. But you'd need to find a battery with a decent capacity which still fits inside.

Oh, and before I forget: There won't be rumble & memory card support! So you might just as well use the space inside a memory card or rumble pack for big batteries :)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on September 05, 2011, 10:24:09 PM
OH-MY-GOD!! this is not just usefull! this is beautifull!  :'(

is it an ATmega8, micro?

will you make a tutorial like the great one you did for "the cube stick on n64"? i can't wait to make my own  ;D

thank you for share these great mods with us!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on September 13, 2011, 08:08:49 AM
I finally finished the project :D
For now, I got wireless SNES-, Saturn- and N64 controllers, and receivers for SNES, Saturn, N64 and NES.

I also made a video again:
Universal Wireless Retro Controller for SNES, N64, Saturn, etc... (http://www.youtube.com/watch?v=LlnmfaILCHw#)


Quote from: public-pervert on September 05, 2011, 10:24:09 PM
will you make a tutorial like the great one you did for "the cube stick on n64"? i can't wait to make my own  ;D
Yes, but this will take some time. There are a lot of schematics to be drawn... You gonna notice when the tutorial is finished :)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on October 05, 2011, 02:54:28 AM
I uploaded the instructions, see video description on Youtube for the download link :)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on October 07, 2011, 12:23:37 AM
already downloading! thank you micro! another incedible work! ill let you know when mine is done :D
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on October 21, 2011, 11:31:35 PM
micro, just wondering.. is possible to make a "wirelles on/off switch" and turn the n64 on and off by these wirelles n64 controller you made?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: kendrick on October 21, 2011, 11:57:18 PM
The N64 doesn't have a standby mode, does it? The power switch fully disconnects the main board from the DC current, so there's no circuit present that would actively poll for such a wireless input when powered off.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on October 22, 2011, 04:35:20 AM
thanks for the reply, kendrick. but i know about that. i'm asking if there's a way to make a digital switch (activable by these wirelles controllers) between the DC and the input lines of the n64 main board. that way, we can turn the n64 on and off, like in the xbox 360 and ps3... this would be veeeeery cool!!

another thing i want to ask, micro. is possible to use this transceiver to play n64 with GC wavebirds? (obviously it'll need to be modded, but just wondering :D )
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: kendrick on October 22, 2011, 08:20:09 AM
Quote from: public-pervert on October 22, 2011, 04:35:20 AM
thanks for the reply, kendrick. but i know about that. i'm asking if there's a way to make a digital switch (activable by these wirelles controllers) between the DC and the input lines of the n64 main board. that way, we can turn the n64 on and off, like in the xbox 360 and ps3... this would be veeeeery cool!!

You'd have to do three things. You'd have to keep the receiver powered, and program in a periodic polling interval so that it isn't waiting around to be turned on continuously. Then you'd have to create a separate button system on the wireless controller that not only turns on the controller itself but can do a handshake with the receiver so as to send the power-on signal. Finally, the power switch on the console would have to be replaced with a complicated relay. Since an N64 doesn't have a standby mode, you'd have to have a separately-powered relay circuit that not only engages the normal DC input, but stays actuated by some sort of flip-flip or other single-bit memory.

Without a built-in standby mode that's supported by the normal operation of the console, this is all incredibly power-intensive. At very least, it'd be pushing five volts into a 78xx regulator all the time, when the console normally uses no power at all after you slide the switch off. This sort of mode of operation is one of those things that environmentalists hate about DVRs and microwave ovens, which are technically always on and using electricity, even when we think they're off. Apropos of nothing, I always turn off the power strip that my game systems are connected to so that I'm not using electricity when I'm not playing.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on October 24, 2011, 01:22:57 AM
I agree with Kendrick. In theory it's possible, but the effort isn't worth it. (At least not for me...)

I've got power strips with switches for my consoles, too :)

Regarding Wavebird compatibility: Not that's not possible.
Are you already finished building your own wireless N64 controller? I hope you'll post some pics of it. =)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on October 24, 2011, 07:32:33 PM
after reading the last kendrick's reply, i think it doesn't worth all the work too.

and i have not finished my controller yet, i'm still waiting for the parts.. i'll let you know when done micro =)

thank you!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on October 26, 2011, 05:33:20 AM
where can i get those isp connectors you fitted inside the RXs?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on October 27, 2011, 11:57:47 PM
In German the connectors are called "Wannenstecker". I don't know the exact english name, but you should search for a "shrouded header", like that one (http://www.pololu.com/catalog/product/854).
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: philgood on November 09, 2011, 03:07:03 PM
First of all micro, fantastic work on your project! Good job!

I would like to build 4 wireless controllers for my N64.  With regards to your channel select A/B feature,  especially for N64.  Are you planning to release a mod to handle 4 channels? Or modified code for C/D channels? Or if this is something that your not willing to do, are you able to post/PM your source code, which I can modify then post back on your page or directly back to you, so then other people can have the option to build 4 wireless controllers like me.

Cheers.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on November 11, 2011, 05:42:03 AM
Quote from: philgood on November 09, 2011, 03:07:03 PM
First of all micro, fantastic work on your project! Good job!

I would like to build 4 wireless controllers for my N64.  With regards to your channel select A/B feature,  especially for N64.  Are you planning to release a mod to handle 4 channels? Or modified code for C/D channels? Or if this is something that your not willing to do, are you able to post/PM your source code, which I can modify then post back on your page or directly back to you, so then other people can have the option to build 4 wireless controllers like me.

Cheers.

Thank you! =)
Here you go, modified version using channel 3&4 (http://www.mediafire.com/?0f9d5x8h1a9xv2g) in the same manner like the normal version does with channel 1&2.
Maybe one day there will be a version allowing to directly choose between channel 1 to 4. Then I guess someone would ask for support for 10 channels because of Saturn Bomberman ;)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Hamburglar on November 11, 2011, 01:14:44 PM
Great work Micro, I am amazed this thread has not received the attention it deserves, I see threads on various bulletin boards about things that have been done time and time again get more attention.

I have most of the parts laying around, I need the wireless receiver/transceiver once I get that I will try it out.

Thanks for posting this.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: philgood on November 11, 2011, 02:34:32 PM
Quote from: micro on November 11, 2011, 05:42:03 AM
Quote from: philgood on November 09, 2011, 03:07:03 PM
First of all micro, fantastic work on your project! Good job!

I would like to build 4 wireless controllers for my N64.  With regards to your channel select A/B feature,  especially for N64.  Are you planning to release a mod to handle 4 channels? Or modified code for C/D channels? Or if this is something that your not willing to do, are you able to post/PM your source code, which I can modify then post back on your page or directly back to you, so then other people can have the option to build 4 wireless controllers like me.

Cheers.

Thank you! =)
Here you go, modified version using channel 3&4 (http://www.mediafire.com/?0f9d5x8h1a9xv2g) in the same manner like the normal version does with channel 1&2.
Maybe one day there will be a version allowing to directly choose between channel 1 to 4. Then I guess someone would ask for support for 10 channels because of Saturn Bomberman ;)


Thanks a lot Micro :)  Guess I'll be very busy the next few days! 

So, selecting between channels 3 and 4 work the same as 1 and 2? Eg, holding A on power on select channel 3 and B on power on select channel 4 with your new firmware?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on November 13, 2011, 03:39:47 AM
Quote from: philgood on November 11, 2011, 02:34:32 PM
Thanks a lot Micro :)  Guess I'll be very busy the next few days! 

So, selecting between channels 3 and 4 work the same as 1 and 2? Eg, holding A on power on select channel 3 and B on power on select channel 4 with your new firmware?

Yes, exactly!



Quote from: Hamburglar on November 11, 2011, 01:14:44 PM
Great work Micro, I am amazed this thread has not received the attention it deserves, I see threads on various bulletin boards about things that have been done time and time again get more attention.

I have most of the parts laying around, I need the wireless receiver/transceiver once I get that I will try it out.

Thanks for posting this.

I guess this mod will get more attention once people finished their first controllers and post about it in forums.
I really like to hear some feedback =)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: GoodSeed on December 10, 2011, 03:08:15 PM
Hey Micro, this is freakin awesome work!  I joined this forum to say thanks for sharing this!

I've got all the parts on order.  I have a simple question and forgive my noob status, but I haven't touched a soldering iron in my life.  For the 2x3 programming plug it looks like you used bare copper wire.  Am I just an idiot or is there more to this?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on December 15, 2011, 12:38:17 AM
Do you mean inside the SNES controller? That's thin enameled copper wire =)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: GoodSeed on January 02, 2012, 10:45:57 AM
Micro,

I have another question on powering the microcontroller.  I am using a USB programmer that provides power.  How does the power coming from the ISP socket tie in?  Do you not wire in the power from the socket?   Or wire the USB power in along with the battery power and just not turn the controller switch on?  I've got all the parts in and starting assembly!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: SGGG2 on January 02, 2012, 12:26:45 PM
This is amazing, Micro!  :o

Does the Saturn work with analog data? Do you plan on doing any more systems like PC Engine, Mega Drive, PS1/2 and Dreamcast?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on January 04, 2012, 10:16:34 PM
@ GoodSeed: Yes, just connect Vcc and GND from ISP socket to Vcc and GND at the microcontroller. This is mandatory, even for programmers that don't provide power themselves,

@SGGG2: Sorry, no Saturn analog data support yet.
I no longer own PCE and Mega Drive, but there will be support for other consoles sometime =)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: GoodSeed on January 05, 2012, 04:25:09 AM
Great thx.  According to the schematic, that will put 5V from the USB power to the transceiver.  Is that ok?  Should I tie in the power upstream of the regulator( on leg 3)?


(UPDATE) I will answer my own question and say yes, of course incoming 5v power should go through the regulator first, that's probably why it's there!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on January 07, 2012, 12:51:12 AM
No no, Vcc coming from the ISP socket/ISP programmer should be connected directly to Vcc of the microcontroller.

If you plan on programming the MCU with all the other parts in place (transceiver, regulator, etc.) then I suggest you turn off the voltage of the programmer. When you do In-System Programming you should never provide +5 V to the MCU as this will damage the transceiver because Vcc of MCU and transceiver are connected. Instead turn off the voltage of your programmer and just use the voltage the system is providing (console or controller with battery).

Which console are you working on? Transmitter or receiver?
What kind of programmer are you using? =)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: GoodSeed on January 08, 2012, 01:19:37 PM
Hi micro, thanks for the response.  I do plan on programming the MCU with all the other parts in place.  I am using this programmer (http://www.ebay.com/itm/390369630154?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2648#ht_3603wt_905).  I will admit i have never used one of these before.  I am working on the SNES transmitter.

Sorry if I am a bit confused, but from what I gather from your other post, I wire the Vcc from the programmer to Vcc of the circuit, but can "turn off" the Vcc in the programmer?  Is this accomplished through software?  If you say to wire up the Vcc directly, then that is what I will do!  I will need to figure out the rest through the programming software.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on January 12, 2012, 06:24:26 AM
Yes, that's correct. The Vcc pins of MCU and ISP socket must be connected directly. Normally to be able to program the  MCU when the system is running (ISP = in-system programming) the programmer expects that the system is providing power to the MCU.
Modern programmers have the ability to provide power to the MCU by themselves but in some cases that may damage other parts of the circuit. So it would be best to turn off the voltage and let the console power the the wireless circuit, then program the MCU.

Apparently your programmer is based on the design by Thomas Fischl: http://www.fischl.de/usbasp (http://www.fischl.de/usbasp)
I don't own that programmer but there's a readme: http://www.fischl.de/usbasp/Readme.txt (http://www.fischl.de/usbasp/Readme.txt)

So the reference circuit of that programmer is only suitable for in-system programming circuits with V target of 5V.
But on your programmer there seems to be a jumper or switch for selecting between 3.3V and 5V. If you can't turn off the voltage of you programmer, then at least make sure you're providing 3.3V to the circuit and not 5V.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Ecsar on January 13, 2012, 09:50:58 AM
 ;D good job men Micro, do you think is possible make this, with a playstation controller (ps1) o with a xbox360 controller wired?

thanks for this contribution.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on January 17, 2012, 06:22:45 AM
I'm planning PSX support in the future. But I guess Xbox360 won't be possible...
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Lo!o on January 20, 2012, 12:02:04 PM
Hy everyone, Hy micro.

First, i want to thank you for that magical idea.
Just let me ask you for something:

In the pdf tutorial, at the beginning, you are talking about ATTiny2313.
In the programming schematics ATTiny2313-*P*

I have searched for ATTiny's in my country, and on a merchand site, they have ATTiny2313 @ 20Mhz
and ATTiny2313 @ 10Mhz.

Which one is good for the wireless controler mod job, please.

Yesterday, i have already flash two ATTiny2313A and two ATMega8, but did not start built the controller.
If the Tiny's ref is not good, would it be critical for running or not ?

It would be nice you answer, and i thank you so in advance.

Regards.

Lo!o
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on January 21, 2012, 08:15:08 PM
hey micro! is the bascom demo (limited to 4k of code) version enough to flash these microcontrollers?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on January 21, 2012, 10:42:38 PM
@public-pervert: I don't think you can flash foreign .hex files with Bascom. Instead use one of the other ISP programs proposed in the PDF.

@Lo!o: The "P" in "ATTiny2313-*P*" stands for PDIP (Plasic Dual In-Line Package). It's not a different typ of microcontroller. It shouldn't matter if you got the 20 MHz or 10 MHz version, though I used the 20 MHz version.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: SGGG2 on January 22, 2012, 04:48:53 AM
Quote from: micro on January 04, 2012, 10:16:34 PMI no longer own PCE and Mega Drive, but there will be support for other consoles sometime =)

I would gladly donate so you could purchase said consoles :)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Lo!o on January 22, 2012, 05:48:11 PM
Quote from: micro on January 21, 2012, 10:42:38 PM
@Lo!o: The "P" in "ATTiny2313-*P*" stands for PDIP (Plasic Dual In-Line Package). It's not a different typ of microcontroller. It shouldn't matter if you got the 20 MHz or 10 MHz version, though I used the 20 MHz version.

Ok, thanks micro, with that explanation, now i can continue building my controllers.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: flagoss on March 16, 2012, 11:02:06 AM
Hey micro would be cool if you could do a atmega8 version of the TX firmware since they are cheaper than the attiny ones. I am willing to test theme for you !
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on March 30, 2012, 03:14:57 AM
Hmm, normally Attiny2313's are significantly cheaper than Atmega8's. They also consume less power so they last longer when running on the battery inside the controller.
Unfortunately it's not a 2 minute job to port the program from the Attiny2313 onto the Atmega8. So you better find another purpose for your 20 Atmega8's, sorry =)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: NFG on April 10, 2012, 06:37:29 PM
This thread has received 260 hits from Russia today. 

Hello, Russia!  =)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on April 11, 2012, 04:29:40 AM
I've also experienced a massive rise of views for my youtube video.
I guess this is caused by gamesx user ericmerl. He has built the wireless SNES controller and dedicated an imgur album to it which got viewed 2.5 MILLION times in few days. Sick...  ;D
Here's the album: http://imgur.com/a/8H3Ci (http://imgur.com/a/8H3Ci)


Today I've finally added support for the NES transmitter. Until now there was support for the NES receiver only. For the .hex file and schematic see the first post of this thread or the description of the youtube video.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Justin2808 on May 21, 2012, 05:42:19 AM
Hey Micro.

I got my wireless snes controller to work, but there is a small problem with my transmitter circuit. According to the schematic I have to connect SNES_PAD_VCC (white cable of the controller) to pin 6 of the attiny. I tried that, but when I do, the circuit does not work. The only way to get it to work is to connect SNES_PAD_VCC to a +5V VCC of a power supply. That way the controller runs on 5V and the rest of the transmitter circuit on 3V. This way I got everything working.

Do you have an idea what might be the problem here? Is pin 6 on the attiny suppose to deliver +5V to the controller? Because it is not putting out much voltage, only about +0.20V.

One more thing, when I program the atmega8 or attiny, programming is succesful, but I do get warnings saying "cannot set SCK period. please check for usbasp firmware update". Maybe that has to do with my problem?

I hope you can help me with this problem.

Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on May 22, 2012, 02:17:51 AM
Justin, you can't just provide +5V to the controller and let the microcontroller run on +3V, this will damage the microcontroller!
I'm not sure what's the reason for the problem you described. But you can try to connect the controller's Vcc (white wire) to pin 20 of the microcontroller (+3V)  directly. Keep me posted if it works. If it does it's probably just a timing issue and I'll try to fix the hex file...

You're measuring 0.2V instead of 3V on pin 6 because most of time the controller PCBis not powered.

Regarding you USBasp error: I don't have a clue, never had a USBasp programmer....
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Justin2808 on May 22, 2012, 03:48:28 AM
Micro, thanks for the quick response. I tried connecting the controller directly to the VCC of the microcontroller, but that does not work either. It seems like the controller does not want to run on 3V. 5V just fine, but 3V does not work.

I also connected another snes controller to the circuit instead of the one I have been using so far, but that one does not work either. So it is not my snes controller.

As far as my USBASP problem goes, I found out on the internet that the programming clock rate of my USBASP programmer is too high for the Attiny. I ordered another programmer which I can set at a slower clockspeed. From what I've read this should solve the warning "cannot set SCK period". Maybe not being able to "set the SCK period" is causing trouble, but I'm not sure if that matters.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on May 22, 2012, 07:36:58 AM
It's really strange. As far as I know the 4021 IC on the SNES controller PCB should work with Vcc of 3V. Is it an original Nintendo controller or a 3rd party one? US? PAL?

Also, did you set the fusebits?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Justin2808 on May 23, 2012, 03:29:43 AM
I tried 2 controllers, an original PAL snes controller and a cheap 3rd party one. Both did not work. Also I did set the fusebits. I used MyAVR ProgTool to program the controllers, but that shouldn't matter I think.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Justin2808 on May 23, 2012, 06:41:11 AM
Micro, I got everything to work now. I replaced the 10k resistors. I used bigger 1W resistors at first, because the 0.25W carbon film ones, were not available at that particular store at that time. I thought it would work just as well, but I guess it doesn't. Yesterday I did get the proper 0.25W resistors and now everything works!

Also at first the two wireless modules were powered by the same 3V power supply, since everything was still close together on the breadboard. I now powered them separatly, the way it is in the schematics.

I guess the circuit drew to much power for the snes controller to work. That's the only thing I can think of since I do not know electronics that well. But anyway all is working now, it was my own stupid mistake, sorry for the inconvenience. Thanks for the quick responses and it is a very cool project indeed!

I'm gonna solder everything everything together know, hope everything still works after soldering.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on May 24, 2012, 02:37:04 AM
Phew, what a relief  :D
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on May 25, 2012, 05:02:24 AM
Hello Micro!

I've heard that the N64 and GameCube controller protocol is very similar. Is it true?

Would be awesome if you implement your code to GCs!! Have you ever think about it?  ;D
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on May 27, 2012, 03:08:57 AM
Have you ever heard of the Wavebird controller?  ;)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on May 29, 2012, 05:54:37 AM
Of course i've heard  :) hahahah

But it'll allow GC controlller to play with all consoles that you've built this beauty. And make your awesome project bigger and bigger.
Aswell wavebirds are so much expensive and going to be rare.

I'm just an annoying guy giving my opinion  :)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: froozeR on June 01, 2012, 04:33:51 AM
Wow, awesome work.

I realy enjoy playing SNES together with a friend wireless. You postet a channel 3&4 version for N64.
I would like to play with 4 players wireless, is there a chance that you can post a channel 3&4 version for SNES? That would be great.

Thank you.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Justin2808 on June 03, 2012, 09:37:40 AM
Hey Micro,

I got my snes controller to work. Really love it, so thanks for it all. Now I would like to build a wireless n64 controller, but whithout the rumble pack housing. It seems there is more than enough room for the electronics in the standard controller. Could you provide me with a scheme where I can use a standard conroller yo make it wiereless, possibly with rumble support? Thanks anyway

Regards,
Justin
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on June 04, 2012, 12:58:15 AM
@froozer: I don't know, right now I'm pretty busy. If you've built 2 controllers and are content with the result, then maybe I will release the .hex files for ch3+4.

@Justin:
Rumble: no, it doesn't work (as stated in the instructions)

If you want to use a lithium battery inside the N64 controller, well then you should use the voltage regulator circuit as used in the SNES controller. Just have a look at both schematics and compare.
But as I stated (in the instructions) the N64 controller has a high current consumption. You better find a bigger battery than the Ipod battery. And it should also have an  included under-voltage protection just like the Ipod battery...


Other news:
I found out that there are professionally-produced wireless SNES controllers now, mady by "retro-bit"
http://www.innexinc.com/product_detail.php?prod_id=RB-SNES-6621&brand=65&page_num=2 (http://www.innexinc.com/product_detail.php?prod_id=RB-SNES-6621&brand=65&page_num=2)
The price is VERY good and the box looks very nice too. Unfortunately in my opinion over 90% of third party controllers just suck. But I really wonder how good these retro-bit controllers are =)

It seems retro-bit makes other crazy accessoires (http://www.innexinc.com/product_listing.php?page_num=0&brand=65) too, like an adaptor to play NES or Genesis games on the SNES....
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: kmksoulja on June 13, 2012, 11:59:54 PM
i just want to say that i would buy every one of these if you ever wanna start selling them
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Konsolkongen on June 14, 2012, 11:41:00 PM
Hey Micro. Do you think it would be possible to adapt this mod for the official Infrared SEGA Saturn controllers too?
http://i40.photobucket.com/albums/e236/Konsolkongen/Various%20mods/DSC00495-1.jpg (http://i40.photobucket.com/albums/e236/Konsolkongen/Various%20mods/DSC00495-1.jpg)

It uses a different IC and the pinout does not match the other one at all, so I guess it won't be that simple. I haven't been able to find a datasheet of this IC either :(

The SEGA wireless controllers are just as good as the normal ones and the dongle they use are big enough to easily fit this mod into as well. They also have a 1 or 2 player switch that could be used for channel selecting (perhaps work as ON/OFF (center OFF) at the same time?) and they take two AA batteries, so they would be perfect for this mod :)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on June 21, 2012, 10:08:40 AM
Hello again, Micro!

I've tried several things before ask help here, but I can't get my wireless controller to work.

I'm doesn't having any response on any button or analog.

-Checked and rechecked all the connections.
-Pretty sure that all the components have their properly values, I've checked
-Pretty sure that there's no shorts, I've checked
-Controller is working normally without the wirelles circuit
-Vcc and GND isn't inverted on any place
-I'm pretty sure the microcontrollers are flashed correctly and the right fuses
-Flashed different virgins MCUs on different programs. I'm using USBASP and used Extreme Burner and MyAVRProgool. same result, nothing.
-Checked aswell the RX. No shorts, right values and right connections. The N64 also recognize the RX, so I think the issue isn't there. (?)
-The RX is on P1 mode and I pressed A while turning the controller on.
-Tried turn on the controller before the N64 and vice versa. Same result.
-Powering everything with 3.3v.

Do you have any other tips?

Thanks =)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on June 21, 2012, 07:22:29 PM
@konsolkongen: I've also had a set of the official Sega IR controllers. They feel very nice, although they're significantly thicker and the battery lids tend to open in the the heat of the battle ;) There probably won't be special version for those controllers. But if you really want to apply the mod on them then I suggest you remove all electrical components on the PCB (IC, resistors, caps, etc.). Then you can rebuild the circuit of the official wired Sega controller by using 2x 74HC153 ICs (see: http://www.gamesx.com/controldata/saturn.htm (http://www.gamesx.com/controldata/saturn.htm)). After that you should be able to do the normal Saturn wireless mod on them, but without the voltage regulator inside the pad (no need for that).

I guess it's not really worth the effort...

@pervert: When the N64 thinks there's a controller connected then this just means the connection between the N64 and the MCU inside the receiver is ok (which is only a single wire). It's still possible you got the connection between the MCU and the nrf receiver module wrong.
I'd also try out both channels, of course.

If you really want me to spot the error you should post pics of your controller and receiver circuit. A lot of pics; good and sharp pics on which I can actually see all the details =)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Ignition365 on June 22, 2012, 12:35:03 AM
My understanding with making a wireless n64 controller that is capable of still using a memory pak is that wireless transmission of memory data is not reliable and therefore discouraged, do you think it would be possible to integrate a memory pak into a receiver?

I think the receiver would be overly large if I were to do that, but I'm sure I could finagle something so that it rests over the actual console.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Konsolkongen on June 22, 2012, 08:30:48 AM
Quote from: micro on June 21, 2012, 07:22:29 PM
@konsolkongen: I've also had a set of the official Sega IR controllers. They feel very nice, although they're significantly thicker and the battery lids tend to open in the the heat of the battle ;) There probably won't be special version for those controllers. But if you really want to apply the mod on them then I suggest you remove all electrical components on the PCB (IC, resistors, caps, etc.). Then you can rebuild the circuit of the official wired Sega controller by using 2x 74HC153 ICs (see: http://www.gamesx.com/controldata/saturn.htm (http://www.gamesx.com/controldata/saturn.htm)). After that you should be able to do the normal Saturn wireless mod on them, but without the voltage regulator inside the pad (no need for that).

I guess it's not really worth the effort...

Don't say that I think it would be totally worth it :D Thank you for this information it seems very simple. I don't suppose it would be possible to make the 1P/off/2P switch work as it normally does on the infrared pads (so I wouldn't have to hold down A or B to select a channel, and put it in center for OFF) without having to mess around with your code? I could just make it on/off/on and use A and B for channel select, that would work fine, but the other way would be just a tiny bit cooler ;)

EDIT: Think it will be possible to power the 74HC153's with only 2.4V (2x rechargeable AA batteries) using some kind of voltage regulator? According to the 74HC153 schematic it requires 5V to function.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on June 25, 2012, 12:15:53 AM
@Ignition: No, I don't know how to emulate a memory pak on the receiver side.

@Konsolkongen: Just pick two 74HC153 devices (not the 74HCT153), they'll run fine on supply voltage as low as 2V.
The NRF transceiver module also works with 1.8 to 3.6V. The only problem I can think of is that 2.4V may be a little bit too low for the Attiny2313. If you run into problems you should use the ATtiny2313V version.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Konsolkongen on June 26, 2012, 04:14:58 AM
Quote from: micro on June 25, 2012, 12:15:53 AM
@Konsolkongen: Just pick two 74HC153 devices (not the 74HCT153), they'll run fine on supply voltage as low as 2V.
The NRF transceiver module also works with 1.8 to 3.6V. The only problem I can think of is that 2.4V may be a little bit too low for the Attiny2313. If you run into problems you should use the ATtiny2313V version.

Awesome thanks a lot. Better get go for the ATtiny2313V just to be sure :)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on June 27, 2012, 01:43:18 AM
Hi Micro!

I've rechecked the connections betweeen the NRF and MCU on both controller and receiver, everything is right and no shorts.
One thing I've noticed is that the pullup resistor on the controller's data line is 7k on my multimeter, but the colors say it's 10k. Does it make any difference?
I don't have a camera anymore, just my iphone and the image quality isn't good. I don't want your eyes bleeding hahaha..
I'll take pics with my job's camera later.

I have another question:
Is possible to get the MCU "partially working"?
I remember had the error "cannot set SCK period" when programing the ATMEGA8, but the console recognizes the RX, this means the MCU is working, right?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on June 27, 2012, 06:29:42 PM
When the N64 regognizes the receiver as a controller then I'm sure flashing of the microcontroller was successful.

7k instead 0f 10k pullup resistance in the transmitter also shouldn't be a problem. Did you measure the resistance when the resistor was already soldered in the circuit? If you did so, you will not get the right value, so don't worry....

Did you also set the right fuses of the microcontroller inside the the transmitter? 8 MHz crystal and caps installed?


There's also always the possibility that one NRF transceiver module is just dead; happened to me when I got the very first batch....
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on June 28, 2012, 04:08:01 AM
Would be really sad if one NRF's dead. I just bought 2 units and it took forever to arrive  :-[
I can't believe I'll need to wait this all again.  :'(
There's some way to test and see if it's still alive?
Also, there's some way to test if tiny 2313 is flashed right?
On the tests, I'm not using the 22pf capacitors on any clock cristals.  Does it really matter?

Also, is 3v3 voltage enough to run the MCUs at 8mhz and 16mhz?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on June 28, 2012, 06:40:31 AM
Quote from: public-pervert on June 28, 2012, 04:08:01 AM
On the tests, I'm not using the 22pf capacitors on any clock cristals.  Does it really matter?

Are you kidding? The two 22 pF caps on the 8 and 16 Mhz crystals are absolutely mandatory  :P
Why did you leave them out?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on June 28, 2012, 11:41:09 AM
Urgh! I guess it's just to reduce some noise (?).

I always chop the caps from cristals off when I do some mod.

What exactly is their function, if not to reduce noise?

I'll try it out tomorrow!  ;D
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on June 28, 2012, 04:08:23 PM
Oh boy!  ;D
The 2 caps and the crystal, as well as some other internal components you can not see, form a crystal oscillator which provides the clock signal for the microcontroller. So please, never leave out those 2 caps. Also, the value of the capacitors has to be 22 pF, not 100 nF or something else. And better install those 2 caps inside the receiver, too. (I'm still impressed that you receiver was working without the caps...)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on June 29, 2012, 01:20:16 AM
HELL YEAHHHH!! IT WORKS!! hahahahha  ;D

Now I'm pretty close to finish and close this thing up!

Just need to drill the LED and miniUSB holes  ;D ;D

Pics very soon!!  :P
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on June 29, 2012, 05:39:15 AM
Congratulations, I guess you've learned your lesson about leaving out capacitors ^^

Mini-USB hole? So you're gonna use a lithium-ion battery instead of a rumble pak? What battery type did you choose?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on June 29, 2012, 06:02:06 AM
Thanks man! You're awesome!  ;D

No rumble pak. I've rewired the whole n64 controller inside a WiiClassic controller  and used your another mod to use pot based joystick. The another joystick will the C's.

I've chosen some type of Mp3 player battery, it's rated at 440mah. Maybe this battery will last about a few hours.
I can replace it with a bigger battery if it lasts too soon through.

Yes sir! Capacitors won't be removed anymore  ;)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Konsolkongen on June 29, 2012, 10:18:17 AM
Hey micro. About this Saturn controller schematic you linked to earlier. These 4K7 resistors are supposed to go to Vcc, right? Which in my case with the infrared controllers and rechargeable batteries will be 2.4V.

http://i40.photobucket.com/albums/e236/Konsolkongen/Various%20mods/saturn.jpg (http://i40.photobucket.com/albums/e236/Konsolkongen/Various%20mods/saturn.jpg)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on June 30, 2012, 02:15:30 AM
@pervert: Nice, can't wait to see the pics... But please be careful with the battery. The mod doesn't have under-voltage battery protection integrated and relies on the onder-voltge protection of the ipod battery. I hope your battey has under-voltage protection, too. Otherwise your battery could get damaged...

@Konsolkongen: Yes, that's right. I wouldn't use 4.7k resistors, but 10k. (decreases current when buttons are pressed -> battery lasts longer).
Another tip: By using  resistor arrays (http://www.reichelt.de/4-Widerstaende-5-Pins/SIL-5-4-10K/3/index.html?;ACTION=3;LA=2;ARTICLE=17677;GROUPID=4496;artnr=SIL+5-4+10K;SID=26ClYQIKwQARoAACAdS8s11498055a7eef65fb6de1f1157bdc350) instead of single resistors you can save space and trouble. (The pin designated with a dot should be connected to Vcc = 2.4V, the other pins are connected to the lines you want to pull up (up, down, left, right, A, B, C, etc...))


Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Konsolkongen on July 01, 2012, 11:04:29 AM
Good idea, thank you :)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on July 03, 2012, 09:54:51 AM
It's done!! Just a little crappy iphone pic for now. I'll take better photos and show everything very soon  ;D

(http://img707.imageshack.us/img707/8896/img0623ih.jpg)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on July 03, 2012, 05:58:49 PM
Wow, that looks really great! (Although I'd prefer the original N64 controller design).
Also very neat stickers. And the case for your receiver looks terrific, too. Where did you get that from? :o
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on July 04, 2012, 01:46:46 AM
Firstly, I bought a new cheaper USBASP programmer, and made nice little PCBs to burn each microcontroller. This is the ATTINY2313 circuit.
(http://img825.imageshack.us/img825/5456/img0589ed.jpg)
By publiccpervert (http://profile.imageshack.us/user/publiccpervert) at 2012-07-03
(http://img43.imageshack.us/img43/5060/img0590nmu.jpg)
By publiccpervert (http://profile.imageshack.us/user/publiccpervert) at 2012-07-03


Reduced a official N64 controller board
(http://img189.imageshack.us/img189/549/img0599xi.jpg)
By publiccpervert (http://profile.imageshack.us/user/publiccpervert) at 2012-07-03

Opened space for the N64 controller board
(http://img267.imageshack.us/img267/1777/img0598m.jpg)
By publiccpervert (http://profile.imageshack.us/user/publiccpervert) at 2012-07-03

It fits =)
(http://img838.imageshack.us/img838/8408/img0600sz.jpg)
By publiccpervert (http://profile.imageshack.us/user/publiccpervert) at 2012-07-03

This is an ATMEGA8 and an NRF24L1+ for the receiver.
(http://img404.imageshack.us/img404/3384/img0595ui.jpg)
By publiccpervert (http://profile.imageshack.us/user/publiccpervert) at 2012-07-03

This is the receiver box i've built with acrylic sheet + CNC laser machine.
(http://img4.imageshack.us/img4/1883/img0611fz.jpg)
By publiccpervert (http://profile.imageshack.us/user/publiccpervert) at 2012-07-03

Take a look how small the charger circuit is. A MicroSD for size comparison.
(http://img402.imageshack.us/img402/118/img0609os.jpg)
By publiccpervert (http://profile.imageshack.us/user/publiccpervert) at 2012-07-03


This is the receiver before close. It was a really tight fit.
(http://img600.imageshack.us/img600/971/img0616q.jpg)
By publiccpervert (http://profile.imageshack.us/user/publiccpervert) at 2012-07-03
(http://img818.imageshack.us/img818/7131/img0615we.jpg)
By publiccpervert (http://profile.imageshack.us/user/publiccpervert) at 2012-07-03
(http://img580.imageshack.us/img580/6079/img0614ow.jpg)
By publiccpervert (http://profile.imageshack.us/user/publiccpervert) at 2012-07-03

Lastly, the controller itself before close. On the first part, you can see the MiniUSB port for charging the battery, charging circuit, and the wirelles module.
On the second part you can see batteries, 3,3v regulator (under the left black tape), joysticks, ATTINY2313 to mimic the N64 signals to the wirelles module, and I used an ATMEGA8 again (under this black tape on the middle) to make the conversion POT JOYSTICK > PHOTO DIODE JOYSTICK
(http://img208.imageshack.us/img208/6563/img0619c.jpg)
By publiccpervert (http://profile.imageshack.us/user/publiccpervert) at 2012-07-03

And the finished product. Personally, I loved it! :D
(http://img24.imageshack.us/img24/1617/img0629dm.jpg)
By publiccpervert (http://profile.imageshack.us/user/publiccpervert) at 2012-07-03
(http://img254.imageshack.us/img254/5435/img0628fh.jpg)
By publiccpervert (http://profile.imageshack.us/user/publiccpervert) at 2012-07-03
(http://img402.imageshack.us/img402/6246/img0627ki.jpg)
By publiccpervert (http://profile.imageshack.us/user/publiccpervert) at 2012-07-03
(http://img19.imageshack.us/img19/8862/img0626pl.jpg)
By publiccpervert (http://profile.imageshack.us/user/publiccpervert) at 2012-07-03
(http://img4.imageshack.us/img4/6638/img0625gr.jpg)
By publiccpervert (http://profile.imageshack.us/user/publiccpervert) at 2012-07-03
(http://img43.imageshack.us/img43/4525/img0624or.jpg)
By publiccpervert (http://profile.imageshack.us/user/publiccpervert) at 2012-07-03

I doubt you can really see in this blury pic, but this is unfamous Mario in action, just to prove it works! :D
(http://img708.imageshack.us/img708/8462/img0631jj.jpg)
By publiccpervert (http://profile.imageshack.us/user/publiccpervert) at 2012-07-03
(http://img525.imageshack.us/img525/5329/img0630e.jpg)
By publiccpervert (http://profile.imageshack.us/user/publiccpervert) at 2012-07-03

This is how I mapped de buttons
(http://img444.imageshack.us/img444/955/imagemelh.png)

It was really fun to build! Hope you enjoy!

@Micro: I've built this receiver box with white acrylic sheet, cutted on a laser machine ;D
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on July 04, 2012, 06:03:14 AM
Very, very nice work! ;D

Acrylic plastic sheets, laser-cutted WTF? I have to admit that I'm a little bit jealous =)

Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on July 04, 2012, 07:22:07 AM
Thank you man! Knows you liked it means a lot to me!  ;D

Now I need to post it on every modding forums and see if it draw the attention of people out.

I'm certain it'll have a good repercussion!  8)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: kmksoulja on July 07, 2012, 09:23:47 AM
i want one
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: dracbat59 on July 10, 2012, 09:26:34 AM
I love this to the extreme. Wish you sold one or the parts in a package at least (having trouble finding a US place that carries all the necc. parts)
public-pervert has an excellent idea for what I was thinking of doing (or trying to in the matter of beginners luck with failure waiting for me)

I  have an original Doc's Wireless Controller for the N64.
Would it be easier for me to just upgrade/update the signal? What or how would I go that route?

And could you help me with what I can do for the batteries because I have no enclosure for them and they overheat extremely.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: kmksoulja on July 11, 2012, 03:20:18 AM
does anybody think it would be worth it to make and sell these?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on July 12, 2012, 01:48:50 AM
I've received quite some answers regarding the mod.

As stated in the instruction's disclaimer my schematics and program files are not supposed to be used in a commercial way. But ultimately I cannot prevent someone is making dollar or two by selling preprogrammed microcontrollers. But I definitely don't want to see people running a business by selling several of these controllers for a massive amount...

One thing I learned in the past year is that for the majority of people this mod is hard to accomplish (public-pervert, you're not alone). Even people that have basic knowledge of electronics and soldering run into problems. And if the controller doesn't work it's hard to spot the error.

So what I'm planning for the 2nd version of the mod is to make universal PCBs for the receiver and transmitter. If this plan works out then I think I can offer completely populated and preprogrammed PCB's, including the housing. This will make the mod much more easier and faster to do, especially for rookies.
In fact, I've already received the first batch of the receiver PCB's one or two months ago. You can have a look:  http://imgur.com/a/1XuEP (http://imgur.com/a/1XuEP)

Designing the transmitter circuit & PCB will take longer as I want to include some more things like onboard battery charger, battery protection, undervoltage alert, etc...
The code will be rewritten, too. I want to have a (more) reliable RF protocol, as well as 10 different channels to choose from, and more.

I can't provide a date  (I'm really busy at the moment), nor a price tag for the PCB's  (I won't give them out for free, of course). The rough road map looks like this:

1.) Designing the transmitting PCB
2.) Rewriting the program code for the existing consoles
3.) Maybe adding support for other consoles (Neogeo will be the first one)

Stay tuned! :)



Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on July 12, 2012, 09:52:33 AM
Micro, you turned it my favourite thread yet!!  ;D

It's a very, very great idea! Your PCBs is looking delicious man!  :o
So no more attiny2313?

Please think about adding a Gamecube to the list  ;D ;D

I can't wait to see more progress on this  8)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: kmksoulja on July 13, 2012, 08:15:19 AM
gamecube already has a wireless controller. its called the wavebird. i am very interested in the SNES controller mods and will purchase them already made or the easier kit micro if u make them.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on July 13, 2012, 12:12:05 PM
Of course I know that theres a Wavebird, but Wavebirds are not "cross console" compatible like these beauties that Micro made.
I would love the GC on the list more than any mod ever done  :)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: duo_r on July 19, 2012, 06:24:12 AM
nice job perv! I love this mod, what would it take to get the code for PC Engine? Do you just need a system to pull data from?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on July 26, 2012, 11:53:38 PM
Quote from: duo_r on July 19, 2012, 06:24:12 AM
nice job perv! I love this mod, what would it take to get the code for PC Engine? Do you just need a system to pull data from?

Out of my capability. I guess Micro can answer this question  :)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: duo_r on July 31, 2012, 03:01:27 PM

Cant wait to see these become a reality!

Quote from: micro on July 12, 2012, 01:48:50 AM
I've received quite some answers regarding the mod.

As stated in the instruction's disclaimer my schematics and program files are not supposed to be used in a commercial way. But ultimately I cannot prevent someone is making dollar or two by selling preprogrammed microcontrollers. But I definitely don't want to see people running a business by selling several of these controllers for a massive amount...

One thing I learned in the past year is that for the majority of people this mod is hard to accomplish (public-pervert, you're not alone). Even people that have basic knowledge of electronics and soldering run into problems. And if the controller doesn't work it's hard to spot the error.

So what I'm planning for the 2nd version of the mod is to make universal PCBs for the receiver and transmitter. If this plan works out then I think I can offer completely populated and preprogrammed PCB's, including the housing. This will make the mod much more easier and faster to do, especially for rookies.
In fact, I've already received the first batch of the receiver PCB's one or two months ago. You can have a look:  http://imgur.com/a/1XuEP (http://imgur.com/a/1XuEP)

Designing the transmitter circuit & PCB will take longer as I want to include some more things like onboard battery charger, battery protection, undervoltage alert, etc...
The code will be rewritten, too. I want to have a (more) reliable RF protocol, as well as 10 different channels to choose from, and more.

I can't provide a date  (I'm really busy at the moment), nor a price tag for the PCB's  (I won't give them out for free, of course). The rough road map looks like this:

1.) Designing the transmitting PCB
2.) Rewriting the program code for the existing consoles
3.) Maybe adding support for other consoles (Neogeo will be the first one)

Stay tuned! :)




Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: pakam45t3r on August 05, 2012, 11:24:54 PM
Where's a good place to get the plastic pieces for the charger and the receivers?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: busslave on September 06, 2012, 11:17:32 PM
Man... You must be an AVR god!
I've been struggling for 2 weeks now with my Saturn IR digital pad project, but I can't get it to work.
I'm using an Arduino UNO (ATmega328P) @16MHz for prototyping. The IR sender is working just fine.
The receiver reads sent signals OK too. The problem seems to be on getting the proper select lines readings.
The Select0 (or TH, or pad pin 4) is connected to AVR INT0 (pin2).
The Select1 (or TR, or pad pin 5) is connected to AVR INT1 (pin3). TL is tied to +5V.
I'm attaching the external interrupt the Arduino way: attachInterrupt(0, TH_changed, CHANGE), which should be equivalent to: EICRA=1; EIMSK=1. This enables external interrupts on INT0 pin toggle.
My ISR:
void TH_changed() { //
   address_request=(PIND>>2)&3;//Read Port D input pins, shift rightmost and clear leftmost bits.   //__asm__("nop\n\t");
   //address_request&=3;//Clear leftmost bits.
   PORTB=command_buff[address_request];//Write command nibble.
   debug_buff[db_ix++]=address_request;//DEBUG!!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: busslave on September 07, 2012, 01:04:01 AM
Sorry, the message got truncated. There is no more code on my external interrupt ISR.

I'm also setting as default values:
command_buff[3]=12;//Saturn digital pad data for SH-2 direct mode.
command_buff[2]=7;
command_buff[1]=7;
command_buff[0]=7;
(I'm using 7 and not 15, because I'm expecting to see some cursor movement, even when the IR sender is off: it should move to the right).

In the main loop, when the debug_buff is full, I detach the INT0 interrupt and send the debug_buff to the terminal window. But instead of getting 3,2,1,0,3,2,1,0,... I always get 2,3,2,3,... This suggests that the TR pin is allways 1.

Please, help me, I'm getting desperate.
I understand the Saturn timings are brutal. The data nibble should be available 2us after the select lines change. That is 32 clock cicles@16MHz. Even if the console takes another 2us to read the data lines and change the select lines again (I don't know the actual timings), this means that after 4us the INT0 ISR will be called again, only leaving 64 clock cicles to deal with all the rest.

Could you please post your INT0 ISR, so that I can have an ideia of how you did it?
Using external multiplexers on the receiver side is not an option. Should I consider using SMPC control mode?
Thanks.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: busslave on September 07, 2012, 01:08:32 AM
I'm posting my ISR routine again, without the comments. It looks like a total mess.

void TH_changed() {
   address_request=(PIND>>2)&3;
   PORTB=command_buff[address_request];
   debug_buff[db_ix++]=address_request;
}
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on September 07, 2012, 01:24:20 AM
Quote from: pakam45t3r on August 05, 2012, 11:24:54 PM
Where's a good place to get the plastic pieces for the charger and the receivers?
I've always got them at www.reichelt.de (http://www.reichelt.de), a German electronics shop:
Receiver housing (reichelt (http://www.reichelt.de/Kunststoffgehaeuse-TEKO/TEKO-10006/index.html?;ARTICLE=34080;))
Charger housing (reichelt  (http://www.reichelt.de/Etuigehaeuse/SP-2044-SW/index.html?;ACTION=3;LA=2;ARTICLE=33833)/ conrad (http://www.conrad.de/ce/de/product/522074/MODUL-GEHAeUSE-50-X-38))


Quote from: busslave on September 06, 2012, 11:17:32 PM
Man... You must be an AVR god!
I've been struggling for 2 weeks now with my Saturn IR digital pad project, but I can't get it to work.
I'm using an Arduino UNO (ATmega328P) @16MHz for prototyping. The IR sender is working just fine.
The receiver reads sent signals OK too. The problem seems to be on getting the proper select lines readings.
The Select0 (or TH, or pad pin 4) is connected to AVR INT0 (pin2).
The Select1 (or TR, or pad pin 5) is connected to AVR INT1 (pin3). TL is tied to +5V.
I'm attaching the external interrupt the Arduino way: attachInterrupt(0, TH_changed, CHANGE), which should be equivalent to: EICRA=1; EIMSK=1. This enables external interrupts on INT0 pin toggle.
My ISR:
void TH_changed() { //
   address_request=(PIND>>2)&3;//Read Port D input pins, shift rightmost and clear leftmost bits.   //__asm__("nop\n\t");
   //address_request&=3;//Clear leftmost bits.
   PORTB=command_buff[address_request];//Write command nibble.
   debug_buff[db_ix++]=address_request;//DEBUG!!

Most likely you got a speed issue. You should definitely activate compliler optimization if that's available on your Arduino IDE. (I'm not familiar with Arduinos). My ATmega8 was running on 16 MHz, too. Yet it was still difficult to maintain the timings.

I wrote the code in ASM. Just like in your code my INT0 pin was configured to cause an interrupt when toggled. My ISR looked like this:
isr0:
IN r22, SREG     ;save status register

SBIC PIND, PD2
RJMP H
RJMP L
H:
SBIC PIND, PD3
RJMP HH
RJMP HL
L:
SBIC PIND, PD3
RJMP LH
RJMP LL
HH:
;L 1 0 0
OUT PORTC ,sathh
RJMP isr0_end
LH:
;R L D U
OUT PORTC, satlh
RJMP isr0_end
HL:
;START A C B
OUT PORTC, sathl
RJMP isr0_end
LL:
;R X Y Z
OUT PORTC ,satll
isr0_end:
OUT SREG r22 ;write back status register
RETI

The button data was stored in 4 dedicated registers (satll, satlh, etc...) for maximum speed. Loading from SRAM takes another 2 clocks to execute.
"The data nibble should be available 2us after the select lines change." It's even less than 2 us.  At the beginning the ATMega was running at 8 MHz. I was able to ouput the data nibble after 1.875 us. Even that was not fast enough...

BTW, this is how the Saturn is polling a standard digital controller, repeated every 16.67 ms...
(http://i.imgur.com/TSZ07.png)


Last week I was doing some research on the saturn controller protocol and I've completely rewritten my saturn code. I found out a very, very convenient way to communicate with the Saturn.
Say, you throw around with terms like "TH" and stuff so I guess you've read the Sega SMPC document?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: busslave on September 07, 2012, 09:11:58 PM
Thank you for your fast answer.

Last night I changed the address variable to local, and I got the following results: 0,1,2,3,2,3,2,3,... So, the TR pin does change, after all. I's certainly not in the order I expected (I was expecting 3,2,1,0,3,...), but hey, at least I didn't blow up the console port.

I'm only guessing here, but it seems the console keeps repeating 2,3,... because the Saturn encodes the Peripheral ID in these nibbles. In my case, they are:

Nibble3 (12): 11 00
Nibble2 (07): 01 11

The Saturn peripheral ID is:

bit3: (1|1)=1
bit2: (0|0)=0
bit1: (0|1)=1
bit0: (1|1)=1

which gives 1011=11. According to the SMPC User's Manual, this is OK.

Actually, Sega seems to have followed some sort of MegaDrive/Genesis peripheral ID convention. Anyway, I already expected this result, that's why I chose 12 for the third nibble value. That's because:

bit3: (L TRG, don't care | always 1, tied to VCC inside the pad) = 1
bit2: (always 0, tied to GND | always 0, tied to GND) = 0
bit1: (RIGHT | LEFT) = 1, since they can't both be pressed.
bit0: (UP | DOWN) = 1, same here.

So I guess I'm dealing with a timing issue, after all.

Yes, I do have an optimization option, which is optimizing for size (I'm not using the Arduino IDE, I'm using AtmelStudi6 with the Arduino libraries). I'm a total noob (this is my second project) and I'm learning as I go. I've never dealt with ASM before, but I'll try to understand your code and implement your suggestions.

Many thanks, micro.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on September 08, 2012, 06:13:14 PM
I think we should discuss this in a new thread! -> http://nfggames.com/forum2/index.php?topic=4965.0 (http://nfggames.com/forum2/index.php?topic=4965.0)  :)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: flagoss on September 10, 2012, 03:12:29 PM
Here some cases I found on ebay !

1rst one looks exactly like the one Micro used !!
http://www.ebay.ca/itm/PLASTIC-BOX-ENCLOSURE-CASE-HOBBY-ELECTRONIC-PROJECT-ABS-E224-/130739375741?pt=UK_BOI_Electrical_Components_Supplies_ET&var=&hash=item642318e3b4#ht_2752wt_1139 (http://www.ebay.ca/itm/PLASTIC-BOX-ENCLOSURE-CASE-HOBBY-ELECTRONIC-PROJECT-ABS-E224-/130739375741?pt=UK_BOI_Electrical_Components_Supplies_ET&var=&hash=item642318e3b4#ht_2752wt_1139)

These ones are less large ...maybe it would be great for n64 and for NES but I dont know if everything would fit !
http://www.ebay.ca/itm/PLASTIC-BOX-ENCLOSURE-CASE-HOBBY-ELECTRONIC-PROJECT-ABS-E203-/130738101732?pt=UK_BOI_Electrical_Components_Supplies_ET&var=&hash=item64230c7272#ht_1902wt_1139 (http://www.ebay.ca/itm/PLASTIC-BOX-ENCLOSURE-CASE-HOBBY-ELECTRONIC-PROJECT-ABS-E203-/130738101732?pt=UK_BOI_Electrical_Components_Supplies_ET&var=&hash=item64230c7272#ht_1902wt_1139)
http://www.ebay.ca/itm/Electronic-Project-Plastic-Box-Enclosure-Case-N-43-/250868360328?pt=LH_DefaultDomain_0&hash=item3a68eb6488#ht_1780wt_906 (http://www.ebay.ca/itm/Electronic-Project-Plastic-Box-Enclosure-Case-N-43-/250868360328?pt=LH_DefaultDomain_0&hash=item3a68eb6488#ht_1780wt_906)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Game-Tech.us on September 19, 2012, 07:03:53 AM
I've been trying to build one of these for NES, but have failed and i'm wondering if the 4 transceivers I bought aren't all bad and how to test without them. Voltages are way out of spec when I plug them in to the circuit. I wasn't taking notes at the time, two months ago, but had an idea about it today:
Can I just wire certain pins from the 2313 to the mega8, bypassing the transceivers, to test that I programmed the chips right? This is my first ever attempt at MC prog uploading so I have no idea if I did it right, though it seemed to work as it was intended...
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: metrolf on September 19, 2012, 07:17:36 AM
Hey all! I have a quick question.

First of, a HUUGE thumbs-up to everyone who has contributed to this project, it's truly awesome!

Now for my question: In my case I'm thinking of eventually doing this to my N64 controller(s) and I was wondering: if I were to combine this with Kylejw and micros mod (using a for ex. a gamecube stick in the N64 controller, I'm sure most of you've seen it). To do this mod it seems I would have to go with a ATTiny chip which I understand draws less power than the ATmega for instance. I'm not quite sure of the power draw of the controller + the two chips used in the two mods. So, would combining these two mods result in a power-draw that leaves me with a sufficient battery-lifetime?

Would anyone care to enlighten me?  :)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on September 19, 2012, 10:12:42 PM
Quote from: flagoss on September 10, 2012, 03:12:29 PM
Here some cases I found on ebay !

1rst one looks exactly like the one Micro used !!
http://www.ebay.ca/itm/PLASTIC-BOX-ENCLOSURE-CASE-HOBBY-ELECTRONIC-PROJECT-ABS-E224-/130739375741?pt=UK_BOI_Electrical_Components_Supplies_ET&var=&hash=item642318e3b4#ht_2752wt_1139 (http://www.ebay.ca/itm/PLASTIC-BOX-ENCLOSURE-CASE-HOBBY-ELECTRONIC-PROJECT-ABS-E224-/130739375741?pt=UK_BOI_Electrical_Components_Supplies_ET&var=&hash=item642318e3b4#ht_2752wt_1139)
Great find! I contacted the seller and he sent me a drawing of the enclosure: http://imgur.com/tIltf (http://imgur.com/tIltf)
The enclosure really seems to be based on the TEKO 10006 case I'm using. The measurements differ a little bit. Do you know other sources for this case? I don't think that ebay seller will provide the name of his source ;)


Quote from: akaviolence on September 19, 2012, 07:03:53 AM
I've been trying to build one of these for NES, but have failed and i'm wondering if the 4 transceivers I bought aren't all bad and how to test without them. Voltages are way out of spec when I plug them in to the circuit. I wasn't taking notes at the time, two months ago, but had an idea about it today:
Can I just wire certain pins from the 2313 to the mega8, bypassing the transceivers, to test that I programmed the chips right? This is my first ever attempt at MC prog uploading so I have no idea if I did it right, though it seemed to work as it was intended...
What do you mean by "the voltages are way out of spec"?
Unfortunately you can't directly connect the 2 microcontrollers. Even if they were on the same voltage level.
But here's what you can do: On the receiver side you can install a LED that will light when the receiver is receiving data :) Take a standard LED and a 50 to 100 Ohm resistor in series. Connect the positive leg to 3 V and the negative leg to pin no. 15 of the ATMega8 (a.k.a "IRQ").
If that doesn't help you can also make some good pictures of your circuit. Maybe I can spot something =)


Quote from: metrolf on September 19, 2012, 07:17:36 AM
Hey all! I have a quick question.

First of, a HUUGE thumbs-up to everyone who has contributed to this project, it's truly awesome!

Now for my question: In my case I'm thinking of eventually doing this to my N64 controller(s) and I was wondering: if I were to combine this with Kylejw and micros mod (using a for ex. a gamecube stick in the N64 controller, I'm sure most of you've seen it). To do this mod it seems I would have to go with a ATTiny chip which I understand draws less power than the ATmega for instance. I'm not quite sure of the power draw of the controller + the two chips used in the two mods. So, would combining these two mods result in a power-draw that leaves me with a sufficient battery-lifetime?

Would anyone care to enlighten me?  :)
I can't speak for Kylejw and his PIC solution. But I hadn't have a low power consumption in mind when I made the circuit/program.
So a few minutes ago I measured the current consumption of my attiny24 solution and the consumption of the original photo-diode-based stick. BIG surprise:
N64 pad with original stick: 16 mA
N64 pad with potentiometer joystick and attiny24: 7.5 mA
N64 pad without stick: 4 mA

It turned out the original stick is VERY power hungry. I always thought the N64 controller itself has such a high current consumption but it's just the stick. Wow...!  ;D
So yes, you can use the attiny24 mod with the wireless N64 controller mod, it will even increase the runtime =)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: metrolf on September 21, 2012, 02:59:58 AM
Quote from: micro on September 19, 2012, 10:12:42 PM

I can't speak for Kylejw and his PIC solution. But I hadn't have a low power consumption in mind when I made the circuit/program.
So a few minutes ago I measured the current consumption of my attiny24 solution and the consumption of the original photo-diode-based stick. BIG surprise:
N64 pad with original stick: 16 mA
N64 pad with potentiometer joystick and attiny24: 7.5 mA
N64 pad without stick: 4 mA

It turned out the original stick is VERY power hungry. I always thought the N64 controller itself has such a high current consumption but it's just the stick. Wow...!  ;D
So yes, you can use the attiny24 mod with the wireless N64 controller mod, it will even increase the runtime =)

Huh, glad to be able to lead you to that discovery!  :D In hindsight, considering the fact that the original stick is based on photo-diode technology makes perfect sense when trying to figure out why the controllerboard draws so much power. Very nice find! I guess we can conclude that we would actually benefit from installing both mods. We get the great gamecube stick instead of the old piece of cr*p AND the runtime of the controller will be increased. Awesome 8)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: rhys79 on September 21, 2012, 03:32:01 AM
Ok, never mind, after several hours of investigation, I answered my own questions.  This should be interesting.....
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Fionamac83 on October 07, 2012, 08:18:06 AM
Hey guys!! I'm new to the forum and am desperately trying to follow this thread and the instructions so that I can make my own controllers.  I am a complete noob to all of this, so please forgive me for probably sounding like an idiot.  I have managed to create a charger for the controls, and am now trying to move on to creating the controls themselves.  My problem is that I have absolutely no idea how to program the Attiny2313 or the Atmega8.  I bought a Usbasp programmer, and I would like to make a board like public_pervert did for them, but so far I have not even been remotely successful at it.  I used Eagle to make my own PCB's for the charger, but have failed miserably at making them for the programming boards.  Any help or advice is massively appreciated and thank you guys in advance!!

Fiona
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on October 07, 2012, 06:03:23 PM
Fiona, if you're really a complete noob then you should better stay away from eagle ;)
You don't need a PCB to program the microcontrollers. You just need to connect 6 wires from your ISP programmer to the microcontroller (VCC, GND, MISO, MOSI, SCK, RESET).
In the .zip file there are schematics showing which wire goes to which pin to program the microcontroller.
See also: http://www.ladyada.net/learn/avr/programming.html (http://www.ladyada.net/learn/avr/programming.html)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: leonrrafael on October 11, 2012, 03:48:39 AM
Cant wait for GENESIS/MASTER tutorial.  :D
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on October 14, 2012, 02:08:42 AM
Quote from: leonrrafael on October 11, 2012, 03:48:39 AM
Cant wait for GENESIS/MASTER tutorial.  :D
;) http://nfggames.com/forum2/index.php?topic=4393.msg32143#msg32143 (http://nfggames.com/forum2/index.php?topic=4393.msg32143#msg32143)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: chuckhazard on November 03, 2012, 02:05:52 AM
Glad to see this thread is still going, at least semi-recently :)  I read that micro is making great improvements but it doesn't appear that the pcbs are ready yet, so I'm embarking on this project.  The documentation and stuff is very good as it is, and although I know very little about micro controllers I'm good with computers and soldering.  I think I have all the parts I need ready to order but I have some newb questions:

What kind of wire do I need?  In the pictures it looks like you have repurposed old ribbon cable for everything except the SNES programming socket (the thin enameled wire already mentioned).

ISP programming socket/Pin headers.  This is going to be particular to the programmer I use, either 10 or 6 pin?  No part numbers given, although I think I can figure it out, maybe even harvest some old mobo or something.

Reichelt does not appear to ship to USA, so I have been finding matching specs at digikey.  In some cases I could not find exact matches - I could only find 2.2uf capacitors with 10% tolerance, where yours specify 20%.  For the 4.7uf capacitor your part has 20% tolerance - I could only find 10%.  Is this going to matter in either case?

A new question is arising, which is whether a 3V 150mA can be substituted for the 3V 160mA version.

Thanks!
Charles
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on November 03, 2012, 11:34:33 PM
It doesn't matter if 10% or 20% tolerance.  :D

If you're still looking for the ISP socket, I guess this one (http://mouser.com/ProductDetail/3M-Electronic-Solutions-Division/30306-6002HB) is ok.

And yes, I used ribbon cable. But it's new ribbon cable and not old one ;)

QuoteA new question is arising, which is whether a 3V 150mA can be substituted for the 3V 160mA version.
You mean the voltage regulator?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: chuckhazard on November 04, 2012, 12:41:19 AM
Yes the voltage regulator, sorry didn't realize I left that out.  I'm having trouble finding those exact specs, though I may have found a SMD one.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on November 04, 2012, 02:21:37 AM
Hmm, the LP2950 should be available at almost every electronic components shop: http://de.mouser.com/Power/Power-Management-ICs/Low-Dropout-Regulators-LDO/_/N-6g7ma?P=1z0z63xZ1z0wd7g&Keyword=lp2950&FS=True (http://de.mouser.com/Power/Power-Management-ICs/Low-Dropout-Regulators-LDO/_/N-6g7ma?P=1z0z63xZ1z0wd7g&Keyword=lp2950&FS=True)
Which one did you find?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: chuckhazard on November 04, 2012, 11:08:32 AM
I had not looked at mouser, thanks for that.  I've been looking at digikey.  I found LP2950ACZ-3.0G but those and all the other 2950s  are out of stock until the end of the month.  I was looking at this instead http://www.digikey.com/scripts/DKSearch/dksus.dll?Detail&itemSeq=121801363&uq=634874633658525335 (http://www.digikey.com/scripts/DKSearch/dksus.dll?Detail&itemSeq=121801363&uq=634874633658525335) .  If I can order the precise item from mouser instead though, I'll do that.

Thanks,
Charles
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on November 08, 2012, 12:02:16 AM
Hmm, your digikey link is dead. But just search for LP2950, 3V out, TO92 package. 8)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: chuckhazard on November 14, 2012, 11:25:35 PM
Thanks, I found it, all the parts are sitting in the kitchen waiting for the battery to arrive to start assembly.  I actually ended up ordering everything from Mouser instead of Digikey.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: nullending on December 10, 2012, 11:02:08 AM
I haven't attempted to make anything yet, currently ordering supplies. I was checking out the schematics and noticed you still have some IO ports available on the RX. Too keep things simple, and make the controllers a bit more 'universal' especially for the N64 you could do two channel switches on the receivers. One A/B switch and one 1/2 switch to get four channels: A1, B1, A2, B2. For the controller, you could use UP and DOWN on the D-pad in addition to buttons A and B (or whatever button combo you want).

i.e.
A = Channel A1 (this is for the lazy people and old code compatibility)
B = Channel B1 (this is for the lazy people and old code compatibility)
A + UP = Channel A1
B + UP = Channel B1
A + DN = Channel A2
B + DN = Channel B2

I don't really like the idea of having a set of controllers for players 1-2 and a separate set for players 3-4, but this is just me being picky. Amazing job on all this, I'm sure we're all gracious that you're allowing the community to partake in the wireless fun.

Any chance of releasing the source?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: jars99 on December 18, 2012, 07:47:13 PM
micro,
awesome work!

I'd like to build this, but a slightly different version.  I came across this build back in 2007: http://www.ppl-pilot.com/SnesHack/index.htm (http://www.ppl-pilot.com/SnesHack/index.htm)

It is a wireless SNES that converts to a gamecube port.  What I like about it is that I would be able to use the SNES controller to play gamecube games on my Wii. 

I decided I was going finally start building it this month, but I'm encountering a few problems.  The creator of that project is in Australia.  That along with 5 years having passed, it seems that some of the parts are hard to find in the US.  I'm an IT guy - I know my way around Linux and serial ports and such, but this would be my first build.  So I am a bit of a noob, and maybe the parts really aren't that hard to find. 

Anyway, I came across your project, and thought what if I could use your parts to send GameCube signals?  How much work would it be to program the IC to send GC button presses instead of SNES button presses?

Also, I quickly read through this forum, and found that you were working on "mass-producing" some of the parts.  How is that coming along?

Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: wiggyx on January 02, 2013, 02:32:13 AM
Micro,

  Sent a PM to ya with a little proposal.  Great work!  More than I could accomplish on my own, that's for sure.  Keep up the good work :)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Darien on January 05, 2013, 04:34:11 PM
Signed up to the forum just for this thread. I recently got back into playing my N64, and thought making a wireless controller would be a neat little project.

I've heard that wireless with the N64 is an issue due to data corruption when using controller packs, making it impossible to use with games that rely on the controller pack for their save data. Is this the case?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on January 16, 2013, 03:19:58 AM
The Memory Pak is not supported.
That's all I can say.  :P
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on January 16, 2013, 04:04:49 AM
Guess I'm not the only one curious about how's going your new UWRT project, Micro. ;D Is it still alive?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on January 16, 2013, 05:17:26 AM
Yes, it's still alive but I haven't had the time to make real progress... ;D
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Darien on January 16, 2013, 10:00:14 PM
Quote from: micro on January 16, 2013, 03:19:58 AM
The Memory Pak is not supported.
That's all I can say.  :P

Damn. So no chance of Perfect Dark using one of these things?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: SnoopKatt on January 19, 2013, 08:58:32 AM
Thanks for posting this! I ordered the parts and I can't wait to try it out. I'll post pictures when I'm done.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: SnoopKatt on January 26, 2013, 08:03:26 PM
Sorry for double posting, but I understand that the N64 mod doesn't support memory cards. If I made another controller port out of the wireless receiver, could I plug in a wired controller and plug in a memory card into that? Or will the receiver and the controller running together draw too much current?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Marmotta on February 12, 2013, 04:44:45 AM
I've started working on making an N64 wireless pad, but just wanted to know if it would be possible to have a 4 way channel switch?  Obviously it's not necessary on any of the other compatible consoles, so may not be deemed worthy of inclusion, but I would eventually love to have 4 wireless N64 pads.  I'm pretty much a novice with this kind of stuff, so I don't know if it would require modification of the source code, etc. but could anyone confirm/deny if this would be possible?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on February 12, 2013, 05:43:46 AM
@SnoopKatt: I'm afraid that won't work...

@Marmotta: http://nfggames.com/forum2/index.php?topic=4393.msg31023#msg31023 (http://nfggames.com/forum2/index.php?topic=4393.msg31023#msg31023)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Marmotta on February 12, 2013, 06:24:13 AM
@micro:  Thanks!  I should've probably read the whole thread before asking.... :-[
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: SnoopKatt on February 19, 2013, 05:42:42 PM
I put everything together, and I'm having a bit of trouble getting it to work :/
The N64 doesn't see the receiver and doesn't think there is a controller plugged in. I was able to verify all of the fuse settings and MCU .hex, and I measured the voltage from the N64 to be 3.33V, so I think it's getting power. Attached are a couple images of my receiver. Any ideas?

Thanks in advance :)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on February 19, 2013, 07:20:31 PM
Hmm... It looks like you bridged pin 9 & 10?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: SnoopKatt on February 19, 2013, 07:22:44 PM
Aw man...how did I miss that  :o good catch, thank you. I'll fix it tomorrow and try again!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on February 19, 2013, 07:33:29 PM
 ;D Let's hope removing that bridge will fix it. Good luck!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: SnoopKatt on February 20, 2013, 03:02:36 PM
Thanks, that got it! I tested the controller briefly apart, and it seems to work great. I put it together, and it doesn't work anymore lol. Just gotta mess with it a little more.

Edit: Got it back! Now just gotta put it all together,and cut out the parts for the switches and stuff.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: ours1011 on February 21, 2013, 03:51:31 AM
Hi all !

Signed up to the forum just for this thread too. :)

First of all, thank you so much micro ! I'm going to make some snes controllers.

But all of this leads to a question ::) ... Is it possible to make a channel 3/4 (and even channel 5) for SNES like you did for N64 ?

Again, thanks a lot !
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: conquer on February 23, 2013, 03:45:30 PM
Hey micro I just finished my first wireless controller! I made the N64 and hopefully it is the first of many.  I did run into a few problems most of which were probably caused by my poor soldering skills; I expected as much since this was the first time I ever picked up a soldering iron.  now that everything is working i have a few questions i hope you could help me out with

1) When programming the mega8 I connected everything like in your diagram but had to switch mosi and miso to get it to work... this could easily have just been my mistake switching them in the first place

2) for reflashing the microcontrollers, how exactly do you go about that? avrdude wouldn't recognize the mcu's after i'd flashed them

3) The first time I tried to get the controller to work, the cursor wouldn't stop moving upwards.  Eventually I just used another controller board and the problem was solved, but I'm wondering do you have any suggestions for troubleshooting the broken board?  Another thing I noticed is that the boards I used appeared to be two different versions based on what was printed on their mcu's, i dont know if that would make a difference though

4) lastly, I have a general question for all the rx parts.  is it possible to include an led in the rx side that turns on when a controller is turned on?  I was thinking something like that would be useful if there were 4 wireless controllers and someone wanted to see what player they were, the rx side could light up when they turned on their controller

also i just wanted to say thanks for the instructions and everything this was the first mod i've even attempted doing and it's all thanks to you
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: SnoopKatt on February 24, 2013, 08:01:17 PM
Once you program the low fuse, you need the crystal with the two capacitors hooked up for the chip to respond to the AVR programmer.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: sazyario on February 25, 2013, 05:30:32 PM
Hello!

Is there any way to manipulate what you have already created to get this working on a Genesis 6 button controller?
I haven't done any microcontroller programming in about 5 years, and even then it was on a 6502 and z80. All done in assembly, not HEX.

I understand that it is possible you may not know off the top of your head consider you having heavily invested in the Nintendo portion of this.
Would the Saturn files possibly work? I assume it wont because there are more data lines inside the Saturn controller than the Genesis controller.

I would greatly appreciate any help you have with Genesis compatibility in this. While I am more then able to use downloaders, EPROM burners and solder some components together I do not know how to program for these Atmel microcontrollers.

Thanks!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: novadaemon on February 28, 2013, 02:13:46 AM
Micro, thanks for all your work.

Have you considered selling DIY kits for this mod? It would be nice to get a kit with the micro controllers preprogrammed and all necessary parts if possible.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: KillingBeans on February 28, 2013, 06:31:08 PM
Quote from: sazyario on February 25, 2013, 05:30:32 PM
Is there any way to manipulate what you have already created to get this working on a Genesis 6 button controller?

I'm gonna give this a go if Micro doesn't beat me to it. Got a pair of official IR controllers that would become way more usable if they were converted to 2.4GHz  ;D
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: eitnot on March 01, 2013, 01:56:29 PM
For the Snes controller if I build it with the charger built in is there a way to wire it to use one LED for charging and power on?  I was thinking of using a red/green bipolar LED but not sure how to integrate the two circuits.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on March 02, 2013, 03:34:03 AM
I won't add any new features or console support to the old code. It'd just be a waste of time.
Instead I'd like to work on v2 but unfortunately I don't have any spare time atm....

Also I don't think it's possible to make a wireless Genesis controller by hacking/modding the Saturn version of the mod...

@eitnot: I've just had a look at the schematics, I don't think there's an easy way to use one LED for charging and power.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: ours1011 on March 02, 2013, 04:30:42 AM
Quote from: micro on March 02, 2013, 03:34:03 AM
I won't add any new features or console support to the old code. It'd just be a waste of time.
Instead I'd like to work on v2 but unfortunately I don't have any spare time atm....
Go buy some extra time !  ;D

No, seriously, thanks for the answer ! So I'm going to sit here and wait for news about v2.

Cya.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: sazyario on March 02, 2013, 05:28:26 AM
How far along is v2?
I'm assuming you're not willing to release the source code (c, c++, etc)
If you don't have the time why not make it a community project?

With community support maybe we can even add rumble, memory card and gameboy support to the n64 code.

Once again I understand this is your baby, your project. And I will admit that my request for this is my own laziness. I would much rather use a known code base to build my modifications off if rather than starting from scratch. While I'm more then happy to contribute to a community project where multiple persons can collaborate on fixing issues and creating compatibility, solo-ing this is a daunting idea. I commend you for what Yu have done.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: eitnot on March 03, 2013, 03:27:18 AM
Thanks for all your work this project is awesome.  I finished my first Snes controller a couple weeks ago and it works perfectly.  Looking forward to v2.

Figured out what I'm going to do for the LED question.  I'm going to pick up some dual color led's like these

http://www.ebay.com/itm/10pcs-5mm-Dual-Color-Bi-Color-Red-Green-Super-Bright-3-Pin-Water-Clear-Led-RG5L-/390363938022?pt=LH_DefaultDomain_0&hash=item5ae380fce6 (http://www.ebay.com/itm/10pcs-5mm-Dual-Color-Bi-Color-Red-Green-Super-Bright-3-Pin-Water-Clear-Led-RG5L-/390363938022?pt=LH_DefaultDomain_0&hash=item5ae380fce6)

Then change the toggle switch to a DPDT switch so I can toggle which circuit the cathode is connected to.

Thanks again
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Marmotta on March 17, 2013, 12:13:49 AM
I'm trying to flash the Atmel chips using a USBtinyISP device, but am having no luck in getting avrdude to recognise the chips.  I would just ask if somebody would be prepared to sell some pre-flashed chips, but I would like to persevere, not just for this but for any future projects which may require flashing, despite not getting any further than a bunch of responses that my programmer should be working fine.

I can't help but think it's some basic oversight that means I can't program the chips and was wondering if anyone could take a quick look at how I've wired up one (ATtiny2313 in this case) to see if they can notice anything wrong:

(http://i10.photobucket.com/albums/a127/Marmotta/CameraZOOM-20130316134925368_zps9332701d.jpg)

Thanks
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: KillingBeans on March 17, 2013, 03:48:13 AM
Looks like you have two wires connected to one end of the resistor (+ pin 1) and nothing to the other end.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on March 17, 2013, 08:40:24 PM
It seems KillingBeans is right  ;D
Also, I don't see you providing power to the microcontroller. It seems your programmer can supply power but only if you set the according jumper. Did you? http://www.ladyada.net/make/usbtinyisp/use.html (http://www.ladyada.net/make/usbtinyisp/use.html)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Grambo on March 20, 2013, 10:03:29 AM
Quote from: eitnot on March 03, 2013, 03:27:18 AM
Thanks for all your work this project is awesome.  I finished my first Snes controller a couple weeks ago and it works perfectly.  Looking forward to v2.

Figured out what I'm going to do for the LED question.  I'm going to pick up some dual color led's like these

http://www.ebay.com/itm/10pcs-5mm-Dual-Color-Bi-Color-Red-Green-Super-Bright-3-Pin-Water-Clear-Led-RG5L-/390363938022?pt=LH_DefaultDomain_0&hash=item5ae380fce6 (http://www.ebay.com/itm/10pcs-5mm-Dual-Color-Bi-Color-Red-Green-Super-Bright-3-Pin-Water-Clear-Led-RG5L-/390363938022?pt=LH_DefaultDomain_0&hash=item5ae380fce6)

Then change the toggle switch to a DPDT switch so I can toggle which circuit the cathode is connected to.

Thanks again

If you go with one of those, keep in mind that your battery life will decrease.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: liverpool_hotline on March 21, 2013, 09:32:53 PM
I am the Japanese gamer who lives in Japan.
Please allow poor English using a translation tool.

First, I would like to thank to Mr. micro and you who are heaping up this thread. Thank you very much.

It succeeded in making N64 controller of my home into wireless the other day.
In Japan, I cannot buy Doc's wireless controller. In Japan,Since there was also no person who is doing wireless reconstruction.
I was very glad when this thread was found.

It reports having noticed then. Please ignore, if it is already being understood or talking.

(Although it does not understand how it is in North America, )In Japan, there are two kinds of substrates of the controller of n64, the first half and the second half.
First, when converting the substrate of the first half, it did not operate normally.
As a concrete condition, although the button operates normally, only an analog stick top and the bottom do not react.
Furthermore, only a top is automatic and it continues being inputted intermittently.

The cause was not found.
However, when using the controller of the substrate of the second half, it operated normally.
It seems that this way is not accepted by the substrate of the first half.

N64 main part, the cartridge, and the controller used the Japanese thing, and, finally were made well.

The above is a report.



The game in wireless is very comfortable. I would like to enjoy a retro game from now on.
Thank you for reading to the last.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: eitnot on March 22, 2013, 06:49:33 AM
I found a LED that had a separate Red and Green circuit in one LED but it was stil 20mA.  I will have to see how much charge time I get out of it.   If all else fails I might just pull the charging circuit out and keep it separate.

Couple questions for you:
Have you considered doing this original Xbox, original PS1?
Have you considered doing a USB receiver for PC?  I was thinking of building 4 wireless receivers into a media center pc so any controlllers I build can be used with it.  I have a chip that allows me to connect 4 SNES controllers to a PC but if I used that I would lose some button functionality on Saturn controllers.

Do you have a Channel 3 & 4 program for Saturn controllers?  I was thinking of building 2 Saturn controllers but I don't want them to conflict with the 2 SNES controllers I built.

Thanks
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: flagoss on March 25, 2013, 06:27:35 PM
Hey Micro do you know if I can flash a ATTINY2313A with your firmware !?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: eitnot on April 01, 2013, 06:38:08 AM
Has anyone built the wireless NES controller?  Just curious if anyone has any pictures of how they went about fitting everything in the controller.  Seems like a really tight fit.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: conquer on April 21, 2013, 03:51:01 PM
can someone give me a clearer idea of how to reprogram the mcu's? i assume mosi, miso, sck, and reset are all connected as before and ground is connected through the caps& crystal... or does the gnd for the whole circuit connect. can vcc be left unconnected since i'm already providing power? i'm doing the N64 and using a usb programmer with avrdude
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on April 22, 2013, 09:42:46 PM
What programmer are you using? In fact, all you need is those four signals, 5v and gnd. You'll need a resistor between VCC and RESET, 10k, if I remember right. Use a 100nf ceramic cap between the VCC and GND too. Also, don't forget to set the fusebits, otherwise, the MCU will do nothing.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: conquer on April 23, 2013, 01:46:07 PM
Here's the programmer (http://www.ebay.com/itm/USBASP-USBISP-AVR-Programmer-USB-ATMEGA8-ATMEGA128-ATMEL-AVR-ATmege-AT90-ATtiny-/400332124311?pt=LH_DefaultDomain_0&hash=item5d35a77097) I'm using it's based on this design http://www.fischl.de/usbasp/. (http://www.fischl.de/usbasp/.)  i soldered the flashing circuit together and flashed the mcu but i accidentally didn't get the hex file on it .. but the fuse bits were set.  so i went on and finished the tx and rx circuits but the mcu's are blank, now i need to put the code on.  all my vcc's and grounds in the circuit are connected, should i run those to the programmer? i know i'm supposed to provide the power with batteries/the system but i'm not sure how to tell the programmer not to power
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on April 23, 2013, 11:49:09 PM
Don't try to program the MCU in-circuit unless you can confirm the programmer isn't outputting power!

I've never dealt with USBasp programmers but according to the schematic there should be a jumper J1 which is responsible for outputting power. You want to make sure the jumper J1 isn't bridged.

If you provide 5 V to the receiving/transmitting circuit you'll probably fry the NRF24L01 module (it's max voltage is 3.6 V IIRC) and maybe the voltage regulator too.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on April 24, 2013, 01:13:10 AM
Thats why I made boards like that, just to write on a specific MCU

(http://imageshack.us/a/img825/5456/img0589ed.jpg)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: porterj5 on May 02, 2013, 12:06:40 AM
I am having trouble with the NES TX and RX.  I ordered all parts from Mouser, with the exception of the transceivers, and have checked my wiring on the breadboards and everything seems to be wired correctly. 

The only oddity I can seem to find is in the receiver plugged into the console.  The voltage coming out of the NES console is 5V but when I test the wires from the cord that I have plugged into the breadboard it is about 3V.  Also, when I test the voltage going through the 3V regulator, it is about 3V or less coming in and has varied between 1.8V and 2.4V going out.

Would the decreased voltage cause the transceiver not to function properly?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: conquer on May 03, 2013, 12:42:14 PM
wow public-pervert great idea that makes programming so much easier.  thanks for the advice micro i found a connection on my programmer that says 5V/3V3 sel but it was very small and i my soldering skills aren't up to the job.  so i just left the NRF24L01 module out and reprogrammed providing power as before, and it seems to have worked. 

the problem i get now is that two of my controllers seem to be stuck intermittently sending 'up' commands from the joystick.  my first controller doesn't have this problem, and all 3 controllers worked fine before I severed there cords.  i will make a youtube video to showing the problem in action
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Grambo on May 04, 2013, 09:27:27 AM
Quote from: porterj5 on May 02, 2013, 12:06:40 AMwhen I test the wires from the cord that I have plugged into the breadboard it is about 3V.

I don't understand what you mean by this. If the wires are directly connected to your NES' 5V, they should read 5V.

Quote from: conquer on May 03, 2013, 12:42:14 PM
the problem i get now is that two of my controllers seem to be stuck intermittently sending 'up' commands from the joystick.  my first controller doesn't have this problem, and all 3 controllers worked fine before I severed there cords.  i will make a youtube video to showing the problem in action

Check all your solder joints thoroughly. I had a intermittent joint that was causing some strange problems like this.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: porterj5 on May 06, 2013, 10:08:16 AM
Quote from: Grambo on May 04, 2013, 09:27:27 AM
Quote from: porterj5 on May 02, 2013, 12:06:40 AMwhen I test the wires from the cord that I have plugged into the breadboard it is about 3V.

I don't understand what you mean by this. If the wires are directly connected to your NES' 5V, they should read 5V.


I don't know what was happening but I used a different cord and now the voltage is reading correctly.  But it is still not working.  I have checked the diagram even ordered new transceivers in case the two I had were bad.  Any suggestion for what to check and how?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Grambo on May 08, 2013, 11:21:36 PM
Quote from: porterj5 on May 06, 2013, 10:08:16 AM
Any suggestion for what to check and how?
Not really in specific, no, but if you post a picture I can maybe suggest something more definite than "check everything".
Your AVR chips flashed properly?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: duo_r on May 12, 2013, 05:34:09 PM
Any update on some type of per programmed board for sale?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: xboxman2 on May 14, 2013, 02:53:35 AM
First I would like to say thanks! this a great job!

My question is: Is it possible to have a receiver to hook them up to the pc? I have a media center with some emus and I use the 360 controller but the gaming expereince will be a lot greater if I can use the original controller for each emulator (snes, sega, n64 ...)
I was thinking in  doing something like this http://www.instructables.com/id/USB-SNES-Controller/ (http://www.instructables.com/id/USB-SNES-Controller/) and attach the receiver of the snes to it but maybe there is a better solution.

Thanks in advance
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Hedgehog on May 15, 2013, 04:54:03 AM
Hi, I ended up giving this a try and I have finished all soldering...it didn't work :( I started measuring with my multimeter and it looks like I have +3v to IRQ on both transceivers, what does this mean?Also it looks like the rest of the circuit is getting power where it needs to. I tried all combinations of channels as well. Any thoughts? Hopefully I can have pictures up soon when I get my hands on a decent camera.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: conquer on June 16, 2013, 03:03:24 AM
I made 2 N64 controllers and both are working great! I hit a few bugs along the way and think I might have made a discovery about the n64 controller motherboard.  What happened to me (and this might have been the problem liverpool_hotline encountered) was that only certain motherboard 'revisions' functioned correctly as wireless controllers.  3 of the boards I tried to mod all had the same exact problem, they acted as though the joystick was being pressed up and released very quickly, faster than humanly possible. Other than that the buttons of the controllers worked as they should, but gameplay was impossible.  SO I took pictures of the boards that didn't work that include the mcu and the number of the motherboard itself, which can be found on the top left by the L button.   

(http://imageshack.us/a/img547/7475/be1j.jpg) (http://imageshack.us/photo/my-images/547/be1j.jpg/)


(http://imageshack.us/a/img809/4430/m674.jpg) (http://imageshack.us/photo/my-images/809/m674.jpg/)


(http://imageshack.us/a/img28/8351/gr7d.jpg) (http://imageshack.us/photo/my-images/28/gr7d.jpg/)



These 3 all gave me the intermittent moving up problem, so I soldered the chord back on to them and have had no problems using them as normal controllers
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: conquer on June 16, 2013, 03:21:38 AM
This is one of the boards that worked. the mcu looks like it was from the same batch as the third picture above, but the motherboard number is different. 

(http://imageshack.us/scaled/thumb/28/gr7d.jpg)


Has anyone else encountered similar problems?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Helder on June 23, 2013, 01:10:04 AM
Quote from: public-pervert on April 24, 2013, 01:13:10 AM
Thats why I made boards like that, just to write on a specific MCU

(http://imageshack.us/a/img825/5456/img0589ed.jpg)
Nice work, any chance you can provide a schematic for that board?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Grambo on June 23, 2013, 06:43:57 AM
Quote from: Helder on June 23, 2013, 01:10:04 AM
Nice work, any chance you can provide a schematic for that board?
Page 8 of the PDF.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Grambo on June 24, 2013, 10:32:50 AM
Not to be pushy or anything, micro, but have you been able to make much progress on v2? Without asking for any promises, is it likely/possible/unlikely to expect something this year?

Thanks again for all your work. Between this and your N64 replacement stick mod, my retro gaming experience has been vastly improved :)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: N644ever on June 26, 2013, 07:46:23 AM
I'm having some trouble programming my microcontrollers. Initially, I decided to use myAVR Progtool instead of AVR Studio because it was simplier to understand, especially when it came to setting the fuses. However, the program does not recognize my prgrammer (I'm using an AVRISPmkII). Here are some pictures:

(https://imageshack.com/a/img542/3859/lsb.jpg) (http://imageshack.com/i/f2lsbj)Uploaded with ImageShack.com (http://imageshack.com)
(https://imageshack.com/a/img703/9229/ehrr.jpg) (http://imageshack.com/i/jjehrrj)Uploaded with ImageShack.com (http://imageshack.com)

Any advice on how to set the connection to recognize my programmer would be awesome ( I'm using windows vista). After this failure, I decided to use AVR Studio. AVR Studio did recognize my programmer, but I found it hard to understand how to set the fuses. Given Micro's pictures, I understand to check the box for "SPIEN" and then set the necessary high and low fuses, but I don't understand the other settings labeled: "BOOSTZ", "BODLEVEL", and "SUT_CKSEL". I noticed that the options under these labels were different for bother microcontrollers (ATTiny2313 and ATMega8). when I tried to program my controllers, I'm guessing that I most likely bricked them because I was only able to program them one time successfully. After the first time, an error message appeared when I tried to program them again. Here are some pictures:

(https://imageshack.com/a/img15/9606/3svi.jpg) (http://imageshack.com/i/0f3svij)Uploaded with ImageShack.com (http://imageshack.com)
(https://imageshack.com/a/img855/9818/qjas.jpg) (http://imageshack.com/i/nrqjasj)Uploaded with ImageShack.com (http://imageshack.com)
(https://imageshack.com/a/img853/7155/o8wb.jpg) (http://imageshack.com/i/npo8wbj)Uploaded with ImageShack.com (http://imageshack.com)
(https://imageshack.com/a/img832/678/u1ab.jpg) (http://imageshack.com/i/n4u1abj)Uploaded with ImageShack.com (http://imageshack.com)

The voltage source supllied to the circuit measures 4.55V. If a solution to my problems is provided, do you think it would be easier to program the MCU's in the finished circuits (I'm using an N64 and I do have the 6 pin jacks)? and if so, would I need to have the rumble pak plugged in to the controller to program the MCU in the TX or could I have it disconnected from the controller (of course, having the switch cut on in both circumstances)?

Thank you so much to anyone who is willing to help! It would be greatly appreciated!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on June 26, 2013, 01:04:06 PM
I've tried, unsuccessfully, to program with 4v5 before. It was on the beginnings when Micro did his first awesome work on the N64 controller conversion with an ATMEGA8. When I was about to give up, I tried using 5v instead of 4~4v5, and it worked! I don't know why, I just can say that the 5v source made it possible. Try using 5v instead of 4v5, and see.
Also, I use Extreme Burner and USBASP to program all my AVRs. USBASP costs less than 5 bucks and works great, plus it provide power to the chip from the USB port.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: N644ever on June 27, 2013, 05:34:48 AM
Thanks for the reply! I actually have an older USBasp. As soon as I get new microcontrollers in, I'll try using it with Extreme Burner.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: SnoopKatt on July 07, 2013, 06:13:52 AM
So I gave the NES receiver a crack to try it out with the wireless N64 controller, and no joy unfortunately. As I was poking around with a multimeter, I noticed the output of the LP2950 (KY5033 model: http://www.datasheetdir.com/KY5033+download (http://www.datasheetdir.com/KY5033+download)) was 4.5V, not the specified 3.3V on the datasheet. I also connected it to a bench 5V DC supply, and got the same result. I wonder if the manufacturer mixed up the plastic castings or something... I'm guessing the ATTiny2313 and the transceiver are fried :/ So watch out for this! Here is the Mouser page for it: http://www.mouser.com/ProductDetail/Texas-Instruments/LP2950-33LPRE3/?qs=%2fha2pyFadujpLUIe67YnftWJpdpDFJizLhePy2V7pqOdMhsCXqDWJg%3d%3d (http://www.mouser.com/ProductDetail/Texas-Instruments/LP2950-33LPRE3/?qs=%2fha2pyFadujpLUIe67YnftWJpdpDFJizLhePy2V7pqOdMhsCXqDWJg%3d%3d)

EDIT: Ignore that stuff above. I didn't realize the data sheet said "Bottom View". Sorry about the misinformation.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Hedgehog on July 19, 2013, 11:50:11 AM
Ok, so i finally got a hold of a camera to take some decent pics. Is there anything you guys can immediately see that would prevent this from functioning? According to MyAVR ProgTool both MCUs where successfully programmed. The next step at this point is trying a fresh set of transceivers.

Thank you so much for taking a look and please let me know if there is a specific part that you would like more up-close and detailed pictures of.

(http://p0.craigupload.com/s/5d56/0/92503.jpg)
(http://p0.craigupload.com/s/5d56/0/92504.jpg)
(http://p0.craigupload.com/s/5d56/0/92505.jpg)
(http://p0.craigupload.com/s/5d56/0/92506.jpg)
(http://p0.craigupload.com/s/5d56/0/92507.jpg)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: warioguy64 on July 19, 2013, 09:59:11 PM
Hi everybody. I was working on a couple of N64 controllers when I saw this: Wireless HYPERMODE SERIES Controllers For N64 by Retro-bit (http://www.youtube.com/watch?v=WuB4Ojh-Zcs#ws)
I was wondering what you guys think about the new retro bit products and if anybody already tried it out. I just orderd mine yesterday so I wil get it next week.
I dont like the nes/snes controller from retro bit so I will probably still have to build the nes and snes controller myself but I dont mind cuz this is a fun project :)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: liverpool_hotline on July 20, 2013, 12:05:50 AM
I am the Japanese gamer who lives in Japan.
Please allow poor English using a translation tool.

Since the receptacle for n64 receivers was completed, please see.
It mainly made with the plastic plate.

(http://box.c.yimg.jp/res/box-s-ysdr6pc3bmox5trquqsy2e433y-1001?uid=d186dbb0-7581-41d2-98f2-4483ea60b627&etag=702bf6671374238047378339)
(http://box.c.yimg.jp/res/box-s-ysdr6pc3bmox5trquqsy2e433y-1001?uid=dafcf1ed-84ff-4b3c-88c4-9a708f1fb7a9&etag=d141a2ad1374238099375040)
(http://box.c.yimg.jp/res/box-s-ysdr6pc3bmox5trquqsy2e433y-1001?uid=f1b23b99-5102-46f0-9289-1acba616e634&etag=0eb0d3f91374238127321752)
(http://box.c.yimg.jp/res/box-s-ysdr6pc3bmox5trquqsy2e433y-1001?uid=4abe3224-06b6-4c5e-8019-0b5e9e02bdc7&etag=9c54afd71374238156342764)

The Nintendo logo of n64 controller connector is used.
(http://box.c.yimg.jp/res/box-s-ysdr6pc3bmox5trquqsy2e433y-1001?uid=846dfa62-5e25-4da9-aef5-be68497554fd&etag=17d5c9671374238323341567)
(http://box.c.yimg.jp/res/box-s-ysdr6pc3bmox5trquqsy2e433y-1001?uid=2df9a3ab-13cd-49a5-bbe3-9aecccf7c392&etag=e7dbc46f1374238356365197)
(http://box.c.yimg.jp/res/box-s-ysdr6pc3bmox5trquqsy2e433y-1001?uid=86a9c6de-0b80-4fe6-9603-a300864af119&etag=6eca4b721374238376406744)

A design concept is a receiver of "gamecube wavebird."
The bottom is the comparison photograph.
(http://box.c.yimg.jp/res/box-s-ysdr6pc3bmox5trquqsy2e433y-1001?uid=64298ed7-af53-4f9e-a8e4-5a18ccd842ab&etag=9bdf2ab31374238428376104)
(http://box.c.yimg.jp/res/box-s-ysdr6pc3bmox5trquqsy2e433y-1001?uid=6d634867-c736-4ea6-8910-848d5ca8ac59&etag=9dec55781374238432389500)
(http://box.c.yimg.jp/res/box-s-ysdr6pc3bmox5trquqsy2e433y-1001?uid=dbd34373-b5e2-45c7-971c-0e4d5f5fb52d&etag=33794d151374238435346806)

It is reconstruction "rumble pak" for controllers.
(http://box.c.yimg.jp/res/box-s-ysdr6pc3bmox5trquqsy2e433y-1001?uid=481029aa-e5ba-4ac4-9e58-0e16057c31a8&etag=564c5b6d1374238438353031)

The B button of SFC(SNES) was used for the on/off switch.
(http://box.c.yimg.jp/res/box-s-ysdr6pc3bmox5trquqsy2e433y-1001?uid=b38c7441-96e1-4530-a3d6-2ad0a8c15c15&etag=986f637a1374238441365852)
(http://box.c.yimg.jp/res/box-s-ysdr6pc3bmox5trquqsy2e433y-1001?uid=1146e6cf-14ee-4c8c-9a2a-cf6522a925a2&etag=bd26f4b61374238444331221)

A photograph in use.
(http://box.c.yimg.jp/res/box-s-ysdr6pc3bmox5trquqsy2e433y-1001?uid=a160f21f-8af7-4838-b80a-c4d5bdfca430&etag=90292fce1374238447316995)
LED was attached.
(http://box.c.yimg.jp/res/box-s-ysdr6pc3bmox5trquqsy2e433y-1001?uid=c7f1f7d0-9c5b-4c6d-b0d1-2b342a307cc8&etag=017ad2d81374238450258787)
(http://box.c.yimg.jp/res/box-s-ysdr6pc3bmox5trquqsy2e433y-1001?uid=96ca1412-28d8-40d7-9609-586dadd27c7c&etag=72b2fa5e1374238453320481)
It is a future target that LED also makes red, blue, and a green receiver and attaches four pieces.

Thank you for reading to the last.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on July 20, 2013, 01:50:27 AM
@Hedgehog: Can't see very much on your small pictures... Did you also set the according fuses? If you plug in the receiver into the N64 and start a game, is the game complaining that there's no controller inserted?

@conquer: I've only modded two N64 controllers by now and I don't own them anymore. But I didn't have the problem you mentioned. But that's another reason I won't work on the old code anymore, possibly a timing problem....

@Grambo: Thanks.  :) I'm afraid there won't be any big progress this year. Better don't hold your breath for it...
The last time I worked on it I assembled the first transmitting PCB, rewrote the code and tested the PCB with a NeoGeo controller. It works, including charging of the battery, low battery indicator, and such things. But there is SO much more to do and refine. I just don't have the time atm.
(http://i.imgur.com/BHFUgOLs.jpg) (http://i.imgur.com/BHFUgOL.jpg)

@N644ever: You can use a fuse calculator: http://www.engbedded.com/fusecalc/ (http://www.engbedded.com/fusecalc/)
Just type in the low and high fusebyte and it will show you which single fuses have to be set.

@SnoopKatt: 4.5 V shouldn't be a problem for the micrcontroller but the NRF transceiver module can only handle 1.8 - 3.6 V IIRC. The transceiver's probably fried. A german fellow told me a while ago that on his Ipod shuffle battery the + and - terminals were labeled wrong! It also fried the voltage regulator, the MCU and the transceiver module. Better watch out and measure the battery's voltage first...

@liverpool_hotline: That looks AMAZING!  :o Were did you get the housing from? Have you made it yourself?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: ours1011 on July 20, 2013, 02:54:56 AM
Quote from: liverpool_hotline on July 20, 2013, 12:05:50 AM
I am the Japanese gamer who lives in Japan.
Please allow poor English using a translation tool.

Since the receptacle for n64 receivers was completed, please see.
It mainly made with the plastic plate.

Thank you for reading to the last.
Oh my god, this is simply AMAZING !!!  :o
And what a clever use for yellow B button !

It looks like it is vacuum formed + bondo and then cast.

I was planing to do something like that for the snes version. But here the craftsmanship is far beyond my actual level xD
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: SnoopKatt on July 20, 2013, 03:00:29 AM
micro: Good to know the IC is okay :) The input voltage seems to be a healthy 5.1 V, and this is straight from the NES console (I haven't started the transmitting NES controller yet; I'm still trying to fathom how to fit everything lol). My bench supply at 5.0 V connected to the voltage regulator still had an output of 4.5 V. I tried different regulators and I got the same results.

liverpool_hotline: I think you win this thread. Telling you that's an incredible mod doesn't do it justice. How did you make it?!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on July 20, 2013, 03:22:38 AM
Snoopkatt, stupid question: Did you use the right pinout? The LP2950 has a different pinout like a standard 7805 regulator.

7805: Input GND Output
LP2950: Output GND Input
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: SnoopKatt on July 20, 2013, 04:28:43 AM
Should be correct. Here's the datasheet I followed: http://www.ti.com/lit/ds/symlink/lp2951.pdf (http://www.ti.com/lit/ds/symlink/lp2951.pdf)
Here are some pictures on the bench:
(http://img534.imageshack.us/img534/5120/hk80.th.jpg) (http://img534.imageshack.us/i/hk80.jpg/)

(http://img560.imageshack.us/img560/9628/7qbc.th.jpg) (http://img560.imageshack.us/i/7qbc.jpg/)

(http://img163.imageshack.us/img163/558/zzv3.th.jpg) (http://img163.imageshack.us/i/zzv3.jpg/)

I also tried putting an input capacitor on as well to see if it made a difference, but no dice:

(http://img838.imageshack.us/img838/2230/xeoc.th.jpg) (http://img838.imageshack.us/i/xeoc.jpg/)

It's just weird that both the voltage regulators I ordered do that... :o

EDIT: Fixed the images.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on July 20, 2013, 05:11:12 AM
You really should resize your pictures, somehow my Firefox browser doesn't scale them down...

But to me it really looks like you switched input and output. The input (5 V from your bench PSU, red wire) goes to pin 1. But according to the datasheet input is pin 3. Try to switch the green and red wires and see if it works (although it's possible both of your regulators are damaged by now :( )

PS: In my post before I said LP2951. But of course we're dealing with the LP2950...
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: SnoopKatt on July 20, 2013, 05:32:44 AM
Ah you're right. I missed the key word: bottom view. I was looking at it from the top...I feel silly. It does work now; I'm reading 3.28 V. Thank you for pointing that out. I have a spare transceiver, so I'll give the NES receiver another go, this time with the correct direction for the voltage regulator haha.

I thought I posted those as thumbnails, but I guess I didn't. I'll fix that; sorry about that!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on July 21, 2013, 02:34:15 AM
@liverpool_hotline: Awesome work so far! Is your ON/OFF switch digital?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: liverpool_hotline on July 22, 2013, 01:14:21 AM
@micro:Thank you very much.  I'm not very good at electronic work.  But the way which processes a plastic can be done well.

@ours1011:Thank you for reply.  I do not have a tool of vacuum form.  Therefore, the plastic board was bending with the heat of the soldering iron, and was made altogether.

@SnoopKatt:Thank you for reply.  It is comparatively easy to make.  But although it is troublesome... 

@public-pervert:Thank you for reply. The switch used the commercial item.  A photograph is stuck downward.


The main materials
(http://box.c.yimg.jp/res/box-s-ysdr6pc3bmox5trquqsy2e433y-1001?uid=4eacd738-3289-46dd-8709-f70cc1df97c2&etag=75ee9cbf1374417361254159)
(http://box.c.yimg.jp/res/box-s-ysdr6pc3bmox5trquqsy2e433y-1001?uid=162cbdca-c420-43d8-9688-e5a9093514a7&etag=b40f62731374417365255382)

How to bend
(http://box.c.yimg.jp/res/box-s-ysdr6pc3bmox5trquqsy2e433y-1001?uid=bff071a1-2670-4c4b-980d-ad1260237d52&etag=41d160e41374417334366581)
(http://box.c.yimg.jp/res/box-s-ysdr6pc3bmox5trquqsy2e433y-1001?uid=d13e1ed9-b6f0-49e6-af09-2083c84dcbd1&etag=008df95d1374417341344705)
(http://box.c.yimg.jp/res/box-s-ysdr6pc3bmox5trquqsy2e433y-1001?uid=cd2f0aab-0858-4a7c-ab01-609950e045e6&etag=1be83cec1374417344377040)

(http://box.c.yimg.jp/res/box-s-ysdr6pc3bmox5trquqsy2e433y-1001?uid=7cdbbe97-02a2-4ac0-9109-0d8937f0f2fb&etag=7f90f1621374417348457184)
(http://box.c.yimg.jp/res/box-s-ysdr6pc3bmox5trquqsy2e433y-1001?uid=1c4a8dfd-cabf-4b77-adcd-fc177bc335ff&etag=d9d618d91374417358422904)
(http://box.c.yimg.jp/res/box-s-ysdr6pc3bmox5trquqsy2e433y-1001?uid=8db145c7-02e6-4857-a72f-dc9d1edee715&etag=c2e4b2cf1374417351389935)
switch
(http://box.c.yimg.jp/res/box-s-ysdr6pc3bmox5trquqsy2e433y-1001?uid=33258d11-d06e-4394-8f7c-6975033147fe&etag=c67b689d1374417355377806)
(http://box.c.yimg.jp/res/box-s-ysdr6pc3bmox5trquqsy2e433y-1001?uid=707db159-5108-41c7-838d-39926dae477d&etag=914398ff137441736838015)

Thank you for reading to the last.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on July 22, 2013, 01:32:17 AM
Nice idea on how to bend the plastic  :D
You've made indeed a very nice work. Nice to know another people complete another wireless controller.
I want to see more projects, man!
Congrats!  ;)

I never gets tires to thank you too, Micro! Thanks!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: cheema201 on July 24, 2013, 02:01:09 AM
If you plug in the RX should the console read that a controller is plugged in - even if you don't have the controller turned on?

I've made a RX for the N64, but when I plug it in it believes there's no controller plugged in.

I've yet to finish the controller component.

Just want to get the RX right first.

Would the Channel switch have anything to do with it?

I think that's the main part that has me confused  :-[

Thanks  :)

Edit: Hey guys, figured out the problem. After looking over my wiring about 1000 times I reflashed the MCU - now the RX shows up as a controller. So I mustn't have flashed it correctly the first time.

Just need to do the controller component - but I'm waiting on a gamebit so I can open the rumble pack :)

I'll post some pics when I'm done... but it will be exactly the same as micro's (I don't have the impressive personal touch that most others seem to have in this thread lol)

Edit 2:

Here are some - not the greatest, but I'm happy :)

(http://imageshack.us/a/img812/4803/fy95.th.jpg) (http://imageshack.us/photo/my-images/812/fy95.jpg/)(http://imageshack.us/a/img19/1787/pdzf.th.jpg) (http://imageshack.us/photo/my-images/19/pdzf.jpg/)(http://imageshack.us/a/img35/9769/ivey.th.jpg) (http://imageshack.us/photo/my-images/35/ivey.jpg/)(http://imageshack.us/a/img826/7637/5p4m.th.jpg) (http://imageshack.us/photo/my-images/826/5p4m.jpg/)(http://imageshack.us/a/img839/9275/lntg.th.jpg) (http://imageshack.us/photo/my-images/839/lntg.jpg/)

Here is it in action:

(http://imageshack.us/a/img580/5922/edmp.th.jpg) (http://imageshack.us/photo/my-images/580/edmp.jpg/)

It works really well.

I want to combine it with an accurate GC style stick. But I managed to somehow break the potentiometer! (I still have the board ready to go, courtesy of micro)

Edit 3:

I fixed the potentiometer, with the help of micro... now I have micro's board in the wireless controller. It's a match made in heaven!

I'm loving it... it is well worth the time and effort to make the wireless controller and add in one of micro's boards for accuracy.

Thanks again to micro

And good luck to anyone attempting to make a wireless controller. I'm almost completely retarded and managed it - which should be a good indication of how simple it is to make the wireless controller once you understand the schematics.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: ours1011 on August 14, 2013, 03:38:22 AM
Hi there !

I finally started a snes wireless controller. The microcontrollers were flashed a while ago.

The console doesn't receive the signal of the controller, but all the buttons are pressed. ( = low logic level ) see picture of test ROM.

(http://imageshack.us/scaled/thumb/837/h3li.jpg) (http://imageshack.us/a/img837/1664/h3li.jpg)           (http://imageshack.us/scaled/thumb/826/3f3x.jpg) (http://imageshack.us/a/img826/4108/3f3x.jpg)
      Normal view           wireless receiver plugged in

Is the receiver transmitting to the controller ?
Is the controller receiving ?
Is the controller emitting ?
Is the receiver receiving ?

I don't know !  :-\

Is there a way to find out what's (not) going on without an oscilloscope ? Can I verify if the controllers are flashed properly ? I remember I've checked that after flashing, but still ...

Anyway, there is a picture of my board in case someone sees some thing obviously wrong ^^' :

(http://imageshack.us/scaled/thumb/713/rhjz.jpg) (http://imageshack.us/a/img713/8674/rhjz.jpg)

The left + and - are 5V that is coming from the console. The right + and - are on battery. Only the charging circuit is connected to both.

Also, when the receiver is plugged in, some parasites appear on the screen but it doesn't show up on the picture (if the controller is on or off).
The red LED is for charging and the green one for power. Sometimes the green LED is flickering when I power up the controller and then stabilizes.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: SnoopKatt on August 14, 2013, 06:31:23 AM
Quote from: ours1011 on August 14, 2013, 03:38:22 AM
Hi there !

I finally started a snes wireless controller. The microcontrollers were flashed a while ago.

The console doesn't receive the signal of the controller, but all the buttons are pressed. ( = low logic level ) see picture of test ROM.

(http://imageshack.us/scaled/thumb/837/h3li.jpg) (http://imageshack.us/a/img837/1664/h3li.jpg)           (http://imageshack.us/scaled/thumb/826/3f3x.jpg) (http://imageshack.us/a/img826/4108/3f3x.jpg)
      Normal view           wireless receiver plugged in

Is the receiver transmitting to the controller ?
Is the controller receiving ?
Is the controller emitting ?
Is the receiver receiving ?

I don't know !  :-\

Is there a way to find out what's (not) going on without an oscilloscope ? Can I verify if the controllers are flashed properly ? I remember I've checked that after flashing, but still ...

Anyway, there is a picture of my board in case someone sees some thing obviously wrong ^^' :

(http://imageshack.us/scaled/thumb/713/rhjz.jpg) (http://imageshack.us/a/img713/8674/rhjz.jpg)

The left + and - are 5V that is coming from the console. The right + and - are on battery. Only the charging circuit is connected to both.

Also, when the receiver is plugged in, some parasites appear on the screen but it doesn't show up on the picture (if the controller is on or off).
The red LED is for charging and the green one for power. Sometimes the green LED is flickering when I power up the controller and then stabilizes.
You may have a bad voltage regulator on the receiver. I had that happen when I built the NES receiver. On page 5, I accidentally flipped the voltage regulator, so I fried the wireless transceiver. When I put in a new transceiver and put the voltage regulator the correct way, the same thing that's happening to you happened, probably because the voltage regulator got messed up from being backwards. I measured my voltages, and when that was happening, each voltage was something like .5V, so check your voltages and if they're weird, put in a new LP2950.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: ours1011 on August 15, 2013, 01:07:46 AM
Thanks, I'm going to check that.

Sorry I didn't realize that I could have the same problem as you, on page 5, I was subjugated with liverpool_hotline's work ^^

I'll keep you updated !
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on August 16, 2013, 01:44:49 AM
@ours: Are you using a PAL SNES/controller?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: ours1011 on August 16, 2013, 03:09:14 AM
Quote from: micro on August 16, 2013, 01:44:49 AM
@ours: Are you using a PAL SNES/controller?
Yes indeed. Why ?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on August 16, 2013, 03:28:13 AM
Ok, then. On your receiver, please add a 10 kOhm between "VCC" and "P/S" (pin 4 and 20 on the Atmega8)
It seems on some PAL SNES consoles that pull-up resistor is required.

Let's hope this fixes your wireless controller, but there are still 100 other ways to fuck up ;P
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Silas2222 on August 17, 2013, 09:51:03 AM
Hey micro, I going to build one for my NES but this is the first thing I ever do with Microcontrollers or something like this. Where can I get a cheap Programmer, can this one works? --> http://www.ebay.de/itm/New-USB-ISP-Programmer-For-ATMEL-AVR-51-ATMega-ATTiny-/221128128589?pt=DE_Technik_Computerzubeh%C3%B6r_Kabel_Adapter&hash=item337c43784d (http://www.ebay.de/itm/New-USB-ISP-Programmer-For-ATMEL-AVR-51-ATMega-ATTiny-/221128128589?pt=DE_Technik_Computerzubeh%C3%B6r_Kabel_Adapter&hash=item337c43784d)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on August 17, 2013, 04:59:18 PM
It will probably work, but don't ask me HOW. Better read its manual :P

I got that one: http://shop.myavr.de/index.php?sp=article.sp.php&artID=200006 (http://shop.myavr.de/index.php?sp=article.sp.php&artID=200006)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Silas2222 on August 19, 2013, 08:25:17 AM
Ok, and what did you use for housing the NES receiver? Edit: I saw on the video, u used the same housing as for SNES usw. but you cant play together with this or?
And how I said, this is the first thing I ever do with programming and so on, so have I just to connect the USB Programmer in PC and the 6 or 10 pins like in the schematics and then I can burn the hex file with the program?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on August 24, 2013, 07:18:33 AM
The housing is made by TEKO, called TEKO10006 or something like that. The exact name should be on the last few pages of this thread because this question has already been asked.

Quotebut you cant play together with this or?
If you want to know if you can play NES with the SNES controller or play SNES with the NES controller, then the answer is yes.

QuoteAnd how I said, this is the first thing I ever do with programming and so on, so have I just to connect the USB Programmer in PC and the 6 or 10 pins like in the schematics and then I can burn the hex file with the program?
Yes, that's correct. But in my opinion building a wireless controller isn't a suitable beginner's project. Really, just read all the posts have a look at all the problems that people got with that mod...

Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Packalti on August 28, 2013, 06:17:07 AM
Hey,

I'm almost a little bit embarrassed to ask this but i dont want to screw it up  ;D
I want to create a wireless n64-controller but in the pictures i couldnt identify which pins of the rumble pak are pin 14 and 15. Maybe the best help would be to tell me which pin number the one which is a little bit smaller has.  ;)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: SnoopKatt on August 30, 2013, 07:59:06 PM
Quote from: Packalti on August 28, 2013, 06:17:07 AM
Hey,

I'm almost a little bit embarrassed to ask this but i dont want to screw it up  ;D
I want to create a wireless n64-controller but in the pictures i couldnt identify which pins of the rumble pak are pin 14 and 15. Maybe the best help would be to tell me which pin number the one which is a little bit smaller has.  ;)
Check out pages 9 & 10 of the PDF in the zip file. If you look closely at the PCB, about a centimeter above the contacts on each side are numbers for the pins.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: cheema201 on August 31, 2013, 04:42:26 PM
You'll notice one side of the PCB that it'll have a little 1 over the first pin and a little 16 over the last pin (as SnoopKatt mentioned) So you have to cut the connection between the 3rd and 2nd last pins (it's pretty obvious which ones because they are bridged)

Good luck with it. It's certainly worth your effort to make the wireless n64 controller  :)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: SnoopKatt on September 12, 2013, 02:26:44 PM
Quick question: on the NES controller, I noticed there's a 100nf cap on the ATTINY2313, as well as a 2.2uf cap on the output of the voltage regulator. Since the caps are in parallel, wouldn't the 100nf capacitor be unnecessary, since it's small compared to the 2.2uf capacitor?
Thanks!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Fix_Metal on September 12, 2013, 07:37:20 PM
Quote from: SnoopKatt on September 12, 2013, 02:26:44 PM
Quick question: on the NES controller, I noticed there's a 100nf cap on the ATTINY2313, as well as a 2.2uf cap on the output of the voltage regulator. Since the caps are in parallel, wouldn't the 100nf capacitor be unnecessary, since it's small compared to the 2.2uf capacitor?
Thanks!
Nope.
Those are for filtering out spurious frequencies. Elecs mainly filter out low frequencies because of their high value (and therefore low impedance against low freqs). Ceramics are intended to filter out high frequencies because of their low value (and construction). 100nF is a tipical value out of the regulator. A rule of thumb says to use a 1/10 valued of the main elec out of the regulator. That said, if you've got 100uF on input, use 10uF on output.
Just another note regarding linear regulating: main filter cap value is critical for stable DC output, as it is the input voltage.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: SnoopKatt on September 13, 2013, 11:08:21 AM
Thanks! Good to know. Hopefully I'll have the NES controller built soon...the wires are going to make a rat's nest haha.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: SnoopKatt on September 14, 2013, 06:03:29 PM
NES controller is working!

(http://img18.imageshack.us/img18/4985/h81e.th.jpg) (http://img18.imageshack.us/i/h81e.jpg/)
(http://img41.imageshack.us/img41/921/joo4.th.jpg) (http://img41.imageshack.us/i/joo4.jpg/)
(http://img706.imageshack.us/img706/3536/wu2i.th.jpg) (http://img706.imageshack.us/i/wu2i.jpg/)

Unfortunately, I botched the hole for the switch, as I drilled the hole too high. I ended up using a rotary tool to carve out the rest. Thanks a bunch micro for the schematic!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: cheema201 on September 17, 2013, 01:26:07 PM
Solid job on the nes controller!

Looks great
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: SnoopKatt on September 17, 2013, 04:13:15 PM
Thanks! I'm going to make another NES controller and I'll do a better job on the hole for the switch. Might also use a smaller DC jack for charging... 2.1mm is way overkill haha.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Marmotta on October 24, 2013, 04:53:51 AM
For some reason I just can't get my Saturn controller to work when I've wired it all up inside the shell.  I've got it to work many times when it's on a breadboard, but no luck.  Everything's receiving 3.3V (I'm using a slightly different voltage regulator). I thought the controller board, chip or wireless adapter might be faulty, but I've hooked them up to my breadboard and they all work fine.  I can't help but think it must be some oversight in my wiring, but I can't think what it could be, having tried desoldering and soldering with different wire a couple of times already...  If anyone has any ideas it would be great as I feel like I'm so close to completing it.

(http://i10.photobucket.com/albums/a127/Marmotta/CameraZOOM-201310102204250961_zps599ec1b0.jpg) (http://s10.photobucket.com/user/Marmotta/media/CameraZOOM-201310102204250961_zps599ec1b0.jpg.html)

I did realise I needed to connect pin 11 on this pic:
(http://i10.photobucket.com/albums/a127/Marmotta/CameraZOOM-20131023133928447_zpsb5961590.jpg) (http://s10.photobucket.com/user/Marmotta/media/CameraZOOM-20131023133928447_zpsb5961590.jpg.html)

(http://i10.photobucket.com/albums/a127/Marmotta/CameraZOOM-20131023192619357_zps55e28920.jpg) (http://s10.photobucket.com/user/Marmotta/media/CameraZOOM-20131023192619357_zps55e28920.jpg.html)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Marmotta on October 24, 2013, 06:32:39 AM
Ignore that post - I found out the issue was with the capacitor between 10 and 20 ;D  Removed it from the chip and wired it up separately and everything works now...
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Packalti on October 25, 2013, 02:06:27 AM
Still working on that n64 controller..
The Problem why I am not making any progress is that I haven't found a good way to desolder those damn small components on the board of the rumble pak  >:(
Any advice how to easily remove those small things?  :-\
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: SnoopKatt on October 25, 2013, 05:27:26 AM
It's a little hacky, but if you get a small flat head screwdriver, you can just scrape/pry them all off. Just watch your fingers!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on October 25, 2013, 12:18:13 PM
Or just use some chip quik  ;)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on October 25, 2013, 03:36:23 PM
Or just use a heat gun/hot air blower and blow all the stuff off the PCB  8)
The only thing that must remain undamaged on the PCB is a little fuse near the battery contacts.

Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Grambo on November 01, 2013, 05:48:42 AM
I've just recently discovered that when playing Secret of Evermore, my wireless controller causes the game to read the incorrect buttons. Left is right, A is start, Y is B... etc.

This happens both on the game cartridge and my Everdrive. So far, it's the only game I've come across that acts strangely. Can anyone else confirm this?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on November 01, 2013, 04:55:42 PM
I don't have a SNES controller/receiver with the "old" wireless mod anymore, but with the new version I'm working on at the moment I don't have problems.... (US SNES Mini console + US cart).

Is the problem present from the start or does this happen after playing for some time?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Grambo on November 02, 2013, 12:52:27 AM
Right off the start. If the problem were occurring, you wouldn't even be able to get past the title screen by pressing start.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: SnoopKatt on November 02, 2013, 03:31:48 AM
Kind of a random question, but does Secret of Evermore work well with 3rd party controllers? I remember it being a pretty glitchy game (although awesome), and compatibility issues wouldn't surprise me. I don't have it anymore though, so I can't contribute much more :/
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on November 02, 2013, 09:00:56 AM
@Grambo: If you got the possibility to re-flash your receiver then you could try out this .hex file: http://www.mediafire.com/download/dpwjx2jpgarrtli/SNES_RX_EVERMORE.hex (http://www.mediafire.com/download/dpwjx2jpgarrtli/SNES_RX_EVERMORE.hex)

There's no guarantee that it will fix the issue. It's also possible that the receiver won't work at all  ;D
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Grambo on November 02, 2013, 04:24:36 PM
Cool, thanks :) I probably won't get to reprogramming it right away though.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Gv288 on November 04, 2013, 06:03:44 PM
Hi guys,
great work you are doing here!
As from yesterday I ve been given my SNES back from a friend I had given it to (in 1995!)
I immediatly started looking for wireless controllers to plug in to my system, unfortunatly I can't find any.
I've seen the  ones from retrobit, but I read that they are laggy and have problems with the D-pad.

So here goes: can anyone here make 2 of these for me?
I'm willing to pay for this, of course
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: mdn15 on November 19, 2013, 02:29:24 PM
Great Project Micro!  Is it possible to use the ATMega328p as a drop in replacement for the ATMega8.  I believe the fuses might be different, but I believe the pinout is the same.  If not, is there any chance of getting SNES RX firmware for a ATMega328p?

Thanks!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Marmotta on November 22, 2013, 12:58:45 AM
I'm trying to build charger circuits inside my controllers (and already managed to fry one MAX1811 :-[), but just wanted to know what the status of the LED on the charging circuit is at any given point (i.e. does it change depending on battery level).  I built a separate board to try and get the circuit working fine, as I was just making a mess inside the controller by just trying to add it to my existing circuit and hooked up a dead 1st Gen Shuffle battery up to it which it's sending 3.7V to, which I assume is correct.

Also, how long does a full charge take?  Would I be right in thinking that USB is 500ma, so it would take about 5 hours to charge the 2500ma iPod battery?

Thanks
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on November 22, 2013, 03:08:59 AM
It depends on the configuration of the MAX1811.
http://www.maximintegrated.com/datasheet/index.mvp/id/2536 (http://www.maximintegrated.com/datasheet/index.mvp/id/2536)

If you connected the SELI pin of MAX1811 to GND as I proposed, then the charging current will be 100 mA. The Ipod Shuffle battery has a capacity of 250 mAh. Normally you can't just divide the capacity by the charging current (250 mAh / 100 mA = 2.5 hours) to calculate the time it takes to charge battery. But this calculation will give you a rough value, so it should take about 2 to 3 hours to charge the battery.

According to the datasheet the LED will burn if the the battery voltage is between 2.5 V and the "battery regulation voltage" (in your case 4.1 V, if you have connected the SELV pin to GND).
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: darktic on November 28, 2013, 06:16:52 AM
Hi,

First of all, very Cool project ...

Okay, now to my problem....
I have build the snes controller, the receiver and the charging cable.
But I have a problem with the receiver.

When I plug in the receiver, it seems to press the R button and sometimes it presses the pause button ( may be select for specific games)

I tripple checked the wireing and i double checked and verified the program on the Atmega8 Pu. Everything semms to be correct.

What could be the problem?? Please Help, i was bulding this cool mod for my brother in law, and i am very pissed, because i can´t solve the proble of myself.

thx in advance

Jimmy
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: darktic on November 28, 2013, 07:05:03 AM
Quote from: micro on August 16, 2013, 03:28:13 AM
Ok, then. On your receiver, please add a 10 kOhm between "VCC" and "P/S" (pin 4 and 20 on the Atmega8)
It seems on some PAL SNES consoles that pull-up resistor is required.

Let's hope this fixes your wireless controller, but there are still 100 other ways to fuck up ;P
Could this solve my problem?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on November 28, 2013, 09:49:56 PM
Yes, if you got a PAL SNES, I'd give it a shot!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: REllU on December 01, 2013, 10:46:05 PM
Hello!
I'm a new one here, and I don't speak English as my native language, so try to understand :p
I registered on these forums because of this thread. I have spent literally hours for searching how to make my nes controller a wireless one (I just recently found my old NES console, and tried it out, and oh boy! So much memories!) then I just got this idea, "is it possible to make the nes controller an wireless one?"

So, I found this thread, and thought "why not" (and btw, it is very awesome to see you, micro, still going on and answering to these messages!)
Like I said, I have been looking for some kind of instructions for this one, and all the links seem to be dead, or not what I have been searching for.

For now, I only have an original NES-004 controller, some electronic stuff (wires, switches, leds, and  not much more) and an old and broken nintendo DS, where I took the battery from. I was thinking if I could use the DS's battery for this project? It seems to be a little thicker than the apples one.

But what else I actually need for this? And is this hard to make, or costy? I found out it should cost around 50-60 $ with the apples battery and other stuff. And it is worth it?
For now, I don't really know what else to ask :D
Thank you for possible answers!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: abduct on December 27, 2013, 03:21:50 PM
@Micro: Hey found this thread from youtube and I have a fairly simple question. I am in the process of putting together some N64 wireless controllers and I was wondering if it was possible to have the console side transceiver switch on a transistor/relay combo to power on the console when the controller syncs (or the console side transceiver wakes up from low power state). I don't have the hardware on hand because it is being shipped, but I assume this would be a fairly easy question to answer for someone who has worked with these chips.

I'm in the process of modding the N64 to be a completely wireless system, so if this question could be answered it would be appreciated. I was originally going to design a IR remote for powering the console on/off/reset, but if I can make these transceivers do it, then that will be one less component cluttering the project.

edit:: If possible, could you also upload the source code for the micro controllers. I would love to take a look at them and modify them myself for specific needs. Thanks!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: kendrick on December 27, 2013, 06:25:43 PM
Welcome to GamesX, Abduct. You want to read this portion of the current thread:

http://nfggames.com/forum2/index.php?topic=4393.msg30973#msg30973 (http://nfggames.com/forum2/index.php?topic=4393.msg30973#msg30973)

The idea of a wireless power activation switch was previously discussed, and at the moment the equipment that has been built does not accommodate the capability as far as I know.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: abduct on December 28, 2013, 10:53:54 AM
Quote from: kendrick on December 27, 2013, 06:25:43 PM
Welcome to GamesX, Abduct. You want to read this portion of the current thread:

http://nfggames.com/forum2/index.php?topic=4393.msg30973#msg30973 (http://nfggames.com/forum2/index.php?topic=4393.msg30973#msg30973)

The idea of a wireless power activation switch was previously discussed, and at the moment the equipment that has been built does not accommodate the capability as far as I know.

Hi and thanks for the link I've read the posts concerning it and I agree with some points and others I do not. I don't have the wireless transceivers so I can't test this, but I would imagine that you can do something like this.

1) wire player1 transceiver to constant dc current before the switch
2) replace the 8pst switch (or what ever it was) with a matching relay set
3) wire in a transistor from the constant current to the relays to power then, and wire the gate opening side of the transistor to voltage output of the wireless transceiver.

In theory, the transceiver will be always on with constant power, which means when the controller is turned off, it will enter a low power state so the datasheet says. When a controller syncs to the transceiver it enters a higher power state. If tapping into this high and low power states you could potentially trigger a transistor to open open the relays to turn the console on. And since the transistor closes with a low power state of the transceiver (closing the relays as well), and the transceiver itself in low power mode, you will be drawing minimal power.

The only downside I see is if the code for the mcu's do not have a keep alive packet, and the controllers are in an idle state (paused game and not playing for a while) the transceivers may go into low power mode causing undesirable power loss to the console. Another option is to keep the same setup (transistors, relays and constant power to the transceiver), but modify the controller to include a spst switch to send an awake packet to the console whos transceiver would be awake because your controller would be connected. I would believe it would be as simple as rewriting the application a bit, and setting one of the controllers mcu's GPIO pins to input mode and use the spst switch to set the high/low state of the GPIO pin to send the packet and then setting one of the consoles mcu GPIO pins to a high/low state to trigger the transistor. Another option would to use a keypress combo to send the packet eliminating the need for the spst switch.

Anyways that is my thinking for this, hopefully micro will reply and release the source code to his project so I can take a deeper look at it. I did some looking around and one person used a simple receiver and remote with a single button to power on/off his console with pretty much the same method (minus these 2.4ghz transceivers, he used some all in one package for a car alarm or something).
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on December 29, 2013, 05:13:10 AM
Well I guess it's possible. But it seems to me you got a few things wrong:

Where does the datasheet say it goes into low-power mode after a certain time? The transceiver inside the receiver (or inside your console) is in RX mode and it will stay in that mode all the time.
The controllers don't send a keep alive packet and they also don't send a special package when they're turned off. (You just flip the switch and cut power to the whole circuit inside the controller)

Also I'm not sure if I got this right:
You want to use the internal digital supply output pin (DVDD) of the NRL24L01+ to switch the relay? I don't think the purpose of the pin is to switch external stuff ;)
I think the best way would be to change the program of the MCU inside the receiver. Watch for a special button combination to toggle the state of an output pin. And with that pin you could close or open the relays.

Regarding the source code:
I haven't released the source code yet and I'm not sure if I will. It's pretty messy. Comments are in german and english. Also the RF protocol I used in this version is pretty stupid and not that stable at all. And most of all: It's asm and not c.

Would you really want to dig into the old fugly code? I certainly wouldn't, for the next version of the wireless mod I've started from scratch...
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: abduct on December 29, 2013, 06:29:34 AM
QuoteWhere does the datasheet say it goes into low-power mode after a certain time? The transceiver inside the receiver (or inside your console) is in RX mode and it will stay in that mode all the time.

I could of swore I found it in the data sheet but after quickly skimming through it, I can't find it. The only things I found are near the beginning mention a "power down mode (900nA)" and two different standby modes (22uA and 320uA). I would need to reread the documentation again more thoroughly. It sounds like you can force the module into a low power standby state after certain conditions are met.

QuoteYou want to use the internal digital supply output pin (DVDD) of the NRL24L01+ to switch the relay? I don't think the purpose of the pin is to switch external stuff ;)
I think the best way would be to change the program of the MCU inside the receiver. Watch for a special button combination to toggle the state of an output pin. And with that pin you could close or open the relays.

Yea the thing about using the power down voltage and high voltage of the receiver was a silly idea, but I later mentioned using the MCU and GPIO pins to switch the transistor/relays. Which would be better overall. Along with watching for specific button combinations to send the start/power off commands.

QuoteRegarding the source code:
I haven't released the source code yet and I'm not sure if I will. It's pretty messy. Comments are in german and english. Also the RF protocol I used in this version is pretty stupid and not that stable at all. And most of all: It's asm and not c.

That's fine by me. I don't mind rewriting from your base if it is needed. I am also pretty proficient in assembler/c/ruby (and other unrelated languages), so it shouldn't be that much of a problem. Also I don't mind if it's messy, you should see some of my thrown together projects lol. But it's up to you if you do not want to release the source I'll respect your decision, but having a base to work from or modify would be more helpful to me than starting from scratch. Also if I did obtain the source code if you wished, any stable modifications I made could be posted to this thread, or to a new thread for others to use (either source code or compiled flashable files.)


Thank you for replying to me.

Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on January 02, 2014, 12:29:48 AM
The 900 nA low power mode can only be selected by disabling the NRF24L01+. You have to clear the power-up bit of the configuration register. But it really works :D


I've uploaded a new version of wireless mod containing the source files (see first post). I hope it will help you to achieve your power-switching feature  ;D
Hopefully I've also fixed the issue with some PAL SNES systems (missing pull-up resistor on P/S).
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: abduct on January 02, 2014, 06:12:51 AM
Quote from: micro on January 02, 2014, 12:29:48 AM
The 900 nA low power mode can only be selected by disabling the NRF24L01+. You have to clear the power-up bit of the configuration register. But it really works :D


I've uploaded a new version of wireless mod containing the source files (see first post). I hope it will help you to achieve your power-switching feature  ;D
Hopefully I've also fixed the issue with some PAL SNES systems (missing pull-up resistor on P/S).

Thank you very much!!!!

I'll be taking a look at them after I get back from my trip. I've been jotting down notes on a scrap paper for this project for a while and I've figured out some efficient ways for this to work better and some problems with my previous assumptions in this post.

Thanks again!

edit:: just read through the n64TX assembly. German comments translate fairly well to English and the code (after looking up some instructions on the atmel website) reads very smoothly. Few spots could be rewritten and optimized, but overall I was pleasantly surprised. I guess it pays off having a few years of x86 assembler knowledge though, I wouldn't expect any newbie to understand this. Even noticed that when translating the n64 buttons you translated them into a cross compatible scheme that works with other controllers (n64_1 -> buttons1, n64_2 -> buttons2). When I get around to rewriting this myself I'll make a thread and release it.

One thing I am confused about is the purpose of removing pin 30 of the controllers micro controller. What does this change/prevent/accomplish?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on January 02, 2014, 08:21:01 PM
IIRC then the idea was to place the whole wireless circuit into the rumble pak. I think I used pin 18 of the memory card connector for the controller data line. And pin 18 of the memory card connects to pin 30 of the Nintendo IC on the controller PCB. So I suggested to cut/break off pin 30 ;D
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: ours1011 on January 03, 2014, 09:56:48 PM
Quote from: micro on January 02, 2014, 12:29:48 AM
I've uploaded a new version of wireless mod containing the source files (see first post). I hope it will help you to achieve your power-switching feature  ;D
Hopefully I've also fixed the issue with some PAL SNES systems (missing pull-up resistor on P/S).
Hi there !

Can this maybe solve my problem ? (reply #200) ?

My bad, I still haven't ordered spares to check what went wrong, i've been busy with an another project :)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on January 03, 2014, 10:48:38 PM
Maybe it actually does. But I can't tell for sure if I don't get feedback...

And c'mon, you don't need to make an extra parts order to try out a pull-up resistor. ;) Just add a 10k (or 20k or 5k..) resistor between +5V and P/S and see if it works...
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: abduct on January 06, 2014, 09:45:16 AM
Quote from: micro on January 02, 2014, 08:21:01 PM
IIRC then the idea was to place the whole wireless circuit into the rumble pak. I think I used pin 18 of the memory card connector for the controller data line. And pin 18 of the memory card connects to pin 30 of the Nintendo IC on the controller PCB. So I suggested to cut/break off pin 30 ;D

Ah, makes perfect sense. You didn't want to feed the data line back into the IC so you cut pin 30 and since you were not going to be using the expansion port you didn't need that pin.

I just got back from my trip, but my parts haven't came in yet so this project is on hold for now. I may re-comment the entire source and reorganize it into more manageable modules so code isn't all over the place while I wait. It shouldn't take long seeing how these are fairly small applications.

What assembler are you using/did you use for this project? I am using atmel studio 6.1 and I got a fair bit of duplicate macro errors for the radio related macros (set_ss, reset_ss, set_ce, reset_ce) (duplicate macros located in nrf24l01.inc and n64_tx2.asm). After commenting out the duplicate macros though it compiles fine so it isn't that huge of a problem.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: mdn15 on January 06, 2014, 11:36:17 AM
Hi All!

I have been trying to get this to work with my SNES for a while and still no luck.  I have rebuilt the circuit multiple times (with a slight variant of the 3.3V regulator). 

When I plug the SNES_RX into the SNES, I see random wavy bars on the screen, when I unplug it from the SNES, the SNES boots.  I have checked the wiring on both the Transmitter and Receiver and the wiring seems to be ok.  I have just reflashed the firmware and I have tried new MCU's. 

Can anyone help me determine what is going on?  I can post pictures if needed.

Regards
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: mdn15 on January 06, 2014, 11:59:45 AM
I managed to fix the wavy line issue by replacing the atmega8.  However.. the TX/RX still does not work.  I tried a 10K pullup on the strobe pin on the Rx but still no luck.  The firmware I have flashed is the SNES_RX3.hex on the atmega8 with the low fuse set to 0xd4 and the high fuse set to 0xdf.  The transmitter (attiny 2313) has the SNES_TX2.hex with the low fuse set to 0x64 and the high fuse set to 0xdb.  Both circuits are on breadboards and can easily be manipulated.

Any help would be greatly appreciated.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on January 09, 2014, 01:03:56 AM
@abduct: At that time I've been using AVR Studio 4. I wanted to include the whole project files but some of them included folder paths of my PC (which I don't want to publish).  So instead I've just included the .asm files + one .inc file.
It seems you're right. Some of the .asm files already include the macros that are defined in the .inc. But it's no big deal to delete all the duplicates just as you did...  :)

@mdn15: Yes, you can make some good & sharp pictures of your circuit(s). There are infinite reasons why it doesn't work. Have you set the right channel on both devices? It's also possible that one (or both) transceiver modules are broken. They tend to die very fast & easily if you apply the wrong voltage (5V instead ov 1.9 - 3.6V).

It's possible to check if the receiving transceiver is actually receiving data. If you measure the voltage on IRQ line you should see about 5V. Now if you press some buttons on the wireless controller then you should see a clear decrease of voltage on the IRQ line.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: mdn15 on January 09, 2014, 06:34:36 AM
@micro - Thanks for the help.  I will see if my camera can take sharp pictures to send this to you.  I do have some spare transceivers that I can try.  I will also check the voltage on the VCC pin on the transceivers (Should be 3.3).  I also have a logic16 that I can hook up to the SPI pins and the IRQ pins to see what is going on (but I'm not too sure what I can make of it).  What is the correct method to set the 'right channel' (or matching channels) on the transceivers?

Thanks
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: SnoopKatt on January 09, 2014, 08:30:53 AM
I'm building a second NES controller (with hopefully better craftsmanship), and this time I wanted to include the charging circuit in the controller so I just need a USB cable. I found this: http://www.fasttech.com/product/1453504-tp4056-1a-li-ion-battery-charging-module (http://www.fasttech.com/product/1453504-tp4056-1a-li-ion-battery-charging-module)
and I like it since it has a really small footprint (and it's super cheap!). However, before trying it out, I have a couple questions:
1. I noticed that you set the charger to charge at 4.1V. This is fixed at 4.2V; that should still work, right?
2. The website claims it can be programmed to charge with 100mA, but on the datasheet, I only see 130mA. Is 130mA still safe?
Thanks!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: mdn15 on January 09, 2014, 01:05:27 PM
@micro Thanks again for your help!

Alright. So I was able to snap some pics of the breadboards.  I have not been able to take the Logic 16 to them or verify the voltage on IRQ or the transceiver.

Each board has wiring for a Sparkfun isp breakout board (breakout board not shown in pics)

I removed the transceiver from its breakout board, but orientation is that the ground pin (pin 1) is on the top left of the breakout.  This would orient the transceiver with the antenna pointing to the right.

The Console and the Controller are connected via a split SNES extension cable.  The pinout is the same as the SNES port.

Please let me know if there are any questions about how I have this wired. (Sorry for all of the Red wires).
On the RX.. The pin connected to the channel select was left floating

The pics were too big.. so..

SNES_RX_1 - http://imgur.com/a/NWK6Z#0 (http://imgur.com/a/NWK6Z#0)
SNES_RX_2 - http://imgur.com/a/NWK6Z#1 (http://imgur.com/a/NWK6Z#1)
SNES_TX_1 - http://imgur.com/a/NWK6Z#2 (http://imgur.com/a/NWK6Z#2)
SNES_TX_2 - http://imgur.com/a/NWK6Z#3 (http://imgur.com/a/NWK6Z#3)

Dropbox Archive - https://dl.dropboxusercontent.com/u/9832887/snes_wireless_bb_pics.zip (https://dl.dropboxusercontent.com/u/9832887/snes_wireless_bb_pics.zip)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on January 09, 2014, 09:23:14 PM
Thanks, these are some good and sharp pictures indeed!  ;D

Your RX circuit looks good although I don't know what kind of voltage regulator you've used.

But on your TX circuit it seems you've switched NRF's MISO and MOSI :)
Let's hope it'll work if you switch both wires...  :D

I remember that someone else also switched these two wires. The problem might be that the MISO wire connects to pin 17 (MOSI) and the MOSI wire connects to pin 18 (MISO).
The pin descriptions in brackets only apply when you're programming the MCU with the ISP adapter. If you want the Attiny2313 to be a SPI master and to communicate with other devices over SPI (just like NRF24L01+), then you got to use different pins.... (Read the datasheet if you really want to know).
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: mdn15 on January 09, 2014, 10:43:50 PM
Thanks for the quick response!
The Vreg used on the RX circuit is the LD1117V33 (Datasheet: https://www.sparkfun.com/datasheets/Components/LD1117V33.pdf (https://www.sparkfun.com/datasheets/Components/LD1117V33.pdf)) Purchased at sparkfun.  I have used these in the past and they put out a nice 3.3V rail.

Flipping the MISO and MOSI as you point out is most likely the problem.  I connected it as a standard SPI bu.  I will try flipping these when I get home this evening. 

How do I select the channel the the TX circuit should use?
Also, How did you program the RX circuit.  I attempted to do this myself (prior to finding the project) and I could not get the timing correct (using interrupts).  I used C to write my program.  Did you use some assembly?  (Just curious)

Thanks again!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on January 10, 2014, 03:23:59 AM
The problem is that the Attiny2313 doesn't have a full hardware SPI module. Instead you got to use the DI (data in) and DO (data out) pins which also happen to be the MOSI and MOSI pins. An that's the reason why it's so confusing: Same names but the function is flipped.

Setting the channel on the wireless controller is done by turning on the controller while holding either A or B button.

Just as I announced a few posts ago, the source files are now included. In this version I've used assembly language exclusively. But in the new version of my mod which I'm currently working o (http://nfggames.com/forum2/index.php?topic=5180.0)n, I'm also using C. It can be done in C with the MCU running at 16 MHz. Have a look at the .asm files, that's also how I've done it in C. I tried to mimick the behaviour of the 4021 IC inside the SNES controller. It's really not that hard, just two ISR's for each Clock and Latch interrupt :)


@SnoopKatt: 4.2 V should be ok. But since most mobile phone and Ipod batteries don't come with a data sheet you can't tell for sure what the rated charging voltage is.
Charging the Ipod shuffle battery with 130 mA also shouldn't be a problem for the battery itself. But you can only draw up to 100 mA from a PC's USB socket without further communication with the USB host. I think it's possible to set the charging current to 100 mA on your charging IC. Unfortunately I haven't found a decent and comprehensive data sheet for your charging IC yet...
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: SnoopKatt on January 10, 2014, 05:46:53 AM
The data sheet is pretty barren :/
If it was plugged into a cell phone or tablet charger, it could pull the full 1A though, right?
It looks like most of the boards are pre configured for 1A output, so I guess changing that resistor to 12K would do it? It sucks that it's an SMD resistor haha.
I ordered a couple of them, not too much to lose if they don't work out.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on January 10, 2014, 06:33:29 AM
I'm afraid 1 A is way too high... It's a rule of thumb that Li-Ion batteries can be (safely) charged at 1 C.
(See also:
http://en.wikipedia.org/wiki/Lithium_polymer_battery (http://en.wikipedia.org/wiki/Lithium_polymer_battery)
https://sites.google.com/site/tjinguytech/charging-how-tos/the-variable-c (https://sites.google.com/site/tjinguytech/charging-how-tos/the-variable-c))

So for that tiny Ipod Shuffle battery with its capacity of 250 mAh I wouldn't use a charging current higher than 250 mA.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: SnoopKatt on January 10, 2014, 08:20:54 AM
Gotcha...good thing that a different charging current can be used by just changing the resistor on the board.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on January 10, 2014, 08:47:15 AM
This is the data sheet that I've found: http://dlnmh9ip6v2uc.cloudfront.net/datasheets/Prototyping/TP4056.pdf (http://dlnmh9ip6v2uc.cloudfront.net/datasheets/Prototyping/TP4056.pdf)

On page 2 under "Prog (Pin 2)" they explain how the charging current is set. For some reason they keep writing "ISET pin" instead of "Prog pin". Very poor...
Anyways, the formula to calculate the resistor's value is:  RPROG = 1200 V / ICHARGE

So if you want to have a charging current of 100 mA you need a 12 kOhm resistor. (1200 V / 100 mA = 12 kOhm). It shouldn't be hard to desolder the old SMD resistor. Just add enough solder to your tip and heat both terminals at the same time until it goes off :D
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: SnoopKatt on January 10, 2014, 09:05:41 AM
Gotcha, thanks! Looking at the board, they put a 1.2k resistor in that spot, so the 1A charging current makes sense. I'll switch it with that 12k resistor. I'll let you know when they arrive.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: mdn15 on January 10, 2014, 11:02:50 PM
Flipping MISO and MOSI on the TX side fixed my issue and I how have a working (bread boarded) SNES Wireless controller!

Thanks micro!

I will be taking a look at the source code (for fun) as well as creating a final version for myself (with the latest fw).  Thanks again!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Palya on January 15, 2014, 11:18:00 AM
Thank you for such a wonderful information, I apologize for the clumsy language, I use a translator because I'm from Ukraine ...
All acted according to your diagrams, and everything works just amazing:

(http://savepic.net/4229245m.jpg) (http://savepic.net/4229245.htm)
(http://savepic.net/4200572m.jpg) (http://savepic.net/4200572.htm)
(http://savepic.net/4202622m.jpg) (http://savepic.net/4202622.htm)
(http://savepic.net/4231294m.jpg) (http://savepic.net/4231294.htm)
(http://savepic.net/4277223m.jpg) (http://savepic.net/4277223.htm)

Wanted to ask you, if you have a similar scheme on SEGA Dreamcast, Megadrive 2, Panasonic 3DO?

Once again, THANK YOU!

Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on January 16, 2014, 12:22:53 AM
Nice boards! Congrats on this one  :D
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on January 16, 2014, 07:45:10 AM
Yes, that's a nice PCB, good job!  ;D

I won't add support for other systems to this "old" code. (But the source files are available)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: SnoopKatt on January 16, 2014, 10:30:11 AM
That's super clean, awesome job! It seriously looks like Nintendo could've made it.Is the power button where the cord was?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Palya on January 20, 2014, 10:02:48 AM
Quote from: SnoopKatt on January 16, 2014, 10:30:11 AM
That's super clean, awesome job! It seriously looks like Nintendo could've made it.Is the power button where the cord was?

Yes, where there was a cord, there is a power button, just did not make a separate charger for each joystick controller integrated and charge through the mini USB, USB from any source. Just red charge indicator right on the joystick.

It is a pity that there is no other under the console, I want to make wireless joysticks for all consoles that I found in the collection. 8)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Palya on January 20, 2014, 10:08:29 AM
Quote from: Palya on January 20, 2014, 10:02:48 AM
Quote from: SnoopKatt on January 16, 2014, 10:30:11 AM
That's super clean, awesome job! It seriously looks like Nintendo could've made it.Is the power button where the cord was?

Yes, where there was a cord, there is a power button, just did not make a separate charger for each joystick controller integrated and charge through the mini USB, USB from any source. Just red charge indicator right on the joystick.

It is a pity that there is no other under the console, I want to make wireless joysticks for all consoles that I found in the collection. 8)

Another couple of pictures)))

(http://savepic.net/4201599m.jpg) (http://savepic.net/4201599.htm)
(http://savepic.net/4202621m.jpg) (http://savepic.net/4202621.htm)
(http://savepic.net/4227195m.jpg) (http://savepic.net/4227195.htm)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: eitnot on January 21, 2014, 12:46:10 PM
Anyone have a problem with range of their controllers?  I built 2 SNES receivers and controllers.  I also built 2 NES controllers.  If my receiver is 10 feet away I'll intermittently have problems where it will stop responding for a second.  For example while playing Kung Fu for NES all of a sudden I won't be able to Kick or Punch and my character will just keep walking.  Then after a second or two control comes back.  Tried with both receivers and different controllers and it did not make a difference.  So then I moved the receiver closer so that it was only 5 ft away and the problem went away.  Controllers are fully charged.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: abduct on January 21, 2014, 01:47:44 PM
Quote from: eitnot on January 21, 2014, 12:46:10 PM
Anyone have a problem with range of their controllers?  I built 2 SNES receivers and controllers.  I also built 2 NES controllers.  If my receiver is 10 feet away I'll intermittently have problems where it will stop responding for a second.  For example while playing Kung Fu for NES all of a sudden I won't be able to Kick or Punch and my character will just keep walking.  Then after a second or two control comes back.  Tried with both receivers and different controllers and it did not make a difference.  So then I moved the receiver closer so that it was only 5 ft away and the problem went away.  Controllers are fully charged.

Not sure if it is the problem, but I've read people having corrupted packets/packet loss if their transceiver is to close to the MCU. I haven't experienced this so I can't say if the statement is legitimate. Although 10 feet is a bit short of a distance for packet loss problems to be occurring. People have gotten more than 10+ meters (32ft) before packet loss happens for line of site transmissions. Not sure if it will help but try to test the controller with the transceiver antenna out of the case facing the receiver unit.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Grambo on January 21, 2014, 01:50:08 PM
Quote from: eitnot on January 21, 2014, 12:46:10 PM
Anyone have a problem with range of their controllers?  I built 2 SNES receivers and controllers.  I also built 2 NES controllers.  If my receiver is 10 feet away I'll intermittently have problems where it will stop responding for a second.  For example while playing Kung Fu for NES all of a sudden I won't be able to Kick or Punch and my character will just keep walking.  Then after a second or two control comes back.  Tried with both receivers and different controllers and it did not make a difference.  So then I moved the receiver closer so that it was only 5 ft away and the problem went away.  Controllers are fully charged.

Yeah, the range is not fantastic. I certainly experienced the issue too and it very well may have to do with packet loss, as abduct says. No problems with micro's new full v2 PCB solution though; the range is fantastic.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: eitnot on January 21, 2014, 11:32:52 PM
Abduct: I'll try to test this out tonight when I get home.  I attached a picture of my receiver so you can see how I laid it out.

Grambo: Is v2 PCB already out and I missed it?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: abduct on January 22, 2014, 12:31:14 PM
Quote from: eitnot on January 21, 2014, 11:32:52 PM
Abduct: I'll try to test this out tonight when I get home.  I attached a picture of my receiver so you can see how I laid it out.

Grambo: Is v2 PCB already out and I missed it?

No v2 PCB isn't out and may not be for a while. There is a development thread though. If I recall correctly Micro is currently doing more developing on the snes version as well as has a saturn version in the works. No schematics or other information has been released because this PCB is more complicated and can't really be easily replicated at home. He sold a few but at the moment I believe he does not have any to sell.

You can find his work log (sorta) here:

http://nfggames.com/forum2/index.php?topic=5180.0 (http://nfggames.com/forum2/index.php?topic=5180.0)

I am also currently working on a revamped version micros v1.2 release. I wont release any specs or details until I at least have a working breadboard version to show (waiting for some IC's and new breadboards to come in). I will most likely release the schematics and bill of materials like Micro did, but I wont sell these unless micro okays it. After all it was his project/idea in the first place.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: eitnot on January 22, 2014, 01:30:43 PM
Got a chance to mess around a little tonight and it does seem that if I crack open the case of the receiver so that the antenna is facing me that the controls are more reliable.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: abduct on January 22, 2014, 04:34:49 PM
Quote from: eitnot on January 22, 2014, 01:30:43 PM
Got a chance to mess around a little tonight and it does seem that if I crack open the case of the receiver so that the antenna is facing me that the controls are more reliable.

Does distance effect it at all? I think you are just suffering from packet loss causing the controls to seem to stick. Although depending on the controller your using, normally a packet lost here or there wouldn't make the controls stick for 1-2 seconds. In example the n64 controller is polled every 60hz (16ms iirc) for button statuses. This would be about 62 status updates sent to the receiver per second. So unless you are getting massive packet loss I am not sure what might be happening.

Maybe I am wrong and someone else could give some insight.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: eitnot on January 22, 2014, 10:07:07 PM
The 1-2 seconds is a bit of an exaggeration on my part.  Usually it is very short hiccup where it just misses a button press or a couple quick presses in a row.  The time of unresponsiveness is probably under a quarter second but when you're getting beat up it feels longer.

If I move the receiver so that it is 1.5 meters away I don't have any problem.  If it is 3 meters away then I start having problems but it is pretty intermittent.  Sometimes I can play a whole level and it will only happen a couple times.

Side note I look forward to hearing more about your revamped version.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: sazyario on February 01, 2014, 02:18:29 PM
How is version 2 coming of this project?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: abduct on February 01, 2014, 04:19:03 PM
Quote from: sazyario on February 01, 2014, 02:18:29 PM
How is version 2 coming of this project?

If you are referring to the official "version 2" you can check Micros progress in this thread below. Last I heard I believe he was working on a sega version of his controller.

http://nfggames.com/forum2/index.php?topic=5180.0 (http://nfggames.com/forum2/index.php?topic=5180.0)

If you are referring to my branch off I stated I was doing, I have yet to really start. Parts from china have been delayed due to their holidays, but hopefully they should arrive early next week. I'm just waiting on my linear voltage power supplies for my new breadboards. Once those come in I will be able to officially start the project. I've already have all the parts/sourced other parts needed to complete this after the reprogramming is done. When I get something solid functioning I'll make a dedicated thread for it.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: noble7 on February 14, 2014, 01:37:35 PM
Hi everyone,

I've signed up for this forum just because of this thread!

I have one question about the controllers for now for I am a newbie when it comes to electronics but an avid gamer. I've seen the PDF about Universal Wireless Retro Controller v1.1 and have see the word "VCC" in the how to and the skematics.

What is VCC and what devices are used to be a VCC?

Thanks for the help!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: NFG on February 14, 2014, 04:19:05 PM
Quote from: noble7 on February 14, 2014, 01:37:35 PMI've signed up for this forum just because of this thread!

What is VCC and what devices are used to be a VCC?

Welcome to the forum!

Vcc, for our purposes, is just the positive voltage supply for the circuit.  See wikipedia (http://en.wikipedia.org/wiki/IC_power-supply_pin) for futher specifics.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Justin566 on February 17, 2014, 07:44:01 AM
Hi

I also signed up for this forum just because of the thread i am currently posting in.

Probably obvious or already asked but how do you put in a channel switch?

Thanks

Justin566
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on February 17, 2014, 08:10:45 AM
Have you seen the schematics inside the zip file? (first post of this thread).

The schematics tell you how to connect a channel switch with the microcontroller. If you've seen the schematic but you're still wondering how to, then I guess this mod is above your head. I'm sorry  ;D
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Justin566 on February 17, 2014, 09:05:51 AM
I see it now that I look harder thanks
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Justin566 on February 17, 2014, 09:10:11 AM
I dont see it on N64 TX. That is wair I couldent find it before.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on February 17, 2014, 09:11:52 AM
There is no channel switch on the transmitting controllers. You select the channel by holding either A or B while turning on the controller.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Justin566 on February 17, 2014, 09:12:20 AM
I am probably just haveing an off day
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Justin566 on February 17, 2014, 09:15:05 AM
Ok I must of not read that. Thanks for the help. I am so glad that this form has such a quick response time
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Justin566 on February 22, 2014, 03:32:11 PM
I think I have found a way to support a memory pack with a switch on the receiver unit!  what if you put a DPDT switch on the receiver connecting the center pins of the switch to the consoles +3.3v and data lines then on one of the sides connect the receiver and then on the other side a Nintendo 64 controller PCB then mount the PCB along with a dremmeld out piece of the controller case memory pack holder in the receiver. then when you want to save just flip the switch and the power and data will be connected to the built in controller and save to the memory pack in the dremmeld out case piece then flip the switch and it will be reconnected to the receiver. you will need to leave the couch but you wont need to change plugs!

I am sorry that this might be hard to read but I am bad at writing so if this is hard to understand please rewrite the message thanks.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on February 22, 2014, 07:43:01 PM
I don't think that's gonna work. If you flip the switch you got the controller with the memory pak selected, ok. But with the wireless receiver disconnected, how do you wanna save your game?

I've hear it's possible to plug in a controller with memory pak into controller port 4 and then you can use that memory pak. I don't know if that actually works, though... Source: http://www.assemblergames.com/forums/showthread.php?36906-save-to-sd-support-for-memory-cards&p=555309#post555309 (http://www.assemblergames.com/forums/showthread.php?36906-save-to-sd-support-for-memory-cards&p=555309#post555309)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Justin566 on February 23, 2014, 03:38:14 AM
O Duah                                     Thair is no facepalm emotacon?

I guess you could mount a relocated "A" butten on the case?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: biggins363 on March 04, 2014, 12:42:54 AM
I really like this thread, its really the only reason I signed up for the forum. But one thing that I was curious about was, is it possible to make one reciever that i can connect to my n64 or my SNES, depending on which one i'm using at the moment?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: abduct on March 07, 2014, 05:00:06 AM
Finally got all my parts in after a few months of waiting >.>

Whipped up a controller based on micros initial directions to test my hardware (mainly my radios) on my breadboards and everything went smoothly.

I can now finally start to modify the code and begin on my version. It's been so long I forgot what I even wanted to add any more lol.

Also stay away from Chinese lm317 regulators!!! I was attempting to being to bring a 12v wallwart down to 3.3v for testing and it was working for a while until all of a sudden the regulator started to pump out 12v into my circuit. Luckily my radio was disconnected and I only burnt a Amega8 which I got for free as a sample. I ended up taking 3.3v from the controller port to power both the RX and TX for the project. Going to build myself a proper lab PSU (12v, 5v, 3.3v) from a computer power supply later.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: flagoss on March 13, 2014, 03:41:10 AM
Would be great to be able to make something like that for memory card support:
http://www.amazon.com/Nintendo-N64-Hypermode-Wireless-Controller-64/dp/B00DMIVDLW (http://www.amazon.com/Nintendo-N64-Hypermode-Wireless-Controller-64/dp/B00DMIVDLW)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: halfspec on March 14, 2014, 10:44:35 PM
Hi guys

I've been referencing this thread for about 2 weeks ago preparing, ordering, and building my project. I just got done with my first N64 controller last night and so far it hasn't worked at all.
I'm still debugging my work, but in the meantime I wanted to ask a question about fuses. In the N64 section of micro's zip the fuses are described as:

For RX
high byte   0xDF
low byte   0xEE

For TX
high byte: 0xDF   
low byte:   0xDF

There is no mention of the Extended Fuse. Now I'm new to programming AVRs, so even though every guide I read had a efuse or extended fuse byte being programmed to the microprocessor, there is no mention (that I can find) of setting the extended fuse in micro's tutorial, soooo I didn't program it. Now that nothing is working, I'm curious if that could be the issue. Most people recommend flashing the extended fuse to 0xFF. Is this something I need to do?

Lane
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: halfspec on March 15, 2014, 05:28:35 AM
Quote from: halfspec on March 14, 2014, 10:44:35 PM
Hi guys

I've been referencing this thread for about 2 weeks ago preparing, ordering, and building my project. I just got done with my first N64 controller last night and so far it hasn't worked at all.
I'm still debugging my work, but in the meantime I wanted to ask a question about fuses. In the N64 section of micro's zip the fuses are described as:

For RX
high byte   0xDF
low byte   0xEE

For TX
high byte: 0xDF   
low byte:   0xDF

There is no mention of the Extended Fuse. Now I'm new to programming AVRs, so even though every guide I read had a efuse or extended fuse byte being programmed to the microprocessor, there is no mention (that I can find) of setting the extended fuse in micro's tutorial, soooo I didn't program it. Now that nothing is working, I'm curious if that could be the issue. Most people recommend flashing the extended fuse to 0xFF. Is this something I need to do?

Lane

Before anyone wastes their time trying to help me I wanted to come back and say the extended fuse programming was not my issue. Sorry to muddy up the thread with bad info/concerns.

My issue ended up being a complication from working with a 3rd party rumble pack. I bought a 4 pack of rumblepacks off of eBay for $6! I thought it was a great deal, but NONE of them are Nintendo brand and NONE of them are the same brand lol! I've got paks with 3 AAA's 2AA's, and 2AAA's. Of course, I'll have to cut one of the AAA's out of the one that takes 3AAAs but that's further down the road... Needless to say there are some inconsistencies between them and the tutorial. My issue was probably about as boneheaded as you can get. I lost track of the rumblepack's PCB original orientation by not taking before pics and reflowing all of the components off with a heatgun. Turns out the component side for this particular pack was the opposite of Nintendo's. I actually got all my pins wires correctly, but I put the board back in the rumblepack horizontally flipped. Therefore, Pin 1 became Pin 32, etc. On my particular board that effectively reversed the voltage to the controller (although the micro received proper power) and sent the data line to who knows where.
What was weird was the LED I used still lit up a tiny bit. Last night, I suspected I had just mixed up my resistor for the LED. Now I believe it was just a little bit of reverse leakage/breakdown.

Anyway, no harm done apparently. It's working like a champ now. 1 down. 3 more to go!

I'll have to post the specifics when I'm done. My particular application is being integrated inside of a N64->USB convertor to be used with a PC and emulators. That takes care of the memory card issue.

Thank you very much for the time and effort you put into this micro. It's been a very satisfying project so far!

Thanks again :)
Lane
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on March 15, 2014, 08:46:05 AM
I'm glad you could work it out on your own. ;D

Make sure you don't use 3xAAA's to power the circuit, otherwise the NRF24L01 will die. But you already said that you'll cut out 1 of the 3 AAA's.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: noble7 on March 28, 2014, 10:56:59 AM
Hi fellow controller modders!

I am running into a snag at the moment with trying to flash the chips. I have attached photos of my connections and if you guys can take a gander at it I would really appreciate it and tell me if you see anything wrong. I currently use the usbasp programmer and eXtreme Burner - avr to try and flash my chips.

As of right now I am currently getting a "Power is not reaching the target chip" message when I try to flash the chips themselves. I have attached links to all the photos :) Any help is much appreciated!!

Images of the circuit:
http://postimg.org/image/j874by22t/ (http://postimg.org/image/j874by22t/)
http://postimg.org/image/z3vyf8sn9/ (http://postimg.org/image/z3vyf8sn9/)
http://postimg.org/image/5q07znpxh/ (http://postimg.org/image/5q07znpxh/)

Images of the diagram for the 10 pin and the error message I get on extreme burner -avr:
http://postimg.org/image/c696pqyh1/ (http://postimg.org/image/c696pqyh1/)
http://postimg.org/image/burqczi11/ (http://postimg.org/image/burqczi11/)

Mucho kudos for micro for putting together this awesome tutorial as my dream to play the retro games with a wireless controller has not faded but only grown brighter. A big shout out to anyone and everyone who still is around to help out the prospects with their questions :) I greatly appreciate all of you guys and hope all is well with each and every one of you.

Thanks,
Noble7
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on March 28, 2014, 06:49:01 PM
I can see that your wires are wrong. Just remove all 10 wires between programming cable and bread board and start from scratch.

Also, your four yellow "ground" wires are not connected on the breadboard. They should be connected with each other AND they should be connected with the GND pin of the microcontroller. Remove your external power supply for now, I don't think you need it. Just re-connect all the wires between the programmer and the bread board.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: noble7 on March 29, 2014, 03:03:45 AM
Hello again!

I've disconnected everything as you instructed and have rewired the pins to the breadboard. I am still not getting any power to the chip BUT another light on the usbasp is turning on when I try to flash the chip which didn't before. (the color is red and not green) Anyways I've attached some more photos to see if anything is wired wrong, I have gone over it about 4 times and I think everything is connected correctly.

I am thinking that maybe the only other way is to solder all the parts together on a protoboard or make my own pcb like public-pervert had done? I've switched out the 10-pin connector and moved the attiny2313 up a few spots thinking there is a problem maybe with one or a couple of the rows on the breadboard but still received the same problem.

This website lists a couple reasons why the chip isn't getting any power, but nothing that I see applies unless I have a bad programmer.
http://extremeelectronics.co.in/downloads/usbavrprogrammer/docs/Troubleshooting.pdf (http://extremeelectronics.co.in/downloads/usbavrprogrammer/docs/Troubleshooting.pdf)

http://postimg.org/image/mfomsa5fp/ (http://postimg.org/image/mfomsa5fp/)
http://postimg.org/image/nj8r48q2t/ (http://postimg.org/image/nj8r48q2t/)

I've also tried to use myAVR_Progtool and I get a different response from what eXtremeBurner gives me, something about "cannot set sck period". Is that something that has to do with the crystal on my usbasb programmer?
http://postimg.org/image/muzwlard1/ (http://postimg.org/image/muzwlard1/)

Thanks!
Noble7
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on March 29, 2014, 03:37:14 AM
Hmm, still looks wrong to me... It seems you left out Pin 10 on the programming cable but you should leave out pin 3:

(http://i.imgur.com/eWncbVC.png)

(http://i.imgur.com/X4E9blM.png)

C'mon, it's not that difficult!  ;D

EDIT: It also seems you shorted RESET and VCC on the microcontroller pin. The way you've inserted the 10k resistor it has no effect. Instead you shorted RESET and VCC. You should try to understand how the rows and columns of your bread board are connected.

Don't wanna discourage you, but programming the microcontroller is one of the easier parts of this mod.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: abduct on March 30, 2014, 05:10:36 AM
I Also think it looks wrong. According to your images pin 1 would be on the notched/clip side on the side of the red wire. So in your two newest pictured you are actually attaching pin 1 to your voltage rate and pin 2 to MOSI while micros 10pin ISP says to do the opposite. Now this may not be the case with your programmer as it may be different with the pinouts, but if it were to follow what micro has depicted in his schematics this would be wrong (and could potentially hurt your programmer). Also from what I see, is pin 4 of your ISP (orange wire) is going to RESET (pin 1 on the mcu) when according to Micros schematics pin 4 should go to ground.

Here is a simplified drawing I whipped up. I would double check my pin outs just in case I used the wrong chip (although I'm fairly sure I didn't). The gap on the left side of the 10pin ISP header would be your clip/slot on your header. So pin1 would be clip side red wire side of the connector.

http://i.imgur.com/PcmoooP.png (http://i.imgur.com/PcmoooP.png)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: noble7 on March 30, 2014, 06:21:01 AM
Howdy Abduct!

Thanks for the reply! and after a few messages between micro and I, I decided to make a protoboard of the micros schematics and made it work on the first try!! (I'm thinking it was a fluke or my breadboard did not want to cooperate.)

If there is anyone else having trouble with the flashing and would like to make what I made just let me know and I'll include a list of the parts I used to make it happen.

Here are my proto boards with the ATTiny2313 on the right and the ATMega8 on the left!
http://postimg.org/image/olje65ptx/ (http://postimg.org/image/olje65ptx/)

As well as the beautiful sight that the programmer tells me that everything has worked out great!
http://postimg.org/image/injd15b0l/ (http://postimg.org/image/injd15b0l/)
http://postimg.org/image/qubcsq139/ (http://postimg.org/image/qubcsq139/)

Now I am rolling on to the controller portion and hopefully that goes smoother than the flashing part!

Once again thanks to the peeps who continue to help and encourage others on this forum as well as major kudos to Micro for his continued support and awesome tutorial!

Cheers,
Noble7
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: abduct on March 30, 2014, 03:40:31 PM
Quote from: noble7 on March 30, 2014, 06:21:01 AM
Once again thanks to the peeps who continue to help and encourage others on this forum as well as major kudos to Micro for his continued support and awesome tutorial!

Cheers,
Noble7

Glad to hear you got it working. Hopefully you can make the real portion of the controllers easier then the programming side! I've been meaning to take up this project again, but between university and other projects this one has been put on the back burner (my TX and RX n64 controllers are sitting on my breadboards beside my console :/). Hopefully once I get a few programming projects out of the way I can free up some time for the wireless controllers.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: niceguy on April 09, 2014, 08:43:37 AM
Need some serious help guys, been trying to get my saturn wireless to work with no success

Ok I have a Atmega8-PU 16 MHZ Microcontroller I am struggling to configure to use a external 16 MHZ crystal.

I set all the high and low bits using the AVR calculator to set desired fuse configuration but when I place the chip in circuit on my bread board and scope the external 16MHZ crystal there is no clock. Yes I have it wired correctly with two 22p caps


High byte:0xDF
Low byte:   0xEE

I am using a topmax2 universal programmer to program the AVR and set fuses.  I was wondering do the external crystal and caps need to be installed on the AVR when you are initially programming and configuring it to run with a external clock. I ask because I am not doing in system programming of the AVR. I am programming it on a chipmax2 universal programmer.


LOW

Bodlevel 1       (unprogrammed)
Boden    1       (unprogrammed)
Suto1     1       (unprogrammed)
Suto0     0         Programmed
Cksel3    1       (unprogrammed)
Cksel2    1       (unprogrammed)
Cksel1    1       (unprogrammed)
Cksel0    0        Programmed

High

Rstdisbl  1         (unprogrammed)
Wtdon   1          (unprogrammed)
Spien     0           Programmed
Ckopt    1          (unprogrammed)
Eesave  1          (unprogrammed)
Bootsz   1          (unprogrammed)
Bootrst   1         (unprogrammed)


I leave all the BLB and LB as 1= erased

Really appreciate the help


Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: abduct on April 09, 2014, 08:54:37 AM
Quote from: niceguy on April 09, 2014, 08:43:37 AM
Need some serious help guys, been trying to get my saturn wireless to work with no success

Ok I have a Atmega8-PU 16 MHZ Microcontroller I am struggling to configure to use a external 16 MHZ crystal.

I set all the high and low bits using the AVR calculator to set desired fuse configuration but when I place the chip in circuit on my bread board and scope the external 16MHZ crystal there is no clock. Yes I have it wired correctly with two 22p caps

From what I can tell that looks correct, although it's hard to tell from over the internet if it is actually being set on your chip or not. Do you get any activity from the chip, I would imagine even if its using say the 8mhz internal clock you would still get some output on the pins going to the radio. Have you tried reading the chip after writing to verify that its written?

And no you do not need ISP or the crystal hooked up while programming to make it work. Have you tried using another programmer to check to see maybe it is the software not working? Is this your first project with the programmer or have you done others successfully?

This could be from any number of reasons from faulty programmers hardware or software side, bad micro controller and everything in between.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: niceguy on April 09, 2014, 03:39:04 PM
Quote from: abduct on April 09, 2014, 08:54:37 AM
Quote from: niceguy on April 09, 2014, 08:43:37 AM
Need some serious help guys, been trying to get my saturn wireless to work with no success

Ok I have a Atmega8-PU 16 MHZ Microcontroller I am struggling to configure to use a external 16 MHZ crystal.

I set all the high and low bits using the AVR calculator to set desired fuse configuration but when I place the chip in circuit on my bread board and scope the external 16MHZ crystal there is no clock. Yes I have it wired correctly with two 22p caps

From what I can tell that looks correct, although it's hard to tell from over the internet if it is actually being set on your chip or not. Do you get any activity from the chip, I would imagine even if its using say the 8mhz internal clock you would still get some output on the pins going to the radio. Have you tried reading the chip after writing to verify that its written?

And no you do not need ISP or the crystal hooked up while programming to make it work. Have you tried using another programmer to check to see maybe it is the software not working? Is this your first project with the programmer or have you done others successfully?

This could be from any number of reasons from faulty programmers hardware or software side, bad micro controller and everything in between.

I tried two different atmega8 granted the first one was a 8Mhz chip. The second and current atmega is a 16Mhz version however and it is not working.

What I have observed is if I use a 12MHZ and lower crystal I can get a clock from the chip, however the receiver does not function. I have tried two 16MHZ crystal and a army of different frequency crystals between 12MHZ and 16MHZ but the thing will not produce a clock with any crystal over 12MHZ

I have tried two universal programmers, my personal hobbyist top2049 and a professional topmax2 universal programmer and no go with 16MHZ crystal. The topmax is actually my company programmer and I personally have program countless latest and greatest not just the dated MCU on this thing.

I have owned and worked with both of these programmers for literally years, having used both on countless projects.

After programming the hex file I verified it was burned by hitting the verify button on the universal programmer and it came back chip program matches that of the buffer so yes it is verified hex file has been programmed.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: abduct on April 10, 2014, 09:27:10 AM
Quote from: niceguy on April 09, 2014, 03:39:04 PM
I tried two different atmega8 granted the first one was a 8Mhz chip. The second and current atmega is a 16Mhz version however and it is not working.

What I have observed is if I use a 12MHZ and lower crystal I can get a clock from the chip, however the receiver does not function. I have tried two 16MHZ crystal and a army of different frequency crystals between 12MHZ and 16MHZ but the thing will not produce a clock with any crystal over 12MHZ

I have tried two universal programmers, my personal hobbyist top2049 and a professional topmax2 universal programmer and no go with 16MHZ crystal. The topmax is actually my company programmer and I personally have program countless latest and greatest not just the dated MCU on this thing.

I have owned and worked with both of these programmers for literally years, having used both on countless projects.

After programming the hex file I verified it was burned by hitting the verify button on the universal programmer and it came back chip program matches that of the buffer so yes it is verified hex file has been programmed.

That answered most of my questions. I am not exactly sure what is going on then. What is weird is that you can find the clock on a sub 12mhz crystal, but not anything higher. I am not quite sure what is happening so maybe someone else can ask other questions or provide insight. My Minipro universal flasher with sparkfun.com 16mhz crystals worked without any fuss when programed.

Sorry I was not much help.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: niceguy on April 10, 2014, 03:47:47 PM
Quote from: abduct on April 10, 2014, 09:27:10 AM
Quote from: niceguy on April 09, 2014, 03:39:04 PM
I tried two different atmega8 granted the first one was a 8Mhz chip. The second and current atmega is a 16Mhz version however and it is not working.

What I have observed is if I use a 12MHZ and lower crystal I can get a clock from the chip, however the receiver does not function. I have tried two 16MHZ crystal and a army of different frequency crystals between 12MHZ and 16MHZ but the thing will not produce a clock with any crystal over 12MHZ

I have tried two universal programmers, my personal hobbyist top2049 and a professional topmax2 universal programmer and no go with 16MHZ crystal. The topmax is actually my company programmer and I personally have program countless latest and greatest not just the dated MCU on this thing.

I have owned and worked with both of these programmers for literally years, having used both on countless projects.

After programming the hex file I verified it was burned by hitting the verify button on the universal programmer and it came back chip program matches that of the buffer so yes it is verified hex file has been programmed.

That answered most of my questions. I am not exactly sure what is going on then. What is weird is that you can find the clock on a sub 12mhz crystal, but not anything higher. I am not quite sure what is happening so maybe someone else can ask other questions or provide insight. My Minipro universal flasher with sparkfun.com 16mhz crystals worked without any fuss when programed.

Sorry I was not much help.


The design calls for a ATMEGA8-16PU and I am using a ATMEGA8A-PU which is a 16MHZ and should be equivalent going by the datasheet.

I guess I will order the exact MCU now and see if it helps
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: niceguy on April 17, 2014, 03:22:58 PM
Just ordered another MCU and still no luck, there is no clock on the receiver for my saturn project.

Can someone help by just cutting to the chase here. For all you guys who got this working can you post how you set your fuses not by the hex low byte/ high byte value but please list like I did how you set each individual fuse.


I just read through the datasheet and came across this line

"For resonators, the maximum frequency is 8MHz with CKOPT unprogrammed and 16MHz with
CKOPT programmed."

However when I enter the low and high bits from the included instructions into the fuse calculator Ckopt is unprogrammed which means I am limited to 8mhz. Really strange thing is although I can never get any oscillation using a 16mhz crystal I have gotten smaller frequency crystals to oscillate.



Here is a pic of my receiver

(http://i4.photobucket.com/albums/y109/niceguy60/Snap_8_zps6cc3a8aa.jpg) (http://s4.photobucket.com/user/niceguy60/media/Snap_8_zps6cc3a8aa.jpg.html)

Thanks for the help
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on April 17, 2014, 08:01:10 PM
Quote from: niceguy on April 17, 2014, 03:22:58 PMI just read through the datasheet and came across this line

"For resonators, the maximum frequency is 8MHz with CKOPT unprogrammed and 16MHz with
CKOPT programmed."

However when I enter the low and high bits from the included instructions into the fuse calculator Ckopt is unprogrammed which means I am limited to 8mhz.
Yes, but we're not dealing with a resonator but a crystal.

Unfortunately on your pic I can't see where the interesting wires of the crystal and the caps go. Maybe you should shoot another one from a different angle.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: niceguy on April 18, 2014, 01:55:08 PM
Quote from: micro on April 17, 2014, 08:01:10 PM
Quote from: niceguy on April 17, 2014, 03:22:58 PMI just read through the datasheet and came across this line

"For resonators, the maximum frequency is 8MHz with CKOPT unprogrammed and 16MHz with
CKOPT programmed."

However when I enter the low and high bits from the included instructions into the fuse calculator Ckopt is unprogrammed which means I am limited to 8mhz.
Yes, but we're not dealing with a resonator but a crystal.

Unfortunately on your pic I can't see where the interesting wires of the crystal and the caps go. Maybe you should shoot another one from a different angle.

Here's a pic from the side

(http://i4.photobucket.com/albums/y109/niceguy60/chip_zps7e5c1268.jpg) (http://s4.photobucket.com/user/niceguy60/media/chip_zps7e5c1268.jpg.html)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on April 18, 2014, 09:05:36 PM
It looks ok to me. :D

Have you tried to use the different fusebyte value I told you in the PM?
low: 0xFF
high: 0xDF
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: niceguy on April 19, 2014, 03:56:57 PM
Quote from: micro on April 18, 2014, 09:05:36 PM
It looks ok to me. :D

Have you tried to use the different fusebyte value I told you in the PM?
low: 0xFF
high: 0xDF

Tried your new bit setting and still no clock.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on April 19, 2014, 09:54:04 PM
Well then I'm out of ideas...  :-[
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: niceguy on April 21, 2014, 04:11:40 PM
Quote from: micro on April 19, 2014, 09:54:04 PM
Well then I'm out of ideas...  :-[

The thing I have noticed is since the high/low bytes fuse settings in the instructions have not worked after trying for 2 weeks I then deviated from those instructions and program CKOPT and got my 16 MHZ clock but the project still does not work. Since I can get no one here to chime in who has gotten the saturn wireless controller working I am left to believe based on what I have observe when I manually played with the fuses and got at least the clock to work that the high and low bytes for the fuses in the instructions given are not accurate.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on April 21, 2014, 07:24:45 PM
I've tried to redo your experiment. I've put an Atmega8-16PU on a bread board including 1x 16 MHz crystal, 2x 22 pF and an ISP-socket.

(http://i.imgur.com/GhjsOJms.jpg) (http://imgur.com/GhjsOJm) (http://i.imgur.com/c9DsiZ5s.jpg) (http://imgur.com/c9DsiZ5)

I flashed the MCU with the SAT_RX3.hex and used the fuse bytes according to the instructions (low: 0xEE; high: 0xDF). After successfully flashing the MCU I immediately tried to read/flash the MCU again, and it worked. If you've set your MCU to use an external crystal (just as we need to do with the Saturn receiving circuit), then further reading/programming of the MCU via ISP is only possible if the crystal is actually installed correctly. The fact that I could program the MCU again means the crystal oscillator is working :D.
(IIRC you're not using an ISP programmer, but a parallel programmer. Via parallel programming it's always possible to re-flash your MCU, no matter how screwed up your fuse bytes are).

So the next step was to see the clock on my oscilloscope. I connected the probe to one pin of the crystal but I couldn't see a thing. The problem was that the impedance of the probe had an influence on the oscillating circuit to the point, it didn't work any longer. I switched the probe to a higher impedance (10x instead of 1x) and I could see a (distorted) clock signal:
(http://i.imgur.com/uqsD82Fs.jpg) (http://imgur.com/uqsD82F)

So here's my conclusion: The fuse bytes are correct and your receiving circuit is working, even if you can't see a clock on your oscilloscope. Keep in mind, the same MCU, crystal and fuse byte settings are required for the N64 receiver. And there are many people how succesfully build wireless N64 controllers.

There's a nice test to see if your receiver is working: Plug in a stock controller into port 1 of your Saturn. Now load Street Fighter Zero 2, Puzzle Fighter or Pocket Fighter. Go to the main menu. You'll see that "Versus Mode" is disabled. Now plug in your receiver in port 2 and if the circuit is working "Versus Mode" should be enabled now.

Of course, there are tons of other reasons why the wireless controller doesn't work. Maybe you've made a mistake on the transmitting side. Common source for mistakes on the transmitting circuit: The MISO and MOSI lines should not be connected to the pins labeled as MISO and MOSI, double check the schematic and your wiring!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: niceguy on April 22, 2014, 02:52:41 PM
Where do those two lines go on the transmitter then if they do not go where your schematic is telling me to put them, can you clarify.


Ok I change my probe setting and now I get the clock on the receiver like you demonstrated. I plugged the receiver into my saturn and booted with vampire savior, a game which only high lights versus if a controller is plugged in player 2 and after which player 2 was detected when I plugged in the receiver. I am still not sure if this detection is simply however basically pin 6 at 5 volts or does this detection actually involves the MCU.

This is where I am at. I now get the clock on the receiver from both the crystal on the MCU and the crystal on the transceiver.


The TX now is my focus. I am not sure how you want me to wire the MISO and MOSI since your schematic is telling me two things. Right now I have Mosi at pin 18 of the attiny and Miso at pin 17 of the attiny

Also following your instructions to place the pad VCC on pin 11 of the attiny, when measured I get milivolts at best

My Fuse settings are as followed

LOW


Ckdiv8    0
Ckout     1
Suto1     1       
Suto0     0         
Cksel3    0
Cksel2    1       
Cksel1    0
Cksel0    0     

High

Dwen           1
Wtdon         1         
Spien           0         
Wdton         1
Eesave        1         
Bodlevel 2   1
Bodlevel 1   0   
Bodlevel0    1
Rstdis         1

Selfprog      1


Thanks for the help

BTW I noticed your a Rigol man 8)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on April 22, 2014, 06:30:09 PM
Quote from: niceguy on April 22, 2014, 02:52:41 PMOk I change my probe setting and now I get the clock on the receiver like you demonstrated. I plugged the receiver into my saturn and booted with vampire savior, a game which only high lights versus if a controller is plugged in player 2 and after which player 2 was detected when I plugged in the receiver. I am still not sure if this detection is simply however basically pin 6 at 5 volts or does this detection actually involves the MCU.
No, the game actually reads the controller. You can try to unplug the crystal and you'll see it won't longer detect your receiver as a controller.


Quote from: niceguy on April 22, 2014, 02:52:41 PM
Where do those two lines go on the transmitter then if they do not go where your schematic is telling me to put them, can you clarify.
...
The TX now is my focus. I am not sure how you want me to wire the MISO and MOSI since your schematic is telling me two things. Right now I have Mosi at pin 18 of the attiny and Miso at pin 17 of the attiny
The schematic is correct of course. The fact that the "MOSI" line connects to the Attiny pin that's labeled as "MISO", and vice versa, has led to confusion in the past. But the way you connected it is correct.


Quote from: niceguy on April 22, 2014, 02:52:41 PMAlso following your instructions to place the pad VCC on pin 11 of the attiny, when measured I get milivolts at best
Yes, because the MCU switches off the controller PCB most of the time in order to save power. If you connect your oscilloscope you should see that the controller is powered on only for a very short time (maybe 100 us, enough to read the button states) with a frequency of about 60 Hz. So yes, the mean value of SAT_VCC should be in the mV range.


Since you got an oscilloscope you can tap the NRF's IRQ lines on the transmitting and receiving circuit. On the receiving side IRQ should go low if it has received a package. On the transmitting circuit IRQ goes low after sending a package (no matter if sending was successful or not). So you should be able to resolve your issues soon.

If you can't find the solution, you can post some pics of your setup and wiring.


PS: Also keep in mind you have to choose the same channel for the receiver and the transmitter.
PPS: Yes, it's a cheap Rigol DSO. I'm just a poor student  ;D


Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: niceguy on April 23, 2014, 10:30:57 AM
Quote from: micro on April 22, 2014, 06:30:09 PM
Quote from: niceguy on April 22, 2014, 02:52:41 PMOk I change my probe setting and now I get the clock on the receiver like you demonstrated. I plugged the receiver into my saturn and booted with vampire savior, a game which only high lights versus if a controller is plugged in player 2 and after which player 2 was detected when I plugged in the receiver. I am still not sure if this detection is simply however basically pin 6 at 5 volts or does this detection actually involves the MCU.
No, the game actually reads the controller. You can try to unplug the crystal and you'll see it won't longer detect your receiver as a controller.


Quote from: niceguy on April 22, 2014, 02:52:41 PM
Where do those two lines go on the transmitter then if they do not go where your schematic is telling me to put them, can you clarify.
...
The TX now is my focus. I am not sure how you want me to wire the MISO and MOSI since your schematic is telling me two things. Right now I have Mosi at pin 18 of the attiny and Miso at pin 17 of the attiny
The schematic is correct of course. The fact that the "MOSI" line connects to the Attiny pin that's labeled as "MISO", and vice versa, has led to confusion in the past. But the way you connected it is correct.


Quote from: niceguy on April 22, 2014, 02:52:41 PMAlso following your instructions to place the pad VCC on pin 11 of the attiny, when measured I get milivolts at best
Yes, because the MCU switches off the controller PCB most of the time in order to save power. If you connect your oscilloscope you should see that the controller is powered on only for a very short time (maybe 100 us, enough to read the button states) with a frequency of about 60 Hz. So yes, the mean value of SAT_VCC should be in the mV range.


Since you got an oscilloscope you can tap the NRF's IRQ lines on the transmitting and receiving circuit. On the receiving side IRQ should go low if it has received a package. On the transmitting circuit IRQ goes low after sending a package (no matter if sending was successful or not). So you should be able to resolve your issues soon.

If you can't find the solution, you can post some pics of your setup and wiring.


PS: Also keep in mind you have to choose the same channel for the receiver and the transmitter.
PPS: Yes, it's a cheap Rigol DSO. I'm just a poor student  ;D

Quick question the wireless controller will work at the dashboard/ CD player screen correct

Also since my transmitter is still on my breadboard I am running the Attiny at 5 volts and of course the transceiver is regulated at 3V. I know the attiny is well within operating voltage on its spec sheet but is it cool to use 5 volts with your design on my breadboard.

I will scope the IRQ lines when I get home and do a one shot trigger on pin 11 so I can see the controller power up as you described here

I have pin 2 that handle the channel select open on my RX and on my TX I hold down A when I power up. Now when you say open is pin 2 on the RX just floating not connected to anything because I can see when you select channel 2 you are shorting pin 2 to ground.


Btw Rigols are real good DSO, I went with a  portable Siglent because I need the mobility. Rigols usually run $400 so I would not call that cheap if your the average hobbyist, I mean who can afford a TEK or Agilent with comparable features.




EDIT

OK FINALLY gotten it working. Here was my problem. I have two saturns, my favorite and primary unit that I modified with a region switch has given me zero problems over the years despite that I bought it second hand. It plays disks the first time every time and the expansion slot works the first insert every time also.  I decided to reward its faithful service by not working it so hard and placed it on standby.

My back up Saturn which I bought brand new and have very very very rarely used is demonic. This unit has less than 19 hours of play time and has been gently stored and maintained but despite this the unit is a broken down POS because it rarely recognizes disk and god help me if I need to use the expansion port for my 4meg action replay because it will not see the cart 99.99% of the time. I literally have to manually spin the disk on this damn thing to get it going. It's virtually a brand new Saturn.

Guess which unit I was originally testing the wireless controller with. Well I got out my old trusty primary Saturn with its controller. Remember I commented on not seeing voltage on pin 11 of the TX, well I plugged in the controller from my primary saturn and up pops my 4.5 volts. I proceeded to plug the RX into my primary saturn and power up both the TX and RX and bam I had COM

I am happy I got the controller working but feel bummed that I bought a faulty Saturn and didn't find out until 16 years later. The damn thing did not give me these problems when I did a 19 hour test play all those years back. Scary thing is I ALWAYS buy back up systems when the next Gen comes out. I have a back up Nes, Snes, Genesis, Dreamcast, PSone, PS2, etc and now I am paranoid.

Well I would like to thank you man for the controller and the help you have given me here, thank you very much

BTW I would like to ask you a technical issue relating to this project over pm
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on April 24, 2014, 05:22:23 PM
Good work!  :)

It's a shame your almost new Saturn is such a bitch...
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: borjaus on April 29, 2014, 10:19:33 PM
Hi micro,
Is there any possibility to add a LED N64_RX scheme to indicate when the knob is turned on?
Can I get added to the scheme N64_TX Voltage Regulator TO-92 with the necessary components?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: abduct on May 02, 2014, 03:29:40 AM
Quote from: borjaus on April 29, 2014, 10:19:33 PM
Hi micro,
Is there any possibility to add a LED N64_RX scheme to indicate when the knob is turned on?
Can I get added to the scheme N64_TX Voltage Regulator TO-92 with the necessary components?

The RX module is powered by the console so I am not sure why you would need a power led as the only time it would be turned on is when the console is on. Although if you much rather have one you could take a resistor and led and add it in parallel to the VCC coming in to the ground.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: borjaus on May 04, 2014, 02:01:47 AM
Thanks for the reply.
I do not want an LED lights up in the RX module when the console is turned on.
I want a LED on the RX module to turn on when you turn on the pad, to know that the pad has been synchronized with the console.

I do not know if I explained it well   :-\
Sorry for my English
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: abduct on May 04, 2014, 03:37:39 AM
Quote from: borjaus on May 04, 2014, 02:01:47 AM
Thanks for the reply.
I do not want an LED lights up in the RX module when the console is turned on.
I want a LED on the RX module to turn on when you turn on the pad, to know that the pad has been synchronized with the console.

I do not know if I explained it well   :-\
Sorry for my English

Ah I understand now. Unfortunately I do not think micro works on this project any more since he has a new version being created and I am in the process for organizing, cleaning, and porting his code to a new chip (at least after i fix my breadboards again) so I wont be able to add this either.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: jacobsson on May 05, 2014, 11:42:37 PM
Quote from: micro on April 22, 2014, 06:30:09 PM

Hi Micro, hands down the coolest wireless project around!
I'm definitely gonna sink my teeth into to this asap.
May I ask where you found those nice looking plastic enclosures for the receivers?
Thanks for this!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on May 06, 2014, 12:06:28 AM
1st page, 5th post: http://nfggames.com/forum2/index.php?topic=4393.msg29602#msg29602 (http://nfggames.com/forum2/index.php?topic=4393.msg29602#msg29602) ;)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: jacobsson on May 06, 2014, 07:14:48 AM
Thank you buddy!  :-[
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: borjaus on May 09, 2014, 03:35:01 AM
Can I be diodes indicate that model are these?

I guess they are to program the chip without having to remove the battery, is this correct?

(https://dl.dropboxusercontent.com/u/29758397/08-05-2014%2019-26-09.png)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on May 09, 2014, 04:35:23 AM
These are just the 3 wires connected to the N64 controller PCB: data, Vcc and ground (also labeled on the white sticker :D)

The black 6-pin ISP socket in the top left corner is used to program the microcontroller.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: borjaus on May 10, 2014, 09:01:46 PM
Sorry but I think you understand me.

I want to know reference diodes and what is its function.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on May 12, 2014, 12:15:30 AM
I'm sorry, but I don't have a clue what you're talking about... :-[
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: kendrick on May 12, 2014, 07:42:31 AM
In the image bourjaus references, three dark items on the perfboard are attached to the wiring for the controller. He assumes that these are diodes, but I believe that micro identifies them just as wiring connectors. Is that about the size of the problem here?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on May 12, 2014, 10:28:03 PM
Ok, if that was his question then you're right: This is just a (trimmed down) pin header (http://www.reichelt.de/Strip-Connectors/SL-1X40W-2-54/3/index.html?&ACTION=3&LA=2&ARTICLE=19507&GROUPID=3220&artnr=SL+1X40W+2%2C54&SEARCH=STIFTLEISTE) to solder the wires to.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: jss_josafa on May 26, 2014, 03:17:09 AM
Micro Hello! First I have to congratulate for your wonderful work of wireless controllers, very professional.
I have all the parts ordered and mounted it on a breadboard just not nothing worked, now mounted and dismounted used other NRF24L01 + thinking they would be in trouble but still did not work neither.
I'm using the voltage regulator L78L33 not know if this would be a problem, and also used a universal AVR Recorder G540. And I'm also using an NTSC SNES control that is where my doubt, because only saw the designs with the SNES Pal control.
Control is compatible with NTSC SNES this project?
Could you help me?

My name is: Josafá
I live in Brazil and do not speak or write English, I'm using google translator, sorry for the mistakes.
A hug and congratulations for this great project.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: eitnot on June 10, 2014, 09:19:36 AM
Quote from: abduct on February 01, 2014, 04:19:03 PM
Quote from: sazyario on February 01, 2014, 02:18:29 PM
How is version 2 coming of this project?

If you are referring to the official "version 2" you can check Micros progress in this thread below. Last I heard I believe he was working on a sega version of his controller.

http://nfggames.com/forum2/index.php?topic=5180.0 (http://nfggames.com/forum2/index.php?topic=5180.0)

If you are referring to my branch off I stated I was doing, I have yet to really start. Parts from china have been delayed due to their holidays, but hopefully they should arrive early next week. I'm just waiting on my linear voltage power supplies for my new breadboards. Once those come in I will be able to officially start the project. I've already have all the parts/sourced other parts needed to complete this after the reprogramming is done. When I get something solid functioning I'll make a dedicated thread for it.

Hey Abduct,

How are things going with your branch?  I was wondering what all you plan on supporting with your branch?  Any chance you'd be adding PS2 controller support?  Just curious.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: abduct on June 11, 2014, 05:36:25 AM
Quote from: eitnot on June 10, 2014, 09:19:36 AM
Hey Abduct,

How are things going with your branch?  I was wondering what all you plan on supporting with your branch?  Any chance you'd be adding PS2 controller support?  Just curious.

I've been a bit busy lately and haven't had much time to work on them unfortunately. They are still laying on the breadboard next to my game systems. As for ps2 controller support I am not sure. I never thought about the newer gen consoles since they already had wireless controllers made for them when they were released. I am still in the process of porting the code to a new AVR micro controller and cleaning it up a bit. As for support, it will support mostly everything that is already supported as I'd just need to change the code around, but as for other systems I would have to dig my consoles out and look at them. As of right now my branch only supports N64 as that's the only console that's not in storage. Once I am done with other projects I will pick this one back up I have quite a few people interested in it on my IRC and forums.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: eitnot on June 11, 2014, 12:06:09 PM
The main reason I was asking about PS2 controller support is because right now I just have the Logitech wireless controllers for PS2 which I prefer the Sony PS2 controllers.  The other reason is they already have PS2 to USB adapters that work with PC and PS3 so then we could use the all controllers easily with those systems.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: abduct on June 12, 2014, 03:44:49 AM
Quote from: eitnot on June 11, 2014, 12:06:09 PM
The main reason I was asking about PS2 controller support is because right now I just have the Logitech wireless controllers for PS2 which I prefer the Sony PS2 controllers.  The other reason is they already have PS2 to USB adapters that work with PC and PS3 so then we could use the all controllers easily with those systems.

Yea I may look into it. I have a china clone logic analyzer on the way to help me debug my current units, because last time I used my breadboards with the prototypes for N64 it was working until I moved lab locations and now they do not want to work. I did a quick google search and there seems to be allot of information on the ps2 controller protocol so it would just be a question of how long it would take to bang out some code after I get the other consoles working.

I'm planning on moving to a smaller soic chip and actually making this as small as possible with a mod chip style hookup where you solder your wires to a printed and/or etched pcb then to specific points on the console/controller. I can't remember all the features I was going to build into it but the general idea was to make it small and easy to hook up by way of soldering the wires according to which console you were modding and flashing the proper image to the soic chip via a built in ISP port.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: mikedan435 on June 15, 2014, 08:23:05 AM
Do you think you will ever sell a kit with all of the parts included?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: abduct on June 16, 2014, 04:38:56 AM
Quote from: mikedan435 on June 15, 2014, 08:23:05 AM
Do you think you will ever sell a kit with all of the parts included?

Maybe, but I doubt it. Selling hardware is always risky when selling to the general public and the risk of losing money or barely breaking even is to high. Plus this is micros original work I would not be comfortable selling it without his permission anyways being that I am doing practically minimal changes when compared to the work hes done.

I would be doing the same thing that he has done though as per detailing its construction and providing a bill of materials with ebay links for more uncommon parts.

I'd love to fully port this project to C though but most of these protocols timings are so tight that I'd either have to use a really fast chip, or hand optimize the code which is no better then writing it in assembler.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: DNSDies on June 17, 2014, 12:03:09 AM
Micro,

I've been trying to make your wireless controller for my NES, and while I think I've made the Transmitter and Receiver perfectly, they don't seem to work.
Upon further inspection, I accidentally installed the voltage regulator for the receiver backwards, supplying it with 5V.
I also managed to use only a 1.2K Ohm resistor on Pin 1 (reset) of the ATMega8.

Did I bork my NRF24L01, and did I wipe the programming on my ATMega8?

Also, is there a simple way to test the NRF24L01's before placing them?
Like, say, just a simple diagram and arduino program that connects 2 transceivers and makes them cause two LEDs to blink to show that they are, in fact, able to send and receive.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on June 30, 2014, 07:36:00 AM
To me it seems the NRF transceivers are very sensitive and easy to kill if they're supllied with the wrong voltage.

Actually there's a way to see if the RF link is working. You can measure the IRQ's voltage. If there's traffic the  voltage should drop a little bit. It's already mentioned some pages ago. :)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Rafaeldalmolin on July 09, 2014, 05:19:58 PM
Hi, okay?
I have been following your project and liked.
Did a good job with the pcb board that is so cool.
then, I'll try to follow your tutorial and make my propio wireless controller, however I'm with some doubts of some components, I got almost all but before buying them, wanted to know if he can take some doubts about which models Microcontrollers:

Atmega8: http://www.dx.com/pt/p/maitech-avr-microcontroller-atmega8-16pu-dip-28-black-303582#.U7zrSfldVyU (http://www.dx.com/pt/p/maitech-avr-microcontroller-atmega8-16pu-dip-28-black-303582#.U7zrSfldVyU)
Attiny : http://pt.aliexpress.com/item/ATTINY2313-20PU-IC-MCU-AVR-2K-FLASH-20DIP-ATTINY2313-20PU-2313-ATTINY2313-Y2313-NY2313/1875093248.html (http://pt.aliexpress.com/item/ATTINY2313-20PU-IC-MCU-AVR-2K-FLASH-20DIP-ATTINY2313-20PU-2313-ATTINY2313-Y2313-NY2313/1875093248.html)

About regulator voltegem one of 3.3 V work?
Or I would end my transceiver .... The question may sound stupid, but do not have much knowledge in the area, but if you could help me in doubt.
I am grateful.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Appl3Kork on July 09, 2014, 05:54:46 PM
micro: I know you've probably been asked this a thousand times, but I'm interested in the mod for the N64 Controller.  I can probably do the controller part, but the whole other process in the rumble pack, not so much...  Would you be willing to sell one of those pre-built?  I know that people would think "Oh it's too expensive to send something like this." But I'm really interested, and willing to pay for one!

Let me know!

Thanks!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: DNSDies on July 14, 2014, 02:41:25 PM
So, I went and designed a board in Eagle, and has it fabbed at OshPark, and made a wireless receiver and transmitter for my NES, and I just have to say...

This is really terrible.
The range is flipping horrible.

It has a range of about 2-3 feet, and seems to be dropping packets constantly.

Maybe I'm doing something wrong?

---EDIT---
Upon further investigation and testing, it looks like some NRF modules might not be pulling sufficient current to drive themselves, so I popped a 4.7uf capacitor between the VCC and GND pins on the module, and the range of the module doubled.
So, if anyone else has the problem, try it out.
I'm gonna try a 47uf cap next.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on July 19, 2014, 02:39:47 AM
Almost sure you did a poor work or badly positioned it inside the controller. Maybe covering it with your hands, or just don't have the skills to make one yourself.

All my controllers are great and have great range. Never noticed a bad NFR module.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: DNSDies on July 29, 2014, 03:22:27 AM
I was using the older green NRF module, and "skill" isn't the issue.
I tried both a hand-wired version and also designed a board in Eagle to fit everything, and I STILL had range issues. I'm thinking it's interference or something.

I've designed another board that acts as a drop-in replacement for an NES board, where you can desolder the NES 4021 CMOS 8-bit Shift Register, drop it in the board, and populate it with the ATTiny*p*, some through-hole resistors and capacitors, and wire the battery, LED, and switch in the appropriate places and it should have a sufficient ground plane and filtering to block most radio interference.

(http://i.imgur.com/iuYwyFWl.png) (http://imgur.com/iuYwyFW)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: gr1n_reap3r on August 04, 2014, 03:03:52 PM
@Micro

need help here. I have program a ATMega 88A -pu with  N64RX2.hex file using "USBASP" programmer and Khazama AVR Programmer. But im not sure if it was successful. It gives me one error message saying "Error Setting USBASP ISP Clock" follow after a messages saying "Reload FLASH file: C:\...\N64_RX\N64_RX2.hex" "Last EEPROM file not found" "Erasing..." "Writing FLASH...". Well after that I click read chip and the hex file is present or at least the program im running say it is.

I tried using Myavr but after selecting "USBASP" as programmer it ask for port but I do not know what place there. And if i leave it blank i get an error when attempting to flash .hex file on to chip or read chip. My programmer work when i used BASCOM to flash a bas file on another chip for the n64 joystick mod but haven't been able to do anything when it comes to flashing  .hex files with the other programs.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on August 07, 2014, 06:34:58 AM
Almost sure you can't use Micro's HEX with an ATMEGA88, someone correct me if I'm wrong.
Once you set the fuses, you aren't able to reflash the chip without the crystal. Try flashing it with the crystal soldered on.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: gr1n_reap3r on August 07, 2014, 07:22:15 AM
Quote from: public-pervert on August 07, 2014, 06:34:58 AM
Almost sure you can't use Micro's HEX with an ATMEGA88, someone correct me if I'm wrong.
Once you set the fuses, you aren't able to reflash the chip without the crystal. Try flashing it with the crystal soldered on.

In the txt file for the n64rx he listed Atmega88 as one of the components."see update 2" And my real problem right now is the softwares he list in hes pdf file, don't work by default with a USBASP. I'm trying to get MYavr to work with my USBASP since it list under other under hardware, but i can figure out what to put in the box that says connection.

http://i1369.photobucket.com/albums/ag225/gr1nreap3r/MCU/myavrpic01_zps5d1e7146.png (http://i1369.photobucket.com/albums/ag225/gr1nreap3r/MCU/myavrpic01_zps5d1e7146.png)

Update: I figured out how to set the fuses using the other software "Khazama Avr".

Update2: Miss read it. I see now it says ATMega8 not 88. Now i got the figure out how to get a ATmega8, I really don't want to pay $7usd for shipping for 1 microcontroller
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on August 07, 2014, 09:15:08 AM
@DNSDies: Nice work! But I don't think it pays off to make a PCB for v1...

@gr1n_reap3r: I've also got a USBasp programmer now. I can use it with myAVR Progtool, here are my settings:

(http://i.imgur.com/HmWKX1h.png)

But you definitely need the appropriate drivers to use the programmers. You can also use eXtreme Burner AVR: http://extremeelectronics.co.in/ (http://extremeelectronics.co.in/)
I think eXtreme Burner comes with the right drivers. After the installation you should be able to use the programmer with myAVR Progtool too.

Sometimes I get errors in both programs if I want to read or flash a microcontroller. Just try it again, usually it will work.

Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: gr1n_reap3r on August 07, 2014, 09:51:46 AM
Quote from: micro on August 07, 2014, 09:15:08 AM
@gr1n_reap3r: I've also got a USBasp programmer now. I can use it with myAVR Progtool, here are my settings:



But you definitely need the appropriate drivers to use the programmers. You can also use eXtreme Burner AVR: http://extremeelectronics.co.in/ (http://extremeelectronics.co.in/)
I think eXtreme Burner comes with the right drivers. After the installation you should be able to use the programmer with myAVR Progtool too.

Sometimes I get errors in both programs if I want to read or flash a microcontroller. Just try it again, usually it will work.
@micro
Alright thanks! I'll try your settings and also give eXtreme Burner AVR a tried. I'll post an update later with results.

Update: Alright some great news. I tested both eXtreme Burner AVR, and Myavr(after eXtreme Burner AVR) with my only chip left which is the ATTiny2313. And it works!!!! So i can go ahead and continue with the transmitter part. Until i can get a hold of ATMega8, the receiver will be on hold. Thanks micro!!!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: DNSDies on August 08, 2014, 01:38:18 AM
Quote from: micro on August 07, 2014, 09:15:08 AM
@DNSDies: Nice work! But I don't think it pays off to make a PCB for v1...

If you'd provide a block diagram for V2, I'd gladly provide you with the Eagle Files for the NES PCB. could save you the time of measuring it all out by hand.
My PCB also has that little cutout on the right for a large charge plug too.
I'm also working on a drop-in replacement PCB for the Sega Saturn, trying to use only the middle section of the V1 controller.

What are some of the differences in V2?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on August 10, 2014, 03:17:27 AM
@gr1n_reap3r: I'm glad it worked! :D

@DNSDies: Thanks, but I want to design the v2 PCB's myself. I also don't want to use large charge jacks but standard mini USB sockets. And everything should be soldered to the PCB, no dangling wires except for the battery of course.

Some differences/improvements of v2 over v1 are:

- 10 instead of 2 selectable RF channels
- no on/off switch, turning on the controller is done by pressing the Start button
- auto turn off after 5 minutes of inactivity
- lower current consumption while active (about 1 mA) ==> extremely long battery life
- most important: much more robust and reliable RF protocol
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on August 11, 2014, 11:47:35 PM
Quote from: micro on August 10, 2014, 03:17:27 AM
Some differences/improvements of v2 over v1 are:

- 10 instead of 2 selectable RF channels
- no on/off switch, turning on the controller is done by pressing the Start button
- auto turn off after 5 minutes of inactivity
- lower current consumption while active (about 1 mA) ==> extremely long battery life
- most important: much more robust and reliable RF protocol

Really looking forward to this, dude!  ;D
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: DNSDies on August 13, 2014, 02:37:19 AM
Quote from: micro on August 10, 2014, 03:17:27 AM
- 10 instead of 2 selectable RF channels
- no on/off switch, turning on the controller is done by pressing the Start button
- auto turn off after 5 minutes of inactivity
- lower current consumption while active (about 1 mA) ==> extremely long battery life
- most important: much more robust and reliable RF protocol

So, most of these changes are software based.
Will you be able to provide updated Hex files for people who have made these V1 board already so we can re-flash them to take advantage of the better RF protocol?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on August 13, 2014, 08:49:30 PM
I don't think it's just an improvement on the FW. Micro already said it's a completely different hardware too.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: DNSDies on August 15, 2014, 01:29:27 AM
So, it's no longer using an ATTiny2313 for the transmitter and ATMega8 for the receiver?

Did the value of the resistors and capacitors, or their placement change?

I can see from his previous pics he's still using the same NRF wireless module, just with a psuedo-SMD quick solder pad.

The only real difference I see that can't be ported over to the hobbyist-friendly 1.1 design is:
1) integrated Li-Po charge circuit
2) Software Power on/off
3) Possibly a different microcontroller? I can't read the markings on the pics he posted in the V2 thread.

I don't care that much about the lower power draw.
even at 5ma, a 230mah lipo will last over 25-30 hours between charges.

That's ludicrous.

I'd prefer to make it possible for an amateur hobbyist to make their own with cheap and easy to use through-hole components, and use a single separate charger to keep costs down if you end up doing this on like EVERY console you own.

I've got a NES, SNES, Genesis/SCD, Saturn, Dreamcast, Atari 2600, and a TG16 I'd like to make wireless controllers for, but I don't want to have to buy a custom PCB with pre-soldered SMD components to do it.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on August 15, 2014, 05:00:28 AM
I'm sorry, but I definitely won't release a new v1x version with the new RF protocol. That's for sure...

I think I already said that I won't work on the old v1 code any more. That includes support for new systems as well as other new features. I just released smaller fixes like adding a pull-up which I forgot to implement in the first place.

You're right, I'm using a different microcontroller with v2: Atmega48A on both receiver and transmitter. But that's not the actual show stopper. It's the old code itself which is written in assembly language. And who wants to work with that mess? I don't, that's for sure! That's the reason why I've rewritten the whole code from scratch in c for v2. Compatibility with v1 wasn't on my list.
Even if it wasn't for the different programming language and different microcontrollers the new RF protocol still wouldn't work on the v1 hardware setup because it needs a 16 MHz clock on the receiver.

The hobbyist-friendly v1 (as you put it) will always be available. It won't fade away just because I'm working on v2 atm. So I don't quite understand your problem...
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: ours1011 on August 17, 2014, 03:33:17 AM
Quote from: micro on August 16, 2013, 03:28:13 AM
Ok, then. On your receiver, please add a 10 kOhm between "VCC" and "P/S" (pin 4 and 20 on the Atmega8)
It seems on some PAL SNES consoles that pull-up resistor is required.

Let's hope this fixes your wireless controller, but there are still 100 other ways to fuck up ;P
Hi micro !

I finally had the time to come back to this project, and I can tell that adding the 10k pull up resistor between Vcc and P/S on the receiver is working !

But I still have a problem, on the transmitter side this time ...
I don't have anything that comes out of the ATtiny2313 on pin 6 (0v instead of snes pad Vcc)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on August 17, 2014, 08:14:25 PM
Haha, one year later....  ;D

Are you sure VCC for the SNES controller is 0 V? The SNES controller is only powered once per frame for acquisition of the controller button states. With your multimeter you'll measure the RMS and it shouldn't be exactly 0 V but something like 0.1 V or 0.05 V.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: ours1011 on August 20, 2014, 07:35:22 AM
Yeah, better late than never :)

I had some time consuming projects to do since last year ... ^^

If I remember correctly I had 0.06V. But nothing more seemed to happen.
I tried to flash the ATtiny again (with v1.2) and did some shit with the fuses. I swapped them and since now I'm unable to reprogram it.

An other one is making it's way to my mailbox, I'll keep you noticed :)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: ours1011 on August 23, 2014, 11:59:02 PM
I've got my new ATtiny2313 and this one is working :)

The flash was correct with v1.2, so I re flashed the ATmega8 too with v1.2
Th receiver is still working fine.

I now have 0.033V at pin6 of the ATtiny2313 and it still doesn't work... !

I've checked, the 0.033V are in the controller too (I still have the 2m of cable attached)
The RF module has it's 3.3V so it isn't fried this time.

I'm going to double check all the connections, as I don't know what is going wrong.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on August 25, 2014, 04:33:46 AM
0.033V on the attiny2313's pin no. 6 looks good to me. =)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: ours1011 on August 25, 2014, 07:14:33 AM
Everything is (was) working fine.

I just forgot to put Pin2 of the atmega8 on the receiver to gnd to behave as controller 1 ... !
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: jacobsson on August 27, 2014, 05:59:32 PM
@micro

Hi buddy!
I'm on the project of building the DIY "V1" SNES Controller (yes, it's a 3rd party controller).
I was thinking also adding a USB (female) interface to the receiver, I've seen some "SNES to USB" tutorials so I guess it should be pretty straight forward?
I've programmed the Attiny2313A and Atmega8 so now I'm test-assembling the controller with the largest components:
(https://i.imgur.com/tAYi6sG.png)
It closes up pretty well like this too.

The 750mA GBA battery should give me a pretty good amount of hours! =)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: ours1011 on September 02, 2014, 02:35:11 AM
Quote from: ours1011 on August 25, 2014, 07:14:33 AM
Everything is (was) working fine.

I just forgot to put Pin2 of the atmega8 on the receiver to gnd to behave as controller 1 ... !
Now that everything is working, a SMD version of it is on it's way :D
I'll keep you updated !
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: jss_josafa on September 13, 2014, 01:55:46 AM
Micro Hello, I wonder if this project v1.1 is compatible with NTSC SNES control?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: jflatle1 on March 26, 2015, 09:14:50 AM
I'm hoping this thread is still somewhat alive. I've attempted to make the N64 controller but when I plug it in it says no controller found. When burnign the fuses on my MCU using avrdude it would say that EE fuse was updated instead of High, but when I went back to verify it would say the High fuse was set correctly. Hoping someone might see an issue with my set up, thanks!

https://plus.google.com/+JohnFlatley1/posts/6FeD1RQ4Sv3 (https://plus.google.com/+JohnFlatley1/posts/6FeD1RQ4Sv3)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: flagoss on March 27, 2015, 12:19:46 AM
Quote from: jss_josafa on September 13, 2014, 01:55:46 AM
Micro Hello, I wonder if this project v1.1 is compatible with NTSC SNES control?

I can confirm that it works perfectly with a NTSC SNES
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on March 27, 2015, 05:54:19 AM
Quote from: jflatle1 on March 26, 2015, 09:14:50 AM
I'm hoping this thread is still somewhat alive. I've attempted to make the N64 controller but when I plug it in it says no controller found. When burnign the fuses on my MCU using avrdude it would say that EE fuse was updated instead of High, but when I went back to verify it would say the High fuse was set correctly. Hoping someone might see an issue with my set up, thanks!

https://plus.google.com/+JohnFlatley1/posts/6FeD1RQ4Sv3 (https://plus.google.com/+JohnFlatley1/posts/6FeD1RQ4Sv3)

So if you read the fuses now, they have the correct values?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: jflatle1 on March 30, 2015, 02:57:54 AM
@Micro - yes, here is the output from AVR dude for the ATtiny2313 AND ATMEGA8

avrdude -c usbtiny -p attiny2313 -U lfuse:r:-:h -U hfuse:r:-:h -U efuse:r:-:h

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e910a
avrdude: reading lfuse memory:

Reading | ################################################## | 100% 0.00s

avrdude: writing output file "<stdout>"
0xdf
avrdude: reading hfuse memory:

Reading | ################################################## | 100% 0.00s

avrdude: writing output file "<stdout>"
0xdf
avrdude: reading efuse memory:

Reading | ################################################## | 100% 0.00s

avrdude: writing output file "<stdout>"
0xff

avrdude: safemode: Fuses OK (H:FF, E:DF, L:DF)

avrdude done.  Thank you.

###################
###################

avrdude -c usbtiny -p atmega8  -U lfuse:r:-:h -U hfuse:r:-:h -U efuse:r:-:h

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e9307
avrdude: reading lfuse memory:

Reading | ################################################## | 100% 0.00s

avrdude: writing output file "<stdout>"
0xee
avrdude: reading hfuse memory:

Reading | ################################################## | 100% 0.00s

avrdude: writing output file "<stdout>"
0xdf
"efuse" memory type not defined for part "ATmega8"

avrdude: safemode: Fuses OK (H:FF, E:DF, L:EE)

avrdude done.  Thank you.

Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on March 30, 2015, 05:31:32 AM
We should focus on the receiving circuit only at this point. As long as the N64 can't detect the controller, the whole thing won't work - obviously. :)

Here are some things you could try:

1) Temporarily remove the 16 MHz crystal. Try to read the fuses with AVRdude. AVRdude should give an error, it shouldn't even be able to detect the microcontroller type with the crystal removed. If that's the case - good! Insert the 16 MHz crystal back to the breadboard.
But if you don't get any errors though, then the fuses are not set correctly

2) Temporarily remove the NRF module from the receiving circuit. Maybe it's broken or you've messed up the wires. Even without the NRF module the N64 should detect the receiver as a valid controller.

3) I had a look at your pics again. It's a little bit messy, I can't make out the whole thing. But I'm wondering where's your data wire that should connect to the Atmega8's pin 4? It seems you've connected GND and VCC from the controller cable but I can't see data...?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: jflatle1 on April 03, 2015, 11:26:25 AM
Quote from: micro on March 30, 2015, 05:31:32 AM
We should focus on the receiving circuit only at this point. As long as the N64 can't detect the controller, the whole thing won't work - obviously. :)

Here are some things you could try:

1) Temporarily remove the 16 MHz crystal. Try to read the fuses with AVRdude. AVRdude should give an error, it shouldn't even be able to detect the microcontroller type with the crystal removed. If that's the case - good! Insert the 16 MHz crystal back to the breadboard.
But if you don't get any errors though, then the fuses are not set correctly
We're good here, didnt detect the microcontroller:
avrdude -c usbtiny -p atmega8  -U lfuse:r:-:h -U hfuse:r:-:h -U efuse:r:-:h

avrdude: initialization failed, rc=-1
         Double check connections and try again, or use -F to override
         this check.
Quote
2) Temporarily remove the NRF module from the receiving circuit. Maybe it's broken or you've messed up the wires. Even without the NRF module the N64 should detect the receiver as a valid controller.

Removed it, but mario tennis is still not recognizing the controller. Tried mario kart 64 and blitz as well with the same result.
Quote
3) I had a look at your pics again. It's a little bit messy, I can't make out the whole thing. But I'm wondering where's your data wire that should connect to the Atmega8's pin 4? It seems you've connected GND and VCC from the controller cable but I can't see data...?

Sorry about that, I stripped off some more of the cord so hopefully you can see it better now in the picture. I added LEDs to each rail to make sure it was getting power and they are. Attached a new photo
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on April 03, 2015, 09:35:48 PM
Well, your setup looks ok to me!

I don't know why it's not working. You could/should add a 100nF capacitor close to the pins 7+8 of the ATmega8. If it's still not working you could try to add an pull-up resistor (let's say 1kOhm) between 3.3V and pin 4 (data wire) of the Atmega8.

Also consider to try out a different crystal.

One last thing: The N64 cord you're using, is it from a genuine Nintendo 64 controller? (3rd party extension cables sometimes got a different color coding for 3.3V, gnd & data.)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: jflatle1 on April 05, 2015, 09:58:23 AM
Good news: I moved the 100nF capacitor closer to pins 7 & 8 and my N64 recognized the controller.

Bad news: Still couldn't get the controller to work so I took a voltmeter to see if the wireless component was getting power and somehow shorted the whole system. Literally the whole N64 system and now it won't even turn on... I didn't even know that was possible. So looks like I need to invest in a new one and I'm guessing all my receiver components are fried as well...
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on April 06, 2015, 10:34:48 PM
That's bad!

If you're lucky you just killed a fuse inside the power supply unit.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: jflatle1 on April 18, 2015, 02:51:26 AM
Looks like I am lucky and it was the power supply. I tried plugging the receiver back in and the system recognized it as a controller. Does that mean that my microcontroller is okay? I'm still not able to get the controller to work, are there any other debugging techniques I can use?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: IonBlade on May 08, 2015, 05:49:59 PM
I'm planning on building a set of N64 wireless controllers, and have a few questions:

1) Putting together the parts list in the US, I can't seem to find the exact 16 MHz crystal used in the receiver.  The closest I've found is http://www.digikey.com/product-detail/en/ECS-160-20-4/X176-ND/83017 (http://www.digikey.com/product-detail/en/ECS-160-20-4/X176-ND/83017), which has a 20pF load capacitance rather than the 32 in the original parts list.

From the very little I understand about circuits from doing some Googling tonight, if the load capacitance is too low, then the clock can run slightly fast, and that in some circuits that's no big deal, while in others, it's a problem.  Does anyone know a 20pF crystal like linked above will work in the receiver without any issues?

2)  I live in an apartment with *tons* of competition in the 2.4GHz range (my laptop picks up 20-30 2.4 GHz APs).  Anyone else in this situation, and how have the controllers worked for you?  Should I be looking at getting some of the wireless modules with antennae available on eBay, or are the antennae built into the PCBs like used in the guide good enough in congested areas?

3) There were a couple of posts midway through this thread that indicated the mod might only be compatible with certain revisions of N64 controllers, but I didn't see much more discussion about that.  Was that ever validated?  I couldn't quite tell from the pics what the reported "good" PCB's revision data was to check mine.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: lord_bahamut06 on May 12, 2015, 08:42:00 AM
Hello everyone! I am attempting this project, but am completely new to micro-controllers. I have a few question regarding programming the ATTiny and ATMega.

I have a USBASP programmer, with a 10 pin layout. Im assuming that the MOSI, MISO, RESET, and SCK connect directly to the corresponding pin on the chip, but my first question involves the power (+5v)? and GND. Should i connect the power directly to the chip? or do i need something in between to regulate? i apologize if the schematic covers this. i dont have anyone that knows how to do this, and am trying to accomplish it alone, which is turning out to be difficult. also, do i connect the GND directly to the chips GND? Do i need to connect all of the GNDs from the programming cable to the chip/breadboard? 

Here is a little bit more information, in case you need it to answer my questions. I am using a breadboard to program the ATTiny first. i do not have a pcb board built to reroute the wiring from the cable (10-pin), but am attempting to connect the programmer cable directly to the breadboard via wires for the time being. This will most likely change in the future, but for now, i dont want to solder and make anything permanent until i fully understand exactly what im doing. I see the + and - on the breadboard, and know how the lines run, but am unsure how to connect them to the programmer/chip. The programmer is USB, and powered, with a jumper set for 5v. If i understand the instructions properly, i should be able to power the chip using the programmer, or if i chose, another method (though im assuming using the programmer would be easier.)

Thank you in advance!

*Edit*- I figured this out, but have another question. I loaded the hex file onto the microcontroller, then changed the low fuse, and then when attempting to change the high fuse, it returned an error. Im assuming  that means that i need to introduce the crystal into the loop somewhere. Where would this be?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Alcahest on May 15, 2015, 07:42:51 AM
Still waiting for Micro to release DIY kits for SFC pads/receiver!

In the meantime, a company has come with this somewhat related product:
http://www.8bitdo.com/sfc30/

Seems nicely done, but of course doesn't come with a BT receiver that connects to SFC :S
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: flagoss on May 15, 2015, 11:33:22 PM
Quote from: Alcahest on May 15, 2015, 07:42:51 AM
Still waiting for Micro to release DIY kits for SFC pads/receiver!

In the meantime, a company has come with this somewhat related product:
http://www.8bitdo.com/sfc30/

Seems nicely done, but of course doesn't come with a BT receiver that connects to SFC :S

Oh !! I dream of a blutooth receiver for the SNES or SFC !! That would be awsome.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: IonBlade on May 17, 2015, 05:19:36 PM
Quote from: lord_bahamut06 on May 12, 2015, 08:42:00 AM
I loaded the hex file onto the microcontroller, then changed the low fuse, and then when attempting to change the high fuse, it returned an error. Im assuming  that means that i need to introduce the crystal into the loop somewhere. Where would this be?

Just finished that myself, and learned the lesson to burn the flash first, then the high fuse, then program the low fuse last.  You're correct that if you program the low fuse at the same time as the high (or before), the chip expects an external clock signal immediately, and doesn't finish setting the high fuse. 

For the Tiny2313, hook up pins 4 and 5 as shown in the diagram in the TX schematic (4 should be connected to one leg of the 8m crystal and one leg of a 22p capacitor, 5 should be connected to the other leg of the crystal and one leg of another 22p capacitor.  The remaining leg of both caps should be connected to ground). 

For the Mega8, hook up pins 9 and 10 as shown in the RX schematics (same as above, but using pins 9 and 10 instead, and using a 16m crystal).

Once you hook up the crystal on pins 4/5 (2313) or 9/10 (Mega8), the chip should start responding to the programmer again and you'll be able to flash the high fuse.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: lord_bahamut06 on May 18, 2015, 06:05:48 AM
Quote from: IonBlade on May 17, 2015, 05:19:36 PM
Quote from: lord_bahamut06 on May 12, 2015, 08:42:00 AM
I loaded the hex file onto the microcontroller, then changed the low fuse, and then when attempting to change the high fuse, it returned an error. Im assuming  that means that i need to introduce the crystal into the loop somewhere. Where would this be?

Just finished that myself, and learned the lesson to burn the flash first, then the high fuse, then program the low fuse last.  You're correct that if you program the low fuse at the same time as the high (or before), the chip expects an external clock signal immediately, and doesn't finish setting the high fuse. 

For the Tiny2313, hook up pins 4 and 5 as shown in the diagram in the TX schematic (4 should be connected to one leg of the 8m crystal and one leg of a 22p capacitor, 5 should be connected to the other leg of the crystal and one leg of another 22p capacitor.  The remaining leg of both caps should be connected to ground). 

For the Mega8, hook up pins 9 and 10 as shown in the RX schematics (same as above, but using pins 9 and 10 instead, and using a 16m crystal).

Once you hook up the crystal on pins 4/5 (2313) or 9/10 (Mega8), the chip should start responding to the programmer again and you'll be able to flash the high fuse.

Thank You! I have the crystals ordered, and should be able to finish this as soon as they arrive!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: jss_josafa on June 26, 2015, 03:45:24 AM
Quote from: flagoss on March 27, 2015, 12:19:46 AM
Quote from: jss_josafa on September 13, 2014, 01:55:46 AM
Micro Hello, I wonder if this project v1.1 is compatible with NTSC SNES control?

I can confirm that it works perfectly with a NTSC SNES

:D. Thank you friend!
if not too uncomfortable, could let me know if you need to use the crystals to control SNES?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: ekalebaugh on July 10, 2015, 12:15:10 PM
Hello micro and others. I just finished making a pair of NES controllers following your project. Everything was successful and i have two working remotes and receivers. I'm having an issue with range and/or packet loss on the nrf modules. I have perhaps a maximum range of 20 ft from the console before I lose all apparent communication with the receiver. From just inside of that to about maybe 5-10 ft away depending on the angle I have spotty interaction with it, meaning what looks like packet loss. Some button presses will go through, some will lag maybe a .5 second behind and many others simply never seem to reach the receiver. I didn't think RF would be too affected by a couch arm being in between transmitter and receiver, but that also seems to present a problem. Does this sound familiar to anyone? Something to just live with or do the modules need to be replaced? This was my first time working with MCUs and doing even this much circuit layout and soldering, but I'm fairly sure that if they work sometimes, then it's more of a hardware issue than something that I may have done wrong. That might be my ego talking though. I laid the innards out in the controller very similar to was Snoop did, if that has anything to do with the communication. Any help you guys can give this poor disappointed soul will be well appreciated. Thanks!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: gorgyrip on July 30, 2015, 06:30:14 PM
Hi,
I have a question about the charger.
Is it ok if I set the max1811 to 500maH by connecting SELI to vcc?
I'm using a ds lite battery (1000maH) and a nokia battery (860maH).
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: lord_bahamut06 on August 03, 2015, 07:29:00 PM
I also have a question about the max 1811. The "en"  on the specs enables the circuit. Should I just connect that to the incoming power as well as the "in"  pin?

And as much as I can tell, as long as your battery is rated higher than 500 mah, it should be able to charge on 500mah. I'm no expert though, obviously, and would defer to the more knowlagable members.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: gorgyrip on August 03, 2015, 09:00:10 PM
Quote from: lord_bahamut06 on August 03, 2015, 07:29:00 PM
I also have a question about the max 1811. The "en"  on the specs enables the circuit. Should I just connect that to the incoming power as well as the "in"  pin?

And as much as I can tell, as long as your battery is rated higher than 500 mah, it should be able to charge on 500mah. I'm no expert though, obviously, and would defer to the more knowlagable members.

The EN and IN pins are connected to the 5v coming from the USB.
I've also connected SELI and SELV to vcc.
But i don't know. I did some tests. Maybe my batteries aren't too good.
Nokia bl-4c 860maH:
-charging time about one hour and 10-20 minutes.
-i connected the battery to a ds lite with maximum brightness and max sound. And with zelda inserted in demo mode. It lasted one hour and 40 minutes.

After that i charged the battery using the ds lite. It took 2 hours and 20 minutes.  Later i started the console and the battery discharged in 2 hours and 30 minutes.

SO HWY max1811 isn't charging the battery properly?
PS: the caps i used for the charger are 4.7uf electrolytic and the resistor for the led is 1k.

If i set the IC to 100maH, the battery charges normaly and it lasts as it should.

Any ideas why it isn't charging ok if i set the IC at 500mah?
Also, should the voltage drop on the battery if i cut the 5v power?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: jss_josafa on August 04, 2015, 01:46:58 AM
Hello guys! I would like to take one more question.
To save the file .hex can use the G540 universal programmer?
it is usb, did the recording for it, then I do not know if the problem would not work it.
Thanks in advance. 
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: lord_bahamut06 on August 04, 2015, 05:23:31 AM
Quote from: gorgyrip on August 03, 2015, 09:00:10 PM
Quote from: lord_bahamut06 on August 03, 2015, 07:29:00 PM
I also have a question about the max 1811. The "en"  on the specs enables the circuit. Should I just connect that to the incoming power as well as the "in"  pin?

And as much as I can tell, as long as your battery is rated higher than 500 mah, it should be able to charge on 500mah. I'm no expert though, obviously, and would defer to the more knowlagable members.

The EN and IN pins are connected to the 5v coming from the USB.
I've also connected SELI and SELV to vcc.
But i don't know. I did some tests. Maybe my batteries aren't too good.
Nokia bl-4c 860maH:
-charging time about one hour and 10-20 minutes.
-i connected the battery to a ds lite with maximum brightness and max sound. And with zelda inserted in demo mode. It lasted one hour and 40 minutes.

After that i charged the battery using the ds lite. It took 2 hours and 20 minutes.  Later i started the console and the battery discharged in 2 hours and 30 minutes.

Thanks! Im just waiting on usb breakout boards, then i should have some working transmitters! :)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: gorgyrip on August 05, 2015, 11:04:10 PM
If i turn on the snes controller without a console and a receiver, the power consumation will be the same like when you are playing? Or it will be in some kind of sleep mode?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: jaskamakkara on September 03, 2015, 09:17:39 PM
micro, if I replace the normal power LED that goes into the controller with an RGB or dual-coloured LED, is it possible to have the LED display a different colour depending on which channel is selected?  My hope is to make it so that the receiver will have a similar LED that changes colour based on the channel chosen (very easy modification to the design, simply make the channel switch 2P2T and wire the LED with +3V onto one pole and Pin 2 of the AtMega with GND on the other), and the user can visually see which controller is connected to which port.

In other words; when the channels are selected on the controller, do certain pins on the ATTiny simply swap between high / low? With that info I could maybe just wire the LED legs onto those pins for the desired effect.

Thanks
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on September 13, 2015, 02:59:19 AM
I'm sorry guys, but I'm afraid you're on your own!

@jaskamakkara: I think you would need to dig into the asm source code and make an output pin toggle between low and high depending on the selected channel. I definitely won't do it...

@gorgygrip:
power consumption
When the controller is turned on but you don't play the power consumption will be lower BUT the led is still on on it does consume about 1mA which is about 50% of the general power consumption.

battery charging
Well setting the voltage to 4.2V is ok I guess. But I wouldn't crank up the charging current to 500 mA. Even when the LED on the charger turns off the charging process isn't finished. The IC charges the battery with the CC-CV method. That means constant current - constant voltage. In the 1st phase the battery willbe charged with a constant current (say 100 mA). The battery voltage will rise from 3.6 V to 4.2 V. Now the LED should turn off and  the charge IC stops pumping 100 mA into the battery. Instead it will hold the battery's voltage at 4.2 V and the charge current will slowly decrease. Eventually the charge current will be 0 mA (or close to 0 mA at least) and the battery will be as full as it gets. :)

@ekalebaugh:
I think there's nothing you can do. That's just the type of problems that can occur depending on your WiFi situation in your home. The rf protocol used is not very robust. That's why I'm working on v2 of the mod which is much, much more reliable.

I really don't recommend doing this mod anymore!


Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: jaskamakkara on September 15, 2015, 05:01:52 PM
Quote from: micro on September 13, 2015, 02:59:19 AM
@jaskamakkara: I think you would need to dig into the asm source code and make an output pin toggle between low and high depending on the selected channel. I definitely won't do it...

...That's why I'm working on v2 of the mod which is much, much more reliable.

OK, thanks micro I'll take a look at the v2 :-)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: Diminuendo on October 17, 2015, 11:45:16 AM
Quote from: micro on September 13, 2015, 02:59:19 AM
I really don't recommend doing this mod anymore!

Is there anywhere we can download the v2 stuff to make our own?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: sideskroll on December 01, 2015, 06:14:13 PM
Hello @micro and @everyone else.
First of all, let me tell you that I find what you did here FASCINATING. I wind up here cause I was looking at how to fix some crappy third party wireless controllers I have...
Anyway, I have a question for you that I would really appreciate if you could help me with.
Like I said I have a couple of crappy chines clones (these to be precise: https://www.impulso.com.pe/detalle.php?product_id=944) which are actually PS3 clones with everything and triggers instead of L-R2 buttons etc but for PS2. and I was wondering if it might be possible to somehow "transplant" the wireless properties to a couple of original wired SONY controllers I have.
They have integrated li-po (I think) batteries, charging ports and automatically turn off after 5 minutes of inactivity.
Anyway, would that be possible? I'm talking about keeping the recievers but transplanting the transmitters, batteries and charging ports to original DUALSHOCK 2 controllers.
Would you know what or how should I approach this? Is it even possible?
Any help would be immensely appreciated since these are my 3rd and 4th controller which stop working (mainly the analog sticks) cause like I said, they're Chinese cheap crap. you can even tell by the materials used...
Anyway, thanks to anyone who might try to help.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: gorgyrip on January 26, 2016, 05:37:39 PM
First, sorry for the late reply.

Is it possible to keep the led on on both charging cycles?
Maybe replace the max ic with another ic?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: jss_josafa on February 06, 2016, 04:51:38 AM
Hello micro and personal forum.
Searching the Internet for a project with schematic of a Bluetooth receiver for the Super Nintendo, for connect bluetooth control I found a video on youtube showing a demo of a man connected the control SNES 8bit the latest release snes control bluetooth, it is playing with him.

"I would like someone here to answer me the following question>
What is the name of the course or training or tutorial or better, I need to know to learn how to do this kind of communication? I just studied electronics median level and I wonder how this kind of work and joysticks communication. Because I think in various projects and the problem is not to know these things.

Excuse the mistakes, I'm using google translator.

I thank you.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on February 11, 2016, 06:01:55 AM
Why do you need bluetooth? Do you want to connect the controller with the SNES itself or your phone/tablet? What's your first language?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: jss_josafa on February 12, 2016, 04:56:01 AM
Hello Friend! I'm from Brazil and my language is Portuguese.

For you to understand better what I want to see the video:
https://www.youtube.com/watch?v=TvjaQNgSbpE

My idea is to connect any Bluetooth connection control in the super nintendo.
and also take advantage of the board of this mini bluetooth control
http://www.aliexpress.com/item/8Bitdo-ZERO-Mini-Controller-Portable-Bluetooth-White-Wireless-GamePad-Newest-Free-Shipping/32524139527.html and interconnect contacts on the original control of the super nintendo and become a bluetooth control.

I tried to Micro project, the wireless control SNES v1.2 more no success do not know what was wrong until I asked for help is bad, because sometimes do not understand what I mean.

I thank you now.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on February 13, 2016, 03:27:17 AM
Acho melhor trocar uns posts em portugu�s aqui, porque essa tradu��o do google t� horr�vel. rsrs
Vc quer poder usar qualquer controle bluetooth no SNES?
O Micro desenvolveu esse protocolo para que vc possa usar controles de praticamente qualquer video game mais antigo (tamb�m modificados) em qualquer video game que vc tenha construido um receptor. Mas esse protocolo n�o � compat�vel com o Bluetooth e pelo que ele disse, ele n�o vai mais trabalhar nesse c�digo.
Pelo que entendi, vc tentou botar o projeto do Micro em pr�tica e n�o conseguiu, � isso?
Chegou a comprar todos os componentes? O que est� dando errado? Talvez eu possa te ajudar  :)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: jss_josafa on February 13, 2016, 06:44:52 AM
Oi public-pervert , que bom encontrar aqui um membro que entende meu idioma, realmente voc� est� certo, o Google tradutor est�  dif�cil de intender  rsrsrs. De onde voc� �? qual o pa�s nativo?
Sim! voc� intendeu bem o que eu quis dizer. Sobre este projeto do Micro que tem o protocolo para funcionar qualquer controle modificado com um receptor eu n�o tinha visto ainda, poderia postar o link para mim?.
E sobre o projeto do controle Wireless do SNES, sim! eu comprei todos os componentes s� que alguns n�o s�o iguais tipo o regulador de 3.3v que eu n�o achei igual e comprei um aqui que regula para esta tens�o, e tamb�m os modulos  Wireless Transceiver  NRF24L01+ 2.4GHz n�o sei testar e ver se est�o funcionando, v� aqui em uns post que tem muitos falsos por a�, comprei alguns meus na banggood.com e outro na dx.com, n�o sei o que fiz de errado mais n�o deu nenhum sinal.

Gostaria mesmo de obter a sua ajuda se voc� puder � claro! rsrsr, antes queria saber se este projeto funciona com qualquer modelo de controle de super nintendo, ou s� funciona com os de Super  Famicom? perguntei aqui mais n�o intenderam e me deram outra resposta diferente. Fiquei na duvida sobre isso, pois estava a usar no projeto o controle de Super nintendo fiquei pensando que era um dos problemas de n�o funcionar.

Pronto amigo, vou montar novamente este fim de semana e tirar boas fotos e postar aqui e ver consigo fazer este projeto.
Muito obrigado pela aten��o.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on February 15, 2016, 10:16:29 PM
Sou brazuca tbm rsrs..
O projeto do Micro que vc pode usar controles modificados de outros video games em outros video games é este mesmo. Vc pode, por exemplo, usar um controle de N64 no SNES, sem fio. Vc não viu o vídeo? https://www.youtube.com/watch?v=LlnmfaILCHw
Quanto ao regulador, lembro que tem que ser específico, pois tem uma diferença mínima na voltagem que precisa diminuir e reguladores comuns não conseguem fazer o trabalho. Qual regulador vc comprou?
O certo é vc fazer um worklog detalhado para poder obter ajuda, caso contrário fica difícil saber onde vc está errando.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: jss_josafa on February 16, 2016, 02:33:22 AM
Opa amigo! que bom! um conterrâneo  ;D.

Tenho boas noticias, este fim de semana eu montei o circuito novamente para tentar fazer umas fotos e detalhar as conexões para obter ajuda sua, mais não vou mais precisar nesta situação, pois eu ao montar tudo, e ao ligar, o danado funcionou rsrsrsrs :D.
Eu acho que todo este tempo eu estava errando em uma coisa besta e não sei o que foi, já até joguei 2 modulo wireless fora por pensar que era ele que estava ruim, pois liguei ele e a tensão por descuido estava maior que 3.6v daí pensei que tinha queimado por saber que este modulo wireless queima fácil.
Bom eu montei na protoboard e vou deixar como está para testar os módulos wireless próximos que eu adquirir. abaixo as imagens:
http://1drv.ms/1oDDvS2

http://1drv.ms/1oDDBZW

http://1drv.ms/1oDDD4b

http://1drv.ms/1oDDFZS

http://1drv.ms/1oDDMo9

http://1drv.ms/1ogls3Q

http://1drv.ms/1VgBC8p

O regulador que estou usando é um 78L33, rachei um pouco a cuca para por a funcionar, pois fui até no datasheet mais não consegui achar detalhes de tensão de entrada minima. mais acabei descobrindo depois que a minima é de 6.5v ou mais para ele regular para 3.3v, então usei duas baterias em série para conseguir que o regulador fornecesse a tensão desejada, mais por causa disso fiquei com pouquíssimo espaço  :(. Mais o bom é que está funcionando e vou já fazer 1.
E sobre este vídeo, eu já tinha visto sim este, pensei que era outro, mais eu não sabia que outros controles poderia ser usado no mesmo receptor  :).

Muito obrigado, você de todo jeito me ajudou  :D ;).

Outra coisa amigo public-pervert, gostaria de saber se você já viu os projetos de controles retrô para USB do raphnet-tech? pois funcionam muito bem e eu consegui fazer o de controle de SNES para USB tanto o de 4 controles e o de 1, e também o de Sega Genesis Mega Drive para USB, são ótimos já usei bastante em casa, muito compatível e é plug and play, não precisa de drives funciona em qualquer dispositivo android que possua conexão OTG, eu uso no meu Android TV BOX para jogar no Happy Chick, então com este projeto do micro :D vai ser ótimo jogar sem fio.

E mais uma pergunta: Pesquisando na internet sobre circuito para fazer o controle SNES wireless eu encontrei este rico e ótimo forum, então vendo esses projetos tanto daqui quanto o do raphnet-tech, Gostaria de aprender como entender, criar desenvolver este tipo de circuito, o que preciso aprender alem de eletrônica? rsrsr é que fiquei muito curioso sobre isso.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on February 17, 2016, 04:19:19 AM
Fico feliz que tenha conseguido te ajudar! Mesmo que indiretamente  ;D
J� vi o conversor USB do Rapha�l Ass�nat sim. H� um bom tempo venho acompanhando os projetos dele, tem muita coisa interessante.

Acho �timo que tenha se interessado pela coisa! rsrs
Eu, na verdade, passo longe de poder desenvolver um projeto como esse do Micro ou do Rapha�l. Na verdade, tenho apenas entendimento b�sico de eletr�nica e alguma experi�ncia em projetos. Com isso j� consigo executar bem o que eles disponibilizam e as vezes at� fa�o modifica��es. Tudo come�ou com uns projetos que circulam por ai de N64 e Gamecube port�til. Se interessar pra vc, procure por Laser64 N64 portable e PlayCube Pocket (inacabado por falta de tempo). Tamb�m j� fiz um controle wirelles seguindo o projeto do Micro. Est� na p�gina 3 deste t�pico, mas as fotos parecem n�o estar mais funcionando.
Poste qualquer novidade sobre seu projeto! At� mais!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: jss_josafa on February 18, 2016, 01:52:02 AM
Quote from: public-pervert on February 17, 2016, 04:19:19 AM
Fico feliz que tenha conseguido te ajudar! Mesmo que indiretamente  ;D
Já vi o conversor USB do Raphaël Assénat sim. Há um bom tempo venho acompanhando os projetos dele, tem muita coisa interessante.

Acho ótimo que tenha se interessado pela coisa! rsrs
Eu, na verdade, passo longe de poder desenvolver um projeto como esse do Micro ou do Raphaël. Na verdade, tenho apenas entendimento básico de eletrônica e alguma experiência em projetos. Com isso já consigo executar bem o que eles disponibilizam e as vezes até faço modificações. Tudo começou com uns projetos que circulam por ai de N64 e Gamecube portátil. Se interessar pra vc, procure por Laser64 N64 portable e PlayCube Pocket (inacabado por falta de tempo). Também já fiz um controle wirelles seguindo o projeto do Micro. Está na página 3 deste tópico, mas as fotos parecem não estar mais funcionando.
Poste qualquer novidade sobre seu projeto! Até mais!

Grato pelas respostas e motivação ;).
Estarei comprando mais componentes para produzir mais controles sem fio.
tenho 10 controles de super nintendo sendo 5 JP e 5 EUA, não farei com todos claro rsrsrs, mais farei uns 4 pelomenos .
postareis uns aqui quando concluir. ;)

E tenho uma dúvida quanto ao seletor de canal no receptor, não entendi muito esta ligação, sei que o meu funcionou com o pino 2 do Atmega 8 no terra, pelo que eu entendi no esquema é que tem uma chave que liga o pino 2 ou o 3 no terra.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: jss_josafa on February 23, 2016, 06:13:49 AM
Hello Micro!
I could set up my! I'm happy!
Thank PC! you are a master in AVR.
I was up with the desire to learn how to develop this kind of work. : D.
Below I will let the pictures and a video.
http://1drv.ms/1oYiy4v
http://1drv.ms/1oYiOjZ
http://1drv.ms/1oYjbev
http://1drv.ms/1VzStmO
http://1drv.ms/1VzSyqx
http://1drv.ms/24msipz
;)

E amigo public-pervert, agradeço o apoio novamente, aproveita e dar uma olhada no meu controle sem fio nas imagens acima, meu controle está amarelado mais é o original, tenho outros aqui com a cor normal, usei este de cobaia ;D.
Eu terminei modificando o circuito um pouco, eu retirei o regulador de tensão 3.3v e no lugar reduzi a tensão com um diodo retificador em série com um diodo zener de 3.3v, então a tensão caiu para 3.52v, sendo o modulo wireless ter o limite até 3.6v eu arrisquei, então fiz o teste e está funcionando perfeitamente.
Fiz esta modificação porque eu não podia deixar as duas baterias em série por conta de não saber como fazer para carregar a bateria de 7.4v, então retirei uma bateria e só deixei uma mesmo. :), enfim, acabei meu primeiro controle wireless  :D ;).
E o cabo usb amarelho que está junto aí do controle é o carregador da bateria, tanto o carregador e a bateria que estou usando, é de um mini helicóptero IR que importei da china :D, este carregador indica quando a bateria está totalmente carregada.

Gostaria que você me tirasse uma dúvida, sobre a compatibilidade de o receptor funcionar com os outros controles, como faço para o receptor de SNES aceitar o controle de N64 ou de Sega Saturn? tem alguma combinação de  teclas para ele ser reconhecido pelo receptor?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: huggopaiz on February 25, 2016, 11:36:30 AM
Muito bom jss_josafa, fico show seu controle do snes. Eu tamb�m tentei adaptar o meu mas ate hoje n�o consegui finalizar eu tentei de tudo pra gravar o arquivo hex nos microcontroladores mas n�o ha nada que fa�a a grava��o e sempre da erros a unica vez que consegui foi com um arduino uno mas n�o consegui fazer o controle funcionar  :'(
Fico feliz de encontrar brasileiros para trocar algumas informa��es aqui pois usar o google tradutor ningu�m merece  ;D
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: jss_josafa on February 25, 2016, 12:39:41 PM
Quote from: huggopaiz on February 25, 2016, 11:36:30 AM
Muito bom jss_josafa, fico show seu controle do snes. Eu também tentei adaptar o meu mas ate hoje não consegui finalizar eu tentei de tudo pra gravar o arquivo hex nos microcontroladores mas não ha nada que faça a gravação e sempre da erros a unica vez que consegui foi com um arduino uno mas não consegui fazer o controle funcionar  :'(
Fico feliz de encontrar brasileiros para trocar algumas informações aqui pois usar o google tradutor ninguém merece  ;D

Olá huggopaiz, muito obrigado! demorei para conseguir rsrsrs, mais não desisti e depois do incentivo de um membro Brasileiro (amigo public-pervert)  eu fui tentar montar novamente na Protoboard e daí funcionou perfeitamente quando montei, como você pode ver nas conversas anteriores.

Bom, eu no começo não sabia de detalhes para gravar avr, pois nunca tinha ouvido falar, mas depois de ter encontrado este forum pesquisando sobre um assunto parecido, usei o google para traduzir e ler os post dos membros e obter o máximo de ajuda, daí ví sobre gravar este tal de arquivo .hex no microcontrolador, fiz muitas pesquisas na internet e aprendí sobre o assunto desta maneira, um pouco dalí e pouco daqui, até a configuração de Fuse do avr tive que pesquisar e quase não achar nada.
Então veio a busca de um programa e um gravador avr, fiz pesquisas de dispositivos prontos, mas um mais caro que outro :/ , então fui a pesquisa de como fazer um, foi aí então que encontrei pessoas falando do site http://www.lancos.com/prog.html que tem o esquema de como fazer um simples que é compatível com estes avr e também o mesmo oferece o programa para gravar.

Então, já que você não conseguiu, recomendo este site se ainda não conhece.
Eu já gravei meus primeiros neste programa e com este circuito que usa a porta paralela do PC, mais na época eu não consegui fazer funcionar o circuito  :(  então, pensando que era o modo de gravação, terminei investindo em um gravador universal, o G540 Plus, o mesmo se encontra em umas fotos ao lado da placa de ensaio, mais mesmo assim não tinha conseguido fazer funcionar  :o, daí ví que não era problema do modo de gravar e sim algum erro meu e besta  ;D.
Então o que eu puder ajudar, é só chamar aqui.

e com certeza! este tradutor do google ajuda, mas muitas vezes, misericórdia!  ;D


Ainda estou esperando resposta do amigo public-pervert  ;) ou do mestre em AVR o criador deste maravilhoso projeto = Micro.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: public-pervert on February 27, 2016, 05:02:39 AM
Muito bom! Fico feliz que tenha conseguido terminar o mod! E ainda ficou bem feitinho  ;)

Com rela��o � substitui��o do regulador pelo zener, voce j� deu alguma carga no controle? O regulador usando um zener, normalmente se constr�i usando um resistor na entrada em s�rie com o zener e o mesmo aterrado, normalmente seguido por um capacitor eletrol�tico aterrado. O ruim de se usar este circuito, � que quando a tens�o de entrada aumenta, a sa�da tamb�m varia um pouco. O que n�o seria legal pro m�dulo wireless. O ideal mesmo � usar o regulador de tens�o (pesquise por reguladores LDO, talvez at� ache no mercado livre).
No caso do controle wireless, quando voce recarregar a bateria totalmente, ela vai ficar com aproximadamente 4,2v e pode ser que a tens�o de sa�da aumente junto, estragando o seu m�dulo.

Que eu saiba, voc� s� precisa usar alguma combina��o de teclas, se for usar dois controles sem fio ao mesmo tempo. A� vc muda o canal no receptor e liga o segundo controle segurando B. Caso contr�rio, � s� ser feliz!

Essas coisas s�o muito legais, te encorajo a estudar e quem sabe um dia desses desenvolver um projeto t�o bom quanto esse e conseguir alguns fans, ou quem sabe inventar algo que revolucione a vida de todos, j� pensou nisso?  ;)

Com rela��o ao programador de AVRs, tem uns bem baratinhos no ebay e nem precisam de porta paralela, s�o USB mesmo. Na �poca acho que paguei uns 5 reais.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: jss_josafa on February 27, 2016, 06:44:11 AM
Quote from: public-pervert on February 27, 2016, 05:02:39 AM
Muito bom! Fico feliz que tenha conseguido terminar o mod! E ainda ficou bem feitinho  ;)

Com rela��o � substitui��o do regulador pelo zener, voce j� deu alguma carga no controle? O regulador usando um zener, normalmente se constr�i usando um resistor na entrada em s�rie com o zener e o mesmo aterrado, normalmente seguido por um capacitor eletrol�tico aterrado. O ruim de se usar este circuito, � que quando a tens�o de entrada aumenta, a sa�da tamb�m varia um pouco. O que n�o seria legal pro m�dulo wireless. O ideal mesmo � usar o regulador de tens�o (pesquise por reguladores LDO, talvez at� ache no mercado livre).
No caso do controle wireless, quando voce recarregar a bateria totalmente, ela vai ficar com aproximadamente 4,2v e pode ser que a tens�o de sa�da aumente junto, estragando o seu m�dulo.

Que eu saiba, voc� s� precisa usar alguma combina��o de teclas, se for usar dois controles sem fio ao mesmo tempo. A� vc muda o canal no receptor e liga o segundo controle segurando B. Caso contr�rio, � s� ser feliz!

Essas coisas s�o muito legais, te encorajo a estudar e quem sabe um dia desses desenvolver um projeto t�o bom quanto esse e conseguir alguns fans, ou quem sabe inventar algo que revolucione a vida de todos, j� pensou nisso?  ;)

Com rela��o ao programador de AVRs, tem uns bem baratinhos no ebay e nem precisam de porta paralela, s�o USB mesmo. Na �poca acho que paguei uns 5 reais.

Muito obrigado!e valeu pelas dicas. E sobre este caso da bateria totalmente carregada, eu fiz o teste com ela totalmente carregada e medi no mult�metro e a tens�o ficou esta mesmo, de 3.52v, mais isto vai ser por enquanto, sei que � melhor um regulador  :D, fiz pedidos de reguladores, e importei mais componentes at� os attiny 2313, pois j� tenho 10 ATmega 8 comigo em casa. Irei fazer  uns 4 SNES e 1 ou 2 de Nintendo 64, tamb�m os de Sega Satun  :D . E sobre o de sega saturn, gostaria de saber se este mod � compat�vel com o controle 3D o que tem o direcional anal�gico, pois tenho um aqui e se for compativel ser� muito bom, pois este controle tem um espa�o bom. :D.
;)
Title: Re: Universal wireless controller for all retro consoles
Post by: Dani_Tauro on June 20, 2016, 01:20:27 AM
Quote from: micro on April 17, 2011, 10:20:44 PM
Yesterday I've finished the N64 receiver. As always I've drilled out some holes and used plenty of hot glue on the parts that get stressed mechanically.
It was also the first time I made the programming port accessible from the outside. This way I don't have to open the receiver to (re-)flash the microcontroller.

Here are some pics I shot:

(http://img813.imageshack.us/img813/8716/84678756.th.jpg) (http://img813.imageshack.us/i/84678756.jpg/)(http://img815.imageshack.us/img815/1589/66814414.th.jpg) (http://img815.imageshack.us/i/66814414.jpg/)
(http://img27.imageshack.us/img27/4445/31332975.th.jpg) (http://img27.imageshack.us/i/31332975.jpg/)(http://img14.imageshack.us/img14/7600/71413885.th.jpg) (http://img14.imageshack.us/i/71413885.jpg/)(http://img24.imageshack.us/img24/597/59442816.th.jpg) (http://img24.imageshack.us/i/59442816.jpg/)
(http://img402.imageshack.us/img402/2906/53853517.th.jpg) (http://img402.imageshack.us/i/53853517.jpg/)(http://img703.imageshack.us/img703/7740/53942142.th.jpg) (http://img703.imageshack.us/i/53942142.jpg/)(http://img15.imageshack.us/img15/1958/56083911.th.jpg) (http://img15.imageshack.us/i/56083911.jpg/)
(http://img718.imageshack.us/img718/214/85048172.th.jpg) (http://img718.imageshack.us/i/85048172.jpg/)(http://img706.imageshack.us/img706/1124/97027804.th.jpg) (http://img706.imageshack.us/i/97027804.jpg/)(http://img844.imageshack.us/img844/125/45259825.th.jpg) (http://img844.imageshack.us/i/45259825.jpg/)

You can see a regular controller may be plugged in besides the receiver, but 2 receivers side by side are to wide I'm afraid...


Hello Micro!!

Not seen the photos, you can upload them again?

Thank you very much!!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: ThomNook on June 25, 2016, 01:20:07 PM
Sorry for writing in Portuguese.

Pessoal, legal saber que tem brasileiro interessando nesses mods. Ser� que um dia voc�s disponibilizar�o um mod pra venda? Tenho muito interesse no do N64.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: B-Man on July 13, 2016, 05:48:10 AM
Micro, do you have any receivers left to sell? I'd love to be able to use my Saturn controllers on my other retro systems. I have a NES, SNES, NEO GEO, 3DO, PS2 and Dreamcast. I feel the Saturn controller is the best 2D controller made, so I'm alright using them with my other systems, So I'm just looking for receivers for any of the systems I listed. Let me know, I'll buy 2 of each of what ever you have.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: micro on July 21, 2016, 08:13:33 AM
Yes, I can provide you with NES, NeoGeo and Playstation receivers as already stated in the other thread: http://nfggames.com/forum2/index.php?topic=5180.msg41977#msg41977

I'll send you a message soon. :)
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: plegenda on November 04, 2016, 07:18:09 AM
Hey Micro!

Think it is possible to turn one of these Hori 64 controllers into wireless?

let me know if you can

(http://i66.tinypic.com/2wokm74.jpg)

regards!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: knightsx26 on November 06, 2016, 08:47:54 AM
Has anyone modified and gotten a genesis/megadrive controller working using this version of micro's wireless controllers? I would really like to build one for mine that is wireless but not anywhere close to knowing how to go about making new files to support them.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: ArliissonxD on November 17, 2016, 04:52:48 PM
I'm Brazilian, sorry English, but I'd like to know about the wireless control of Sega Mega Drive / Genesis
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: gnomenthusiast on November 23, 2016, 02:07:04 AM
As the previous posters have mentioned, I'm bumping this to see if anyone ever got a Genesis/Megadrive controller working using this method. From what I've looked at so far, maybe it's not possible because different games poll the controller multiplexer at different speeds and this could cause problems. It would be interesting to see if anyone got it to work.
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: OCBSlimz on February 11, 2017, 06:16:57 AM
Is this project still alive? I've started making one as I have all the parts already in my workshop, but wanted to know If there is an up to date one ?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: gorgyrip on March 05, 2018, 01:08:36 AM
I can't find LP2950-3.0. Can I use the 3.3v instead? Also is it safe to us 18pf caps on the crystal instead of 22pf?
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: sbrex on March 19, 2018, 08:48:00 PM
Quote from: micro on August 24, 2011, 04:43:42 AM
Quote from: public-pervert on August 22, 2011, 11:41:28 PM
I'm looking forward to a tutorial, Micro!  ;D

Soon (I hope :P)

I have resumed work and I hope I can finish it within the next 3 or 4 weeeks, but I can't promise....

Right now I'm working on the N64 transmitter. Somehow I thought I'd be cool to integrate a large LiPo battery into a memory card's case or something. That led to the idea of integrating the whole wireless circuit into a rumble pack:

(http://i.imgur.com/zCw2h.jpg)

Once the large vibrating motor is discarded there's plenty of room for the microcontroller and the wireless transmitter.
The rumble pack would also provide voltage via 2x AA batteries.
This way you wouldn't need a LiPo battery, 3.3V voltage regulator, recharge IC, etc.... It would be cheaper to build.

The N64 controller itself would only need one or two tiny modifications, all the stuff would be in the rumble pack.

On the downside, the finished N64 controller would be bulkier and heavier with the rumble pack sticking out (although not quite as heavy as an untouched rumble pack with the vibrating motor still inside)

What do you guys think?



Quote from: bigsanta on April 20, 2011, 07:31:40 AM
What about a small LED low battery indicator ? A low power comparator like the lm2903 could be used .
I think the 3.3V voltage regulator I've used also got an "error" pin. I believe when the voltage is dropping to 3.3V or below the pin will be driven low.
Probably, a battery indicator is something nice to have. I will have a closer look at it once everthing else is finished (and is working, too :))
Can I use any different rumble pak region type? If I wouldn't use rumble pak, exist another way(not lipo battery with charger obviously)?thx
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: jss_josafa on April 20, 2018, 01:49:21 AM
Quote from: sbrex on March 19, 2018, 08:48:00 PM
Quote from: micro on August 24, 2011, 04:43:42 AM
Quote from: public-pervert on August 22, 2011, 11:41:28 PM
I'm looking forward to a tutorial, Micro!  ;D

Soon (I hope :P)

I have resumed work and I hope I can finish it within the next 3 or 4 weeeks, but I can't promise....

Right now I'm working on the N64 transmitter. Somehow I thought I'd be cool to integrate a large LiPo battery into a memory card's case or something. That led to the idea of integrating the whole wireless circuit into a rumble pack:

(http://i.imgur.com/zCw2h.jpg)

Once the large vibrating motor is discarded there's plenty of room for the microcontroller and the wireless transmitter.
The rumble pack would also provide voltage via 2x AA batteries.
This way you wouldn't need a LiPo battery, 3.3V voltage regulator, recharge IC, etc.... It would be cheaper to build.

The N64 controller itself would only need one or two tiny modifications, all the stuff would be in the rumble pack.

On the downside, the finished N64 controller would be bulkier and heavier with the rumble pack sticking out (although not quite as heavy as an untouched rumble pack with the vibrating motor still inside)

What do you guys think?



Quote from: bigsanta on April 20, 2011, 07:31:40 AM
What about a small LED low battery indicator ? A low power comparator like the lm2903 could be used .
I think the 3.3V voltage regulator I've used also got an "error" pin. I believe when the voltage is dropping to 3.3V or below the pin will be driven low.
Probably, a battery indicator is something nice to have. I will have a closer look at it once everthing else is finished (and is working, too :))
Can I use any different rumble pak region type? If I wouldn't use rumble pak, exist another way(not lipo battery with charger obviously)?thx

Great friend!
I have to say I did the transmitter and I used lithium rechargeable battery, to charge the battery I used a lithium smd battery charger module and it was great!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: jss_josafa on April 20, 2018, 03:05:06 AM
Here's how I did it:
Está aí como eu fiz:  :D
(https://i.imgur.com/a9O9ntT.jpg)
(https://i.imgur.com/YwG1sK0.jpg)
(https://i.imgur.com/jYDfy0g.jpg)
(https://i.imgur.com/wFJiwfr.jpg)
(https://i.imgur.com/a5Brskc.jpg)

And here is the video showing it running:
E aqui está o vídeo mostrando ele em funcionamento. :D
https://www.youtube.com/watch?v=AqyQXUJxk_c&t=1s

Obrigado Micro!
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: rich_n_stace on April 30, 2018, 05:55:17 AM
is this project still going? im interested in converting some retro pads for use on original XBOX without using the pad hack method
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: amp.dipkings on June 08, 2018, 05:00:09 AM
Quote from: jss_josafa on April 20, 2018, 03:05:06 AM
Here's how I did it:
Está aí como eu fiz:  :D
(https://i.imgur.com/a9O9ntT.jpg)
(https://i.imgur.com/YwG1sK0.jpg)
(https://i.imgur.com/jYDfy0g.jpg)
(https://i.imgur.com/wFJiwfr.jpg)
(https://i.imgur.com/a5Brskc.jpg)

And here is the video showing it running:
E aqui está o vídeo mostrando ele em funcionamento. :D
https://www.youtube.com/watch?v=AqyQXUJxk_c&t=1s

Obrigado Micro!

I like the power LED on the receiver unit. I'm doing mine like Micro's original, but I had custom PCBs made so I don't have to use perf board for the transmitter or receiver, also putting the transceiver module directly onboard so no wires but VCC, GND, and Data. And instead of a controller PCB remake like he's doing with the v2 systems I made a small PCB add on for the controller modification so I didn't have to run wires between pins. Seemed like it would last longer and be a bit more sturdy.

-Amp
Title: Re: Universal wireless controller for SNES, Saturn, N64, etc....
Post by: nikoil on August 11, 2019, 07:48:40 PM
Hello. Will it it work with Gamecube or Dreamcast????