Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 8 of 8

Thread: Teensy3.5

  1. #1
    Junior Member
    Join Date
    Aug 2019
    Posts
    9

    Teensy3.5

    Hello

    Please help me, point me in the correct direction, thanx,

    Using a teensy 3.5
    I am having little luck to figure out the code for a usb controller (Throttle controller).

    this controller has
    10 buttons (connected in a 3 x 4 matrix) and
    5 Pots

    Not sure how to code it , may have to rewire the buttons.?

    Please help, your my only hope......
    thnx

  2. #2
    Junior Member
    Join Date
    Aug 2019
    Posts
    9
    The project is a Thrustmaster Cougar Throttle.

    found a site with everything, (wire diagram, matrix for buttons) except the sketch.
    been working with other sketches, but not sure they are for the teensy, error in code.

    Thanks again
    Last edited by dispatch; 12-03-2019 at 06:52 PM. Reason: Thanx

  3. #3
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    5,733
    Not sure what you have tried or looked at?

    Have you looked at the PJRC pages like:
    https://www.pjrc.com/teensy/td_joystick.html

    as part of this, have you looked at the example sketches like:
    File->Examples->Teensy->usb_joystick->complete

  4. #4
    Junior Member
    Join Date
    Aug 2019
    Posts
    9
    Hello thanks for replying

    Yes, Just trying to figure out how to add the button, matrix, would be GREAT - three rows by four columns.

    would like to find a solution, but, if I can't find a solution, I will just rewire the matrix to single buttons.
    someone (the mighty one) has done this before ...... still searching .....

    thanks again

  5. #5
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    5,733
    Have you looked at the keypad library?

    Not sure which is best example, but examples->keypad->EventKeypad is one...

    WHich takes care of rows and columns...

    More information up on google searches, like: https://playground.arduino.cc/Code/Keypad/

  6. #6
    Junior Member
    Join Date
    Aug 2019
    Posts
    9
    Gonna experiment mixing keypad.h and the joystick code , you had mentioned above.

    thanks again

  7. #7
    Junior Member
    Join Date
    Aug 2019
    Posts
    9

    Ok Got it working, using the joystick code (from pjrc), rewired the buttons.
    The test program shows all buttons on,
    buttons turn off when pressed,
    is there a way to invert the output of the switches?

    Also the Analog inputs are a little jittery is there a solution , maybe capacitors on the inputs?

    Thanks again


    Still looking for the code for buttons connected in a matrix to go with the Joystick code

  8. #8
    Junior Member
    Join Date
    Aug 2019
    Posts
    9
    Might have something to do with operation 3.3v (5v tolerant)!

    I will try the ardiono micro

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •