Microsoft Sidewinder Gameport Joystick project by using Teensy 3.0

Status
Not open for further replies.

rakinroll

New member
Hello gentlemen,

today I got my brand new Teensy 3.0 and I want to use my old Microsoft Sidewinder Gameport Joystick by using it. But as you seen in the attached file, the project (which I want to do) has made by using Teensy 2.0. Actually, I do not know which Teensy 3.0 pins I should use for the project. Thank you in advance for your help.
 

Attachments

  • adaptffbjoy-circuit.png
    adaptffbjoy-circuit.png
    17 KB · Views: 4,272
I dunno, it depends on what you are doing. The trimpots obviously have to be attached to the analog pins (A0..A9 on the top of the board, A10-A13 underneath). Any other things that you read analog values (analogRead), you also need to use the analog pins.

If you use a UART (pins 0/1) you need to use one of the three serial ports on the Teensy 3.0 (0/1, 7/8, 9/10). I don't believe Software Serial works on the Teensy unless you use one of the 3 sets of pins with hardware serial support. You probably would need to change the code to use Serial1/Serial2/Serial3 as appropriate.

If you use SPI you need to use the dedicated SPI pins (10-13).

Similarly if you use I2C, you need to use A4/A5 and remember to use external pull-up resistors for A4/A5 (4.7K ohm resistors are generally needed).

If you use PWM functions (analogWrite), then you need to use the PWM pins on the Teensy 3.0.

For straight digital pins, it probably doesn't matter (note some of the analog pins underneath the Teensy do not support being used as digital pins)

Remember that the Teensy 3.0 runs at 3.3v and not 5v, so if the sidewinder port only runs at 5v, you will need to do voltage conversion.
 
Last edited:
MichaelMeissner,

thank you for your answer. Actually, I really do not know what Teensy 2.0 or 3.0 is. I just saw the attached "game-port converter" project on the web and decided to build it for to use my old joystick. Therefore, I want to use my Teensy 3.0 as only Gameport to USB converter. I only need which pins on Teensy 3.0 should be use as Teensy 2.0 pins which are (PF0, PF1, PF4, PF5) - (PB4, PB5) - (PB0, PB1, PB2, PB3) - (PD0, PD3). Could you please help me sir?
 
I can't since I've never used a Teensy 2.0.

If you've never programmed microprocessors before, perhaps you should start at the beginning and do things like blinky lights, etc. first to learn about the system, before tackling something a bit more complex. If you have done other systems (Arduino in particular), it is more just learning what's different with the Teensy. You will need to modify the code that was setup for the Teensy 2.0, if only to change pin assignments.
 
Ah thank you MichaelMeissner, seems that I have to learn somethings about Teensy3.0. But that is what I am afraid to do. Maybe it is better for me to put Teensy 2.0 codes here to wait someone who will give an answer. Here is the link for the Teensy 2.0 MS Sidewinder Gameport Project page:

https://code.google.com/p/adapt-ffb-joy/

Explanation for the attached file:

Description:
This is a tester for issuing and reading MIDI data from game port and to joystick.

It is an Arduino project running at least on Teensy 2.0 and is a simple USB-to-serial converted (based on the Arduino sample) so that you can see and send MIDI data from a serial terminal program in your computer (like HyperTerm, TeraTermPro etc.).

It uses pin D2 (USART RX) to receive data e.g. from game port (the MIDI pin is pin 12) and pin B3 to output data to joystick (using NewSerial instead of USART for better timing control since Arduino 23's Uart-library does not allow flushing data out synchronously - Arduino 1.0 does allow that and maybe the project should be ported to it and simply use USART for trasmitting too).


I need someone who can help me to do this project by using Teensy 3.0 please. Thank you.
 

Attachments

  • UsbMidiTester.pde
    8.8 KB · Views: 254
Status
Not open for further replies.
Back
Top