Results 1 to 5 of 5
  1. #1
    500+ This must be a daytime job Boeing 747 Flyer's Avatar
    Join Date
    Nov 2009
    Location
    England
    Posts
    771
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    LDS767 encoder for Left Hf Radio?

    Hi Nico,

    Just a quick question here. What sort of rotary encoder(s) will I need for the left HF radio?

    The reason I ask is, the LDS767 has many hidden and tricky to use clickspots to control the HF frequency, so I am a little worried incase rotary encoders cannot do the job alone.

    I also ask because, in the manual, I can only see support for the USB/Am rotary switch. there seems to be nothing there for the encoders to tune the frequency.

    Jack

  2. #2
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,198
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: LDS767 encoder for Left Hf Radio?

    Hi Jack,

    For convenience, you need two (gray type) rotary encoders for a HF radio.
    Your fellow countryman Mick Wood has already built a complete overhead for the 767, his SIOC script is in the lekseecon downloads section. Here is his left HF Radio part (based on two rotary encoders, 5 display digits and a 3 position rotary switch).

    Code:
    //*****************************************************************
    // Left HF radio Info and commands
    
    Var 65 Static name X_HFLFreq 
    {
      IF &HFLFreq <> &X_HFLFreq // block outgoing values from rotary
      {
        // new incoming value from panel:
        &HFLFreq = &X_HFLFreq
        L0 = DIV &X_HFLFreq 100
        &HFLFreqH = L0
        L1 = MOD &X_HFLFreq 100
        &HFLFreqL = L1
    
        CALL &OutHFLFreq    // and display new freq value 
      }
    }
    
    Var 2601 name HFLFreqL
    Var 2602 name HFLFreqH
    Var 2603 name HFLFreq
    
    Var 2604 name CalcHFLFreq Link SUBRUTINE
    {
      L0 = &HFLFreqH * 100         // high * 100 
      &HFLFreq = L0 + &HFLFreqL    // + low 
      &X_HFLFreq = &HFLFreq        // value to panel 
      CALL &OutHFLFreq            // and display new freq value 
    }
    
    Var 2605 name OutHFLFreq Link SUBRUTINE  
    {
      IF &ColdAndDark = 1
      {
        &D_HFLFreq = -999999      // blank display
        &O_HFLDP = 0   
      }
      ELSE
      {  
        IF &TestOvhd = 1
         {
          &D_HFLFreq = 88888 
          &O_HFLDP = 1  
        }
        ELSE 
        {
          C0 = &HFLeftOFF = 1               // radio OFF
          C1 = TESTBIT v706 8   // left bus light OFF    
          IF C0 OR C1
          {
            &D_HFLFreq = -999999      // blank display
            &O_HFLDP = 0   
          }
          ELSE
          {  
            &D_HFLFreq = &HFLFreq   // to display 
            &O_HFLDP = 1  
          }
        }
      }
    }
    
    Var 66 Static name HFLeftOFF Link IOCARD_SW Input 150 Type I  
    {
        CALL &OutHFLFreq    
    }
       
    Var 67 Static name HFLeftUSB Link IOCARD_SW Input 151 Type I
    {
        CALL &OutHFLFreq    
    }
        
    Var 68 Static name HFLeftAM Link IOCARD_SW Input 152 Type I
    {
        CALL &OutHFLFreq    
    }
    
    Var 2606 name RO_HFLFRQL Link IOCARD_ENCODER Input 145 Aceleration 2 Type 2 
    {
      IF &HFLeftOFF = 0
      { 
        L0 = &RO_HFLFRQL // * 5
        &HFLFreqL = ROTATE 0, 99, L0
        CALL &CalcHFLFreq 
      }
    }
    
    Var 2607 name RO_HFLFRQH Link IOCARD_ENCODER Input 147 Aceleration 1 Type 2
    {
      IF &HFLeftOFF = 0
      { 
        L0 = &RO_HFLFRQH 
        &HFLFreqH = ROTATE 20, 299, L0
        CALL &CalcHFLFreq 
      }
    }
    
    Var 2608 name D_HFLFreq Link IOCARD_DISPLAY Digit 67 Numbers 5   
    Var 2609 name O_HFLDP Link IOCARD_OUT Device 1 Output 103
    Nico

  3. #3
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,198
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: LDS767 encoder for Left Hf Radio?

    Quote Originally Posted by Boeing 747 Flyer View Post
    there seems to be nothing there for the encoders to tune the frequency.
    no, that is not true, Var 65 is of type Vrw (read-write), so that is the variable to tune the frequency...

  4. #4
    500+ This must be a daytime job Boeing 747 Flyer's Avatar
    Join Date
    Nov 2009
    Location
    England
    Posts
    771
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: LDS767 encoder for Left Hf Radio?

    Hi Nico,

    Thanks very much for that information.

    Are these good for the job? http://www.opencockpits.com/catalog/...ml?cPath=24_58

    Also, are you sure it is just two encoders for the whole thing? What I mean is, if you go onto the LDS767 software, you cannot tune the frequency with just two encoders. You need to use all sorts of fancy clickspots (4 in total).

  5. #5
    2000+ Poster - Never Leaves the Sim kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    2,198
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: LDS767 encoder for Left Hf Radio?

    Quote Originally Posted by Boeing 747 Flyer View Post
    Yes, perfect.

    Quote Originally Posted by Boeing 747 Flyer View Post
    Also, are you sure it is just two encoders for the whole thing? What I mean is, if you go onto the LDS767 software, you cannot tune the frequency with just two encoders. You need to use all sorts of fancy clickspots (4 in total).
    Yes I'm sure (like I wrote, you are not the first in the UK to build the Level-D 767 HF radio ... )
    These click spots are for increment and decrement, 4 click spots is the same as 2 rotary encoders.

    Note that you could even build this radio with just one encoder but then it takes lots of turns to tune ... However, with the push button in the shaft you could switch between the high and the low digits. So it's either a dual rotary enoder or a single rotary encoder with push button, does not matter, in SIOC everything is possible

    Nico

Similar Threads

  1. Radio Encoder help
    By cesarfsim in forum OpenCockpits General Discussion
    Replies: 2
    Last Post: 10-30-2010, 08:56 AM
  2. How to program a rotary switch - LDS767?
    By Boeing 747 Flyer in forum General Builder Questions All Aircraft Types
    Replies: 2
    Last Post: 04-26-2010, 04:35 PM
  3. What's left to add on?
    By Tomlin in forum Cockpit Software: Miscellaneous
    Replies: 7
    Last Post: 01-06-2009, 07:19 PM
  4. Radio encoder wiring
    By Jackpilot in forum General Builder Questions All Aircraft Types
    Replies: 1
    Last Post: 08-29-2008, 05:13 PM