Date   

User Catalogs with OnStep T3.2

Kelvin
 

I'm trying to find out how many objects can be stored in a user catalog in OnStep T3.2. (MiniPCB)
Mount = ALTAZ
OnStep = T3.2 V2.22
SHC = T3.2  V1.5f

After compiling OnStep I get the following: Sketch uses 98508 bytes (37%) of program storage space. Maximum is 262144 bytes.
Global variables use 8428 bytes (12%) of dynamic memory, leaving 57108 bytes for local variables. Maximum is 65536 bytes.

I use LX200 commands to create the user catalog and write the items to the catalog. A typical record looks like this.
:Sr01:37:54#:Sd-57:12:41#:LWAchernar,STR#

TIA Kelvin.


Re: Webserver control page

Howard Dutton
 

I reviewed the master branch SHC comms code.  It's really too different be worth the effort to change into what I use for the other Addons so I just did a little refactoring to make it more consistent with the other Addons where I could and will leave it at that.

What I also did for the SHC was change the Config.h file around so it matches the format of the other Config.h files in OnStep and moved the pin-map stuff into its own file which keeps things nice an neat for the user.


Re: Webserver control page

Drew 🔭📷🚴‍♂️
 

Thanks, that will save some time.


Re: Considering selling my CG11 with Onstep Max

John Scherer
 

I should also add that I'd be willing to trade/partial trade for a much lighter mount (GM-8, Celestron AVX). 


Re: Considering selling my CG11 with Onstep Max

John Scherer
 

Just a quick update, wife and I made it back to San DIego, CA a bit earlier than planned so I'm now in a better position to deal with this.  If there is any interest in this lets talk.


Re: Basic Hand controller feature possible problem?

soulvagabond@...
 

Working indeed ;)
Thank you all.

Perhaps, could make a note in wiki about the diy resistor network option...


Re: Basic Hand controller feature possible problem?

Dave Schwartz
 

That will work fine. Rube Goldberg engineering at its finest.


On October 23, 2019 8:29:05 PM EDT, soulvagabond@... wrote:


Ok, This is what I got by now. Don't see high currents flowing around, so I hope, the size of the resistors is ok.
Beats several weeks of waiting for a small package from China.
Will add a drop of the epoxy glue, to secure the assembly...

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.


Re: Basic Hand controller feature possible problem?

Dave Schwartz
 

Yes, those are the ones I always bought for the kits.


On October 23, 2019 7:25:31 PM EDT, Khalid Baheyeldin <kbahey@...> wrote:
On Wed, Oct 23, 2019 at 07:21 PM, Dave Schwartz wrote:
Yes you can use 4 2k2 discrete resistors. The 'network' part is just 4 resistors in a .1" SIP package. Easier to use on a PCB but not as cheap. Pin 1 is the common and all other pins measure 2k2 ohms to it.
Dave,

Would this SIP-5 2.2k Ohm resistor network work?

If so, I will add it to the Wiki.

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.


Re: MKS-Gen1 backlash

Howard Dutton
 

On Wed, Oct 16, 2019 at 01:20 AM, Nikos Polikandriotis wrote:

I also have a lot of backlash on my azimuth axis which is a pain in the **s to find where it comes from...In the android app the backlash  goes up to 999 but in my mount the backlash may be around 2000.

 

I know I should find a way to fix it but... I very kindly request to be able to put a backlash of any value in the android app. 

There's more to it than that, but I've decided to provide this support in the master branch OnStep along with its SHC, WiFi, and Ethernet Add-ons...

And in the ASCOM driver... and in the Android App.  These all should support setting/getting backlash of up to 3600 arc-seconds now.

The Android App update is in the form of a Beta for now which can be accessed with the following link:
https://play.google.com/apps/testing/com.onstepcontroller2

I opted to do this since releasing this update involved some gymnastics in Android Studio to move my app to AndroidX and API level 28 per Google's forced requirements.


Re: Basic Hand controller feature possible problem?

soulvagabond@...
 



Ok, This is what I got by now. Don't see high currents flowing around, so I hope, the size of the resistors is ok.
Beats several weeks of waiting for a small package from China.
Will add a drop of the epoxy glue, to secure the assembly...


Re: Basic Hand controller feature possible problem?

Khalid Baheyeldin
 

On Wed, Oct 23, 2019 at 07:21 PM, Dave Schwartz wrote:
Yes you can use 4 2k2 discrete resistors. The 'network' part is just 4 resistors in a .1" SIP package. Easier to use on a PCB but not as cheap. Pin 1 is the common and all other pins measure 2k2 ohms to it.
Dave,

Would this SIP-5 2.2k Ohm resistor network work?

If so, I will add it to the Wiki.


Re: Basic Hand controller feature possible problem?

Dave Schwartz
 

Yes you can use 4 2k2 discrete resistors. The 'network' part is just 4 resistors in a .1" SIP package. Easier to use on a PCB but not as cheap. Pin 1 is the common and all other pins measure 2k2 ohms to it.


On October 23, 2019 7:10:39 PM EDT, soulvagabond@... wrote:
Ok, thanks, I get it now.
Pullup resistor network, is perhaps the most lacking part in the wiki, considering that there are a few different types available, it's certainly would be helpful to provide more info on it.
Do I get it right, that it can be replaced with 5 individual resistors of the required value? It will not be easy to find the required resistor network, where I live..

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.


Re: Basic Hand controller feature possible problem?

soulvagabond@...
 

Ok, thanks, I get it now.
Pullup resistor network, is perhaps the most lacking part in the wiki, considering that there are a few different types available, it's certainly would be helpful to provide more info on it.
Do I get it right, that it can be replaced with 5 individual resistors of the required value? It will not be easy to find the required resistor network, where I live..


Re: Basic Hand controller feature possible problem?

Dave Schwartz
 

Also, the control lines (the ones connected to ground to command movement) are technically pins 3 through 6. Pin 2 is the ground to which they are connected. Pin 1 is 5V (if you have J3 in place) for use in powering the basic hand controller's LED or to power the SHC - nothing good could happen if you short that to ground.

On 2019-10-23 11:53 a.m., Khalid Baheyeldin wrote:
On Wed, Oct 23, 2019 at 11:36 AM, <soulvagabond@gmail.com> wrote:

On Bluepill, I have compiled the code from github, a few days back
and enabled define ST4_HAND_CONTROL.
From what I understand, to have the basic control function,
basically, I only need to shortcut the ground to the pins 1-4 of
the ST4 port.
So, I enabled tracking using the webserver, set the speed to max
and tried short cutting  the pins to the ground, but couldn't get
the motors to move that way.
Is there anything I'm missing?
As I understand, the pullup resistor network is not needed, for
the basic hand controller (I don't have that part).
Thanks

Yes, you need pullup resistors. Without it things will go haywire, and OnStep will detect spurious guides randomly.

And you need to have both of these.

#define ST4_PULLUP
#define ST4_HAND_CONTROL_ON

As for the electrical part, see the links here for a basic HC

https://onstep.groups.io/g/main/wiki/Basic-Hand-Controller


Re: Basic Hand controller feature possible problem?

Khalid Baheyeldin
 

On Wed, Oct 23, 2019 at 11:36 AM, <soulvagabond@...> wrote:
On Bluepill, I have compiled the code from github, a few days back and enabled define ST4_HAND_CONTROL.
From what I understand, to have the basic control function, basically, I only need to shortcut the ground to the pins 1-4 of the ST4 port.
So, I enabled tracking using the webserver, set the speed to max and tried short cutting  the pins to the ground, but couldn't get the motors to move that way.
Is there anything I'm missing?
As I understand, the pullup resistor network is not needed, for the basic hand controller (I don't have that part).
Thanks
Yes, you need pullup resistors. Without it things will go haywire, and OnStep will detect spurious guides randomly.

And you need to have both of these.

#define ST4_PULLUP
#define ST4_HAND_CONTROL_ON

As for the electrical part, see the links here for a basic HC

https://onstep.groups.io/g/main/wiki/Basic-Hand-Controller


Re: Webserver control page

Howard Dutton
 

On Wed, Oct 23, 2019 at 07:26 AM, Drew 🔭📷🚴‍♂️ wrote:
n Wed, Oct 23, 2019 at 06:40 AM, Howard Dutton wrote:
Though at some point I would like to give the SHC Addon a once over WRT

I am curious what your idea is there? I am working on a BLE bluetooth interface for an inexpensive gamepad control. This is for the ESP32 and will probably remain that way. There may be some crossover in the implementation

The WiFi and Ethernet Addons used a fragmented approach for talking to OnStep. 
1. Some code would directly use Serial.print() and Serial.read()
2. And some code would use a "dumb" command to send and pick-up the response.
3. Finally, some code would use an "intelligent" command to send and pick-up the response.

I eliminated the first two and lean almost entirely on #3 now, processCommand().  It understands which LX200 commands don't have responses (so no waiting to pick one up) and which send only a single digit (waits just for that) and which send back a framed response ending in "#".  It also knows which commands can be slow with a response and adjusts timeouts accordingly.

I also added a few ASCOM like functions for talking to OnStep that I'm accustomed to working with (like I use in my ASCOM drivers and in the Android App.)  These in-turn call processCommand() for me instead of calling processCommand() directly:

command()
commandBlind()
commandBool()
commandString()


Basic Hand controller feature possible problem?

soulvagabond@...
 

On Bluepill, I have compiled the code from github, a few days back and enabled define ST4_HAND_CONTROL.
From what I understand, to have the basic control function, basically, I only need to shortcut the ground to the pins 1-4 of the ST4 port.
So, I enabled tracking using the webserver, set the speed to max and tried short cutting  the pins to the ground, but couldn't get the motors to move that way.
Is there anything I'm missing?
As I understand, the pullup resistor network is not needed, for the basic hand controller (I don't have that part).
Thanks


Re: Webserver control page

Drew 🔭📷🚴‍♂️
 

On Wed, Oct 23, 2019 at 06:40 AM, Howard Dutton wrote:
Though at some point I would like to give the SHC Addon a once over WRT

I am curious what your idea is there? I am working on a BLE bluetooth interface for an inexpensive gamepad control. This is for the ESP32 and will probably remain that way. There may be some crossover in the implementation.

Cross checked problem on my laptop with both firefox and IE. Seems to be another old Android (4.2.2) issue. I suspect it has to do with the quickbuttons, however the whole page seems dead. I did clear the cache and temp files with  no effect.

So, in conclusion, this is not an OnStep problem. Sorry about that.


Re: Webserver control page

Howard Dutton
 

On Tue, Oct 22, 2019 at 06:03 PM, Drew 🔭📷🚴‍♂️ wrote:
I realize things are in flux. That's why I reported this.
Good to know though, and nothing comes to mind specifically as to why this would be broken.

I forgot to mention that this was with 3.8f/1.9f. I'll burn the latest version and report my findings.
Thanks.

I did have command errors enabled, no errors were reported. I assume that is because there was no input from which to generate an error.
Just for the command channels on ports 9999 and 9998, serial from the web-pages isn't checked.

I am trying to keep up with the revisions but they are coming lightning fast. Keep up the good work, the changes are all in a positive direction. Thank you for responding to my suggestions and incorporating them.
Hoping things should slow down now.  Though at some point I would like to give the SHC Addon a once over WRT how it handles command transactions with OnStep similar to what was just done to the WiFi and Ethernet Addons in Accessories.h


Re: WEMos D1 Mini is also not conneted

Howard Dutton
 

Other than ESP8266_CONTROL_ON not being allowed I see nothing on the software side that would stop this from working.

So most likely you are looking at hardware problems and I was kind of working on the assumption that you are using a true RAMPS1.4 Shield with a Mega2560 but looking back I don't actually see where you said that...

If using a MKS Gen-L be aware that the RX1/TX1 pins can't be used as it's designed, you have to use RX2/TX2.