Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: "Easy" SDR hf transceiver

  1. #1
    Junior Member stefanodi's Avatar
    Join Date
    May 2022
    Location
    Vicenza Italy
    Posts
    7

    "Easy" SDR hf transceiver

    Hi everyone, I recently discovered Teensy 4.0 ... Wonderful! My idea is to create an "easy-to-build" HF SDR RTX. For the moment, without many filters and particular functions... I made an SDR RX PART using Derek Rowell's excellent libraries. I added the TX only SSB part based on Charlie Morris-ZL2CTM code.(http://zl2ctm.blogspot.com/2019/06/h...sing-rig.html) .See my part of the code here ... I kindly ask for help to add the SDR AM TX PART to complete the RTX. Thanks and best regards. Stefano Italy
    Click image for larger version. 

Name:	teensy 4.jpg 
Views:	39 
Size:	37.2 KB 
ID:	28480
    Code:
    //////TX PARTS
    void trasmetti()
    {
      
      if (SSB == 1){
        
      sendFreqTXSSB();  
     digitalWrite(outRELE, HIGH );//////////////////////////rele' tx   
     
      }else{
    
        sendFreqTXAM();////////////////////THI IS FOR SWITCH SDR SSB TX TO ANALOGIC A.M. TX
       digitalWrite(outRELE, LOW );//////////////////////////rele' tx  
      }
      SDR.setMute(true);
    
      /////////////////////////////ACCENDE TX//////////////////////////
      AudioNoInterrupts();
        codec.inputSelect(AUDIO_INPUT_LINEIN);
       codec.volume(1.0);
      codec.lineInLevel(8);  // 
      codec.lineOutLevel(0); // 
      amp1.gain(9.0);
      amp2.gain(9.0);  
     
      codec.unmuteLineout();                                          // Output to the TX
      codec.lineOutLevel(31);
      TX_Hilbert_Plus_45.begin(Hilbert_Plus_45, NO_HILBERT_COEFFS);
      TX_Hilbert_Minus_45.begin(Hilbert_Minus_45, NO_HILBERT_COEFFS);
      AudioInterrupts();
     avgbande = avgbande/100;
      Update_Panadapter();
    tft.fillCircle(430, 30, 14, RED);//bollinor tx
    tft.setFont(&Round_Regular10pt7b);
    tft.setCursor(418,25);
     tft.setTextColor(YELLOW);
     tft.print("TX");
        
    }

  2. #2
    Junior Member stefanodi's Avatar
    Join Date
    May 2022
    Location
    Vicenza Italy
    Posts
    7

    "Easy" SDR hf transceiver "SOLVED"

    Quote Originally Posted by stefanodi View Post
    Hi everyone, I recently discovered Teensy 4.0 ... Wonderful! My idea is to create an "easy-to-build" HF SDR RTX. For the moment, without many filters and particular functions... I made an SDR RX PART using Derek Rowell's excellent libraries. I added the TX only SSB part based on Charlie Morris-ZL2CTM code.(http://zl2ctm.blogspot.com/2019/06/h...sing-rig.html) .See my part of the code here ... I kindly ask for help to add the SDR AM TX PART to complete the RTX. Thanks and best regards. Stefano Italy
    Click image for larger version. 

Name:	teensy 4.jpg 
Views:	39 
Size:	37.2 KB 
ID:	28480
    Code:
    //////TX PARTS
    void trasmetti()
    {
      
      if (SSB == 1){
        
      sendFreqTXSSB();  
     digitalWrite(outRELE, HIGH );//////////////////////////rele' tx   
     
      }else{
    
        sendFreqTXAM();////////////////////THI IS FOR SWITCH SDR SSB TX TO ANALOGIC A.M. TX
       digitalWrite(outRELE, LOW );//////////////////////////rele' tx  
      }
      SDR.setMute(true);
    
      /////////////////////////////ACCENDE TX//////////////////////////
      AudioNoInterrupts();
        codec.inputSelect(AUDIO_INPUT_LINEIN);
       codec.volume(1.0);
      codec.lineInLevel(8);  // 
      codec.lineOutLevel(0); // 
      amp1.gain(9.0);
      amp2.gain(9.0);  
     
      codec.unmuteLineout();                                          // Output to the TX
      codec.lineOutLevel(31);
      TX_Hilbert_Plus_45.begin(Hilbert_Plus_45, NO_HILBERT_COEFFS);
      TX_Hilbert_Minus_45.begin(Hilbert_Minus_45, NO_HILBERT_COEFFS);
      AudioInterrupts();
     avgbande = avgbande/100;
      Update_Panadapter();
    tft.fillCircle(430, 30, 14, RED);//bollinor tx
    tft.setFont(&Round_Regular10pt7b);
    tft.setCursor(418,25);
     tft.setTextColor(YELLOW);
     tft.print("TX");
        
    }
    Read here: https://forum.pjrc.com/threads/70549...X-code-request

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •