Replies: 2 comments 2 replies
-
Last thing, in the PS3 thread I saw that he was messing with interrupts and stuff like that. Idk I maybe that's part of my issue, but the smash box Arduino GitHub didn't have anything along those lines in it, so I'm not exactly sure how that works. Regardless, any insight would be appreciated. |
Beta Was this translation helpful? Give feedback.
-
Did you try to test an example sketch without the xbox controller connected? Some PC Adapters wont work correctly with this library and we do not know why yet. You can try to install a firmware update for the device. If the arduino is not sending any xbox data I'd first try to get it to send any sample data. If that works you only need to fine tune the timing issues or use another adapter maybe. Once you resolve the issue, we could maybe add it as an example for this library, so others dont need to ask over and over again. Hope you find the issue! Good luck! |
Beta Was this translation helpful? Give feedback.
-
Similar situation to the thread with the ps3 controller. Using the usb host shield with an arduino mega. For the most part I took the code from the "recreating the stashbox" GitHub and used that for reference in tandem with an example sketch from the shield GitHub. the Arduino is able to read the Xbox controller fine (for the most part). I got a logic level converter off of amazon (https://www.amazon.com/dp/B07LG646VS?psc=1&ref=ppx_yo2_dt_b_product_details). I get nothing on the GameCube adapter. I've checked the pinout on the GameCube cord several times, so I'm like 90% sure my logic converter is set up fine. granted I did use it without the resistor for the first few tries, so there is a good chance that I fried the board. However I have put earbuds on the high voltage and low voltage (data lines, not the raw high and low voltage inputs) of the converter, and I got a buzzing on the hv side and quieter buzzing on the lv side (both sounded the same, just a difference in volume) so the is an output/input between the GameCube adapter and Arduino, but I have no idea if that's controller data or the GameCube adapter endlessly pinging the Arduino for controller data.
Code - gc.txt
I've included pictures, you will have to pardon the mess, just know that the grounds on the logic converter are shorted, and the 5v and 3.3v from the GameCube side are both going to the logic level converter, to there respective sides. GameCube and Arduino are sharing a common ground, And I am 99% sure nothing is shorted on the level converter. Last thing, the resistor is only .7k, but its the only one I have on hand atm.
Beta Was this translation helpful? Give feedback.
All reactions