====== Simple Pedestal ======
===== About Pedestals =====
A pedestal is a device that is mounted onto the collective base to extend its functionality. A few of them are currently available under the MKIV line of hardware. \\ The recommended default option for flying in VR is the [[http://hc625ma.org/wiki/doku.php?id=simchair4:guide_pedestal_simple|Simple Pedestal]]. If you use radios often, try this VRMax II Pedestal instead.
\\ {{http://hc625ma.org/wp-content/uploads/2019/07/15627830635082538391043702422025-1024x1024.jpg?100 |Simple Pedestal}} {{http://hc625ma.org/wp-content/uploads/2019/08/IMG_20190805_000943-1024x1024.jpg?100|VRMaxII Pedestal}}
===== Summary =====
This is an advanced version of the [[http://hc625ma.org/wiki/doku.php?id=simchair4:guide_pedestal_simple|Simple Pedestal]], a universal mouse replacement device for VR. \\ It features a single **knob emulating the mousewheel** and a **ministick to control a cursor** – __that means you can control any knob in the cockpit__ no matter how many of them are there. That also means that you can use your left hand to comfortably operate switches and radios while flying.
There’s also a radio panel! This device is called VRMax II Pedestal because it addresses two main problems of VRMax collective head: weight and complexity of use.
VRMax Collective Head is cool, but it’s heavy, thus can’t be used with motion platforms. While it sure has a lot of knobs and covers most of what we need for flying stuff with classic gauges and radio stack, it can’t cover everything we may encounter across various sims and models. That’s why I thought of making a more universal device, that will be simple, functional, and comfortable to use.
\\ {{http://hc625ma.org/wp-content/uploads/2019/08/IMG_20190805_000943.jpg?300 }}
{{http://hc625ma.org/wp-content/uploads/2019/08/IMG_20190805_001022.jpg?300}}
===== Components =====
* 4 x MTS-123 or MTS-103 switches
* 5 x PEC16-4220F-S0024 encoder
* 4 x PBS-10B2 buttons
* 1 x KY-023 ministick board
* 1 x Bourns PTD901-2015K-B103 10K resistor
* 1 x RCL371-1-1-1-8 rotary switch
* 2 x TJ8P8C Ethernet socket
* 4 x M3x35mm screws and nuts
* 4 x M3x30mm screws and nuts
* 2 x Arduino Pro Mini
===== Downloads =====
[[https://github.com/hc625ma/simchair4_models/tree/master/printable%20components/peripherals/helicopter/collective%20lever/ab_pedestals/vmax2_pedestal|STL’s / Sources]] \\ [[https://github.com/hc625ma/simchair4_software/tree/master/peripherals/vrmaxII_pedestal|Software]]
===== Assembly guide =====
1. Insert switches, encoders and buttons into the panel.
\\ {{http://hc625ma.org/wp-content/uploads/2019/08/15648694375605818824301566952539.jpg?300 }}
{{http://hc625ma.org/wp-content/uploads/2019/08/15648694916451311973442337548968.jpg?300}}
2. Assemble the simple pedestal part of the device by following the corresponding manual. There will be 2 deviations: you will need to make an I2C (pins A4 and A5) tie to connect to the other board, and you will need to connect RST pins of Arduinos together with a wire.
\\ {{http://hc625ma.org/wp-content/uploads/2019/08/15648702603085758027848464248218.jpg?200 }}
{{http://hc625ma.org/wp-content/uploads/2019/08/15648702815506616173327286318331.jpg?200 }}
{{http://hc625ma.org/wp-content/uploads/2019/08/15648705211163180585785590340510.jpg?200 }}
{{http://hc625ma.org/wp-content/uploads/2019/08/15648708074737694495169583187090.jpg?200 }}
{{http://hc625ma.org/wp-content/uploads/2019/08/15648711772052161011481505504385.jpg?200 }}
{{http://hc625ma.org/wp-content/uploads/2019/08/15648721104623394120990686080338.jpg?200 }}
{{http://hc625ma.org/wp-content/uploads/2019/08/15648721330357637026666652761697.jpg?200 }}
{{http://hc625ma.org/wp-content/uploads/2019/08/15648724782736998437012863598289.jpg?200 }}
{{http://hc625ma.org/wp-content/uploads/2019/08/15648725316106055534263955450171.jpg?200 }}
{{http://hc625ma.org/wp-content/uploads/2019/08/15648725728438784977954300745613.jpg?200}}
A small difference: we will be connecting RST button wire to both boards, so make it longer or make a tie as shown on the pic above.
\\ {{http://hc625ma.org/wp-content/uploads/2019/08/15648729444854023160457366472146.jpg?200 }}
{{http://hc625ma.org/wp-content/uploads/2019/08/15648735193153057029977544843931.jpg?200 }}
{{http://hc625ma.org/wp-content/uploads/2019/08/15648770220227694570490910826245.jpg?200}}
3. Check that the simple pedestal part works by flashing it with its firmware. Make sure to use controller A firmware from VRMaxII pedestal folder.
4. Solder the ground wite to the radio panel part. The lid of the rotary switch is removed so you can see GND pins (4 pins connected to the central ring).
\\ {{http://hc625ma.org/wp-content/uploads/2019/08/15649356375312289811817982035486.jpg?300 }}
{{http://hc625ma.org/wp-content/uploads/2019/08/15649360646233860104486779123591.jpg?300}}
5. Attach a 8-wire cable to pins of the rotary switch, starting from the top one, that’s nearest to the nut. Red numbers show Arduino pins:
\\ {{http://hc625ma.org/wp-content/uploads/2019/08/vrmax2_pedestal_rotary_sw_wiring.png?300}}
6. Attach another 8-wire cable to encoders, from right to left, as shown in the picture below. Red numbers show Arduino pins:
\\ {{http://hc625ma.org/wp-content/uploads/2019/08/vrmax2_pedestal_enc_wiring.png?300}}
7. Solder an UART header to another Arduino board and remove LED on pin 13.
8. Solder encoders and rotary switch cable according to red pin numbers show in their corresponding pictures.
\\ {{http://hc625ma.org/wp-content/uploads/2019/08/15649408092886388731758007973451.jpg?300 }}
{{http://hc625ma.org/wp-content/uploads/2019/08/15649412106755293541046621323566.jpg?300}}
9. Connect two radio panel buttons to pins A1 and A2 of the simple pedestal Arduino board, right one to A1, left one to A2.
\\ {{http://hc625ma.org/wp-content/uploads/2019/08/15649414409701839499003139257328.jpg?300 }}
{{http://hc625ma.org/wp-content/uploads/2019/08/15649415546251463633228557823815.jpg?300}}
10. Solder a 7-wire cable to another ethernet socket, starting from pin 1. IMPORTANT: last 3 wires go to Rx, Tx, and DTR pins of the 2nd board!
\\ {{http://hc625ma.org/wp-content/uploads/2019/07/RJ-45-Pinout-T-568B-pin-diagram.jpg?300}}
* SOCKET PIN 1 (WHITE-ORANGE wire of Ethernet cable) -> 5V
* SOCKET PIN 2 (ORANGE wire of Ethernet cable) -> GND
* SOCKET PIN 3 (WHITE-GREEN wire of Ethernet cable) -> SCL
* SOCKET PIN 4 (BLUE wire of Ethernet cable) -> SDA
* SOCKET PIN 5 (WHITE-BLUE wire of Ethernet cable) -> PRO MINI #2 Rx
* SOCKET PIN 6 (GREEN wire of Ethernet cable) -> PRO MINI #2 Tx
* SOCKET PIN 7 (WHITE-BROWN wire of Ethernet cable) -> PRO MINI #2 DTR
{{http://hc625ma.org/wp-content/uploads/2019/08/15649417384513378815491116597572.jpg?300}}
11. Solder Connect 5V and GND wires of the Ethernet socket to KY-023 board and then to the radio panel Pro Mini board.
\\ {{http://hc625ma.org/wp-content/uploads/2019/08/15649426775417216870911354055646.jpg?300 }}
{{http://hc625ma.org/wp-content/uploads/2019/08/15649427990505829547444680827383.jpg?300}}
12. Solder RST wire from the 1st board to the radio panel one.
13. Make a tie of SDA (pin A4) and SCL (pin A5) wires from the simple pedestal board and connect them to the radio panel one. Use some shrink tube to hold wires together.
\\ {{http://hc625ma.org/wp-content/uploads/2019/08/15649428731372785154605501004841.jpg?300 }}
{{http://hc625ma.org/wp-content/uploads/2019/08/15649433934834173789602384401924.jpg?300}}
14. Connect wires 5,6 and 7 of the Ethernet socket to RX, TX and DTR pins on UART header of the radio panel Arduino board.
\\ {{http://hc625ma.org/wp-content/uploads/2019/08/15649435197752467378917251018661.jpg?300}}
15. Do some cable management, close the lid and try if everything works! To do it, flash the simple pedestal part of the device (LEFT SOCKET) with ''**vrmaxII_pedestal_a.ino**'' and the radio panel part (RIGHT SOCKET) with ''**vrmaxII_pedestal_b.ino**'' firmware.
Uncomment
#define VRMAXII_PEDESTAL
in ''**//device definitions//**'' tab of master controller firmware.
Open the [[https://html5gamepad.com/|HTML5 gamepad tester]] website and check that all buttons work in all modes. If moluse pointer moves when you connect the device, adjust
#define X_CENTER
#define Y_CENTER
values under the configuration tab to suit your hardware (Serial.print these values under the ''**//ga_vrmaxii_pedestal tab//**'' to check them)
Check that the pointer works good, and adjust the sensitivity setting to your liking:
#define MINISTICK_SENSITIVITY_LOW 5
#define MINISTICK_SENSITIVITY_HIGH 15
You may want something like low 1 and high 5 if the collective is your only device, and higher values if the board has a lot of stuff connected to it. Reflash the board again and check if pointer speed satisfies you, repeat the process if necessary.
16. Finish the device by pouring some hot glue onto Ethernet sockets and close the lid. Put knob caps on.
\\ {{http://hc625ma.org/wp-content/uploads/2019/08/IMG_20190805_000943-1-1024x1024.jpg?300}}
----
Congratulations, your pedestal is finished! :)