S/C USB Games controller using a DigiSpark ATtiny 85

Button pushers
Post Reply
Mike_K
Posts: 241
Joined: 16 Feb 2018, 06:35

S/C USB Games controller using a DigiSpark ATtiny 85

Post by Mike_K » 30 Jul 2019, 19:09

I'd planned to go S/C flying today to keep my S/C practice up, but the weather was wet and windy so I thought I'd use my flight sim. Bugger, I'd lent my USB joystick interface to a friend.

But I had a DigiSpark ATtiny85 USB kick starter on my desk, so wondered if I could program it to be a S/C games controller? Using the joystick example that comes with the DigiSpark distribution as the basis, I had it up and running within an hour, about the fastest Arduino project I've ever done. And the least components as well, just the DigiSpark and a switch. It emulates a compound escapement with 2 position throttle and kick-up elevator. The switch can be connected between 0 and 1, 0 is the input and 1 has been programmed as an 0V output. Alternatively, connect the switch between 0 and 0V.

I don't think Phil will like it as you don't have to cut the USB connector off, in fact, you definitely need to keep it!!

And I didn't bother with a USBASP, or other ISP, I just programmed it via the normal usb interface and bootloader with the 16.5MHz option. By the time you've connected it and loaded your flight sim software, the bootloader has timed out and it is recognised as a "DigiKey" games controller. But it should work equally as well programmed with a USBASP.

Cheers

Mike

PS we just need somebody to "make" a S/C model for the PicaSim or other free flightsim. We would then have about the lowest cost flightsim setup you can imagine. Anybody up for it? I still use my old RealFlight 3.5 with a S/C model I made years ago. I have a genuine copy of RealFlight, but use a hacked version so that any usb joystick interface can be used. Unfortunately, it won't run on Win10, but it runs quite happily under Win7 in VirtualBox on Win 10 or Linux.
Attachments
Digispark_SC_Joystick_01.ino
(3.75 KiB) Downloaded 10 times

User avatar
Phil_G
Posts: 294
Joined: 15 Feb 2018, 23:32
Contact:

Re: S/C USB Games controller using a DigiSpark ATtiny 85

Post by Phil_G » 31 Jul 2019, 12:37

Great idea Mike, not tried it yet but I will... presently me & Shaun both use the usual PPM dongle and a S/C encoder in a box. A proper selection of powered S/C models and a few S/C slope gliders on a proper sim would be brilliant. I'm thinking sharkfaces, tyros, bazzbombs, tomboys etc for power and a few S/C slope gliders like the Impala, Amigo, Wizard of Oz, Soarcerer, Slinky, Moonbeam etc... I've no idea how feasible this is. But the DigiSpark games adapter idea is brilliant Image

Post Reply