ElectronicsEnthusiast
New member
Hi all,
I'm working on "reviving" an old project someone at our university made. The basic concept is to play some basic games on an LED wall (Tetris, Snake, ...) using an Xbox 360 Controller. The person who originally made the project used a Teensy (I think it's a 3.0 ? It's a black PCB which if I'm correct stopped being made in 2015?) along with a USB Host Shield from Circuits@Home. On the 'old' Teensy there is a preloaded game, but I would like to upgrade this to make multiple games possible.
I purchased a new Teensy 3.2, so we still have the old black one as a backup incase.
I installed Arduino, Teensyduino, the USB Host Shield library, spi4teensy3 library.
I'm having a lot of issues getting the USB Shield with Xbox controller to interact with my new Teensy... I'll ask some questions regarding this to narrow down the issue.
- The pinout of the old and new Teensy should be the same, I read somewhere. Are there maybe any other changes voltage-wise that might cause the issue?
I'm using the USB Host Shield library by Oleg Mazurov (https://github.com/felis/USB_Host_Shield_2.0) and I'm using the example XBOXUSB to test the functionality (https://github.com/felis/USB_Host_Shield_2.0/blob/master/examples/Xbox/XBOXUSB/XBOXUSB.ino). In this example the code gets stuck on line 23: The Usb.Init() function never returns anything.
- Am I supposed to make any changes to the "Tools" section of the Teensyduino IDE? The USB Type is set to Serial right now?
- How would I go about trying to debug the Usb.Init() further? I have looked into the header and cpp files but must admit I'm very novice to how those are structured.
Any other suggestions to what the problem might be would be greatly appreciated!
Kind Regards
EDIT:
Something I forgot to mention: I can load programs on the "new" Teensy just fine. All the pins seem to function as advertised. However when I run the XBOXUSB Example and the code gets stuck on the line as previously mentioned (Usb.Init()) the LED lights up, which leads me to believe the SCLK signal soldered to pin 13 is constantly high? I tried looking into this online but I have no idea if this means anything useful towards debugging the issue.
I'm working on "reviving" an old project someone at our university made. The basic concept is to play some basic games on an LED wall (Tetris, Snake, ...) using an Xbox 360 Controller. The person who originally made the project used a Teensy (I think it's a 3.0 ? It's a black PCB which if I'm correct stopped being made in 2015?) along with a USB Host Shield from Circuits@Home. On the 'old' Teensy there is a preloaded game, but I would like to upgrade this to make multiple games possible.
I purchased a new Teensy 3.2, so we still have the old black one as a backup incase.
I installed Arduino, Teensyduino, the USB Host Shield library, spi4teensy3 library.
I'm having a lot of issues getting the USB Shield with Xbox controller to interact with my new Teensy... I'll ask some questions regarding this to narrow down the issue.
- The pinout of the old and new Teensy should be the same, I read somewhere. Are there maybe any other changes voltage-wise that might cause the issue?
I'm using the USB Host Shield library by Oleg Mazurov (https://github.com/felis/USB_Host_Shield_2.0) and I'm using the example XBOXUSB to test the functionality (https://github.com/felis/USB_Host_Shield_2.0/blob/master/examples/Xbox/XBOXUSB/XBOXUSB.ino). In this example the code gets stuck on line 23: The Usb.Init() function never returns anything.
- Am I supposed to make any changes to the "Tools" section of the Teensyduino IDE? The USB Type is set to Serial right now?
- How would I go about trying to debug the Usb.Init() further? I have looked into the header and cpp files but must admit I'm very novice to how those are structured.
Any other suggestions to what the problem might be would be greatly appreciated!
Kind Regards
EDIT:
Something I forgot to mention: I can load programs on the "new" Teensy just fine. All the pins seem to function as advertised. However when I run the XBOXUSB Example and the code gets stuck on the line as previously mentioned (Usb.Init()) the LED lights up, which leads me to believe the SCLK signal soldered to pin 13 is constantly high? I tried looking into this online but I have no idea if this means anything useful towards debugging the issue.
Last edited: