benb0jangles / FlySky-i6-Mod-

A collection of software modifications for the FlySky i6, some useful, some experiment. All use of this repository is experimental and you use at your own risk. But, progress is being made.
413 stars 132 forks source link

head tracking via trainer port #107

Closed unitware closed 6 years ago

unitware commented 6 years ago

Hi, I've built a servo controlled camera gimbal for the FPV cam that I'd like to control with the head tracking sensors that are built into my FPV googles (fatshark teleporter v5).

The googles output a PPM signal that can be input in the trainer port with PAN/TILT on channel 5/6. The Flysky does not handle this well, I believe that activating trainer mode just puts channel 1-4 on the normal channels.

A mod that mixes the PPM5/PPM6 to channel 5/6 would be great, do you think that it is doable? Or maybe mixes the PPM5/6 with VRA/B and then can be mixed with any channel?

unitware commented 6 years ago

@qba667 I just saw your repo again, does it support this already? And if so, does it work without updating the receiver?

qba667 commented 6 years ago

@unitware yes PPM input is supposed. The radio can handle 6 channels of PPM input. As channel value PPM6, PPM5 and PPM4.

unitware commented 6 years ago

Great, is it possible to just reflash the transmitter or do I have to upgrade all of my receivers?

qba667 commented 6 years ago

@unitware just the transmitter - they are 2 versions of FW for standard units and units with additional switch SWE - ensure that you use correct one. Please verify that your goggles are providing PPM signal recognizable by the transmitter - and let me know - small changes related to time specification of the PPM input are possible.

unitware commented 6 years ago

excellent, this one then? https://github.com/qba667/FlySkyI6/releases/download/1.7.2/1.7.2.zip, and the bin file without "-swe"

qba667 commented 6 years ago

@unitware you can try this one - it is last build but so far seems to be stable.

qba667 commented 6 years ago

@qba667 in case of any issues just let me know.

unitware commented 6 years ago

absolutely, thanks so far!

unitware commented 6 years ago

is there any linux updater by any chance? or can it run via wine?

qba667 commented 6 years ago

@unitware try this one https://github.com/mhils/flysky-updater

destarita commented 6 years ago

@unitware how did you connect your headtracker sensor to the FS-I6?

qba667 commented 6 years ago

@destarita using PPM input

unitware commented 6 years ago

Yes, I used PPM. Took a 2m s-video cable and rewired one end.

Pinouts of my fatshark googles: https://4.bp.blogspot.com/-2ZeB0dyndpg/WKT10SpypvI/AAAAAAAAeDk/Ch5z7w0fVE8Cnc2x_5zly2XH4jl4AQ0YACLcB/s1600/datacablespec_A_zpsf1c7ad15.jpg

Pinout of the flysky connector: https://lh3.googleusercontent.com/-wH6cknPGBos/V5zCTMPpRhI/AAAAAAAADTY/4HavIuulRUo9pxkKar0cQdmetnyy39fIwCCo/s0/Trainer%2Bport%2Bpinout%2B2.jpg

GND is on the shield, you need that and the ppm pin. EDIT: I'm not 100% sure of the ppm pin on the flysky, it might be the ppm out that is on that schematic. the 5V pin might be a ppm-in.. use a series resistor (like 1Kohm) and test.

destarita commented 6 years ago

@qba667, @unitware Thanks a lot.. it worked perfectly ..... the only thing now is the timer... its not working anymore after upgrading the firmware ... any suggestions?

unitware commented 6 years ago

Glad it worked!

No clue of the timers, check the issue list and raise a new one if needed. Don’t forget to specify the version you are using.

Skickat från min iPhone

20 feb. 2018 kl. 03:45 skrev destarita notifications@github.com:

@qba667, @unitware thanks a lot. It worked perfectly! I connected my DIY headtracker to my TGY-I6... The only thing is the timer, is no working anymore after the FW update. Any suggestions?

Kind regards!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

duwapp44 commented 4 years ago

Hello everyone! I have been trying to make an arduino DIY headtracker work on my flysky i6. I have very little understanding on how trainer mode works. I have downloaded and installed the firmwware posted previously but I do not know how to assign those ppm signals to channels 5 and 6 of the transmitter, while mantaining channels 1 to 4 free to control the plane (when activating trainer mode those four first channels seem to become "locked"). Could someone tell me the process of configuring the transmitter? That would be much appreciated.

unitware commented 4 years ago

Trainer mode is something different, turn that off and you should be fine.

Skickat från min iPhone

30 sep. 2019 kl. 21:18 skrev duwapp44 notifications@github.com:

Hello everyone! I have been trying to make an arduino DIY headtracker work on my flysky i6. I have very little understanding on how trainer mode works. I have downloaded and installed the firmwware posted previously but I do not know how to assign those ppm signals to channels 5 and 6 of the transmitter, while mantaining channels 1 to 4 free to control the plane (when activating trainer mode those four first channels seem to become "locked"). Could someone tell me the process of configuring the transmitter? That would be much appreciated.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

Nir152 commented 3 years ago

qba667 & unitware ; Can I conect the Fatshark trinity head tracker which is outputting or standard cycle (8CH PPM, 20ms) rapid cycle (3CH PPM, 8ms) to the input ppm pad on the mainboard and output the total ppm(controls and HT) by the ppm output pad to my Frsky X9D remote via trainer cable?