I want to make a joystick with many axes and buttons
The pro Micro is good having the ability to act as a HID, but it doesn't have many IO pins
The mega 2560 is great having lots of IO pins but it has no HID
Is there a way to add an external device / circuit to give the Mega the ability to act as a HID and all those lovely IO pins
How many buttons do you want to use ?
Could you consider using an analogue input and a resistor ladder to save pins or perhaps a shift register that would allow you to read as many buttons as you like
Hi , I am hoping to build a sim cockpit for microsofts flight sim and was thinking one mega might be better than several pro micro's
It would need 1 axis for each toe brake , 1 each for rudder trim,aileron trim , elevator trim , plus one each for rudder aileron and elevator main controls , 1 each throttle and mixture
So that ten axis so far, The main garmin display has 6 Dual rotary encoders 2 pots and 32 switches and there are two displays so we can double that
I think maybe thats not the way to go, I will use mobi flight as an interface instead
Hi #paulpaulson thanks for the heads up. I have a DUE but never used it yet , You reminded me I have one so I looked it out
Lots of pins like a mega and as it has 2 USB sockets I am assuming it will work as a hid device , just what I need
Rather than using multiple Pro Micros, it would be better to extend the Pro Micro's pins using I/o extender chips or multiplexer chips. That may seem more complex than using Due, but one advantage is that you can reduce the amount of wiring overall. If you wire many controls into Due, you will have a rats's nest of wires around the Due. If you place I/o extenders or multiplexers close to a group of controls, you can have short wires from the controls the the multiplexer/extender, and then only a few wires back to the Arduino. Like a "hub and spoke" arrangement where the spokes are extender/multiplexer chips and the hub is the Arduino.
PS. Remember that Due is a 3.3V device and connecting it's pins to 5V can damage it. For most switches and pots, these can work at 3.3V so it's not a problem.