-
Notifications
You must be signed in to change notification settings - Fork 63
Upgrade Master to ATMega64 #108
Comments
https://www.sparkfun.com/products/18288 Does this have the same pinout? |
Not sure what I would be comparing that to for a pinout but the RP2040 MCU has 54pin However below are my findings in regards to pinouts: ATmega32u4 vs ATmega64/128. The ATmega32u4 (32kb) is 44pin whereas the ATmega64 (64kb) has 64pins. Even then the pinouts are still fairly similar as shown above... The most obvious thing that the ATmega64/128 are missing is the USB Host controller. |
I believe Diagram 3 would be the most efficient and cost effective use of hardware. |
Benefits of using a more capable MCU... Firstly I'd like to discuss what's already supported by the ATmega32: Xbox360 Wireless Receiver: The device acts in a similar manner to an Xbox 360, allowing up to 4 controllers and 4 headsets 8BitDo v2 Bluetooth Receiver: Can only support one controller at a time so 4 receivers would be required for all 4 players.
Secondly what could be supported in the future using the ATmega64: Xbox "Series X/S" Wireless Receiver: This device can connect with Xbox controllers, headsets, and similar accessories via Bluetooth. Xbox "ONE" Wireless Receiver: Is a larger/older version of the Series X/S wireless receiver however this device can connect with 8Bitdo Xbox Remote Control: This device is a remote control for XboxONE and Series X/S consoles. There are two versions, Perhaps adding IO to the ATmega64 to support Powering OFF the console and Ejecting the I hope this hasn't been to overwhelming, I really needed to get this all out of my head ;) Cheers, Nem |
This is not how USB hubs work. we need 4 independent usb device controllers. My point with linking the RP2040 dev board is that it looks at a quick glance to have the exact pinout as the Arduino pro micro so would be a direct swapout for the master module. It wouldnt be alot of work to recompile to RP2040. Main difference being a USB C port instead of USB Micro |
I agree USB type C port would be more durable and user friendly but programming a new MCU for it
Oh right.... I don't have much experience working with USB controllers / hubs. Do you have any other
Or is Diagram 1 where we could drop-in an ATmega64 into the current design appeal to you more? |
I would be happy to supply you a couple of each of the xbox wireless receivers. |
The atmega 64 or 128 doesnt support USB either actually so these would be no good. Side note , I grabbed one of the pro micro rp2040s and it fits and Ive got it compiling and talking with the USB controllers already. The USB device side (Xbox facing) API is a bit different so thats not working yet but not hard. It doesnt make loads of sense to use this on the ogx360 and its entirely overkill (Flash usage goes from 100% on the atmega down to like 0.01% haha) and probably would be much better of with its own much simpler design as this supports USB Host interrnally so we dont need a max341 chip. |
Interesting... Alternatively I would have suggested "STM32" but seeing that I can buy standalone "RP2040TR7" MCU from element14 it would still be possible to do custom PCB design, actually the price for a full reel is very appealing. https://au.element14.com/raspberry-pi/rp2040tr7/mcu-32bit-133mhz-qfn-56/dp/3766079 Quote: "Support for up to 16MB of off-chip Flash memory via dedicated QSPI bus" Think that Windbond W25Q128JVPM has 16Mb of flash memory which may explain why your at 0.01% https://www.digikey.com/en/products/detail/winbond-electronics/W25Q128JVPIM-TR/6819720 Side Note: Would you be interested in some private work? Just finished my dual 80mm fan caddy to replace the original HDD caddy. |
I was reading all the comments and would like to suggest the ATSAMD21, it can do both USB Device and USB Host, is really cheap and can be programmed like an arduino (Arduino IDE, PlatformIO) |
For the sake of research I compared prices. Development Boards: RP2040 = $10.95aud SAMD21 = $22.50aud Micro Controllers: RP2040TR7 = $1.21aud each @ 500pcs (min) ATSAMD21G18-AU = $6.08aud each @ 100pcs (max) Conclusion: Considering each 4-channel OGX360 requires 4x dev. boards or MCU's the price would add up quickly. @Ryzee119 - I'll be ordering some PCB's in the next week or two if you need anything? |
If you want cheap use a ch559 for the host controller and 4x ch552 for the devices. They are like 50c each or less in qty |
Interesting... So I made an enquiry over at Elecrow since if I were to get some PCBs RP2040 = $0.92/unit (@ 500pcs) The RP2040 and CH559L are comparable, makes me beg the question I know I haven't factored in the flash memory still required for RP2040 |
Would it be possible to upgrade the master from an ATMega32 to ATMega64?
Or even an ATMega128 as they share the same pinout as the ATMega64...
I figured just the master could be upgraded where the salves remain the same.
This should open up the possibilities of being able to add additional features.
I would be happy to contribute anyway I can... For example, if you were to do a
schematic, I could make a proto PCB design and assemble a handful for testing.
Either way it would be great to discuss this further with you if your interested.
Is there some way we can communicate directly?
Cheers, Nem
The text was updated successfully, but these errors were encountered: