Cockpit build electronics thread

Idle chat for all ACG and friends

Moderators: Board of Directors, Command

Archangel
Posts: 581
Joined: Sat May 30, 2015 12:41 pm

Re: Cockpit build electronics thread

Post by Archangel » Sun Jun 26, 2016 4:37 pm

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.
Image
"Never argue with an idiot - they only drag you down to their level and then beat you on experience" (Unknown)

User avatar
Dickie
Group Captain
Group Captain
ACG Board
contributor
Posts: 13837
Joined: Sat Jul 14, 2012 12:15 pm
Location: Gloucestershire, England
Contact:

Re: Cockpit build electronics thread

Post by Dickie » Sun Jun 26, 2016 4:52 pm

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/

Boobies
Posts: 46
Joined: Tue Jun 30, 2015 11:23 am
Location: Austria

Re: Cockpit build electronics thread

Post by Boobies » Thu Jul 20, 2017 9:59 am

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.

User avatar
Dickie
Group Captain
Group Captain
ACG Board
contributor
Posts: 13837
Joined: Sat Jul 14, 2012 12:15 pm
Location: Gloucestershire, England
Contact:

Re: Cockpit build electronics thread

Post by Dickie » Thu Jul 20, 2017 10:18 am

Cool this is very useful anyway Boobies, and those are fecking cheap too! I'll point my Padawan in this direction.

maymac789
Posts: 1
Joined: Sat Mar 24, 2018 6:36 am

Re: Cockpit build electronics thread

Post by maymac789 » Sat Mar 24, 2018 6:38 am

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.

Post Reply