Skip to content

Update code to use picamera2 python library. #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 58 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
940e3da
modified to use pycameralib2 but needs newer operating system than le…
githubdoe May 7, 2024
5f0d01f
Removed History and added delete to replay images. Slight modificati…
githubdoe May 15, 2024
a62f34b
Updated skysolve setup to add opencv
githubdoe May 15, 2024
1a54107
Removed > from camera parameter values
githubdoe May 15, 2024
452f53e
removed image fomat. Now only use .jpg
githubdoe May 15, 2024
2796d2d
Removed more image format stuff
githubdoe May 15, 2024
7771067
Modified code in autoplayback. Corrected solve loop image transfer. R…
githubdoe May 16, 2024
e76a6c3
removed focus bar. Got history autosolve working. Got current image…
githubdoe May 16, 2024
d2af295
removed prints from main loops. Improved found sources status messag…
githubdoe May 17, 2024
42b81dd
Delete static/history/04_13_24_23_41_24.jpeg
githubdoe May 18, 2024
4365cc2
Delete static/history/04_13_24_23_52_07.jpeg
githubdoe May 18, 2024
091065d
Delete static/history directory
githubdoe May 18, 2024
f6a3a22
Update skysolveSetup.sh
githubdoe May 18, 2024
e4b1982
Update skysolveSetup.sh
githubdoe May 19, 2024
65c9c82
Update skysolveSetup.sh
githubdoe May 19, 2024
7edc6d5
Update skysolveSetup.sh
githubdoe May 19, 2024
d75cba6
Update skysolveSetup.sh
githubdoe May 19, 2024
e34ecca
Update skysolveSetup.sh
githubdoe May 19, 2024
b361907
Update skysolveSetup.sh
githubdoe May 19, 2024
2ec4adf
Update skysolveSetup.sh
githubdoe May 19, 2024
ac7d484
Update skysolveSetup.sh
githubdoe May 19, 2024
9ba9412
Update skysolveSetup.sh
githubdoe May 19, 2024
5524c6a
Update skysolveSetup.sh
githubdoe May 29, 2024
b04a5ca
Update to modern operating system and hot spot code
githubdoe May 31, 2024
b058a5b
Update skysolveSetup.sh
githubdoe May 31, 2024
4e2874d
Update skysolveSetup.sh
githubdoe May 31, 2024
bd023de
Update skysolve.py
githubdoe May 31, 2024
4650f4d
Update README.md
githubdoe May 31, 2024
1bc4905
Update skysolve.py
githubdoe Jun 5, 2024
78cf467
Update skysolveSetup.sh
githubdoe Jun 9, 2024
730c521
Delete skysolve_setup.odt
githubdoe Jun 10, 2024
af8e029
Delete skysolve_setup.pdf
githubdoe Jun 10, 2024
9caa186
Delete skysove starup.pdf
githubdoe Jun 10, 2024
5757064
Delete skysove starup.odt
githubdoe Jun 10, 2024
6176633
Add files via upload
githubdoe Jun 10, 2024
eb7c374
Delete skysove starup newcamlib.odt
githubdoe Jun 10, 2024
f0c3131
Delete skysolve_setup newCamLib.pdf
githubdoe Jun 10, 2024
3c5261e
Add files via upload
githubdoe Jun 10, 2024
9bb1978
Update README.md
githubdoe Jul 15, 2024
93d4842
Update README.md
githubdoe Jul 16, 2024
2f8a524
Modified how status and log area is updated. Made camera params cons…
githubdoe Jul 27, 2024
00d0ece
changed log and status update methods to improve performance
githubdoe Jul 28, 2024
99e406a
changed what is logged in verbose mode
githubdoe Jul 29, 2024
24b8c29
Delete static/quality05_13_24_22_16_21.jpeg
githubdoe Jul 29, 2024
21ff1fa
New Faster solve and added update
githubdoe Aug 3, 2024
02a8bab
merge branch 'newCamLib' of https://github.com/githubdoe/skysolve int…
githubdoe Aug 3, 2024
211d781
changed FOV 14 to FOV 17
githubdoe Aug 3, 2024
c169aae
cleaned up solve parameters and removed bigdipper from demo
githubdoe Aug 3, 2024
a02f83e
change to startup solving
githubdoe Aug 4, 2024
e645861
removed tetra3 and some print statements'
githubdoe Aug 4, 2024
0495feb
Merge branch 'newCamLib' of https://github.com/githubdoe/skysolve int…
githubdoe Aug 4, 2024
4a85b7c
changed radec to orions shield
githubdoe Aug 4, 2024
5702142
removed the first solve parameter popup screen
githubdoe Aug 6, 2024
da88f58
added try around math added more debug in git images and send images
githubdoe Aug 7, 2024
f7fae70
added try around math calls
githubdoe Aug 13, 2024
28e3061
rge branch 'newCamLib' of https://github.com/githubdoe/skysolve into …
githubdoe Aug 13, 2024
6942bee
added flashing or power led on solves or failes. Flash 5 times and t…
githubdoe Aug 16, 2024
2a33265
corrected error when saving solve parameters
githubdoe Sep 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
skysolve_setup.pdf
skysolve_setup.odt
static/radec.txt
static/skysolve.log
static/obs.log
static/skysolve.log
nohup.out
debug/*
static/cap*.*
static/current.jpg
none

38 changes: 34 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ See video for a quick introduction. https://youtu.be/IewMli4AJLw
stl files for the case and mount can be found on Thingiverse at https://www.thingiverse.com/thing:4920959 and https://www.thingiverse.com/thing:5594916

Uses RaspberryPi and plate solving to take images of the night sky and identify the location of the image.
It uses a Raspberry PI 4 with the RPI High Quality camera and can send the solved position of were the camera is looking to a computer running SkySafari. When mounted to a telescope and aligned to where the scope is pointing it can then be used to guide the manual pushing of the telesopce to the desired target without using any encoders on the telescope. It communicates with SkySafari over WIFI so that no hard wired connections are needed to the computer running SkySafari. It continually takes images and solves them about every 1 to 10 seconds so that Skysafari can always show where the scope is pointing.
It uses a Raspberry PI 4B (4gb) with the RPI High Quality camera and can send the solved position of were the camera is looking to a computer running SkySafari. When mounted to a telescope and aligned to where the scope is pointing it can then be used to guide the manual pushing of the telesopce to the desired target without using any encoders on the telescope. It communicates with SkySafari over WIFI so that no hard wired connections are needed to the computer running SkySafari. It continually takes images and solves them about every 1 to 10 seconds so that Skysafari can always show where the scope is pointing.

Below is a screen shot of the application's browser interface showing an image of Ursa Major in the lower left. THe status field displays the names of stars it found in the image.

Expand Down Expand Up @@ -46,9 +46,35 @@ If the "show stars button is dimmed out" you can enable it by pressing the "Solv
## Install

When you are ready, you can follow these steps to install it on the Raspberry pi:
Note: Do not change the default username on the pi from pi to anything else. There is code that depends upon there being a using named lower case "pi".

>[!NOTE]
>Do not change the default username on the pi from pi to anything else. There is code that depends upon there being a using named lower case "pi".`

>[!IMPORTANT]
>There are two versions of the code.
>1. ***Legacy*** - Works only on RPI models 4 and earlier and only with 32 bit legacy app.
>2. ***New camera library*** - To work with the newer and 64 bit RPI operating systems and all RPI models.

### Process to use the ***New camera library*** version
1. First you need to get the Raspberry Pi software installed on an SD card. The easiest way to do this is to use the RaspberryPi imager
from [Raspberry Pi org](https://www.raspberrypi.org/software/). Select the RPI model you have and then select the most recent 64 bit version of the operating system. Usually the first in the list.

Download this software onto a computer that can write SD cards. I use a Windows laptop.
2. Follow steps 2 thru 5 in the ***Legacy*** version below. But ignore the instruction to set the resolution to 1280 x 720
2a. When running the setup script you will be asked to setup the hotspot. That is where you can change the wifi network name that the hot spot will use. The default name is AccessPopup. You can change it to something like skypi004. Make the number different so it not the same as others at a star party.

4. Using either your command line connection to the RPI or VNC Make a direcotry for skysolve then download the skysolve app from GIT Repo to your RPI and Open a Terminal Window. You could type or copy and paste the following commands into Terminal to accomplish this goal.
```bash
sudo mkdir skysolve
sudo chmod 777 skysolve
cd skysolve
sudo wget https://github.com/githubdoe/skysolve/archive/newCamLib.tar.gz
sudo tar -xzvf newCamLib.tar.gz --strip-components=1
```
4. Continue at step 7 of the ***Legacy*** instructions.


### Process to use the older RPI ***legacy*** system (for new installations use the previous instructions instead.)
1. First you need to get the Raspberry Pi software installed on an SD card. The easiest way to do this is to use the RaspberryPi imager
from [Raspberry Pi org](https://www.raspberrypi.org/software/). Note that the software to download is not the most recent version but an older 32 bit version.
It can be found under Raspberry Pi OS (other) then Raspberry Pi OS (Legacy)
Expand Down Expand Up @@ -79,8 +105,12 @@ Note: Do not change the default username on the pi from pi to anything else. Th
* Once logged into the RPI then type sudo raspi-config.
* Select 3. Interface Options then P3 VNC and enable it. Then select yes and then OK. Now VNC should be enabled.
* Chose display options and select resolution to be 1280 x 720
* Optionally enable the Raspberrypi camera now. From Interface Options select the enable camera option. Then reboot.
Back on the windows PC start the VNC viewer and connect to the IP address of the Raspberry PI.
* Optionally enable the Raspberrypi camera now. From Interface Options select the enable camera option.
* UPDATE: November 2023:
There is another step needed to be done while still in the raspi-config. That is to set all localization options to your local.

Then reboot.
Back on the windows PC start the VNC viewer and connect to the IP address of the Raspberry PI.



Expand Down
Binary file added __pycache__/camera_pi.cpython-311.pyc
Binary file not shown.
Binary file added __pycache__/tetra3.cpython-311.pyc
Binary file not shown.
Loading