Jump to content

SkySurveyBanner.jpg.21855908fce40597655603b6c9af720d.jpg

Astro Projects

  • entries
    16
  • comments
    1,180
  • views
    6,318

All Sky Camera Mark 7


Gina

26,376 views

This is my latest generation of all sky cameras and based on the ASI178MM followed by ASI185MC CMOS astro camera and a Fujinon fish-eye lens of 1.4mm focal length.  Although rated at f1.8, this lens lets a lot more light through than this would imply.  Image capture is provided by a Raspberry Pi 3 in conjunction with INDI software.  This is used with KStars/Ekos client software running on a Linux Mint desktop indoors.  Communication is via Wi-Fi.  The Mark 6 ASC has proved inadequate after being in use for some time. 

This blog will describe the problems of the Mark 6 and report my progress in developing this new version.

  • Like 1

654 Comments


Recommended Comments



Card replaced in ASC RPi and working as expected.  Vapour trails with a vengeance!!

Light_001a.thumb.png.2e52c7f6f31d960236e34775ad578486.png

Link to comment
Gina

Posted (edited)

Been thinking about the software.  When I started from scratch I got as far as compiling the Astroberry code which failed in the Astroberry Focuser code.  Now it occurs to me that the Astroberry Focuser is a bit OTT anyway for the ASC.  All I need is to be able to move the focuser motor one way or the other to refine the focussing.  The "bells and whistles" such as Auto-Focus are not relevant in this case and all I actually need is stepper motor control with movement either war and maybe coarse and fine steps.  In fact the Astroberry Board code that is in the present ASC micro SD card has focussing control which was working with an earlier setup.

If I take the test setup micro SD card which has WiFi working and remove the Astroberry Focuser compiling code lines from the CMakeLists.txt file I think it should compile.  I can take the Astroberry Board source code from the present ASC, edit it to use the current stepper motor GPIO lines then write it to the card to replace the original file.  That may work.

Edited by Gina
Link to comment

I was right ?  Now have code compiled, installed and working using the supplied Astroberry Board code (Astroberry Focuser removed from compiling list).  See my Tutorial.

Next will be to edit the Astroberry Board code to change labels, remove unwanted controls and make the code control the appropriate GPIO lines for the focussing motor driver.  Currently the focuser section looks like the screenshot below.  There is now only one motor so motor selection is redundant.  The tab label could do with changing to Focus and we don't actually have any Configuration.  Alternatively the Focussing could be moved to the Main Control tab.  Configuration could be the number of steps for Coarse and Fine focussing.  Needs a bit of thought...

1536413471_Focusercontrolpanel01.thumb.png.4245ce7afc7c5b8ff5e7637e3d42bfab.png

  • Like 1
Link to comment

Took the source files for the Astroberry Board (rpi_brd.h & rpi_brd.cpp) from the ASC cloned SD card and wrote to the "test" card overwriting the originals.  Deleted the build directory, remade it and changed to it and ran the command lines to compile and install the driver - it worked :)

Next to edit the files to make the control panel do and look like what I want.

Link to comment

Edited and, wonder of wonders, it compiled and installed fine.  No editing errors!  ??  Not quite right yet though.  I want the Camera Cooler to default to LOW.  And the focussing controls want to be momentary rather than toggling ON/OFF.  More thinking required...

589027295_Boardcontrolpanel01.png.671a3adea12c7fc10e242b1379efcccd.png201461665_Boardcontrolpanel02.png.72794cc4de574353f8ce6178f6dca2c6.png

Link to comment

Got the Camera Cooling defaulting to LOW but the light state is wrong - nearly there on the Camera Cooling control.  Still have the focus motor control to work out.

Link to comment

Summary of progress on code changes so far.

  1. WiFi is working.
  2. I can edit the source code and re-compile and install new version.
Link to comment

The focus motor control in Astroberry Board driver was not done though stepping the motor is simple.  step-on, delay, step-off, delay repeated as required. Motor control lines are defined as :-

#define DIR RPI_BPLUS_GPIO_J8_07    // GPIO4
#define STEP RPI_BPLUS_GPIO_J8_11   // GPIO17
#define SLEEP RPI_BPLUS_GPIO_J8_16  // GPIO23

Motor stepping code - ticks specify number of steps :-

    for ( int i = 0; i < ticks; i++ )
    {
        // step on
        bcm2835_gpio_write(STEP, HIGH);
        // wait
        bcm2835_delay(STEP_DELAY/2);
        // step off
        bcm2835_gpio_write(STEP, LOW);
        // wait 
        bcm2835_delay(STEP_DELAY/2);
    }

That's the easy part.  I now need to either work out or find out how to make a button send a set number of steps to the motor and stop.  Job for another day I think.

Link to comment

I've found how to control the button states.  This code sets the button state depending on GPIO levels.  It also sets the light state.

bool IndiRpibrd::LoadLines()
{
	// load line 1 state
	if ( bcm2835_gpio_lev(IN1) == LOW )
	{
		Switch1S[0].s = ISS_ON;
		Switch1S[1].s = ISS_OFF;
		Switch1SP.s = IPS_OK;
		IDSetSwitch(&Switch1SP, NULL);
	}
	else
	{
		Switch1S[0].s = ISS_OFF;
		Switch1S[1].s = ISS_ON;
		Switch1SP.s = IPS_IDLE;
		IDSetSwitch(&Switch1SP, NULL);
	}

	// load line 2 state 

If I set the motor moving when a button is pressed it can turn the light to yellow (working) and when the steps routine has finished it can clear the button and set the light to off (idle).  Or maybe green (OK).  If I used two rows, one for INwards and one for OUTwards  the light s could show which direction was last used if I use IPS_OK - green.

I think this may work - I'll try it tomorrow.

Link to comment

Well, I guess the hill to the east is a few degrees higher than the ASC as it's 5m since moonrise.

Link to comment

I think this is going to be the best view of the stars tonight - as the sun goes down the moon comes up!

Light_369.thumb.png.e8badfb27f16a7c1c0eab4353ba227b9.png

Link to comment

Exposures of 60s with about a second or so download time before the next exposure.  Camera temperature 3.5°C with full cooling.   The breeze has gone and it's a warm stuffy night.  I'm sitting in front of a big fan to keep cool hoping it will cool down a bit soon so I can go to bed.

Light_378.thumb.png.aa14ea7c81841b80696ea429ad298b7b.png

Link to comment
Gina

Posted (edited)

Back to coding...

Bit early yet for serious thinking but I've tried a little something to improve appearance.  Tried using "FOCUS_TAB" for the focus controls and it worked.  Code section concerned - original commented out :-

//    IUFillSwitchVector(&FocusSP, FocusS, 4, getDeviceName(), "FOCUS", "Focussing", OPTIONS_TAB, IP_RW, ISR_1OFMANY, 0, IPS_IDLE );
    IUFillSwitchVector(&FocusSP, FocusS, 4, getDeviceName(), "FOCUS", "Focussing", FOCUS_TAB, IP_RW, ISR_1OFMANY, 0, IPS_IDLE );

144747734_BoardFocuspanel01.png.da3aa16e906859417636ad2b48536ddc.png

Edited by Gina
Link to comment
Gina

Posted (edited)

Next will be to rearrange the controls in the panel and change ISR_1OFMANY to ISR_ATMOST1.1972118826_Enumerator01.thumb.png.00866b33869aec3b621cb28a0a94b0ff.png

Edited by Gina
Link to comment

I think I may want to add an extra level of dome heating to dry off raindrops.  That shouldn't be difficult - just a bit fiddly.  Ah, just thought - already using all four pins on the connector - hmmm...  Had an idea - change the control to work like the camera cooler.  OTOH might not need the lower amount of heating - may be enough from the camera cooling hot side.  I could change the resistors to run at a higher current.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.