Thanks for your input, PhilB, its only cheap encoders I'm using, the smoothness of them is not so important, its to turn non-critical switches and knobs.
//#include <Joystick.h>
//SON OF...
Type: Posts; User: Sprool
Thanks for your input, PhilB, its only cheap encoders I'm using, the smoothness of them is not so important, its to turn non-critical switches and knobs.
//#include <Joystick.h>
//SON OF...
I'm building a flight sim control panel (DCS) which incorporates rotary encoders, and I want the on-screen dial/knob rotation to mimic the rotation of the rotary encoder. A lot of the DCS key mapping...
Its all working fine EXCEPT it takes too many revolutions on the rotary to move the knob in the game. Maybe 30:1 ratio at the moment.
//SON OF BUTTON BOX
//USE w Teensy2.0
//Tested in WIN10 +...
I can tell you that separating the common gnd has solved the problem since I was getting cross-talk when rotating, and button presses were not registering. Now all buttons & rotations are working...
its all part of the learning curve :) Now I have 2 button boxes installed I need to name them differently so I can differentiate them in game when mapping controls - Is that possible? (not really an...
I have 2 button boxes based on Teensy 2 boards, but game software does not show which is which as they both inherit the name Teensy keyboard/mouse/joystick; is there a way I can give each controller...
Im so stupid, I just went on Amazon and bought rotary encoders. Feel really stupid now. The video tutorial I followed did not point out any difference in the types available, or advise which types to...
21102this seems to be working, cutting the two traces on the back then soldering a jumper to keep the circuit for the switch separate and isolated from the circuit for the rotaries. Bit of a pain...
The code is linked on the site and I had no need to pay, but here is my version amended for my setup: (attached)
I did see one thread talking about having to cut the tracks on a rotary so the...
So Im building a 20-switch button box + 4 rotary encoders for controlling DCS flight sim. The code used is from this excellent tutorial: https://www.youtube.com/watch?v=Z7Sc4MJ8RPM
All works fine up...
More DCS info about handling a toggle switch: https://forums.eagle.ru/showthread.php?t=89226 its a long thread!
DCS lets you cycle through the 3 flap positions, when you assign a button or keypress. I just used an on-off-on momentary switch in my button box as otherwise DCS Bios needs editing to take care of...
Now I need to understand how to get windows joystick controller to recognise rotary encoders :(
OSrted, thanks to info in this post: https://forum.pjrc.com/threads/53015-Joystick-using-key-matrix
Its sorted - info in this post: https://forum.pjrc.com/threads/53015-Joystick-using-key-matrix solved my problem
Brilliant - thx for posting, this was dooing my head in, button matrix now sending to Windows game controller - DCS also my end game.
Im very new to this, so please bear with me, I want a button box using a matrix array so have about 32 buttons & switches for a flight sim controller, I extended the code for the basic hellokeypad...
Some progress made - I increased the keypad button matrix to 4 x 6, avoided pin 11, added a little routine for the internal LED to flash whenever a button is pressed, wired up the button matrix, and...
Thx Larry but I have that diagram already and its certainly not very clear to me - the later models with colour coding of the various pin areas seem a bit more intuitive but the 2.0 documentation is...
Will I be ok using the HelloKeypad example but inserting a bigger matrix for my button presses to be picked up by windows joystick controller? I'm looking at 5 x 6 button matrix, I dont need to...
is that the one labelled E6, just in from B3? Its all quite confusing, the pin 21 is labelled as F0, 20 = F1 then 19 = F4, what happened to F2 and F3?
On the Teensy 2.0 I have pins 0 to 23, then theres 2 pins for GND and 2 pins for +5v, and a reset. Can I use all pins 0 - 23 for digital switches? But then only pins 5 to 8 for interrupt polling...
I am starting to put together a button box as a controller for DCS World flight sim, I have a Teensy 2.0, about 25 switches (needing a button matrix approach) some pots and rotary encoders. Its not...