Cleric-K / vJoySerialFeeder

Feed Virtual Joystick driver with data from a serial port
GNU General Public License v3.0
252 stars 55 forks source link

XK X8 Help #60

Closed WriteCodeEveryday closed 1 year ago

WriteCodeEveryday commented 1 year ago

I have an XK X8 that came included with an XK X450

I have checked and there is no external connections (RC Trainer, USB) and the Futaba WSC-1 doesn't work because they made their controller actually incompatible with S-FHSS so I'm having to directly tie into the board here.

On the board, I have the following

What is your recommended method of wiring this? Which is the recommended Arduino board? Is there a way to just add an RC trainer port here?

XK has literally upset me so much with this that I am doing just to prove that it's possible for it to be done.

Cleric-K commented 1 year ago

Are you sure this receiver supports any kind of digital protocol? Could it be that it only supports the PWM CH1-4?

If you would use it with Betaflight, for example, how would you wire it?

WriteCodeEveryday commented 1 year ago

@Cleric-K I am 100% sure this supports nothing....

X450 does not run Betaflight and it runs a single board that does FC and ESC.

Cleric-K commented 1 year ago

I see. Well, I guess your only chance is to read the PWM signals from the CH pads. Before we try to make it work with vjsf, maybe you should experiment a little. Look at this https://www.youtube.com/watch?v=UZKxUFkwCc8

Don't go for the interrupt version. The pulseIn should be enough. You can real only one channel at a time. The goal is to test them one by one and see if anything useful comes out the CH pads and possibly other pads (if your controller has some switches).

Cleric-K commented 1 year ago

If the CH pads are indeed PWM signals, I've made an Arduino sketch to try: https://github.com/Cleric-K/vJoySerialFeeder/tree/master/Arduino/Pwm_to_ibus