{"id":459,"date":"2015-08-02T13:27:08","date_gmt":"2015-08-02T11:27:08","guid":{"rendered":"http:\/\/pa0rwe.nl\/?page_id=459"},"modified":"2020-06-24T21:12:41","modified_gmt":"2020-06-24T19:12:41","slug":"teensy-3-1","status":"publish","type":"page","link":"https:\/\/pa0rwe.nl\/?page_id=459","title":{"rendered":"Teensy SDR"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1613 aligncenter\" src=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2019\/10\/Teensy-SDR_5-600x276.jpg\" alt=\"\" width=\"600\" height=\"276\" srcset=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2019\/10\/Teensy-SDR_5-600x276.jpg 600w, https:\/\/pa0rwe.nl\/wp-content\/uploads\/2019\/10\/Teensy-SDR_5-768x354.jpg 768w, https:\/\/pa0rwe.nl\/wp-content\/uploads\/2019\/10\/Teensy-SDR_5-1024x472.jpg 1024w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><span style=\"color: #0000ff;\"><em><span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/rheslip.blogspot.com\/2015\/03\/teensy-sdr-transceiver-description_17.html\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"text-decoration: underline;\">https:\/\/rheslip.blogspot.nl\/2015\/01\/teesy-sdr-project-update.html<\/span><\/a><\/span><br \/>\n<span style=\"color: #0000ff;\"><a style=\"color: #0000ff;\" href=\"https:\/\/www.antratek.nl\/boards\/teensy\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.antratek.nl\/boards\/teensy<br \/>\n<\/a><\/span><\/em><em><a style=\"color: #0000ff;\" href=\"https:\/\/learn.sparkfun.com\/tutorials\/teensy-arduino-shield-adapter-hookup-guide\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/learn.sparkfun.com\/tutorials\/teensy-arduino-shield-adapter-hookup-guide<\/a><\/em><br \/>\n<span style=\"color: #000000;\"><span style=\"color: #0000ff;\"><em><a style=\"color: #0000ff;\" href=\"https:\/\/www.youtube.com\/channel\/UCz7YtteHS_qk7aumEbhIShg\/videos\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/www.youtube.com\/channel\/UCz7YtteHS_qk7aumEbhIShg<\/a><\/em><\/span>\u00a0\u00a0 (some interesting video&#8217;s how the Teensy SDR is working)<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p>A friend of my want to build the Teensy-SDR designed by Rich Heslip VE3MKC, so he asked me to test the software and made it ready for loading it in his Teensy 3.1. Because I like that challenge I bought a Teensy and set-up my Arduino IDE for the Teensy and start testing. Besides some missing libraries the software was compiling without further errors.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-695 aligncenter\" src=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2015\/08\/Teensy-SDR-600x400.jpg\" alt=\"Teensy-SDR\" width=\"600\" height=\"400\" \/><\/p>\n<p>But the next question was to change the original 1.8&#8243; TFT screen to a 3.2&#8243; TFT screen. That was some more work but I also succeeded. But the only problem is that I did not have the needed Audio shield for the Teensy to do the audio work and also display the audio spectrum including a waterfall display.<\/p>\n<p>I also bought a Sparkfun Teensy-Arduino adapter to make it possible using Arduino shields on the Teensy. This board is implemented and in use for testing the Teensy-SDR software. See the picture above.<\/p>\n<p><strong>A new Teensy-SDR design&#8230;<\/strong><br \/>\nThings are going fast&#8230;\u00a0 Frank, DD4WH has build his own Teensy-SDR based on the Teensy-SDR designed by Rich. He was willing to sent his software and I&#8217;m impressed how it looks.<br \/>\nBecause this SDR uses a Real Time Clock, I installed the backup battery and the clock x-tal (which is part of the Sparkfun kit) and after compiling, the RTC was running, which you can see on the display. The next step is, after I received the Audio shield, to test the SDR and replace the 1.8&#8243; 128&#215;160 by a 3.2&#8243;\u00a0 240&#215;320 TFT screen ( I used the 3.2&#8243; RPi LCD V4 screen from WaveShare).<\/p>\n<p><em>\u00a0<\/em><\/p>\n<div id=\"attachment_821\" style=\"width: 610px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2015\/08\/100_2634-e1449153353637.jpg\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-821\" class=\"size-medium wp-image-821\" src=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2015\/08\/100_2634-e1449153353637-600x400.jpg\" alt=\"Teensy-SDR DD4WH\" width=\"600\" height=\"400\" srcset=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2015\/08\/100_2634-e1449153353637-600x400.jpg 600w, https:\/\/pa0rwe.nl\/wp-content\/uploads\/2015\/08\/100_2634-e1449153353637-1024x683.jpg 1024w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><p id=\"caption-attachment-821\" class=\"wp-caption-text\">Teensy-SDR DD4WH<\/p><\/div>\n<p>I have modified the software from Frank for using\u00a0 a 3.2&#8243; 320&#215;240 pixel TFT display.\u00a0 That was really a job because the positions of all the displayed functions should be changed. Especially the spectrum display was a challenge! Below you can see the results.\u00a0 Frank has made 6 modifications on his software, which you can find (including the software) on the blog of Rich Heslip. See the link at the top of this page.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Download<\/strong><\/span> the Teensy-SDR software modified for the 3.2&#8243; TFT screen (with permission of Frank DD4WH).<br \/>\nLatest version with better performance but not proper working sound recording download <a href=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2018\/10\/Teensy_SDR_DD4WH_NewDesign.zip\"><span style=\"color: #0000ff;\"><em>from here<\/em><\/span><\/a>\u00a0 (New Design) or<br \/>\nLast but one version with good working sound recorder download <a href=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2018\/10\/Teensy_SDR_DD4WH_OldDesign.zip\" rel=\"noopener\"><span style=\"color: #0000ff;\"><em>from here<\/em><\/span><\/a> (Old Design).<br \/>\n<strong>Notes:<br \/>\n<\/strong>&#8211;\u00a0 Both sketches are updated (10\/2018) with smoother bandwidth graphics and displayed bandwidth text.<br \/>\n&#8211;\u00a0 You need the old version of the si5351 library (renamed to: RWE_si5351) the old Audio and the Time(Lib) library as well, which you can download\u00a0 <a href=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2020\/06\/Teensy_SDR_libs.zip\"><span style=\"color: #0000ff;\"><em>from here<\/em><\/span><\/a> . <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21\" src=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2015\/07\/updated.gif\" alt=\"\" width=\"44\" height=\"12\" \/><\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Important notice:\u00a0 <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21\" src=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2015\/07\/updated.gif\" alt=\"\" width=\"44\" height=\"12\" \/><br \/>\n<\/strong><\/span>&#8211;\u00a0 I&#8217;m using the Arduino IDE version 1.8.13.\u00a0 The sketch is modified for compiling with version 1.8.13. with no errors.<br \/>\n&#8211;\u00a0 But you need the <strong>Audio lib<\/strong> from the <strong>old version 1.40<\/strong> of the <strong>TeensyduinoInstall<\/strong> software. This is because in the newer versions the Audio lib is updated en causes errors during compiling.<br \/>\n&#8211;\u00a0 You can find the old audio lib in the Libraries download as well. Copy that library in your libraries folder.\u00a0 <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21\" src=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2015\/07\/updated.gif\" alt=\"\" width=\"44\" height=\"12\" \/><\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Building the Teensy SDR hardware<br \/>\n<\/strong><\/span>The assembly wiring diagram can be download <span style=\"color: #0000ff;\"><em><a style=\"color: #0000ff;\" href=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2018\/11\/Teensy-SDR-connections.pdf\" target=\"_blank\" rel=\"noopener noreferrer\">from here<\/a><\/em><\/span>.<br \/>\nInstructions how to assemble the Teensy-Arduino-Shield can be found <a href=\"https:\/\/learn.sparkfun.com\/tutorials\/teensy-arduino-shield-adapter-hookup-guide\"><span style=\"color: #0000ff;\"><em>here<\/em><\/span><\/a>.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Using external power\u00a0\u00a0 <\/strong><\/span><br \/>\nIf you want to run the Teensy-SDR not only on USB power, you have to remove a small track between the two pads (left from the Vin pin) on the backside of the Teensy board. See picture below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1607\" src=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2019\/10\/Teensy_mod.jpg\" alt=\"\" width=\"387\" height=\"306\" \/><\/p>\n<p>It&#8217;s also a good idea to add a 150uF capacitor on the two <em>big<\/em> pads.<br \/>\nSolder on the <strong>backside of the Teensy-Arduino-Shield<\/strong>\u00a0 a diode between the Vin and VUSB connections so you can use the Teensy-SDR on USB- or 12V external power as well. Solder the <strong>cathode<\/strong> on the Vin point and the <strong>anode<\/strong> on the VUSB point. See picture below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1498\" src=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2018\/11\/Shield_mod.jpg\" alt=\"\" width=\"230\" height=\"286\" \/><\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Before compiling<\/strong><\/span> make sure that the Si5351 board settings (X-tal freq and I2C address) in the RWE_si5351.h file are the right ones for your board.<\/p>\n<p><strong><span style=\"text-decoration: underline;\">Before starting the software:<br \/>\n<\/span><\/strong>&#8211;\u00a0 Be sure that a micro SD card (4 Gb) is inserted in the SD slot on the audio board otherwise the software won&#8217;t start.<br \/>\nStarting the software for first time use you have to initialize the EEPROM by the following steps:<br \/>\n&#8211;\u00a0 Remark (\/\/) the EEPROMLOAD line in the Setup section of the sketch (Line 657 in Old Design or line 681 in New design sketch).<br \/>\n&#8211;\u00a0 Recompile the software and run the SDR.<br \/>\n&#8211;\u00a0 Save your settings with the Menu-1 Save option.<br \/>\n&#8211;\u00a0 Remove the remark (\/\/) from the EEPROMLOAD line.<br \/>\n&#8211;\u00a0 Recompile.<br \/>\n&#8211;\u00a0 Start the SDR.<\/p>\n<p><strong>Note:<\/strong> When you find that the unwanted sideband (using LSB or USB) is badly suppressed then you probably are using an old Teensy Audio library. Please update in that case the library to the latest version.<\/p>\n<p><span style=\"text-decoration: underline;\"><strong>Calibrating the Si5351 Clock <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21\" src=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2015\/07\/updated.gif\" alt=\"\" width=\"44\" height=\"12\" \/><br \/>\n<\/strong><\/span>&#8211;\u00a0 Adjust the output frequency of the Si5351 with the Set Cal factor (Menu1-CaliFactor).<br \/>\n&#8211;\u00a0 Set the display frequency (for instance) at\u00a0 7.000.000 Hz<br \/>\n&#8211;\u00a0 Connect a frequency counter at the test connection on the front-end board to Clock Out (=Clock2)<br \/>\n&#8211;\u00a0 Adjust the Set Cal factor so that the counter indicates 7.000.000 &#8211; 5515 = 6.994.485 Hz<br \/>\n&#8211;\u00a0 Save the setting (Menu1-Save)<\/p>\n<p><strong>Notch filter<\/strong><br \/>\nOne of the new features was the addition of a notch filter. I have to say that the notch filter is working perfect. You can change the position of the notch in steps of 10 Hz left or right to the Rx center frequency.<\/p>\n<div id=\"attachment_857\" style=\"width: 610px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-857\" class=\"size-medium wp-image-857\" src=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2015\/08\/Teensy-SDR_1-600x405.jpg\" alt=\"Teensy-SDR 240x320 TFT\" width=\"600\" height=\"405\" srcset=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2015\/08\/Teensy-SDR_1-600x405.jpg 600w, https:\/\/pa0rwe.nl\/wp-content\/uploads\/2015\/08\/Teensy-SDR_1-768x518.jpg 768w, https:\/\/pa0rwe.nl\/wp-content\/uploads\/2015\/08\/Teensy-SDR_1-1024x691.jpg 1024w, https:\/\/pa0rwe.nl\/wp-content\/uploads\/2015\/08\/Teensy-SDR_1.jpg 1646w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><p id=\"caption-attachment-857\" class=\"wp-caption-text\">Teensy-SDR on a 240&#215;320 3.2&#8243; TFT\u00a0 (Notch is switched on)<\/p><\/div>\n<p>&nbsp;<\/p>\n<div id=\"attachment_859\" style=\"width: 610px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-859\" class=\"size-medium wp-image-859\" src=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2015\/08\/Teensy-SDR_2-600x403.jpg\" alt=\"Exploded view of the Teensy-SDR\" width=\"600\" height=\"403\" srcset=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2015\/08\/Teensy-SDR_2-600x403.jpg 600w, https:\/\/pa0rwe.nl\/wp-content\/uploads\/2015\/08\/Teensy-SDR_2-768x515.jpg 768w, https:\/\/pa0rwe.nl\/wp-content\/uploads\/2015\/08\/Teensy-SDR_2.jpg 1012w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><p id=\"caption-attachment-859\" class=\"wp-caption-text\">Exploded view of the Teensy-SDR<\/p><\/div>\n<p>&nbsp;<\/p>\n<p><strong>RF-Front-end <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21\" src=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2015\/07\/updated.gif\" alt=\"\" width=\"44\" height=\"12\" \/><br \/>\n<\/strong>My friend Joris decided to design a more professional PCB for the SDR front-end. <em><a href=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2019\/03\/sdr_frontend_schematic.jpg\" target=\"_blank\" rel=\"noopener noreferrer\"><span style=\"color: #0000ff;\">Here<\/span><\/a><\/em> you can download the\u00a0 <strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21\" src=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2015\/07\/updated.gif\" alt=\"\" width=\"44\" height=\"12\" \/><\/strong> schematic. The BOM can be download <a href=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2019\/03\/Teensy_SDR_BOM.zip\" target=\"_blank\" rel=\"noopener noreferrer\"><em><span style=\"color: #0000ff;\">here<\/span><\/em><\/a>.\u00a0 In the Inside View picture below you can see on the right the (green) SDR front-end PCB (old version!).\u00a0 Front-end PCB&#8217;s are available again. Please sent me an e-mail if you are interested.<\/p>\n<div id=\"attachment_1550\" style=\"width: 387px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1550\" class=\"size-full wp-image-1550\" src=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2019\/03\/sdr_frontend.jpg\" alt=\"\" width=\"377\" height=\"247\" \/><p id=\"caption-attachment-1550\" class=\"wp-caption-text\">SDR Front-end<\/p><\/div>\n<p><strong>Important notes for builders:<br \/>\n<\/strong>&#8211; The text on the PCB for the I2C connections (SDA and SCL) on <span style=\"text-decoration: underline;\">old boards<\/span> have been exchanged! So if the CLK output of the Si5351 is not OK, please change the SDA and SCL connections.<\/p>\n<p><strong>Adjusting P1 for optimal unwanted sideband suppression \u00a0 <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-18\" src=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2015\/07\/new.gif\" alt=\"\" width=\"42\" height=\"13\" \/><\/strong><br \/>\n&#8211;\u00a0 Connect your Teensy SDR to a RF generator at about 3630 MHz @ -60 dBm<br \/>\n&#8211;\u00a0 Adjust P1 as far as possible to minimize the unwanted sideband. See pictures below.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1611\" src=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2019\/10\/SSB-adjusting-600x163.jpg\" alt=\"\" width=\"600\" height=\"163\" srcset=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2019\/10\/SSB-adjusting-600x163.jpg 600w, https:\/\/pa0rwe.nl\/wp-content\/uploads\/2019\/10\/SSB-adjusting-768x209.jpg 768w, https:\/\/pa0rwe.nl\/wp-content\/uploads\/2019\/10\/SSB-adjusting.jpg 837w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Enclosure<\/strong><br \/>\nThis week (may 2016) I have build the Teensy-SDR in an enclosure made from PCB material. Front is made from laminated photo paper. I&#8217;m satisfied by the result&#8230;.<br \/>\nAs you can see I&#8217;m now using a smaller TFT screen. It&#8217;s a 2.8&#8243; TFT SPI 240&#215;320 V1.1 module, bought at Ali express.com.<\/p>\n<div id=\"attachment_1035\" style=\"width: 610px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1035\" class=\"size-medium wp-image-1035\" src=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2015\/08\/Teensy-SDR-1-600x401.jpg\" alt=\"Inside view\" width=\"600\" height=\"401\" srcset=\"https:\/\/pa0rwe.nl\/wp-content\/uploads\/2015\/08\/Teensy-SDR-1-600x401.jpg 600w, https:\/\/pa0rwe.nl\/wp-content\/uploads\/2015\/08\/Teensy-SDR-1-768x513.jpg 768w, https:\/\/pa0rwe.nl\/wp-content\/uploads\/2015\/08\/Teensy-SDR-1-1024x685.jpg 1024w, https:\/\/pa0rwe.nl\/wp-content\/uploads\/2015\/08\/Teensy-SDR-1.jpg 1798w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><p id=\"caption-attachment-1035\" class=\"wp-caption-text\">Inside view<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/rheslip.blogspot.nl\/2015\/01\/teesy-sdr-project-update.html https:\/\/www.antratek.nl\/boards\/teensy https:\/\/learn.sparkfun.com\/tutorials\/teensy-arduino-shield-adapter-hookup-guide https:\/\/www.youtube.com\/channel\/UCz7YtteHS_qk7aumEbhIShg\u00a0\u00a0 (some interesting video&#8217;s how the Teensy SDR is working) &nbsp; A friend of my want to build the Teensy-SDR designed by Rich Heslip VE3MKC, so he asked me to test the software and made it ready for loading it in his Teensy 3.1. Because I like that challenge I bought a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-459","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/pa0rwe.nl\/index.php?rest_route=\/wp\/v2\/pages\/459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pa0rwe.nl\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pa0rwe.nl\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pa0rwe.nl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pa0rwe.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=459"}],"version-history":[{"count":109,"href":"https:\/\/pa0rwe.nl\/index.php?rest_route=\/wp\/v2\/pages\/459\/revisions"}],"predecessor-version":[{"id":1727,"href":"https:\/\/pa0rwe.nl\/index.php?rest_route=\/wp\/v2\/pages\/459\/revisions\/1727"}],"wp:attachment":[{"href":"https:\/\/pa0rwe.nl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}