Page 6 of 6

Re: Cockpit build electronics thread

Posted: Sun Jun 26, 2016 4:37 pm
by Archangel
Kuntz wrote:OK so I've got the pot working on the Arduino but although I can vary the length of time the LED flashes for in code, the pot turn is not recognised by default in COD control analog axis, ie, I select the control and turn the pot but nothing appears. So, how do I get COD to recognise the control? Is it code or is it something I need to install or code?
That's why device drivers are built, to interface analog devices with digital thingamabobs.... works by clamping the infinite level of analogue values into discreet interval ranges each of which is identifiable by a unique numeric value. Then this same device driver might need to present itself to an operating system as a joystick with slider pots. A game like CLOD knows what a joystick is and can be configured to used aspects of multiple joysticks in its mapping tables..... and so on.

Of course, building this kind of item generally means avoiding .NET or other CLR based development languages (and Java for the same reason). So, if you do not have assembly or C/C++ development skills now is as good time as any to start learning....

Good luck...

Archangel.

P.S. I understand that schizophrenia is quite a problem. I would like to recommend that you do what you can to manage all of these alter egos of yours so that you can maximise the benefits of your research into this engineering domain. You should also choose your strongest alter ego to do the research as well.

Re: Cockpit build electronics thread

Posted: Sun Jun 26, 2016 4:52 pm
by Dickie
Thanks Archie but I kind of figured that in the huge World of Ardduino that this would already have been done, and that someone would post something. Seems I bought the wrong board....

http://www.instructables.com/id/Arduino ... rJoystick/
http://www.instructables.com/id/Add-USB ... ardoMicro/

Re: Cockpit build electronics thread

Posted: Thu Jul 20, 2017 9:59 am
by Boobies
Dickie wrote:Thanks Archie but I kind of figured that in the huge World of Ardduino that this would already have been done, and that someone would post something. Seems I bought the wrong board....

http://www.instructables.com/id/Arduino ... rJoystick/
http://www.instructables.com/id/Add-USB ... ardoMicro/

Grab a handful of these: Arduino Pro Micro

And then you can use this: Arduino HID Project 2.4.4

Although with the right bootloader you can technically use the Arduino Uno or Mega as well, but that's a PITA for prototyping.

If I had of found this thread earlier I could have bought a couple of Pro Micro's over to Duxford the other week.

Re: Cockpit build electronics thread

Posted: Thu Jul 20, 2017 10:18 am
by Dickie
Cool this is very useful anyway Boobies, and those are fecking cheap too! I'll point my Padawan in this direction.

Re: Cockpit build electronics thread

Posted: Sat Mar 24, 2018 6:38 am
by maymac789
Best don your black and white stripy top, beret and cloves of garlic then.

To be fair, Sabre has much more of a northern accent than me. I like to think I'm a well spoken Geordie.