Jump to content

NLCbanner2024.jpg.2478be509670e60c2d6efd04834b8b47.jpg

Nexstar Raspberry Pi Controller


tekkydave

Recommended Posts

3 hours ago, tekkydave said:

I've just done a quick text search through the Astroberry source code and the speed isn't set to anything other than 1:1 stepping.


pi@indiserver:~/software/astroberry-svn $ grep -r "SetSpeed" *
rpi_focus.cpp:	SetSpeed(1);
rpi_focus.cpp:bool FocusRpi::SetSpeed(int speed)
rpi_focus.h:        virtual bool SetSpeed(int speed);

 

I don't think I follow that.  Surely the last line above allows the speed to be set to various values? :icon_scratch:

Link to comment
Share on other sites

1 minute ago, Gina said:

I don't think I follow that.  Surely the last line above allows the speed to be set to various values? :icon_scratch:

Correct, but it is only ever called internally by the init routine on the first line. It's possible the routine could be called externally by Ekos I suppose.

Link to comment
Share on other sites

Yes, I thought it might be called by Ekos.  Surely the header file is where external calls are defined?  I haven't yet looked through the code to see if this is brought out to Ekos though.

Link to comment
Share on other sites

This code seems to be the only Ekos link that mentions speed and the speed doesn't seem to be used.  I'll go through the code again because I think I may be missing something.

IPState FocusRpi::MoveFocuser(FocusDirection dir, int speed, int duration)
{
	int ticks = (int) ( duration / STEP_DELAY);
    return 	MoveRelFocuser( dir, ticks);
}

 

Link to comment
Share on other sites

Now preparing to check out the focuser and look at the GPIO pins.  To run the auto-focus simulation shouldn't need anything connected AFAICT - the focuser electronics don't provide any feedback.  The camera simulation must assume focus is at a particular focuser setting and pretend the focuser is changing focus.

Firstly, I have to set indiserver from Putty on my Win7 desktop, as I haven't yet worked out how to do it from the Linux laptop - that's running KStars/Ekos.  Also, I need to find out why the WiFi isn't working but for now I'm using a wired connection - one thing at a time :D

Link to comment
Share on other sites

Yes, I have the ccd simulator running but it gives an error saying it can't find a star :(  Something seemed to work at first - the focussing window popped up showing a piece of "image" with noise and a green square flicked around it.

I'm now building the circuitry on the RPi HAT so that I can see if the focuser is working.

Edited by Gina
  • Like 1
Link to comment
Share on other sites

Tried again and much the same.  Looked at the log - seemed to "try hard" to find a star but eventually gave up.  Log reports of focuser actions seemed to indicate that it was fine, the problem seems to be with the CCD simulator.

Link to comment
Share on other sites

Strange thing about the way the Astroberry Focuser works in Ekos, the Manual mode seems to move the focus by 100 ticks at a time from the "Focus Out" or "Focus In" buttons.  There is nowhere to alter this - there isn't a "speed" or amount control.  The count can be edited in the box but I don't know if this actually alters the focus.  Evidently the speed control hasn't been implemented in the Ekos controls part of the Astroberry Focuser.  Seems this driver is still in development.

Link to comment
Share on other sites

Just checked - the Ticks setting works for Manual focussing too. Missed that.  Control is in the wrong place logically!!

Edited by Gina
  • Like 1
Link to comment
Share on other sites

Yes, could be.

Nearly finished wiring my HAT :D  This one is for the all sky cam.  Just need to connect wires for 12v and add a resistor for the heater control.  I'm using a BC517 Darlington transistor to switch the dew heater on and off.  That can easily switch half an amp and I shall be using about half that from the 12v supply.

RPI HAT 01.jpgRPI HAT 02.jpg

  • Like 1
Link to comment
Share on other sites

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.