anat
sage
Reged: 06/03/04
|
PiAstroHub: RaspberryPi for Autoguiding+DSLR+GOTO
#5369851 - 08/15/12 10:31 AM Attachment (130 downloads)
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
Hello All,
Raspberry Pi is a small low cost platform for my new project - PiAstroHub.
I installed Open-PHD-guiding on the Pi with an assistance from a friend:
http://stargazerslounge.com/topic/158463-open-phd-indi-server-qhy5-on-a-raspberry-pi/
Now I can run PHD guiding on the device from iPad or Android via a X windows program (iSSH for iPad). I am now writing a web application to control a DSLR camera and to view photos taken by the camera via a web browser on the device. And yes, Goto can be commanded from SkySafari
I will keep you updated
Anat
Edited by anat (08/15/12 10:56 AM)
|
gonzothegreat
journeyman
Reged: 11/20/11
|
Re: PiAstroHub: RaspberryPi for Autoguiding+DSLR+GOTO
[Re: anat]
#5370175 - 08/15/12 01:49 PM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
Greetings,
I'm the 'friend'  I'm also behind the following joined project with somebody else: http://code.google.com/p/eq-polar-alignment/
Still have to order my QHy5....
|
psonice
Pooh-Bah
Reged: 07/24/09
Loc: Warrington, UK
|
Re: PiAstroHub: RaspberryPi for Autoguiding+DSLR+GOTO
[Re: gonzothegreat]
#5370464 - 08/15/12 05:40 PM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
Wonderful stuff. First we had the rush of people planning to buy a Pi to use as a regular computer with little IT knowledge, and I was a bit concerned about how it would work out, but now I'm starting to see lots of really cool projects like this 
Is it fast enough to handle the guiding software? I know the CPU in it is particularly weak (attempts to run linux with a GUI without GPU acceleration have been very painful!), but it's enough to handle a lot of stuff. And the GPU looks reasonably good, and could definitely take a lot of the load in a guiding app.
|
anat
sage
Reged: 06/03/04
|
Re: PiAstroHub: RaspberryPi for Autoguiding+DSLR+GOTO
[Re: psonice]
#5370677 - 08/15/12 08:46 PM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
I am using a low-quality Class4 SD card to run Raspbian and it takes about 8 sec for a 2sec shot to complete a cycle. I will use a good Class 10 card and expect 2x-2.5x improvement. If I want more improvement, I may switch off image display during guiding in the source code because a graph can show guiding errors.
|
anat
sage
Reged: 06/03/04
|
Re: PiAstroHub: RaspberryPi for Autoguiding+DSLR+GOTO
[Re: anat]
#5371258 - 08/16/12 09:08 AM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
Now, I use a Sandisk 16GB Class 10 Extreme (45MB/s) SD card. I tested cycling shots with an exposure time of 1 sec. The time interval between shots (exposure+download+image display time) is about 3 sec. And for an exposure time of 2 sec, the time interval is about 4 sec.
ADDED NOTE (Aug 19): I could not reproduce the speed achieved above. I need to check!
Edited by anat (08/19/12 12:08 AM)
|
gonzothegreat
journeyman
Reged: 11/20/11
|
Re: PiAstroHub: RaspberryPi for Autoguiding+DSLR+GOTO
[Re: anat]
#5371285 - 08/16/12 09:26 AM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
Anat, ignore my email about the SD card, just noticed that you've posted the answer here.
|
anat
sage
Reged: 06/03/04
|
Re: PiAstroHub: RaspberryPi for Autoguiding+DSLR+GOTO
[Re: gonzothegreat]
#5371321 - 08/16/12 09:55 AM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
This is the step to install the QHY5 driver and Open-PHD-guiding after making a Raspbian “wheezy” SD card
http://www.raspberrypi.org/downloads
Note:
1. Set Locale to "en_US UTF8" otherwise there will be an error message when open PHDguiding.
2. The working directory is /home/pi/
----------------------------------
sudo apt-get update
sudo apt-get upgrade
# install dependencies
sudo apt-get install subversion
sudo apt-get install cmake
sudo apt-get install libusb-dev
sudo apt-get install cfitsio-dev
sudo apt-get install libnova-dev
sudo apt-get install fxload
sudo apt-get install libwxgtk2.8-dev
sudo apt-get install libv4l-dev
# Install INDI and QHY5 driver
svn co https://indi.svn.sourceforge.net/svnroot/indi/trunk indi
cd indi/libindi
cmake .
make
sudo make install
cd ..
cd 3rdparty/indi-qhy/
cmake .
make
sudo make install
sudo cp /usr/local/lib/libindi* /usr/lib/
# To check if the QHY5 is recognized, type the following command and then plug and unplug QHY5. QHY5 should be listed.
tail -f /var/log/syslog
# Run this command to start the indi server on Raspberry Pi
indiserver indi_qhy_ccd
# install Open-Phd-guiding
cd
svn checkout http://open-phd-guiding.googlecode.com/svn/trunk/ open-phd-guiding-read-only
cd open-phd-guiding-read-only/
cmake .
make
sudo make install
# Open an X terminal and type "PHD" in a command line. PHD will open in an X windows.
--------------------------------------------
Edited by anat (08/17/12 04:00 AM)
|
gonzothegreat
journeyman
Reged: 11/20/11
|
Re: PiAstroHub: RaspberryPi for Autoguiding+DSLR+GOTO
[Re: anat]
#5371802 - 08/16/12 03:57 PM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
Excellent howto
|
lambermo
sage
Reged: 07/16/07
Loc: .nl
|
Re: PiAstroHub: RaspberryPi for Autoguiding+DSLR+GOTO
[Re: gonzothegreat]
#5384318 - 08/24/12 10:54 AM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
Very cool project. Keep this going !
|
anat
sage
Reged: 06/03/04
|
Re: PiAstroHub: RaspberryPi for Autoguiding+DSLR+GOTO
[Re: lambermo]
#5387621 - 08/26/12 09:45 AM Attachment (85 downloads)
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
I found that INDI drivers and OpenPHD were quite slow and inconsistent. So, I compiled Lin_guider on Raspberry Pi.
http://sourceforge.net/projects/linguider/
Lin_guider is so much faster than OpenPHD+INDI. Images are downloaded almost immediately after capturing The steps to compile Lin_guider are as follows:
---------------------------------------------------------
sudo apt-get install libusb-1.0-0-dev
sudo apt-get install libqt4-dev
sudo apt-get install libftdi-dev
sudo apt-get install fxload
>>>> copy lin_guider-26.0_static.tar.bz2 to /home/pi
tar -xvf lin_guider-26.0_static.tar.bz2
cd lin_guider
>>>> copy lin_guider-27.0_sfx.tar.bz2 to /home/pi/lin_guider
tar -xvf lin_guider-27.0_sfx.tar.bz2
sudo ./lin_guider.bin
>>> To install QHY5 firmware
pi@raspberrypi ~/lin_guider/udev/qhy5 $ sudo sh qhy5_lg_install.sh
>>>> To run program
cd /home/pi/lin_guider/lin_guider_pack/lin_guider
./lin_guider
---------------------------------------------------------
I also attach a photo showing how the program looks like on X-server (iSSH) on iPad.
The next step is to make an interface for image capturing and display for DSLR
Edited by anat (08/26/12 08:24 PM)
|
anat
sage
Reged: 06/03/04
|
Re: PiAstroHub: RaspberryPi for Autoguiding+DSLR+GOTO
[Re: anat]
#5388690 - 08/26/12 08:38 PM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
To use PiAstroHub as SkyFi to connect between SkySafari and a mount, follow these steps:
-------------------------------------------------
sudo apt-get install ser2net
sudo sed -i '$ a\5555:raw:0:/dev/ttyUSB0:9600 NONE 1STOPBIT 8DATABITS' /etc/ser2net.conf
sudo /etc/init.d/ser2net restart
-------------------------------------------------
It is that simple Now all tcp communications via Port 5555 will be redirected to a serial port. I recommend using a PL2303-based usb-serial adapter.
Then set Port as 5555 in SkySafari. Done! PiAstroHub will function like SkyFi.
Edited by anat (08/27/12 08:42 PM)
|
anat
sage
Reged: 06/03/04
|
Re: PiAstroHub: RaspberryPi for Autoguiding+DSLR+GOTO
[Re: anat]
#5389464 - 08/27/12 10:07 AM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
I just added the plate-solving feature using the engine from astrometry.net which was capable to perform blind solving. After getting an image, I use plate-solving to find the exact pointing position and send the RA-DEC values to align a mount. The crosshair in Skysafari is automatically synced to the new position So, Goto can be done from SkySafari with high pointing accuracy.
The steps to compile the Astrometry engine are as follows:
------------------------------------------------
sudo apt-get install libcairo2-dev libnetpbm10-dev netpbm libpng12-dev libjpeg-dev python-numpy zlib1g-dev
wget http://astrometry.net/downloads/astrometry.net-0.38.tar.bz2
tar xjf astrometry.net-0.38.tar.bz2
cd astrometry.net-0.38
make
sudo make install
------------------------------------------------------
Edited by anat (08/27/12 08:45 PM)
|
tjay
Carpal Tunnel
   
Reged: 02/03/07
Loc: just outside of Toronto
|
Re: PiAstroHub: RaspberryPi for Autoguiding+DSLR+GOTO
[Re: anat]
#5390699 - 08/28/12 12:09 AM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
This thread makes it very tempting to order a Raspberry Pi....
Nice work!
|
gonzothegreat
journeyman
Reged: 11/20/11
|
Re: PiAstroHub: RaspberryPi for Autoguiding+DSLR+GOTO
[Re: tjay]
#5390848 - 08/28/12 04:29 AM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
Just a reminder that if you want to use the astrometry tool, you do need to download the INDICES. Do contact the guys from astrometry for them.
|
gavinm
Pooh-Bah
Reged: 08/26/05
Loc: Auckland New Zealand
|
Re: PiAstroHub: RaspberryPi for Autoguiding+DSLR+GOTO
[Re: gonzothegreat]
#5392113 - 08/28/12 07:29 PM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
You've seen this?
http://www.dpreview.com/news/2012/08/16/Ingenious-photographer-builds-mini-computer-into-battery-grip
|
anat
sage
Reged: 06/03/04
|
Re: PiAstroHub: RaspberryPi for Autoguiding+DSLR+GOTO
[Re: gavinm]
#5392492 - 08/29/12 12:16 AM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
Hi Gavin,
Yes. We use the same gphoto2 library to control a DSLR. I am making a web application to wrap up all features and will post an update soon.
Edited by anat (08/29/12 12:50 AM)
|
PetPirate
member
Reged: 02/23/09
|
Re: PiAstroHub: RaspberryPi for Autoguiding+DSLR+GOTO
[Re: anat]
#5400291 - 09/02/12 10:19 PM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
This is awesome, thanks so much for doing the legwork.
I've finally got my Pi up and running in wifi master (AP) mode and have ser2net configured. I can't believe it was that easy -- to think I nearly bought a SkyFi for more than twice the price of the Pi!
This will be great for me as I'm usually stuck up on my apartment roof with a netbook. I'm slap bang in the middle of Shanghai and due to poor visibility and blocked view in various directions, I can't always align properly, and used to rely on "syncing" a lot using KStars / INDI, which was painfully slow and cumbersome on a netbook.
I've also been using gphoto2 for a while to control my DSLR, so I'll be doing that too.
I'm interested in the astrometry.net solver too, I wonder how that will work in my orange skies.
For autoguiding, I've added a piggyback mount to my ETX-125 and have a modified webcam, but have never been able to get a decent polar alignment, and the ETX mount isn't great anyway. With all the functionality sitting on the Pi however, it's one less item of faffing around to get set up, so I'm much more likely to try it now and succeed I think.
I wonder how a focuser would integrate into this setup -- I remember LibINDI allowed for controlling focusers. An ideal setup would be taking a few photos with gphoto2, and doing rinse-repeat trial & error autofocusing.
I plan to integrate my Pi in a project box with 12V / 5V PSU so I basically have everything contained in one box with one power plug. The dream setup would be an automated setup as the Autostar is so slow and archaic -- auto align, auto focus, Goto provided by Skysafari.
|
anat
sage
Reged: 06/03/04
|
Re: PiAstroHub: RaspberryPi for Autoguiding+DSLR+GOTO
[Re: PetPirate]
#5401774 - 09/03/12 08:17 PM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
PetPirate,
Glad that you enjoy the Pi
INDI supports some focusers: Robofocus, Meade, and JMI. "Semi-auto" focusing is possible. The focuser movement and camera exposure are done in a series. Then the star images are compared by a user. The focuser is commanded to move to the position of the sharpest star image.
Anat
|
MikeCMP
super member
Reged: 07/12/11
Loc: Chardon OH
|
Re: PiAstroHub: RaspberryPi for Autoguiding+DSLR+GOTO
[Re: anat]
#5403777 - 09/04/12 08:05 PM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
I'm impressed, that is pretty cool! Jus the fact it replaces the skyfi is pretty cool by itself.
Is that a starshoot autoguider you have hooked up?
Mike
|
anat
sage
Reged: 06/03/04
|
Re: PiAstroHub: RaspberryPi for Autoguiding+DSLR+GOTO
[Re: MikeCMP]
#5404313 - 09/05/12 04:00 AM
|
Edit
|
Reply
|
Quote |
Quick Reply
|
|
|
Mike,
Yes. I use the Orion Starshoot Autoguider (aka QHY5) for the development.
Anat
|