Radio unit - alesskerbinek/FlightSimPanel GitHub Wiki
General
The purpose of this unit is to simulate the Radio communication transceivers like:
Features:
No | Type | Item | Function |
---|---|---|---|
1x | input | Rotary Encoder with push button | Frequency select |
2x | input | Pushbuttons | Switch, Emergency |
4x | output | 3 Digit 7-segment display | Active and Standby frequency |
1x* | input | Rotary Encoder with push button | Volume |
* optional
Functional description
Left two 3 Digit 7-segment display are used for showing active frequency and right two for standby frequency. The frequency is shown in MMM.KKK format (three digits for MHz section and three digits for kHz section) to support 8.33 kHz channels.
Right rotary changes standby frequency, clicking changes between MHz and kHz sections.
Left rotary changes volume setting and momentarily shows volume value instead of stand by frequency. After timeout (2s), stand by frequency is shown again. If rotating right rotary while volume value is displayed, it shows stand by frequency instead.
Right rotary long press turns unit on/off.
Hardware supports adding potentiometer instead of left rotary encoder (for volume). Check PCB schematics for which components must be removed as well. Then potentiometer is used as voltage divider and it's value can be read with ESP32 native ADC. In such case the software has to modified as well of course.
Used DataRefs and Commands
Unit | Type | Direction | String | Function |
---|---|---|---|---|
Com 1 | DataRef | Read & Write | sim/cockpit2/radios/actuators/com1_frequency_hz_833 | Read active frequency and set Emergency frequency |
Com 1 | DataRef | Read | sim/cockpit2/radios/actuators/com1_standby_frequency_hz_833 | Read standby frequency |
Com 1 | Command | Write | sim/radios/stby_com1_coarse_up | Increase standby frequency MHz |
Com 1 | Command | Write | sim/radios/stby_com1_coarse_down | Decrease standby frequency MHz |
Com 1 | Command | Write | sim/radios/stby_com1_fine_up_833 | Increase standby frequency kHz |
Com 1 | Command | Write | sim/radios/stby_com1_fine_down_833 | Decrease standby frequency kHz |
Com 1 | Command | Write | sim/radios/com1_standy_flip | Flip active and standby frequency |
Com 2 | DataRef | Read & Write | sim/cockpit2/radios/actuators/com2_frequency_hz_833 | Read active frequency and set Emergency frequency |
Com 2 | DataRef | Read | sim/cockpit2/radios/actuators/com2_standby_frequency_hz_833 | Read standby frequency |
Com 2 | Command | Write | sim/radios/stby_com2_coarse_up | Increase standby frequency MHz |
Com 2 | Command | Write | sim/radios/stby_com2_coarse_down | Decrease standby frequency MHz |
Com 2 | Command | Write | sim/radios/stby_com2_fine_up_833 | Increase standby frequency kHz |
Com 2 | Command | Write | sim/radios/stby_com2_fine_down_833 | Decrease standby frequency kHz |
Com 2 | Command | Write | sim/radios/com2_standy_flip | Flip active and standby frequency |