Jump to content

Banner.jpg.b89429c566825f6ab32bcafbada449c9.jpg

Gina

Beyond the Event Horizon
  • Posts

    45,326
  • Joined

  • Last visited

  • Days Won

    120

Blog Comments posted by Gina

  1. PART 8 - Adding an INDI driver not included in the INDI library.

    Most of the hardware drivers I want are in the INDI library but not all, hence this section on adding and extra one or two from an alternative source.

    I have my own DIY remote focussing system which I wanted to adapt to use with INDI and RPi.  The Astroberry Focuser pretty much provides this.  The Astroberry library also contains other drivers - a total of four.  Two of these I can use but not the other two.  See the sourceforge Astroberry page for information on their drivers.  When I tried to install the full set I got errors from one of the drivers I didn't want so I went into the source code and deleted the drivers I didn't want from the compilation.

    Since these drivers connect through the GPIO pins on the RPi a driver is needed for the BCM2835 microprocessor to access the GPIO pins.

    If not already connected to the RPi, SSH into it as before - ssh pi@raspberrypi

    Now copy the following commands to the RPi command line one at a time and wait while each command is processed.  When you get "Do you want to continue? [Y/n]" press Enter.  Be careful not to miss any lines.

    sudo apt-get install subversion cmake libgps-dev
    wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.50.tar.gz
    tar xvfz bcm2835-1.50.tar.gz
    cd bcm2835-1.50
    ./configure
    make
    sudo make install

    Next to download the Astroberry source code.  Copy the following commands to the RPi command line one at a time and wait while each command is processed.  When you get "Do you want to continue? [Y/n]" press Enter.

    cd ~/
    svn checkout svn://svn.code.sf.net/p/astroberry/svn/trunk/ astroberry-svn 
    cd astroberry-svn

    Here is a list of the source files we have downloaded to the RPi.

    pi@raspberrypi:~/astroberry-svn $ ls
    AUTHORS         COPYING.LIB         indi_rpifocus.xml  README          rpi_brd.cpp    rpi_focus.h
    CMakeLists.txt  indi_rpialtimu.xml  indi_rpigps.xml    rpi_altimu.cpp  rpi_brd.h      rpi_gps.cpp
    cmake_modules   indi_rpibrd.xml     INSTALL            rpi_altimu.h    rpi_focus.cpp  rpi_gps.h
    pi@raspberrypi:~/astroberry-svn $ 

    The file we want to edit is CMakeLists.txt.  Previously I edited this with the Linux editor nano but that's rather fiddly to use.  I would prefer to suggest using a graphical editor (such as Notepad in Windows or Text Editor in Linux).  This would want the micro SD card put in a PC with a GUI.  While the micro SD card is out of the RPi it would be a good opportunity to make a backup.  Since the Windows machine is used for backup, I think the editing might as well be done in Notepad.

    Made the backup then tried to use Notepad but only the boot partition seems available in Windows so I'll use Linux.

    Used Eject in Windows to close the micro SD card, took it out of the Windows card reader and put it in the Linux card reader.  Navigated to /home/pi/astroberry-svn and opened CMakeLists.txt in Text Editor.

    Screenshot from 2017-02-05 21-38-20.png

    Now we can simply edit out the unwanted part which is the Astroberry AltIMU (the troublesome part) and Astroberry GPS (not wanted) and then Save back.

    Screenshot from 2017-02-05 21-53-07.png

    Eject card and remove from card reader.  Put card in RPi and power up.

    SSH into it as before - ssh pi@raspberrypi

    Copy the following commands to the RPi command line one at a time and wait while each command is processed.  This compiles the source code and installs the drivers.

    mkdir indi-astroberry
    cd indi-astroberry
    cmake -DCMAKE_INSTALL_PREFIX=/usr ../astroberry-svn
    make
    sudo make install

    Relatively small amount of processing this time so I'll list the results.  This is the whole session from cold.

    gina@gina-mint-PI ~ $ ssh pi@raspberrypi
    pi@raspberrypi's password: 
    
    The programs included with the Debian GNU/Linux system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.
    
    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    permitted by applicable law.
    Last login: Sun Feb  5 15:06:29 2017 from gina-mint-pi.home
    pi@raspberrypi:~ $ mkdir indi-astroberry
    pi@raspberrypi:~ $ cd indi-astroberry
    pi@raspberrypi:~/indi-astroberry $ cmake -DCMAKE_INSTALL_PREFIX=/usr ../astroberry-svn
    -- The CXX compiler identification is GNU 4.9.2
    -- The C compiler identification is GNU 4.9.2
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Check for working C compiler: /usr/bin/cc
    -- Check for working C compiler: /usr/bin/cc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Found PkgConfig: /usr/bin/pkg-config (found version "0.28") 
    -- Checking for module 'libindi'
    --   Found libindi, version 1.3.1
    -- Found INDI: /usr/include/libindi (found version "1.3.1") 
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/pi/indi-astroberry
    pi@raspberrypi:~/indi-astroberry $ make
    Scanning dependencies of target indi_rpifocus
    [ 25%] Building CXX object CMakeFiles/indi_rpifocus.dir/rpi_focus.o
    [ 50%] Linking CXX executable indi_rpifocus
    [ 50%] Built target indi_rpifocus
    Scanning dependencies of target indi_rpibrd
    [ 75%] Building CXX object CMakeFiles/indi_rpibrd.dir/rpi_brd.o
    [100%] Linking CXX executable indi_rpibrd
    [100%] Built target indi_rpibrd
    pi@raspberrypi:~/indi-astroberry $ sudo make install
    [ 50%] Built target indi_rpifocus
    [100%] Built target indi_rpibrd
    Install the project...
    -- Install configuration: ""
    -- Installing: /usr/bin/indi_rpibrd
    -- Installing: /usr/share/indi/indi_rpibrd.xml
    -- Installing: /usr/bin/indi_rpifocus
    -- Installing: /usr/share/indi/indi_rpifocus.xml
    pi@raspberrypi:~/indi-astroberry $ 

    Here's a more colourful version which also shows what happens when you add the wrong command :D  As in this case, it's often not disastrous but if it is, this is where the last backup comes in handy!

    Screenshot from 2017-02-06 10-47-05.png

    To make it work we need to reboot and log back in then run indiserver with a list of the drivers required.

    sudo reboot
    ssh pi@raspberrypi
    indiserver -m 100 -vv indi_asi_ccd indi_asi_wheel indi_eqmod_telescope indi_rpifocus indi_rpibrd

    Astroberry Focuser and Astroberry Board drivers are now working :)  All the other drivers and all the hardware also work.  Success!

    Screenshot from 2017-02-06 15-02-02.png

    Now with everything working it's time for a backup. 

    Use Ctrl C to exit the INDI server in the RPi.  Shut down system using, sudo shutdown -h -P now,  power down and remove card from RPi.  Put in card reader in Windows PC and make a backup as in Part 4.

    END OF PART 8

  2. PART 7 - Testing.

    I have already installed KStars in my Linux Mint desktop and will use this for testing.  I also have an imaging rig set up on an NEQ6 mount in my living room and pointing out of a window.  The rig consists of Esprit 80ED Pro scope, ZWO EFW mini filter wheel and ASI1600MM-Cool camera.  13.8v power is provided by a bench PSU.  The EFW is connected to the USB hub on the camera and camera connected to USB port on the new RPi.  Mount is connected via a USB-serial adapter cable to a USB port on the RPi.  RPi currently powered by a Raspberry PSU.

    I'm going to test the new INDI installation using the ZWO ASI1600MM-Cool camera and EFW plus NEQ6 mount.  The camera driver is indi_asi_ccd, the ZWO EFW driver indi_asi_wheel and mount indi_eqmod_telescope.

    Put micro SD card into RPi and power up then SSH into it from Linux - ssh pi@raspberrypi

    Copy indiserver -m 100 -vv indi_asi_ccd indi_asi_wheel indi_eqmod_telescope into command line and run.

    To check it was working I ran KStars and then Ekos from the KStars menu.  Set up the Profile for the RPi and saved it.

    Screenshot from 2017-02-05 15-36-19.png

    Screenshot from 2017-02-05 15-39-36.png

    Start INDI and the INDI Control Panel pops up.  Went to each tab and clicked Connect to check that each device would connect - they did and everything worked.

    Screenshot from 2017-02-05 15-17-57.png

    Here's an image of far trees about a mile away captured using this software. 

    Screenshot from 2017-02-05 15-51-11.png

    CONCLUSION :-  Test successful - INDI installation works fine :)

    END OF PART 7

  3. PART 6 - Installing dependencies, unpacking the libindi package and installing all the driver files.

    Insert the micro SD card into the RPi and power up.  After a few seconds it will be ready.

    SSH into the RPi from a Terminal window in Linux - ssh pi@raspberrypi

    Install the dependencies (stuff needed by libindi but not included in the libindi package) - copy the following (long) line into the RPi and if it doesn't start immediately press Enter.  Make sure you get all the line or it won't work properly. 
    Hint - triple click on line to select it all, then Copy.

    sudo apt-get install cdbs libcfitsio3-dev libnova-dev libusb-1.0-0-dev libjpeg-dev libusb-dev libtiff5-dev libftdi-dev fxload libkrb5-dev libcurl4-gnutls-dev libraw-dev libgphoto2-dev libgsl0-dev dkms libboost-regex-dev libgps-dev libdc1394-22-dev
    

    When it asks "Do you want to continue? [Y/n]" press Enter.  Masses of text will scroll up the screen as the packages are downloaded, unpacked and installed.  Sometimes there will be a pause as it processes.

    I have just done this and got no errors - (you can scroll up the displayed text if you like, to see what happened - remember to scroll back down to the prompt when done).

    Next we unpack the libindi package and install the driver files.  Copy the following lines into the RPi command line one at a time and wait for the processing to finish before doing the next (the first two are virtually instantaneous, the last takes longer).  Press Enter if needed.

    tar -xzf libindi_1.3.1_rpi.tar.gz
    cd libindi_1.3.1_rpi
    sudo dpkg -i *.deb

    Here's a copy of part of my RPi terminal - yours should look the same.

    pi@raspberrypi:~ $ tar -xzf libindi_1.3.1_rpi.tar.gz
    pi@raspberrypi:~ $ cd libindi_1.3.1_rpi
    pi@raspberrypi:~/libindi_1.3.1_rpi $ sudo dpkg -i *.deb

    At this stage all the drivers contained in the INDI library package should work.  There are other INDI drivers available from separate sources for equipment not included in the INDI library.  I shall show installing a couple in a later part.  Whether the current installation will work for you as is, will depend on what equipment you use.

    Before trying the software it is a good time to make a backup as detailed in Part 4 but first we must shut down the RPi cleanly so as to avoid data corruption.  Copy sudo shutdown -h -P now to the command line or scroll up the history list, using the up arrow, to that command.

    pi@raspberrypi:~/libindi_1.3.1_rpi $ sudo shutdown -h -P now

    Switch off the power to the RPi and take out the micro SD card.  Now go to Part 4 for backup instructions.

    IMPORTANT NOTE :- If you get the following screen come up close it immediately - don't let it try to "fix" it - that will destroy your data!!

    Screenshot from 2017-02-05 14-31-52.png

    END OF PART 6

  4. PART 5 - Downloading and Installing the INDI library package.

    If the micro SD card is still in a running Windows system, Eject it and remove the card.

    Now insert in card reader on Linux machine (in my case my Linux Mint tower) and view the Desktop.  Two icons will be displayed representing the micro SD card for the two partitions that have been installed.  These are the boot partition that we saw in Windows and a main partition that will be called <card size> Volume.  eg. I used a 16GB card I had available but this is far bigger that required for the present purpose, that's why this is showing a 16 GB Volume.  Using a larger card doesn't matter - it just has more unused space.

    Screenshot from 2017-02-05 11-11-26.png

    Open the Volume to display the files.

    Screenshot from 2017-02-05 10-54-43.png

    Now double click home to display the home folder followed by pi to display the /home/pi folder.  This is where we will put the INDI library package.

    Screenshot from 2017-02-05 11-25-43.png

    Leaving this window open, we will now download the libINDI package.  In your browser go to page http://indilib.org/support/tutorials/139-indi-library-on-raspberry-pi.html

    Screenshot from 2017-02-05 11-36-09.png

    Hover over Download and choose Raspberry PI by clicking on it.

    Screenshot from 2017-02-05 11-41-37.png

    Screenshot from 2017-02-05 11-45-51.png

    Click on the orange Download button and download the file.  Navigate to your Downloads folder and you will see the file you've just downloaded.  In this screenshot I show my Downloads folder with the file highlighted.

    Screenshot from 2017-02-05 11-53-21.png

    Now display the RPi micro SD card contents in addition to this one and copy the downloaded file across to the micro SD card eg. drag and drop.  This should be the result.  Ignore any other files in the Downloads folder.

    Screenshot from 2017-02-05 12-08-31.png

    The libindi package is now installed into the micro SD card and ready for unpacking etc.  We have now finished with these windows and they can be closed.

    Next show the Desktop and right click on either boot or Volume icons and choose EJect.  Both icons will disappear from the Desktop.  Now the micro SD card can be removed from the card reader. 

    The indilib package is now installed and this seems a good point for a break.

    In the next part we will SSH into the RPi and unpack and install all the driver files contained in the package.

    END OF PART 5

  5. PART 4 - How to back up your work.

    Make sure you have shut down the RPi properly as in Part 3 above, then switch off the power before removing the micro SD card.  That will avoid the possibility of data corruption on the card.

    I use the Windows app Win32 Disk Imager for this as it is simple and straightforward.  It uses the reverse of writing to the card ie. reading it and saving the image to a file on the HD of the host computer.

    I recommend setting up a special folder on your Windows PC to save your backups into to help avoid inadvertently deleting them.  eg. I use RPi Backup Images on drive E: - well separated from the system drive.

    This is a list of my backup files from earlier when I started this process - as an example.

    Screenshot from 2017-02-04 22-46-54.png

    Now put the micro SD card in the card reader, close the AutoPlay window and run Win32 Disk Imager again.  Open the Image File folder from the blue Folder button and select your backup folder.  Type a file name in the box provided.

    Screenshot from 2017-02-04 23-06-15.png

    Click Open to choose this file name and return to the main Win32 Disk Imager window.  As it happens, this time I put the card in a different slot in the card reader and got a different drive letter.

    Screenshot from 2017-02-04 23-13-53.png

    Now with Device and file name to save to set up, it only remains to click Read to start the backup.

    Screenshot from 2017-02-04 23-22-35.png

    Screenshot from 2017-02-04 23-31-35.png

    Thats it - DONE :)  Close window and Exit Win32 Disk Imager (or leave open for next time).

    END OF PART 4

  6. PART 3 - setting up the RPi ready to install the INDI library.

    I now go over to my Linux Mint desktop and open a terminal window.  My user name is gina and the computer name is gina-mint-PI (named that because this is where I run PixInsight).  Your prompt will reflect your user name and computer name. 

    I believe this process can also be handled from Windows by using a utility called PuTTY.  I may look at this and produce some instructions later, if there is a call for it.

    Screenshot from 2017-02-04 20-50-14.png

    Then type in ssh pi@raspberrypi.  pi is the user name and raspberrypi the computer name.

    You may or may not get this message.  I do because I have used Raspberry Pi boards before.

    gina@gina-mint-PI ~ $ ssh pi@raspberrypi
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @       WARNING: POSSIBLE DNS SPOOFING DETECTED!          @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    The ECDSA host key for raspberrypi has changed,
    and the key for the corresponding IP address 192.168.1.85
    is unknown. This could either mean that
    DNS SPOOFING is happening or the IP address for the host
    and its host key have changed at the same time.
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
    IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
    Someone could be eavesdropping on you right now (man-in-the-middle attack)!
    It is also possible that a host key has just been changed.
    The fingerprint for the ECDSA key sent by the remote host is
    SHA256:eH1WdV9WJUJktIH5gEjaVgk1JqWtjKOrzP86pes0Tp4.
    Please contact your system administrator.
    Add correct host key in /home/gina/.ssh/known_hosts to get rid of this message.
    Offending ECDSA key in /home/gina/.ssh/known_hosts:7
      remove with:
      ssh-keygen -f "/home/gina/.ssh/known_hosts" -R raspberrypi
    ECDSA host key for raspberrypi has changed and you have requested strict checking.
    Host key verification failed.
    gina@gina-mint-PI ~ $ 

    If you do, follow the instruction given - replacing "gina" with you own user name, viz.

    gina@gina-mint-PI ~ $ ssh-keygen -f "/home/gina/.ssh/known_hosts" -R raspberrypi
    # Host raspberrypi found: line 7
    /home/gina/.ssh/known_hosts updated.
    Original contents retained as /home/gina/.ssh/known_hosts.old
    gina@gina-mint-PI ~ $

    Now SSHing into the RPi gives :-

    gina@gina-mint-PI ~ $ ssh pi@raspberrypi
    The authenticity of host 'raspberrypi (192.168.1.85)' can't be established.
    ECDSA key fingerprint is SHA256:eH1WdV9WJUJktIH5gEjaVgk1JqWtjKOrzP86pes0Tp4.
    Are you sure you want to continue connecting (yes/no)? yes
    Warning: Permanently added 'raspberrypi,192.168.1.85' (ECDSA) to the list of known hosts.
    pi@raspberrypi's password: 
    
    The programs included with the Debian GNU/Linux system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.
    
    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    permitted by applicable law.
    
    SSH is enabled and the default password for the 'pi' user has not been changed.
    This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.
    
    pi@raspberrypi:~ $

    Now we need to perform a couple of configurations using sudo raspi-config - type this into the terminal at the command line or copy it from here.

    Screenshot from 2017-02-04 21-07-13.png

    First job is to Expand Filesystem as highlighted.  Press right arrow on keyboard (this screen doesn't respond to mouse clicks) to <Select> and press Enter. 

    Screenshot from 2017-02-04 21-15-15.png

    Press Enter.

    The RPi password can also be changed here.  Scroll down one and select it - follow the instructions (using the keyboard as before.  When finished navigate to <Finish> and press Enter.  When it asks if you want to reboot answer Yes.

    Enter new UNIX password: 
    Retype new UNIX password: 
    passwd: password updated successfully
    
    Broadcast message from pi@raspberrypi on pts/0 (Sat 2017-02-04 21:23:54 UTC):
    
    The system is going down for reboot NOW!
    
    pi@raspberrypi:~ $ Connection to raspberrypi closed by remote host.
    Connection to raspberrypi closed.
    gina@gina-mint-PI ~ $ 

    Now is a good time to make sure all the operating system is right up-to-date.  Firstly, since the RPi has been rebooted we need to SSH into it again with ssh pi@raspberrypi.

    gina@gina-mint-PI ~ $ ssh pi@raspberrypi
    pi@raspberrypi's password: 
    
    The programs included with the Debian GNU/Linux system are free software;
    the exact distribution terms for each program are described in the
    individual files in /usr/share/doc/*/copyright.
    
    Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
    permitted by applicable law.
    Last login: Sat Feb  4 20:03:52 2017 from gina-mint-pi.home
    pi@raspberrypi:~ $ 

    Now enter

    sudo apt-get update && sudo apt-get upgrade && sudo reboot

    at the command prompt (don't forget to press Enter to make it work). 

    This will take a while.  Hundreds of lines of text (showing what it's doing) scroll up the screen.  Sometimes there seems to be a pause but it's just working.

    When it asks "Do you want to continue? [Y/n]" press Enter for Yes.

    The process will stop with a list of certificates - press q to quit to come out of the list (it doesn't quit the upgrade).

    At the end of the process the system reboots.

    The system is going down for reboot NOW!
    
    pi@raspberrypi:~ $ Connection to raspberrypi closed by remote host.
    Connection to raspberrypi closed.
    gina@gina-mint-PI ~ $ 

    We are now ready to install the INDI library and its dependencies but before doing that I suggest making a backup of the system so far then if anything goes wrong you can replace all the code on the micro SD card with the last backup.  Like a System Restore in Windows.  I will cover that in the next part.

    One last point for this section :- Don't just pull out the micro SD card or unplug the RPi card, shut down properly using the following command :- 

     sudo shutdown -h -P now

    pi@raspberrypi:~ $ sudo shutdown -h -P now
    
    Broadcast message from pi@raspberrypi on pts/0 (Sat 2017-02-04 22:27:29 UTC):
    
    The system is going down for power-off NOW!
    
    pi@raspberrypi:~ $ Connection to raspberrypi closed by remote host.
    Connection to raspberrypi closed.
    gina@gina-mint-PI ~ $ 

    If the last command was reboot (as above) you will need to SSH into the RPi again before shutting down.

    END OF PART 3

  7. PART 2 - Enabling further setting up and use of the Raspberry Pi in "headless" mode.

    This is a relatively short part of the whole job and has become necessary because the folks developing Raspian decided a few months ago to disable SSH - the method of accessing the OS over LAN rather than using human interface devices.

    The principle is quite simple really - a file called "SSH" without an extension is placed in the /boot folder of the micro SD card.  Creating extension-less files needs a special technique that is not general knowledge (at least not to me).

    While the micro SD card is still in the card reader in the Windows PC, go to Computer and find the card. It should have the same drive letter as previously and probably called boot.

    Screenshot from 2017-02-04 19-23-45.png

    Now open Notepad, don't type anything into it but Save As (from File Menu) and call it "SSH" including the quote marks.  This causes the file to be saved without an extension.  Save it into boot.

    Screenshot from 2017-02-04 19-34-52.png

    This list of files in the micro SD card boot folder shows that the SSH file is of type File rather then Text and has no extension.

    Screenshot from 2017-02-04 19-39-34.png

    I have Ejected the micro SD card from the Win7 PC, taken it out of the card reader and put it in a new Raspberry Pi 3.  Then connected the RPi to a Raspberry PSU unit, plugged it into a mains socket and switched on.  The procedure above has worked :)

    END OF PART 2

  8. PART 1 - Installing the Operating System.

    This part was done using Windows 7.  It should be obvious but you need an SD card reader/writer on (or connected to) the computer.

    Insert a new micro SD card (any size above 4GB should do) into the SD card reader, either directly or using the micro SD to standard SD card adapter provided.  You should get something like this :-

    AutoPlay 01.png

    Make a note of the drive letter - in this case I: (yours will probably be different) then close window (X in top RH corner).

    Download, install and run Win32 Disk Imager - you should get something like this :-

    Win32DiskImager 01.png

    Check that the Device (top right) shows the same drive as you saw after inserting the micro SD card.

    Go to the Raspbian Jessie Lite download page and download RASPBIAN JESSIE LITE  ZIP file.

    Download Page 01.png

    Go to your downloads, right click and Open Containing Folder.  Right click on the file just downloaded and choose Extract All.  Note that the (1) that has appeared on my file will not be on yours - it's on mine because I downloaded the same filename earlier.

    Extract 01.png

    Click Extract and get something like the screenshot below.  The date part indicates when the last version was published.  This .img file is the file to navigate to in the Win32 Disk Imager later.

    Screenshot from 2017-02-04 16-45-22.png

    Run Win32 Disk Imager.

    Win32DiskImager 01.png

    In the LH box labelled Image File, click on the blue folder icon to navigate to the downloaded Raspbian Jessie Lite .img file in the Downloads folder as shown above.  Note the folder name (derived from the downloaded file name) will not have the (1) part if you haven't downloaded Raspian Jessie Lite before.

    Screenshot from 2017-02-04 17-58-58.png

    With the right destination Device and the Image File selected we are ready to Write the image to the SD card.  Click Write and you get this warning :-

    Screenshot from 2017-02-04 18-07-39.png

    Click Yes to write the image to the SD card (assuming the right target device, of course).

    Screenshot from 2017-02-04 18-20-26.png

    Wait while the image is written to the card.  When finished you should get :-

    Screenshot from 2017-02-04 18-24-17.png

    Click OK.  You can now Exit Win32 Disk Imager.  The micro SD card now has the Raspbian Lite image on it and we are ready for the next stage.

    END OF PART 1

    • Like 1
  9. I have a slight quandary - I used a mixture of Windows and Linux to install and set up the RPi.  I guess I should start off using one OS or the other exclusively and the maybe go on to describe how to use the other.  The operating systems were Windows 7 and Linux Mint.  Now I feel that pretty much anyone using Windows should have no problem using Linux Mint as in many ways it's very similar.

    One thing that springs to mind is that anyone needing this tutorial will most likely have a Windows laptop that they are using for astro imaging already so I think I shall proceed to describe exactly what I did to get my RPi working for imaging and later see if I can adapt the procedure for other systems.

  10. INTRODUCTION

    This is a tutorial explaining how to install an operating system and software into a micro SD card to use in a Raspberry Pi for astro imaging and control of the relevant hardware. 

    The operating system I'm using is Raspbian Lite, a version of Linux recommended for the Raspberry Pi.  The software to capture images, control camera cooling and other things such as the mount etc. is called INDI and provides a set of drivers to control all the hardware.

    The Raspberry Pi is run in what is called "headless" mode - meaning that no human interfaces are directly connected to the RPi - instead the RPi is connected to the local area network (LAN) using either Ethernet (preferred for speed and reliability) or WiFi.  Everything is then controlled from indoors on a computer also connected to the LAN.  This computer is called a "client" and the Raspberry Pi a "server".

    This tutorial will detail all the steps involved in installing the operating system and software - there are rather a lot of them, hence the need for a tutorial.  I believe that anyone with some knowledge of computers should be capable of following these steps and setting up a working Linux based astro imaging system.  The Raspberry Pi can be put on the pier (or tripod) or even directly on the telescope mounting and would replace a laptop for instance, reducing the use of long cables etc.

  11. I generally use remote imaging and control for my DSO imaging and may do the same for solar imaging.  If so it would be nice to have a remote solar finder.  For this the RPi camera would seem ideal, looking at the solar finder attached to the telescope.  OTOH using the KStars map I can simply move the telescope to the sun - assuming the mount has been polar aligned and set up with Home pointing to Polaris.

    If I use a different pier for the solar scope it will have to be with a view north to align it with Polaris on a clear night so immediately in front of the house would not do as the house faces south.  I don't really want to hog the main observatory with the solar telescope - I would like to keep a dark side imaging rig set up on the EQ8 mount.  Solar imaging doesn't need such a good mount - the NEQ6 should be perfectly adequate.

    I think I shall try the NEQ6 tripod on the concrete to the side of the house where I should be able to align the PoleMaster with Polaris and yet still be able to point the solar telescope at the sun for longer than is possible in the observatory.  I this proves satisfactory I may build a concrete pier later.

  12. The sun came out briefly and I caught a glimpse of the limb in the ASI1600MM-Cool image.  Looks like the image disc would cover this size of image sensor, not that I'm planning to use this camera as it won't do the fast frame rates.  This is with the camera as close as I can get it to the Barlow which puts the image sensor some 20-25mm from the top of the Barlow.

  13. Field of view calculation with ASI174MM and ASI1600MM and 2x Barlow.  I'm hoping to get the chance to check the FOV with my ASI1600MM-Cool probably with the help of the odd rubber band to help with the weight :D  It's totally overcast ATM but sunshine is forecast for this afternoon - I won't hold my breath.  Meanwhile, I shall try to get the RPi 3 set up for control and imaging.

    59a511278ee12_FOVASI174MMASI1600MM01.thumb.png.6d4a91f71e4867e660f06c193de9d823.png

  14. Here are some photos of the back end of the solar scope.  A couple of different eyepieces on an extension on the 2x Barlow giving about 3x magnification.  Then imaging with ASI185MC and ASI1600MM-Cool cameras either right down on the Barlow or spaced a bit further away to increase magnification and reduce brightness slightly.

    40mm Plossl eyepiece.
    59a47971b6ffa_VisualSetUp01.thumb.JPG.d3fc7836674a8f940a4c0731b4d88ede.JPG

    Baader Hyperion Zoom eyepiece set to 24mm
    59a479672b2cd_VisualSetUp02.thumb.JPG.21d7b9f6a3ebc193c78315b9517e622b.JPG

    ASI185MC camera directly on 2x Barlow.
    59a4795c3db86_ImagingSetUp01.thumb.JPG.6909e1a9580a5cbd5000ba584569524a.JPG59a47952533c2_ImagingSetUp02.thumb.JPG.3975fb0cbf38535d74e469deecf674ff.JPG

    ASI1600MM-Cool directly on 2x Barlow.
    59a479491a248_ImagingSetUp03.thumb.JPG.f7410bace747ac4124f31b86af41de84.JPG59a4793d7e040_ImagingSetUp04.thumb.JPG.317dedee6b438f2d3a8ca483b5bea327.JPG

     

  15. I think the Raspberry Pi 3 will provide control of the mount and stepper motors for focus, tuning and possibly camera rotation.  It can also handle the camera for initial testing but when I want high frame rates I plan to use the micro PC for data storage.  Fortunately INDI can handle multiple processors for device control.  The RPi provides hardware IO and the micro PC a USB3 port and gigabit Ethernet plus micro SD data storage.

    • Like 1
  16. Another conclusion I have come to is that the present observatory does not provide the best environment for the Ha solar telescope.  The orientation prevents use late in the afternoon.  I'm thinking that a pier nearer the house would be more suitable but this will be a future project - I'll make do with my present observatory for testing.

  17. Time for summing up I think.  This scope has definite possibilities and the FOV with the proposed ASI174MM camera should be fine.  I'm sure the resolution will be more than adequate and the high speed capabilities of this camera plus the slightly bigger image sensor would seem to make it ideal. 

    The other camera I've been looking at is the ASI178MM.  This has a smaller image sensor but much higher resolution.  It also has a rolling shutter which is not ideal.  Probably because of this the frame rate is limited.  It does higher frame rates at lower resolution but it doesn't say if this is by binning or reduced ROI (region of interest).  If the latter, it would make it unsuitable.

    Looking at these two cameras' capabilities then, plus the information about the intended use, everything points to the ASI174MM as the one for solar imaging.  All in all, the 174 comes out strongly on top.  The downside is the price but I'm reminded of the phrase "spoiling the ship for a h'aporth of tar" :D  Anyway, with the telescope costing less than expected the better camera still comes within my original proposed budget.

    That is the camera decided then :)  So I'll order it from FLO.

  18. Hazy sunshine so far today but hoping the sky might clear later.  Micro PC plus SD cards have arrived but the thin cloud seems to be here to stay all day :(  Too hot to do much anyway. 

    I've got an electronics control box for my rotating widefield imaging rig but I've mislaid it.  That has two stepper drivers.  I have the one off my Esprit imaging rig but that only has one driver for the focussing.  Both are set up with INDI drivers for the camera and mount controls plus focussing.  I had auto focussing working from KStars/Ekos with the Esprit :)  Probably won't want auto-focus for solar imaging as the procedure uses stars for focussing for dark side imaging.  I guess I can use the single motor drive control box for now for testing.

  19. Being in strong direct sunlight the camera got pretty warm so I think a sun shield is indicated.  Apart from that I don't think any camera cooling will be required as the image is bright but if it were wanted I could use a Peltier TEC.  The sensors in these cameras are thermally connected to the case.  I tried Peltier cooling in one of the versions of my all sky cam and it was pretty efficient.  Then I changed to a much better lens and no cooling was needed.

  20. I've ordered a neutral density filter with 12.5% transmission - I'll try that.  At least the tests showed that the image sensor size is roughly right, just that the camera was too sensitive for this particular setup.  This was with the camera directly on the 2x Barlow whereas the observing system has an additional extension tube giving more like 3x from the Barlow.  I'll take and post some photos later to show what I'm talking about.  Another test I can apply is to add in a short extension tube between the 2x Barlow and camera to reduce the brightness.  Not today though - the sun is too low now.  Anyway, that laptop is driving me nuts!!

  21. My astro laptop worked well enough this afternoon to capture a somewhat washed out solar image.   EQMOD worked just long enough to enable me to point the scope at the sun and set tracking to solar before it crashed again.  Took a while to get the image lined up correctly because EQMOD had stopped working and I had to use nudging with the mount clutches eased slightly to do the required fine slewing.  I had to add the ND6 filter to reduce brightness but it was still too bright and the sun's surface saturated the image sensor even with minimum exposure and gain.  It needs a denser filter.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. By using this site, you agree to our Terms of Use.