01G8R Posted October 13, 2020 Posted October 13, 2020 I would like to use a TM grip for a cyclic project without the base. I have some experience with wiring Bodnar boards, but don't know where to start with wiring up the grip using the shift registers. Any help or direction would be appreciated.
crash test pilot Posted October 13, 2020 Posted October 13, 2020 Have you read Debolestis thread about modding X-Fighter stick to use with Warthog/Cougar/Virpil base? It gives a good insight about what goes where. https://forums.eagle.ru/showthread.php?t=160114&highlight=x-fighter&page=12
Sokol1_br Posted October 13, 2020 Posted October 13, 2020 (edited) I would like to use a TM grip for a cyclic project without the base. I have some experience with wiring Bodnar boards, but don't know where to start with wiring up the grip using the shift registers. Any help or direction would be appreciated. First thing: you need an (USB) controller with support for Shift Register, Leo Bodnar BU0836A don't support, only "diode Button Matrix". BU0836X already have Shift Register integrated, but this option use more wires (at least 24) than PS2 connector on grip support, requiring replace the connector. If you already have an BU0836A for this project, depends on your DIY level can draw an replacement PCB with Diode Matrix and replace the original Shift Register PCB, an example made by GVL224: http://avia-sim.ru/forum/download/file.php?id=7665 http://avia-sim.ru/forum/download/file.php?id=7666 But this option too use more wires (10 = 6x 4 matrix) than PS2 connector on grip support, requiring replace the connector. Mini-DIN (PS-2 like) 10 pin connector exist: https://console5.com/store/sega-saturn-mini-din-10-av-connector-plug-in-line-solder-type-silver-plated.html MMjoy2, FreeJoy firmiware for (low cost ~$5) Arduino (ATMEGA32u4, ATMEGA90USB, 16Mhz, 5v) and STM32F103 boards respectively, support the native Shift Register (CD 4021) inside Warthog/F-16/F-18/Cougar grips, so what you need do is the female PS2 connector, as describe in the linked above Debolestis topic. Edited October 13, 2020 by Sokol1_br
01G8R Posted October 13, 2020 Author Posted October 13, 2020 Thanks. I saw Debolestis' Thread and was working my way through it. I think the MMjoy2 or FreeJoy option is the way to go.
Sokol1_br Posted October 13, 2020 Posted October 13, 2020 :thumbup: An they are more flexible and powerful - with support for contacless sensor in digital mode; than most of "joysticks" controllers for DIY available.
Terry Dactil Posted October 15, 2020 Posted October 15, 2020 (edited) 01G8R said: I would like to use a TM grip for a cyclic project without the base. I have some experience with wiring Bodnar boards, but don't know where to start with wiring up the grip using the shift registers. Any help or direction would be appreciated. I am converting an old Cougar joystick to be a rigid stick to use with the F-16 module, so this information may be useful for you. The state of the 18 buttons in the Cougar handle (19 in a Warthog) is sent out in 3 Bytes of data using the SPI format. Here is the handle circuitry. (I used toggle switches here instead of momentary switches so I could run a simulation to check the position of individual bits in the output). For USB output the bit order needed to be changed slightly to arrange buffer and switch type boundaries. This was done by programming the 18F4550 which I used to handle the axis values from strain gauges and produce the USB output. Hope this helps with your project. Edited August 22, 2021 by Terry Dactil Corrected the pin- out diagram
01G8R Posted October 15, 2020 Author Posted October 15, 2020 Thank you. I appreciate the information and will keep the forum updated on my progress.
01G8R Posted October 29, 2020 Author Posted October 29, 2020 I was able to DL and install the FW for MMJoy on an Arduino Leonardo. Using the pinout from https://www.reddit.com/r/hoggit/comments/45j5pk/tm_warthog_stick_circuitry/. I tried with the 2015 and newest 2016-11 Firmware. I get what appears to be the correct number of buttons in MMJoy, but they are all lit up. When I physically press them nothing happens. Any advice would be appreciated. On the Leonardo A0 is Data, A1 is CS and SCK is SCK.
01G8R Posted October 29, 2020 Author Posted October 29, 2020 The pinout in the Reddit link is different than what Terry posted above. I have tried both without success.
01G8R Posted October 29, 2020 Author Posted October 29, 2020 Figured out one thing. The Input Number printed on the Leonardo doesn't appear to be correct for MMJoy. Changed it to what is listed in the DL package pictures folder and now they are not all lit up. Still don't get any action from pressing the buttons, but this might be progress
rel4y Posted October 29, 2020 Posted October 29, 2020 There are no A0 or A1 pins on Arduino Leonardos. You are using pins F7 and F6. https://raw.githubusercontent.com/MMjoy/mmjoy_en/master/img/Board%20pinouts/Pins_Arduino%5Bleonardo%5D.png Cougar, CH and Saitek PnP hall sensor kits + shift registers: https://forums.eagle.ru/showthread.php?t=220916 Shapeways store for DIY flight simming equipment and repair: https://www.shapeways.com/shops/rel4y-diy-joystick-flight-simming
Sokol1_br Posted October 29, 2020 Posted October 29, 2020 You are using an Thrustmaster grip, and Arduino+MMJoy2, a combination used with success by dozen of persons. So forget these links with code theory and follow tested recipes. In MMjoy2 package you have a scheme of how wire Thrustmaster grips in MMjoy2: https://i.postimg.cc/x87t30Nd/Handle...ing-Colors.jpg Looks like that brown and orange and yellow wires are swapped in your connections. As Rel4y post above, in MMJoySetup the names of pins is the hexadecimal numbers of MMjoy2 scheme, not the numbers labeled in Arduino.
01G8R Posted October 29, 2020 Author Posted October 29, 2020 Yes, thank you. I switched that per my previous post and still no joy.
01G8R Posted October 29, 2020 Author Posted October 29, 2020 Please note my wire colors do not match up to the stock colors, but attached is how they are connected. Do I need to identify the SPI-SCK in MMJoy?
rel4y Posted October 29, 2020 Posted October 29, 2020 Make sure to use MMJoy ver [v20160818upd1] as the newer one has a bug and the older ones are obsolete. Also make sure to reflash your Arduino with this MMJoy version. The version on the board and the exe need to be the same! I will look into your wiring shortly. (click on Downloads, select the correct version) https://translate.googleusercontent.com/translate_c?act=url&depth=1&hl=de&ie=UTF8&prev=_t&pto=aue&rurl=translate.google.de&sl=ru&sp=nmt4&tl=en&u=https://sites.google.com/site/mmjoyproject/fajly-dla-skacivania&usg=ALkJrhgi6r14-KngGvDS8i28dP4juRcDBw Cougar, CH and Saitek PnP hall sensor kits + shift registers: https://forums.eagle.ru/showthread.php?t=220916 Shapeways store for DIY flight simming equipment and repair: https://www.shapeways.com/shops/rel4y-diy-joystick-flight-simming
01G8R Posted October 29, 2020 Author Posted October 29, 2020 Thanks. I have verified that I am using MMJoy ver [v20160818upd1] and it is loaded on the Arduino properly.
rel4y Posted October 29, 2020 Posted October 29, 2020 Wiring on the Arduino looks OK. Your connections to the Mini DIN I cant check. Have you saved your settings in MMJoy? Id check the Mini DIN connections again, its easy to mess them up. VCC = orange GND = blue SCK = yellow CS = red DTA = brown Cougar, CH and Saitek PnP hall sensor kits + shift registers: https://forums.eagle.ru/showthread.php?t=220916 Shapeways store for DIY flight simming equipment and repair: https://www.shapeways.com/shops/rel4y-diy-joystick-flight-simming
01G8R Posted October 29, 2020 Author Posted October 29, 2020 Thanks for checking it over. I have saved the settings in MMJoy. I pulled the Mini Din connector apart and re-wired so my colors match the stock TM. I have verified continuity from the end of my connector to the plug inside the TM grip. Still not getting anything with a button press. I'm sure I am missing something. Thanks for the help.
01G8R Posted October 30, 2020 Author Posted October 30, 2020 Something is wrong here. I have tried two different boards with MMjoy and a board with FreeJoy. None of them work. I wired a completely new Din connector and checked continuity. My next step is to try and test the grip on a Warthog base. Unfortunately I don't have one. I bought the stand alone grip for this project so I don't have any way to test it right now. Possibly I bricked the grip working on it.
Sokol1_br Posted October 30, 2020 Posted October 30, 2020 Open your Grip and look what are the colors of wires going from PCB to mini-DIN (PS2) connector.
01G8R Posted October 30, 2020 Author Posted October 30, 2020 See attached. The colors inside the grip for the Mini-Din are Green, Yellow, Orange, Red, Brown. My Mini-Din cable is now wired the same colors (was different in previous pictures) and I have continuity from the end of my wires to the connector inside the grip with no shorts.
Sokol1_br Posted October 30, 2020 Posted October 30, 2020 The colors inside the grip for the Mini-Din are Green, Yellow, Orange, Red, Brown. Is the same of MMjoy2 scheme (J7): Green = Gnd Brown = +5V Yellow = MISO (Data) Orange = SCK Red = CS Brown = +5v And the same of what Terril Dactil track:
01G8R Posted October 31, 2020 Author Posted October 31, 2020 The colors are the same in the two pictures, but the pinout is different. For the shift register to work in MMJoy are any settings other than Chip, Qty, CS, and Data?
01G8R Posted October 31, 2020 Author Posted October 31, 2020 I think I may have identified some kind of issue. When I have the shift register settings in the attached photo and nothing hooked up to the grip I get what is shown in the video. Buttons flashing on and off. I have tested this with multiple sets of wires. When wires are hooked up it all goes wonky. Is this normal?
01G8R Posted October 31, 2020 Author Posted October 31, 2020 Got the same behavior with Pro Micro and Leonardo. Also same with FreeJoy. I thought maybe some kind of interference so I got a 2 meter USB cable and moved everything away from the computer. Same results.
Recommended Posts