Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

freejoy and TH cougar grip #211

Open
teeshq opened this issue Aug 1, 2023 · 6 comments
Open

freejoy and TH cougar grip #211

teeshq opened this issue Aug 1, 2023 · 6 comments

Comments

@teeshq
Copy link

teeshq commented Aug 1, 2023

Hi i have some issue with working with cougar grip(if i connect it to virpil WARBRD its work so im sure shift register in grip is ok).
after connecting grip some buttons work OK, some not at all, and other have multiple press(example pressing trim button up cause 3 physical buttons light up ).
I also to some measurement and all data pins on warbrd give higher voltage like 0.8v, 3.6v, 2.6v . On freejoy pins assigned to latch data clk , give much lover value cant this make this behavior ??
some photos below also one short video.

thanks a lot

image
IMG_20230801_150244
IMG_20230801_163750
IMG_20230801_163756
https://cdn.discordapp.com/attachments/1135602674973294622/1135650174258139177/VID_20230731_200651.mp4

@yzhanping
Copy link

I think your problem is on the expansion board. My expansion board can normally replace the Tumaster a10c /F18C grip, recognize 24 triggers; and can realize 128 triggers in series;
They are like this
微信图片_20230803180653
微信图片_20230803180647

@teeshq
Copy link
Author

teeshq commented Aug 3, 2023

HI thanks yes could be original thrustmaster shift reg board have some different logic (but still it use 4021 IC) and grip work ok with virpil base :/.
probably i will just get my own pcb with HC165
image
image

Edit :
funny i just find out it work with mmjoy2 so there is somethings wrong with free joy 4021 logic.

image

@vostrenkov
Copy link
Member

Arduino (and I guess warbrd also) uses 5V logic but STM32 has 3.3V logic
CD4021 may have some issues with 3.3V logic when connected over long wires or having high connections capacity.

Using voltage level translator most likely would solve the isuue

@teeshq
Copy link
Author

teeshq commented Aug 4, 2023

Arduino (and I guess warbrd also) uses 5V logic but STM32 has 3.3V logic CD4021 may have some issues with 3.3V logic when connected over long wires or having high connections capacity.

Using voltage level translator most likely would solve the issue

Hi thanks can u advise what translator to use im quite noob you mean somethings like that https://makershop.ie/CJMCU-0102 .
or https://ie.farnell.com/texas-instruments/cd40109be/ic-level-shifter-quad-16dip/dp/3120902

@ghawkgu
Copy link

ghawkgu commented Aug 6, 2023

@teeshq
Regarding the issue that multiple buttons being triggered. I had similar issue when I tried to wire up the cougar throttle.
#179

However, the throttle grip uses a button matrix instead of a shift register.
As CD4021's datasheet noted it is supposed to work well with 3.3v and 5v logic,
https://www.ti.com/lit/ds/symlink/cd4021b-q1.pdf .
I doubt there's some defect in the logic of reading physical button status.

@TomHVR
Copy link

TomHVR commented Jan 16, 2024

see this firmware in my issue, it might solve your problem (and the change hopefully will be folded into a new version of freejoy)

#222

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants