FreeJoy icon indicating copy to clipboard operation
FreeJoy copied to clipboard

About HEF4021BT can not use CD4021 pin mapping

Open yzhanping opened this issue 3 years ago • 4 comments

Hi Thank you very much to the Freejoy team. This is definitely a great software. I am trying to use it to DIY flight simulator. Its functions make me feel that DIY has great potential. I encountered a small problem in use. The HEF4021BT used by Thrustmaster’s A10C controller has the same schematic pin definition as CD4021. I tried FREEJOY to drive this IC but failed. The buttons did not respond. I hope it works. Get help. Did I do something wrong? The Freejoy STM32 motherboard works normally, and the interface uses 74HC165D+ software (shift register type: HC165 pull Up) to work normally

HEF4021B Schematic diagram pin 3 - shiftreg_DATA pin 10 - SPI_SCK pin 9 - shiftreg_LATCH pin 8 - GND pin 16 - 3V3 image

CD4021 Schematic diagram image

Freejoy SET image image image

thanks for help~

yzhanping avatar Mar 10 '21 06:03 yzhanping

This is the pcb of A10C STICK of Tomaster, the IC model HEF4021B it uses; the interface definition is shown in the figure image

yzhanping avatar Mar 10 '21 07:03 yzhanping

Hi! Just checked both 74hc165 and 4021 work with the latest release. Have you tried running pure shift registers config without any axes defined?

vostrenkov avatar Mar 17 '21 18:03 vostrenkov

I found the root of the problem. It was my fault. You must not use 5V as the power supply of CD4021. 3.3V can work normally, and 5V will burn. You can only replace the IC;

yzhanping avatar Jun 08 '21 08:06 yzhanping