Forum Rule: Always post complete source code & details to reproduce any issue!
-
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
-
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
-
Senior Member+
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
-
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
-
Senior Member+
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/
-
Gonna experiment mixing keypad.h and the joystick code , you had mentioned above.
thanks again
-
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
-
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
-
Forum Rules