PIC N64 Controller
Moderator:Moderators
- marshallh
- Moderator
- Posts:2986
- Joined:Sat Sep 10, 2005 2:17 pm
- 360 GamerTag:marshallh
- Location:here and there
- Contact:
Neat work. Eventually I'm going to do something similar, but integrate it with other stuff on a pcb. hehe
Considered moving to an LPC or PIC32 to do controller pak support?
Considered moving to an LPC or PIC32 to do controller pak support?
- evilteddy
- Portablizer
- Posts:423
- Joined:Tue Mar 25, 2008 2:11 am
- 360 GamerTag:Kirren of Smeg
- Steam ID:kizzinator
- Location:Newcastle, Australia
Re: PIC N64 Controller
Thanks. That means a lot coming from you. To be honest even if I was using something with a bit more power I don't have the knowledge or skill to implement the crc algorithm. Not to mention optimising the maths so it could be returned fast enough. I will look into it though.marshallh wrote:Neat work.
Integrate it with other stuff. Hmmm, I wonder what that could entail...
edit: After looking into it I'm having some success calculating CRCs. Trying to optimise the process atm.
Re: PIC N64 Controller
Perhaps you could draw up an Eagle design and publish it to BatchPCB? Then you can get a few bucks for your work, too.evilteddy wrote:Actually I was going to make a controller board so this could be smaller and more professional but I figured that I'd be the only one interested. I figured others may be interested in a breakout board so it would be easy to use in a portable.
zeturi wrote:If you're getting 404'd when trying to use the links in stickies, try this tutorial to find that juicy info.
- evilteddy
- Portablizer
- Posts:423
- Joined:Tue Mar 25, 2008 2:11 am
- 360 GamerTag:Kirren of Smeg
- Steam ID:kizzinator
- Location:Newcastle, Australia
Re: PIC N64 Controller
Actually that would require I live in the US. Anyway, I was going to use batchpcb and just let the design go up for free. I'll be doing two designs, a small board designed to fit compactly in a portable and a controller board which would be used to make a mini n64 controller. I would definitely include a rumble pack on the controller board and let others add their own rumble pack for the other board. Including a memory pack is looking increasingly possible. It seems strange that calculating the n64 crc could be as easy as it seems.
- blaze3927
- Portablizer
- Posts:1114
- Joined:Mon Dec 08, 2008 6:14 am
- 360 GamerTag:notjames
- Location:Australia
- Contact:
Re: PIC N64 Controller
looks really amazing, a n64 controller that can fit in my pocket, SWEET.
and is there any particular reason you chose pic over avr?
and yes uni' cutoff's were weird this year and vacancies were so extreme (well for EE) i got into my selection with the cutoff over 20 than my atar xD
and is there any particular reason you chose pic over avr?
and yes uni' cutoff's were weird this year and vacancies were so extreme (well for EE) i got into my selection with the cutoff over 20 than my atar xD
Australian Kaillera server
[url]hhttp://i56.tinypic.com/ncb0wi.gif[/url]
[url]hhttp://i56.tinypic.com/ncb0wi.gif[/url]
- lucidPerspective
- Posts:435
- Joined:Fri Jun 04, 2010 10:03 pm
Re: PIC N64 Controller
Amazing work with this! I was just wondering when you think you will release your code/schematics? if you plan to make them available for free that is ..I would love to use this in my next N64p! Controller pak (memory card) support isn't essential, although it would be awesome. You got all the buttons working 100% right? Mind if I take a look at that code, and circuit? how far off till you get controller pak support do you reckon?
Again, great work, making a huge difference to N64p scene!
Again, great work, making a huge difference to N64p scene!
- limpport
- Senior Member
- Posts:1873
- Joined:Sun Jan 29, 2006 12:32 pm
- Location:(the only person here from) Vermont
- Contact:
Re: PIC N64 Controller
1st page, 4th post downlucidPerspective wrote:Amazing work with this! I was just wondering when you think you will release your code/schematics? if you plan to make them available for free that is ..I would love to use this in my next N64p! Controller pak (memory card) support isn't essential, although it would be awesome. You got all the buttons working 100% right? Mind if I take a look at that code, and circuit? how far off till you get controller pak support do you reckon?
- lucidPerspective
- Posts:435
- Joined:Fri Jun 04, 2010 10:03 pm
Re: PIC N64 Controller
That was the earliest stage of the code, before he actually got it all working properly (minus the mem pak) ..not something I could actually use as it islimpport wrote:1st page, 4th post down
- evilteddy
- Portablizer
- Posts:423
- Joined:Tue Mar 25, 2008 2:11 am
- 360 GamerTag:Kirren of Smeg
- Steam ID:kizzinator
- Location:Newcastle, Australia
Re: PIC N64 Controller
Tbh the reason I chose pics over avrs was that I was browsing retroactive one day and saw the cheap pic jdm programmer. I was extremely excited and by the next day I was running LED flashing programs after picking up a couple of parts from Dick Smith. I wasn't even aware back then that there was an alternative.
I was a bit sick today so while I lay in bed feeling not very creative I cleaned up the code for this on my netbook. Its still messy as hell but its commented now so you might be able to understand and use this spaghetti code. For those who are brave venture ahead but remember this way lies monsters.
This is very much an on a chip design therefore the schematic is: wire 3.3V and ground to respective pins. Wire wipers of joystick to AN0 and AN1 with 3.3V and ground wired to the other pins of the joystick pots. PORTB and PORTA, 5 have weak pull ups internally so connect the buttons ones side to the pin and the other side to ground. There are no external components necessary apart from the buttons and joystick.
If anyone is interested I'm releasing this under the wtfpl.
btw the n64 crc is not as easy as it first seemed but still possible.
I was a bit sick today so while I lay in bed feeling not very creative I cleaned up the code for this on my netbook. Its still messy as hell but its commented now so you might be able to understand and use this spaghetti code. For those who are brave venture ahead but remember this way lies monsters.
Spoiler:
If anyone is interested I'm releasing this under the wtfpl.
btw the n64 crc is not as easy as it first seemed but still possible.
Last edited by evilteddy on Sun Mar 06, 2011 5:45 pm, edited 1 time in total.
- jjhammerstein
- Senior Member
- Posts:1562
- Joined:Tue Nov 18, 2008 7:15 pm
- Location:Southern CT
- Contact:
- evilteddy
- Portablizer
- Posts:423
- Joined:Tue Mar 25, 2008 2:11 am
- 360 GamerTag:Kirren of Smeg
- Steam ID:kizzinator
- Location:Newcastle, Australia
Re: PIC N64 Controller
not very tidy but I think it will work.
- lucidPerspective
- Posts:435
- Joined:Fri Jun 04, 2010 10:03 pm
Re: PIC N64 Controller
Looking good man
- lucidPerspective
- Posts:435
- Joined:Fri Jun 04, 2010 10:03 pm
Re: PIC N64 Controller
looking good! let us know how you get on
- evilteddy
- Portablizer
- Posts:423
- Joined:Tue Mar 25, 2008 2:11 am
- 360 GamerTag:Kirren of Smeg
- Steam ID:kizzinator
- Location:Newcastle, Australia
Re: PIC N64 Controller
Does anyone know the response of the PIF to a CRC error. It turns out that starting an eeprom read takes longer than I thought which means that the only way I can make it work is if I give a bad CRC the first time and then I can have plenty of time to read the eeprom if the n64 will just retry it. I would just try it but there's no harm in checking if anyone knows if this will work or if on the other hand I need to get a new design that's not fundamentally flawed. On a good note I've got a completely working implementation of the CRC that takes very few clock cycles.