<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Digital Signal Processing in Radio Astronomy</title>
    <description>Lots of lessons</description>
    <link>https://wvurail.org//dspira-lessons/</link>
    <atom:link href="https://wvurail.org//dspira-lessons/feed.xml" rel="self" type="application/rss+xml" />
    
      <item>
        <title>Interferometry</title>
        <description>&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;https://wvurail.org/dspira-lessons/FilesUploaded/Interferometry_theory.pdf&quot;&gt;Basic theory of interferometry&lt;/a&gt; - Basic theory describing additive and multipicative interferometry.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;https://wvurail.org/dspira-lessons/FilesUploaded/Interferometry_Additive_experimental.pdf&quot;&gt;Using 2-Horn Interferometer for Additive Interferometry&lt;/a&gt; - Explanation of how to interpret additive interferometry results, with an example.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

</description>
        <pubDate>Thu, 03 Aug 2023 00:00:00 +0000</pubDate>
        <link>https://wvurail.org//dspira-lessons/Interferometry</link>
        <guid isPermaLink="true">https://wvurail.org//dspira-lessons/Interferometry</guid>
      </item>
    
      <item>
        <title>Installing gr-radio_astro on Ubuntu 20.04</title>
        <description>&lt;p&gt;This will install the spectrometer program &lt;em&gt;spectrometer_w_cal.grc&lt;/em&gt; as well as other useful radio astronomy GNURadio programs onto a system using Ubuntu 20.04.&lt;/p&gt;

&lt;p&gt;Complete the following steps:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;Open a terminal window in Ubuntu.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;Install gnuradio external python dependencies and SDR drivers by typing the following and hit enter:
    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;sudo apt install gnuradio gr-osmosdr airspy python3-h5py python3-ephem git cmake liborc-0.4-dev -y
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;To clone the repository: in the terminal, type and Enter: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git clone https://github.com/WVURAIL/gr-radio_astro.git&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Switch to the gr-radio_astro directory: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cd gr-radio_astro&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Switch to the gr-radio_astro 3.8 branch by typing: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git checkout gr38&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Make a build directory: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;mkdir build&lt;/code&gt;, and then move to it: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cd build&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Then run the following in the build directory:&lt;/p&gt;

    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;cmake ..
sudo make
sudo make install
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
    &lt;p&gt;&lt;strong&gt;Additional Steps for setting the proper Python environment:&lt;/strong&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Open a terminal window.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Make sure you are at the home directory (type and Enter &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cd&lt;/code&gt; ). Then type &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gedit .bashrc&lt;/code&gt; to open the &lt;em&gt;.bashrc&lt;/em&gt; file in an editor.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Scroll to the very bottom of this file, add a blank line, and then copy and paste the following code: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;export PYTHONPATH=/usr/local/lib/python3/dist-packages:/usr/local/lib/python3.8/dist-packages:$PYTHONPATH&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Save and close (x in upper right corner).&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;Additionally you can create appropriate symbolic links
    &lt;ol&gt;
      &lt;li&gt;Check which python is the installed version of GNURadio by opening  &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gnuradio-companion&lt;/code&gt; in a terminal window and click on &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Help --&amp;gt; About&lt;/code&gt; and noting the python version on the dialog box that opens.&lt;/li&gt;
      &lt;li&gt;Go to the following by typing: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cd /usr/local/lib/python3.8/dist-packages&lt;/code&gt; or &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cd /usr/local/lib/python3.9/dist-packages&lt;/code&gt; for the appropriate python version.&lt;/li&gt;
      &lt;li&gt;Type &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ln -s /usr/local/lib/python3/dist-packages/radio_astro&lt;/code&gt;&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Check that the Installation was Successful&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;&lt;em&gt;Restart your terminal window&lt;/em&gt;. Run the program in Gnuradio:
    &lt;ul&gt;
      &lt;li&gt;In a terminal window type &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gnuradio-companion&lt;/code&gt;&lt;/li&gt;
      &lt;li&gt;
        &lt;p&gt;Open the &lt;em&gt;spectrometer_w_cal.grc&lt;/em&gt; program as follows:&lt;/p&gt;

        &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File --&amp;gt; Open --&amp;gt; gr-radio_astros --&amp;gt; examples --&amp;gt; *spectrometer_w_cal.grc* &lt;/code&gt;&lt;/p&gt;
      &lt;/li&gt;
      &lt;li&gt;Plug an Airspy radio, with the LNA attached, into the USB port. Run the program by hitting the start triangle (“execute the flowgraph”) on the menu bar at top. If no errors occur, you are all set!&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;h4 id=&quot;how-to-update-files-from-the-gr-radio_astro-gr38-repository&quot;&gt;How to Update files from the gr-radio_astro gr38 Repository&lt;/h4&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;Open the terminal window.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;From your home directory (cd ), go to the gr-radio_astro folder: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cd gr-radio_astro&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Type &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git status&lt;/code&gt;. Check the “On branch …” statement at the top. You want to be in the gr38 branch. To get there, type &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git checkout gr38&lt;/code&gt;.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;If a warning message shows up about local changes made that could overwrite files, type &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git stash&lt;/code&gt;.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Type &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git status&lt;/code&gt; to check that you are “On branch gr38”.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;Type &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git pull&lt;/code&gt;.
    &lt;ul&gt;
      &lt;li&gt;If a warning message shows up about local changes made that could overwrite files, type &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git stash&lt;/code&gt;.&lt;/li&gt;
      &lt;li&gt;Then type &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git pull&lt;/code&gt; again.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Change to the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;build&lt;/code&gt; directory: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cd build&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Type &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rm -rf *&lt;/code&gt;. NOTE: Make sure you are in the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;build&lt;/code&gt; directory before typing &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rm -rf *&lt;/code&gt;!&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;Then run the following:
    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;cmake ..
sudo make
sudo make install
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;The update is complete.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;To Run the __spectrometer_w_cal.grc__ program in Gnuradio After Updating:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;In a terminal window type &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gnuradio-companion&lt;/code&gt;.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Close any previous version of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;spectrometer_w_cal.grc&lt;/code&gt; that might be open in Gnuradio.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Open the new version of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;spectrometer_w_cal.grc&lt;/code&gt; from the folder &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/gr-radio_astro/examples/&lt;/code&gt;&lt;/p&gt;

    &lt;ul&gt;
      &lt;li&gt;under &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File&lt;/code&gt; select &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Open&lt;/code&gt;;&lt;/li&gt;
      &lt;li&gt;Navigate to the&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt; gr-radio_astro&lt;/code&gt; folder.&lt;/li&gt;
      &lt;li&gt;Under &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;examples&lt;/code&gt; open &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;DSPIRA&lt;/code&gt;; then select &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;spectrometer_w_cal.grc&lt;/code&gt;.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Connect an Airspy SDR to a USB port, and start the program running (Hit the black triangle at the top middle ribbon bar.)&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

</description>
        <pubDate>Tue, 27 Jun 2023 00:00:00 +0000</pubDate>
        <link>https://wvurail.org//dspira-lessons/gr_radio_astro_Installation_Ubuntu20</link>
        <guid isPermaLink="true">https://wvurail.org//dspira-lessons/gr_radio_astro_Installation_Ubuntu20</guid>
      </item>
    
      <item>
        <title>Installing Ubuntu</title>
        <description>&lt;p&gt;&lt;em&gt;Our software works under Ubuntu versions 22.04 LTS and older.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Installing the Ubuntu OS on a Windows computer will require you to partition the hard drive, copy Ubuntu OS onto a bootable flashdrive, and install it onto the partition, as follows:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A. Partition a Hard Drive&lt;/strong&gt; - Before installing Ubuntu on the hard disk, you need to partition the hard disk in Windows.&lt;/p&gt;

&lt;p&gt;NOTE: A hard drive with at least 250 GB is recommended.&lt;/p&gt;

&lt;p&gt;Before proceeding, check that Device Encryption is OFF. (This is also known as Bitlocker.) For most Windows systems, this can be done as follows:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Boot up the computer in Windows.&lt;/li&gt;
  &lt;li&gt;Open the &lt;em&gt;Start&lt;/em&gt; menu.
    &lt;ul&gt;
      &lt;li&gt;In the search box type “encryption”.&lt;/li&gt;
      &lt;li&gt;In the menu that pops up, click on &lt;em&gt;Manage Bitlocker&lt;/em&gt;.&lt;/li&gt;
      &lt;li&gt;Verify that it is off and turn off if needed.&lt;/li&gt;
      &lt;li&gt;If it was on and you turn it off, you will need to wait until Windows has completed un-encrypting the hard drive before you can proceed. This could take some time.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now you are ready to partition the hard drive.&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;Open a Command Prompt window with admin rights, as follows:
    &lt;ul&gt;
      &lt;li&gt;In the search field, type &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Command Prompt&lt;/code&gt;, or just CMD.&lt;/li&gt;
      &lt;li&gt;Click on &lt;em&gt;Run as Administrator&lt;/em&gt; from the selections on the right side of the window that pops up.&lt;/li&gt;
      &lt;li&gt;Click &lt;em&gt;Yes&lt;/em&gt; on the pop-up to allow the app to make changes to your device.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;In the Command Prompt window that pops up, enter the command &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;diskmgmt.msc&lt;/code&gt; to open the Disk Management utility.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;In the Disk Management window, right click on &lt;em&gt;OS (C:)&lt;/em&gt; and select the &lt;em&gt;Shrink Volume&lt;/em&gt; option in order to reduce the partition size.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;Wait for the system to query partition size data; then enter the desired amount of space you want to shrink, and hit in the &lt;em&gt;Shrink&lt;/em&gt; button. The amount chosen to shrink will be the amount that will be allotted to Ubuntu. This should be an absolute minimum of 50 GB; we recommend at least 100 GB.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;After the shrink process completes, a new unallocated space will be present in your drive. We’ll use this free space to install Ubuntu alongside Windows, as described below.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;B. Download Ubuntu 22.04 onto a Bootable Flashdrive&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;You need to &lt;a href=&quot;http://releases.ubuntu.com/22.04/&quot; target=&quot;_blank&quot;&gt;download Ubuntu Desktop 22.04 ISO&lt;/a&gt; onto the hard drive in Windows. You want to choose the Desktop version. It will take some time to download this file.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Download &lt;a href=&quot;https://etcher.balena.io/&quot; target=&quot;_blank&quot;&gt;BalenaEtcher&lt;/a&gt; for Windows and install it if you don’t already have it.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Install a 32 GB or larger flash drive in the usb port.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Run &lt;em&gt;BalenaEtcher&lt;/em&gt;. Choose the Ubuntu 22.04.iso file as the image and the flash drive as the target. It will take some time for this to run.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;C. Install Ubuntu 22.04 Alongside Windows&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;Turn off the computer. Place the bootable flash drive in the USB port. Turn on the computer, holding down the bootable key (F12) in order to boot from the Ubuntu USB bootable image.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;On the first installation screen, select &lt;em&gt;Install Ubuntu&lt;/em&gt; and hit Enter to start the installation process. Complete the prompts as needed.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;After the installation is complete, you will restart the computer. Choose the Ubuntu option from the menu that appears.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Check the date and time&lt;/strong&gt; displayed on your computer. If it is not correct, it must be corrected in order for the installation to be completed successfully. This can be changed in the &lt;em&gt;Date &amp;amp; Time&lt;/em&gt; menu under &lt;em&gt;Settings&lt;/em&gt;.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Open a &lt;em&gt;Terminal&lt;/em&gt; window. This can be found in the &lt;em&gt;Show Applications&lt;/em&gt; waffle in the lower left corner of the screen.&lt;/p&gt;

    &lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; Most of the commands we use are entered in a &lt;em&gt;Terminal&lt;/em&gt; window. We recommend adding the &lt;em&gt;Terminal&lt;/em&gt; to your Favorites to be accessed easily.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;With the time being correct, in a &lt;em&gt;Terminal&lt;/em&gt; window type and enter &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sudo apt update&lt;/code&gt;. Then type and enter &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sudo apt upgrade&lt;/code&gt;. This will bring the Ubuntu installation up to date.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The Ubuntu OS is now ready to use.&lt;/p&gt;
</description>
        <pubDate>Tue, 27 Jun 2023 00:00:00 +0000</pubDate>
        <link>https://wvurail.org//dspira-lessons/Ubuntu_Installation</link>
        <guid isPermaLink="true">https://wvurail.org//dspira-lessons/Ubuntu_Installation</guid>
      </item>
    
      <item>
        <title>Setting Up a 2 Horn Interferometer</title>
        <description>&lt;h2 id=&quot;procedure-for-setting-up-a-2-horn-interferometer&quot;&gt;Procedure for Setting Up a 2 Horn Interferometer&lt;/h2&gt;

&lt;p&gt;These are instructions for how to set up and run a 2 horn interferometer using a Lime SDR with GNURadio. The GNURadio spectrometer programs write time-stamped data files once every integration time. For the adding spectrometer, called &lt;a href=&quot;https://github.com/WVURAIL/dspira-lessons/blob/master/FilesUploaded/interferometer_simpleSpectrometer_Lime_adding.grc&quot;&gt;Interferometer_SimpleSpectrometer_Adding.grc&lt;/a&gt;, the data includes horn A spectra, horn B spectra, and the power spectra from the sum of their signals. For the multiplying spectrometer, called &lt;a href=&quot;https://github.com/WVURAIL/dspira-lessons/blob/master/FilesUploaded/interferometer_simpleSpectrometer_Lime_multiplying.grc&quot;&gt;Interferometer_SimpleSpectrometer_Multiplying.grc&lt;/a&gt;, the data includes horn A spectra, horn B spectra, the magnitude of the interference, and the phase of the interference.&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;List of Equipment&lt;/p&gt;

    &lt;p&gt;a. 2 Horn telescopes, each consisting of:&lt;/p&gt;

    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;  ▪ horn &amp;amp; can antennae
  ▪ cradle
  ▪ stand
  ▪ bolts for cradle axle
  ▪ clamps - recommended to secure the cradle position after the horn is aligned   b. Electronics

  ▪ computer with the GNURadio spectrometer program on it:
      - adding spectrometer program:  [Interferometer_SimpleSpectrometer_Adding.grc](https://github.com/WVURAIL/dspira-lessons/blob/master/FilesUploaded/interferometer_simpleSpectrometer_Lime_adding.grc)
      - multiplying spectrometer program: [Interferometer_SimpleSpectrometer_Multiplying.grc](https://github.com/WVURAIL/dspira-lessons/blob/master/FilesUploaded/interferometer_simpleSpectrometer_Lime_multiplying.grc)
  ▪ Lime SDR with USB cable to connect to a computer – This SDR can digitize 2 channels.
  ▪ 2 bias T&apos;s for powering the LNA&apos;s; the Lime does not provide power to the LNA’s.
  ▪ 5 V transformer to power the bias T&apos;s
  ▪ 2 SMA cables to connect the Lime Rx outputs to the &quot;RF&quot; inputs of the bias T&apos;s
  ▪ 2 long SMA cables to connect the &quot;RF+dc&quot; outputs of the bias T&apos;s to the LNA&apos;s
  ▪ 2 LNA&apos;s
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;

    &lt;p&gt;c. Accessories for setting up&lt;/p&gt;

    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;  ▪ duct tape - recommended for taping the devices and cables in place
  ▪ inclinometer - recommended for setting the telescope angle
  ▪ E-W (N-S) line - critical!
      - best method: determined, prior to a run, from the shadow of a vertical pole or string at sun&apos;s transit
      - or determine using an accurate compass
  ▪ Large protractor to help orient the telescopes
  ▪ pliers for tightening the horn rotation axis
  ▪ string - can be useful for aiding the alignment of the horns relative to each other
  ▪ tape measure
  ▪ tent in case of rain
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Schematic Diagram and photo of the electrical connections&lt;/p&gt;

    &lt;p&gt;&lt;img src=&quot;https://github.com/WVURAIL/dspira-lessons/blob/master/FilesUploaded/Interferometer_electrical_schematic.png&quot; alt=&quot;electrical connection schematic&quot; /&gt;&lt;/p&gt;

    &lt;p&gt;&lt;img src=&quot;https://github.com/WVURAIL/dspira-lessons/blob/master/FilesUploaded/interferometer_electrical_connections_photo.png&quot; alt=&quot;electrical connection photo&quot; /&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Setting up the horns&lt;/p&gt;

    &lt;p&gt;a. Assemble 2 horns as would be done for a single horn observation.
  b. For horns with a baseline along the east-west direction, set them parallel to each other, pointing at the same spot in the sky (e.g. the sun when it transits). 
  c. Here are some tips:
      ▪ Sometime before doing interferometry, establish the N-S direction marking the shadow of a vertical pole when the sun transits.
      ▪ If the horns are to be set up with an E-W baseline, use some sort of large compass or       -square to mark the E-W direction perpendicular to the N-S direction. A tape measure or string can be useful for doing this.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Setting up the electrical connections - REFER TO THE PHOTO ABOVE&lt;/p&gt;

    &lt;p&gt;a. Data for “Horn A” is collected on the cable that is plugged in to RX1 on the Lime SDR; RX2 is for Horn B.
  b. Be sure that the 5 V dc transformer for powering the bias-T’s is plugged in, and check that the power strip is on.
  c. The “RF”  terminal of each bias-T is connected to the respective RX1 and RX2 on the Lime.
  d. The “RF + dc” terminal of each bias-T is connected to the respective LNA.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;b&gt;NOTE ABOUT COMPUTER POWER:&lt;/b&gt; Be sure the computer power settings are such that it does not go to sleep. Also, for longer runs it is recommended to have the computer plugged in during the run.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;b&gt;For Adding Interferometry:&lt;/b&gt;&lt;/p&gt;

    &lt;p&gt;a. Run the spectrometer program Interferometer_SimpleSpectrometer_Adding.grc&lt;/p&gt;

    &lt;p&gt;b. Plug the Lime SDR into a USB port.&lt;/p&gt;

    &lt;p&gt;c. On the computer set up the file directories for data collection:&lt;/p&gt;

    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;  ▪ Create a folder appropriately titled for the data collection, e.g. &quot;Sun_scan_July21&quot;. Be sure any folders and filenames have no spaces in them.

  ▪ Run GNURadio: $ gnuradio-companion

  ▪ On the canvas in the Interferometer_SimpleSpectrometer_Adding.grc program, open the Variable boxes described below; these are in the upper left side of the GNURadio canvas:

      • Open the &quot;prefix_hornA&quot; Variable block (double-click it). For &quot;Value&quot; type the pathname to the subfolder that will be used to collect the spectrum of Horn A. This must be in quotes. In the example below horn A data is written to the sub-folder &quot;magnitude_july21&quot; that is in the subfolder &quot;sun_july21&quot; which is a subfolder of &quot;interferometer_data&quot;, etc. This will be written in the prefix-hornA Variable box as: &quot;/home/john/dspira_2021/interferometer_data/sun_july21/hornA_july21/&quot;

      • Set up similar file pathnames in the Variable blocks &quot;prefix_hornB&quot; and &quot;prefix_adding&quot;.

      • Be sure these sub-folders on the computer have been created.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;

    &lt;p&gt;d. If all is good, you are ready to go. Delete the test files in each folder (not required but recommended).&lt;/p&gt;

    &lt;p&gt;e. Start the program. Select “Long Integration” and “Writing to File”. If all is good, the graphs should show signals being collected.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;b&gt;For Multiplying Interferometry:&lt;/b&gt;&lt;/p&gt;

    &lt;p&gt;a. Run the spectrometer program Interferometer_SimpleSpectrometer_Multiplying.grc&lt;/p&gt;

    &lt;p&gt;b. Plug the Lime SDR into a USB port.&lt;/p&gt;

    &lt;p&gt;c. On the computer set up the file directories for data collection:&lt;/p&gt;

    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;  ▪ Create a folder appropriately titled for the data collection, e.g. &quot;Sun_scan_July21&quot;. Be sure any folders and filenames have no spaces in them.

  ▪ Run GNURadio: $ gnuradio-companion

  ▪ On the canvas in the Interferometer_SimpleSpectrometer_Multiplying.grc program, open the Variable boxes described below; these are in the upper left side of the GNURadio canvas:

      • Open the &quot;prefix_mag&quot; Variable block (double-click it). For &quot;Value&quot; type the pathname to the subfolder that will be used to collect the spectrum of Horn A. This must be in quotes. In the example below interference magnitude data is written to the sub-folder &quot;magnitude_july21&quot; that is in the subfolder &quot;sun_july21&quot; which is a subfolder of &quot;interferometer_data&quot;, etc. This will be written in the prefix-mag Variable box as: &quot;/home/john/dspira_2021/interferometer_data/sun_july21/magnitude_july21/&quot;

      • Set up similar file pathnames in the Variable blocks &quot;prefix_phase&quot;, &quot;prefix_hornA&quot;, and &quot;prefix_hornB&quot;. 

      • Be sure these sub-folders on the computer have been created.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;

    &lt;p&gt;d. If all is good, you are ready to go. Delete the test files in each folder (not required but recommended).&lt;/p&gt;

    &lt;p&gt;e. Start the program. Select “Long Integration” and “Writing to File”. If all is good, the graphs should show signals being collected.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

</description>
        <pubDate>Mon, 11 Jul 2022 00:00:00 +0000</pubDate>
        <link>https://wvurail.org//dspira-lessons/SettingUp2HornInterferometer</link>
        <guid isPermaLink="true">https://wvurail.org//dspira-lessons/SettingUp2HornInterferometer</guid>
      </item>
    
      <item>
        <title>PlutoSDR software Installation</title>
        <description>&lt;p&gt;The steps below outline the installation of software that is needed to run the Pluto SDR in GNURadio. More information and support about GNU Radio and IIO Devices can be found at: &lt;a href=&quot;https://wiki.analog.com/resources/tools-software/linux-software/gnuradio&quot;&gt;https://wiki.analog.com/resources/tools-software/linux-software/gnuradio&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1: Install Dependencies&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Open a terminal window. Then type (or copy and paste) and enter the following:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sudo apt install libxml2 libxml2-dev bison flex cmake git libaio-dev libboost-all-dev&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sudo apt install libusb-1.0-0-dev&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sudo apt install libavahi-common-dev libavahi-client-dev&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git clone https://github.com/analogdevicesinc/libiio.git&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cd libiio&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cmake .&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;make&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sudo make install&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cd ..&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Download and build libad9361-iio&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git clone https://github.com/analogdevicesinc/libad9361-iio.git&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cd libad9361-iio&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cmake .&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;make&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sudo make install&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cd ..&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Additional Installations&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sudo apt install bison flex cmake git libgmp-dev&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sudo apt install liborc-dev&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Build and install gr-iio from source:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git clone -b upgrade-3.8 https://github.com/analogdevicesinc/gr-iio.git&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cd gr-iio&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cmake .&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;make&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sudo make install&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cd ..&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sudo ldconfig&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Your system should now be ready to install the PlutoSDR Source block in GNURadio. If there are any problems, refer to the information at: &lt;a href=&quot;https://wiki.analog.com/resources/tools-software/linux-software/gnuradio&quot;&gt;https://wiki.analog.com/resources/tools-software/linux-software/gnuradio&lt;/a&gt;&lt;/p&gt;
</description>
        <pubDate>Wed, 04 Aug 2021 00:00:00 +0000</pubDate>
        <link>https://wvurail.org//dspira-lessons/PlutoSDR_installation</link>
        <guid isPermaLink="true">https://wvurail.org//dspira-lessons/PlutoSDR_installation</guid>
      </item>
    
      <item>
        <title>Other Horn Designs</title>
        <description>&lt;ul&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;strong&gt;Baby DSPIRA Horn&lt;/strong&gt; - A smaller version of the design presented above can be found in a &lt;a href=&quot;https://wvurail.org/dspira-lessons/FilesUploaded/MiniHorn_construction.pdf&quot;&gt;pdf here&lt;/a&gt; and in &lt;a href=&quot;https://youtube.com/playlist?list=PLxSg3s3C3JCH2yBC_kHLGCpd0tqQ6gM1h&quot;&gt;videos here&lt;/a&gt;. This includes a cradle and stand as part of its construction. This design operates using all of the other components and software used with the standard DSPIRA horn described within this webpage. It provides easy use and is good for demonstrations.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;https://wvurail.org/lightwork/memos/LightWorkMemo021-r6.pdf&quot;&gt;Radio Telescope Base Construction Guide&lt;/a&gt; - Instructions for building a radio horn telescope similar in design to the DSPIRA horn.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;&lt;a href=&quot;https://wvurail.org/lightwork/memos/LightWorkMemo022-r13.pdf&quot;&gt;Cone Horn Construction&lt;/a&gt; - Instructions for building a cylindrical radio horn with a cylindrical can.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ul&gt;

</description>
        <pubDate>Thu, 29 Jul 2021 00:00:00 +0000</pubDate>
        <link>https://wvurail.org//dspira-lessons/Other_Horn_Designs</link>
        <guid isPermaLink="true">https://wvurail.org//dspira-lessons/Other_Horn_Designs</guid>
      </item>
    
      <item>
        <title>Build a Simple Spectrometer</title>
        <description>&lt;ul&gt;
  &lt;li&gt;Introductory Lessons on Using GNURadio and Some Basic DSP
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;https://wvurail.org/dspira-lessons/FilesUploaded/Gnuradio_Lesson1_simpleWaveform.pdf&quot;&gt;Lesson 1&lt;/a&gt; - Introduction to GNURadio basics.&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;https://wvurail.org/dspira-lessons/FilesUploaded/Gnuradio_Lesson2_MultipleSources.pdf&quot;&gt;Lesson 2&lt;/a&gt; - Learning more GNURadio tools building a multiple waveform source.&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;https://wvurail.org/dspira-lessons/FilesUploaded/Gnuradio_Lesson3_FourierSeries.pdf&quot;&gt;Lesson 3&lt;/a&gt; - Demonstration of Fourier series.&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;https://wvurail.org/dspira-lessons/FilesUploaded/Gnuradio_Lesson4_FFT.pdf&quot;&gt;Lesson 4&lt;/a&gt; - Demonstration of how an FFT block works.&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;https://wvurail.org/dspira-lessons/FilesUploaded/Gnuradio_Lesson5_Filters.pdf&quot;&gt;Lesson 5&lt;/a&gt; - Filter basics.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;https://wvurail.org/dspira-lessons/FilesUploaded/BuildingSimpleSpectrometer_Explained.pdf&quot;&gt;Build a Simple Spectrometer&lt;/a&gt; - Directions on building a simple spectrometer for a horn telescope, with detailed explanations of the blocks.&lt;/li&gt;
&lt;/ul&gt;
</description>
        <pubDate>Sun, 04 Jul 2021 00:00:00 +0000</pubDate>
        <link>https://wvurail.org//dspira-lessons/Simple_Spectrometer</link>
        <guid isPermaLink="true">https://wvurail.org//dspira-lessons/Simple_Spectrometer</guid>
      </item>
    
      <item>
        <title>Raspberry Pi</title>
        <description>&lt;p&gt;Raspberry Pi’s are inexpensive and the more modern Pi’s are powerful enough to keep up with the level of signal processing on GNURadio associated with Radio Astronomy applications.&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;#supported-raspberry-pi-devices&quot;&gt;Supported Raspberry Pi Devices&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#installing-ubuntu-image-with-radio-astronomy-preinstalled-on-a-raspberry-pi&quot;&gt;Installing Ubuntu image with radio astronomy preinstalled  on a Raspberry Pi&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#operating-system-requirement&quot;&gt;Operating system requirement&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#installing-ubuntu-on-raspberry-pi&quot;&gt;Installing Ubuntu on Raspberry Pi&lt;/a&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;#prerequisites&quot;&gt;Prerequisites&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#post-installation-actions&quot;&gt;Post Installation actions:&lt;/a&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;#interacting-with-the-raspberry-pi&quot;&gt;Interacting with the Raspberry Pi&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;a href=&quot;#installing-gr-radioastro-installing-gr-radioastro-sitebaseurl-grradioastroinstallationtarget%22blank%22&quot;&gt;Installing gr-radio_astro&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h1 id=&quot;supported-raspberry-pi-devices&quot;&gt;Supported Raspberry Pi Devices&lt;/h1&gt;

&lt;p&gt;&lt;em&gt;All devices must have RAM greater than 4GB&lt;/em&gt;&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;Raspberry Pi 4 Model B&lt;/li&gt;
  &lt;li&gt;Raspberry Pi 400&lt;/li&gt;
&lt;/ol&gt;

&lt;h1 id=&quot;installing-ubuntu-image-with-radio-astronomy-preinstalled--on-a-raspberry-pi&quot;&gt;Installing Ubuntu image with radio astronomy preinstalled  on a Raspberry Pi&lt;/h1&gt;
&lt;p&gt;This image requires a minimum of 16GB of space on the SD card.&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;Download the image &lt;a href=&quot;https://drive.google.com/file/d/1KzfgMEwgwTTZUaCeNR5kRgLj9MfMKyAh/view?usp=sharing&quot;&gt;here&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;Unzip the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;.zip&lt;/code&gt; file.&lt;/li&gt;
  &lt;li&gt;Use &lt;a href=&quot;https://www.raspberrypi.org/software/&quot;&gt;Raspberry Pi Imager&lt;/a&gt; to install this image.
    &lt;ol&gt;
      &lt;li&gt;Insert SD card into your card reader on your computer&lt;/li&gt;
      &lt;li&gt;Open Raspberry Pi imager.&lt;/li&gt;
      &lt;li&gt;Click &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Choose OS&lt;/code&gt;, and choose &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Use Custom&lt;/code&gt;.&lt;/li&gt;
      &lt;li&gt;Select the correct image file downloaded in step 1 and 2 from your system.&lt;/li&gt;
      &lt;li&gt;Click &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Choose storage&lt;/code&gt; and select your inserted SD card.&lt;/li&gt;
      &lt;li&gt;Click write.&lt;/li&gt;
      &lt;li&gt;More info &lt;a href=&quot;https://www.raspberrypi.org/documentation/installation/installing-images/&quot;&gt;here&lt;/a&gt; and a &lt;a href=&quot;https://www.youtube.com/watch?v=ntaXWS8Lk34&quot;&gt;video&lt;/a&gt;&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
  &lt;li&gt;Insert SD card to Raspberry Pi and power it up.&lt;/li&gt;
  &lt;li&gt;The default user name is &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;pi&lt;/code&gt;, with password &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;raspberry&lt;/code&gt;. Change the password after first boot.&lt;/li&gt;
&lt;/ol&gt;

&lt;h1 id=&quot;setting-os-and-installing-software-from-scratch&quot;&gt;Setting OS and installing software from scratch.&lt;/h1&gt;
&lt;h2 id=&quot;operating-system-requirement&quot;&gt;Operating system requirement&lt;/h2&gt;

&lt;ol&gt;
  &lt;li&gt;Ubuntu for Raspberry Pi &lt;a href=&quot;https://ubuntu.com/raspberry-pi&quot;&gt;Click here for more Info&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;Note&lt;/em&gt;: The custom &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gr-radio_astro&lt;/code&gt; &lt;a href=&quot;/dspira-lessons/gr_radio_astro_Installation&quot;&gt;software&lt;/a&gt;  is now only supported for &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;GNURadio 3.8&lt;/code&gt; only. The Raspberry Pi OS by default installs &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;GNURadio 3.7&lt;/code&gt; which is not longer supported.&lt;/p&gt;

&lt;h2 id=&quot;installing-ubuntu-on-raspberry-pi&quot;&gt;Installing Ubuntu on Raspberry Pi&lt;/h2&gt;
&lt;h3 id=&quot;prerequisites&quot;&gt;Prerequisites&lt;/h3&gt;

&lt;ol&gt;
  &lt;li&gt;Support Raspberry Pi&lt;/li&gt;
  &lt;li&gt;A microSD card (9GB minimum, 16GB recommended)&lt;/li&gt;
  &lt;li&gt;A computer with a microSD card drive&lt;/li&gt;
  &lt;li&gt;A micro USB-C power cable&lt;/li&gt;
  &lt;li&gt;A monitor with an HDMI interface (Optionally for installing Ubuntu Server)&lt;/li&gt;
  &lt;li&gt;A micro HDMI cable (Optionally for installing Ubuntu Server)&lt;/li&gt;
  &lt;li&gt;A USB keyboard and mouse (Optionally for installing Ubuntu Server)&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href=&quot;https://ubuntu.com/tutorials/how-to-install-ubuntu-on-your-raspberry-pi#1-overview&quot; target=&quot;_blank&quot;&gt;Instructions from Ubuntu to install the OS on the Raspberry Pi 4&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;NOTE&lt;/em&gt;: Firstly, for Ubuntu desktop a monitor and mouse and keyboard is required. If you do not want to access the full desktop interface of ubuntu and only interact via command line interface you can install Ubuntu Server &lt;a href=&quot;https://ubuntu.com/tutorials/how-to-install-ubuntu-on-your-raspberry-pi#1-overview&quot; target=&quot;_blank&quot;&gt;instruction for Ubuntu server installation here&lt;/a&gt;. Secondly, Raspberry Pi is built on an ARM based architecture  any version of Ubuntu will not work. The OS has to specific to the Pi.&lt;/p&gt;

&lt;h2 id=&quot;post-os-installation-actions&quot;&gt;Post OS Installation actions:&lt;/h2&gt;

&lt;h3 id=&quot;interacting-with-the-raspberry-pi&quot;&gt;Interacting with the Raspberry Pi&lt;/h3&gt;

&lt;ol&gt;
  &lt;li&gt;Using a moniter and mouse and keyboard like any other desktop.&lt;/li&gt;
  &lt;li&gt;Using SSH:
    &lt;ol&gt;
      &lt;li&gt;This method can be used on any machine with ssh server enabled.&lt;/li&gt;
      &lt;li&gt;Install X server on your computer. &lt;a href=&quot;https://sourceforge.net/projects/vcxsrv/&quot; target=&quot;_blank&quot;&gt;VcXcrv&lt;/a&gt; on windows and &lt;a href=&quot;https://www.xquartz.org/&quot; target=&quot;_blank&quot;&gt;XQuartz&lt;/a&gt; for macOS.&lt;/li&gt;
      &lt;li&gt;Power up the Raspberry Pi and connect your computer via ethernet cable&lt;/li&gt;
      &lt;li&gt;First we need to determine the IP address of the raspberry PI: &lt;a href=&quot;https://www.raspberrypi.org/documentation/remote-access/ip-address.md&quot; target=&quot;_blank&quot;&gt;How to determine Raspberry PI IP address&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;If the determined IP address is &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;&amp;lt;IP address&amp;gt;&lt;/code&gt; then in the terminal type &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;ssh -Y pi@&amp;lt;IP address&amp;gt;&lt;/code&gt;&lt;/li&gt;
      &lt;li&gt;More info on SSH &lt;a href=&quot;https://www.raspberrypi.org/documentation/remote-access/ssh/&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
  &lt;li&gt;Using PuTTy on Windows:
    &lt;ol&gt;
      &lt;li&gt;&lt;a href=&quot;https://www.putty.org&quot; target=&quot;_blank&quot;&gt;Download PuTTy&lt;/a&gt;.&lt;/li&gt;
      &lt;li&gt;Add IP address in the hostname field.&lt;/li&gt;
    &lt;/ol&gt;
  &lt;/li&gt;
  &lt;li&gt;Using VNC: More info &lt;a href=&quot;https://www.raspberrypi.org/documentation/remote-access/vnc/README.md&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h3 id=&quot;installing-gr-radio_astro-installing-gr-radio_astro&quot;&gt;Installing &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gr-radio_astro&lt;/code&gt;: &lt;a href=&quot;/dspira-lessons/gr_radio_astro_Installation&quot; target=&quot;_blank&quot;&gt;Installing gr-radio_astro&lt;/a&gt;&lt;/h3&gt;

&lt;p&gt;Notes: run &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;volk_profile&lt;/code&gt; after installing everything to make sure GNURadio is optimized to work on your device.&lt;/p&gt;

&lt;p&gt;.&lt;/p&gt;
</description>
        <pubDate>Thu, 01 Jul 2021 00:00:00 +0000</pubDate>
        <link>https://wvurail.org//dspira-lessons/RaspberryPi</link>
        <guid isPermaLink="true">https://wvurail.org//dspira-lessons/RaspberryPi</guid>
      </item>
    
      <item>
        <title>Installing gr-radio_astro</title>
        <description>&lt;p&gt;This will install the spectrometer program &lt;em&gt;spectrometer_w_cal.grc&lt;/em&gt; as well as other useful radio astronomy GNURadio programs from the &lt;em&gt;gr_radio_astro&lt;/em&gt; repository in GitHub.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; The instructions on this page will install files for Ubuntu 22.04. If you are using Ubuntu 20.04 LTS, click &lt;a href=&quot;https://wvurail.org//dspira-lessons/gr_radio_astro_Installation_Ubuntu20&quot;&gt;here&lt;/a&gt; for the installation.&lt;/p&gt;

&lt;p&gt;Complete the following steps:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;Open a &lt;em&gt;Terminal&lt;/em&gt; window. This can be found in the &lt;em&gt;Show Applications&lt;/em&gt; waffle in the lower left corner of the screen.&lt;/p&gt;

    &lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; Most of the commands we use are entered in a &lt;em&gt;Terminal&lt;/em&gt; window. We recommend adding the &lt;em&gt;Terminal&lt;/em&gt; to your Favorites to be accessed easily.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;If you have not already done so during the GNURadio installation, install the gnuradio external python dependencies and SDR drivers by typing the following and hit enter:&lt;/p&gt;

    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sudo apt install gnuradio gr-osmosdr airspy python3-h5py python3-ephem git cmake liborc-0.4-dev -y&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;In the terminal type and enter:&lt;/p&gt;

    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git clone https://github.com/WVURAIL/gr-radio_astro.git&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Switch to the gr-radio_astro directory: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cd gr-radio_astro&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Type and enter: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git branch&lt;/code&gt; to verify that you are on the “main” branch. If you are NOT on the main branch, then type and enter: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git checkout main&lt;/code&gt;.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Make a build directory: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;mkdir build&lt;/code&gt;, and then move to it: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cd build&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Then run the following in the build directory:&lt;/p&gt;

    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;cmake ..
make
sudo make install
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;To check that the installation was successful, type and enter &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cd&lt;/code&gt; to get to the home directory. Run the program in Gnuradio:&lt;/p&gt;
    &lt;ul&gt;
      &lt;li&gt;In a terminal window type &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gnuradio-companion&lt;/code&gt;&lt;/li&gt;
      &lt;li&gt;
        &lt;p&gt;Open the &lt;em&gt;spectrometer_w_cal.grc&lt;/em&gt; program as follows from the File menu:&lt;/p&gt;

        &lt;p&gt;File –&amp;gt; Open –&amp;gt; gr-radio_astros –&amp;gt; examples –&amp;gt; DSPIRA –&amp;gt; &lt;em&gt;spectrometer_w_cal.grc&lt;/em&gt;&lt;/p&gt;
      &lt;/li&gt;
      &lt;li&gt;Plug an Airspy radio, with the LNA attached, into the USB port. Run the program by hitting the start triangle (“execute the flowgraph”) on the menu bar at top. If no errors occur, you are all set!&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Occasionally the files in gr_radio_astro may change. Complete the following to update these files.&lt;/p&gt;

&lt;h4 id=&quot;how-to-update-files-from-the-gr-radio_astro-repository&quot;&gt;How to Update files from the gr-radio_astro Repository&lt;/h4&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;Open the terminal window.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;From your home directory (cd ), go to the gr-radio_astro folder: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cd gr-radio_astro&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Type &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git status&lt;/code&gt;. Check the “On branch …” statement at the top. You want to be in the “main” branch. To get there, type &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git checkout main&lt;/code&gt;.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;Type &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git pull&lt;/code&gt;.
    &lt;ul&gt;
      &lt;li&gt;If a warning message shows up about local changes made that could overwrite files, type &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git stash&lt;/code&gt;.&lt;/li&gt;
      &lt;li&gt;Then type &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;git pull&lt;/code&gt; again.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Change to the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;build&lt;/code&gt; directory: &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;cd build&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Type &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rm -rf *&lt;/code&gt;. &lt;strong&gt;NOTE:&lt;/strong&gt; Make sure you are in the &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;build&lt;/code&gt; directory before typing &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;rm -rf *&lt;/code&gt;!&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;Then run the following:
    &lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;cmake ..
make
sudo make install
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;    &lt;/div&gt;
  &lt;/li&gt;
  &lt;li&gt;The update is complete.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;To Run the __spectrometer_w_cal.grc__ program in Gnuradio After Updating:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;In a terminal window type &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;gnuradio-companion&lt;/code&gt;.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Close any previous version of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;spectrometer_w_cal.grc&lt;/code&gt; that might be open in Gnuradio.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Open the new version of &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;spectrometer_w_cal.grc&lt;/code&gt; from the folder &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;/gr-radio_astro/examples/DSPIRA/&lt;/code&gt;&lt;/p&gt;

    &lt;ul&gt;
      &lt;li&gt;under &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;File&lt;/code&gt; select &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;Open&lt;/code&gt;;&lt;/li&gt;
      &lt;li&gt;Navigate to the&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt; gr-radio_astro&lt;/code&gt; folder.&lt;/li&gt;
      &lt;li&gt;Under &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;examples&lt;/code&gt; open &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;DSPIRA&lt;/code&gt;; then select &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;spectrometer_w_cal.grc&lt;/code&gt;.&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Connect an Airspy SDR to a USB port, and start the program running (Hit the black triangle at the top middle ribbon bar.)&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

</description>
        <pubDate>Thu, 01 Jul 2021 00:00:00 +0000</pubDate>
        <link>https://wvurail.org//dspira-lessons/gr_radio_astro_Installation</link>
        <guid isPermaLink="true">https://wvurail.org//dspira-lessons/gr_radio_astro_Installation</guid>
      </item>
    
      <item>
        <title>Installing GNURadio</title>
        <description>&lt;p&gt;To install GNURadio, complete the following:&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;Open a terminal window.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Type and enter &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sudo apt update&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Type and enter &lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sudo apt upgrade&lt;/code&gt;&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Type and enter&lt;/p&gt;

    &lt;p&gt;&lt;code class=&quot;language-plaintext highlighter-rouge&quot;&gt;sudo apt install gnuradio gr-osmosdr airspy python3-h5py python3-ephem git cmake liborc-0.4-dev -y&lt;/code&gt;.&lt;/p&gt;

    &lt;p&gt;You may need to respond ‘Y’ to a few prompts before installation is complete.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

</description>
        <pubDate>Thu, 01 Jul 2021 00:00:00 +0000</pubDate>
        <link>https://wvurail.org//dspira-lessons/GNURadio_Installation</link>
        <guid isPermaLink="true">https://wvurail.org//dspira-lessons/GNURadio_Installation</guid>
      </item>
    
  </channel>
</rss>
