Date   

Onstep with STM32 blue pill for EQ5 #EQ5

Jochen.Siegfried@t-online.de
 

Dear fellow astronomers
Iam trying to modivy my EQ5 with onstep. I think I can need a little help. The hardware and the mechanical side is less of a problem. Much reading gave me at least some understanding.
I am sure that I will need a little help and guidance with this project as I do not know much about programming Arduino and comuter in generall.
Here are my components.

Skywatcher NEQ5 latest version bought without any electrics or motors - just the mount.
Stepper motors : Nema17 400 Steps /0.9 degree, 0.9 amps/phase Stepperonline 17HM15-0904S for both axis. Belt drive system 16/48 or 3:1 reduction. Worm is 144:1
Onstep with STM32 bluepill with DRV 8825 stepper drivers which I will replace with LV8729. I bought the PCB in May this year over ebay, readily soldered and put in a cardboard. The soldering looks good to me but I have not tested the board yet.

How can I test the board ? The vendor said it is flashed and programed. Even the WiFi would work ... the stepper motors did NOT come with it. I have bought them new. So I know that I have to ajust Vref ...
Would it be possible to test wit the Onstep Android App on my smartphone ? Or the PC with Stellarium ? Do I have to install Ascom on my PC for this ?

Starting from the beginning with the readily solderd PCB:
I have read the Onstep Wiki, watched many videos, know how to adjust Vref and so on but my problem is the software and the work with the PC in general (I am still using Win7 !).
My first problem is that I cannot change the values in the spreadsheet and I have no idea why that is ! I wanted to use Khalids generator which will then generate a config h for me, which I can then upload to the STM32 - if I undrrstood this right.
What is a stable version of Onstep today ?

Any help is highly appreciated !
Thank you very much !

Best regards from Germany
Ferris



 


Re: Slew to target canceled

Reiner vom Bruch
 

Here is config.h

 

Von: main@onstep.groups.io <main@onstep.groups.io> Im Auftrag von Reiner vom Bruch
Gesendet: Dienstag, 13. Oktober 2020 22:10
An: main@onstep.groups.io
Betreff: [onstep] Slew to target canceled

 

Hi !

 

Just updated one of my Mini2 to 4.17, downloaded the Master from today because of the new Ascom-Driver.

 

A funny behaveour now: with SHC-push button to move the Mount, SHC says „Slew to target canceled“ and the movement stops. It did only e very short movement.

Controlling onstep via Webinterface, „slew West/East North/South“ everything is fine. The mount moves as long as I want.

 

This Controller worked up to today with 3.16g very good and expected.

 

I have two complet Onstep´s. Both SHC show the same behaveour at the fresh updated Controller. Both have the Version 1.8d

 

The other onstep  has the Version 4.4g from Apr. 17 2020 (why ist hat Version Number higher ?) Here both controller work as expected.

 

So there must be something wrong with my settings in config.h  of the new updated Version. But I went thoug both config.h and I can´t see any different. Limits are set at the original values of the original config.h

 

Any Idear ?

 

CS
Reiner


Re: Upgrading to 4.17 pier side changes

Howard Dutton
 

Looks correct to me.


Upgrading to 4.17 pier side changes

Lloyd Simons
 

In version 4.7a I had:
In Config.h
#define SYNC_CURRENT_PIER_SIDE_ONLY    ON // 
and
In Globals.h
PreferredPierSide preferredPierSide = PPS_EAST;

It appears this has been replaced in 4.17e with:
in Config.h
#define PIER_SIDE_SYNC_CHANGE_SIDES   OFF 
#define PIER_SIDE_PREFERRED_DEFAULT  EAST

I think these two should behave the same correct? I know I had to change to these settings to get my auto meridian flip to work properly.


Re: OnStep Configuration Generator lives on ...

Khalid Baheyeldin
 

On Tue, Oct 13, 2020 at 04:11 PM, <jochen.siegfried@...> wrote:
I want to put my values in the spreadsheet but I cannot do this. It say, it was only downloaded for viewing purpose. So I cannot enter my numbers ! I use open office ...
What you need is to download the spreadsheet from the browser.
Then move it from the directory that it downloads to, to your Documents directory.
Then start Open Office, and do a File -> Open then go to the Documents directory and open the spreadsheet from there.


Re: OnStep Configuration Generator lives on ...

Jochen.Siegfried@t-online.de
 

Dear Khalid.
I do life in Germany and I am 54 years old. I am into Astronomy for almost 40 years now ..... I want to upgrade my EQ5 mount with onstep. I have bought a readily soldered PCB in a cardboard box.

I am reading about onstep for the last few days. I have watched many of your videos (which are really good !). And very slowly I seem to understand. The mechanical side of the project is not problem for me.

But the BC is not my best friend .... !

So here is my first problem:
I want to put my values in the spreadsheet but I cannot do this. It say, it was only downloaded for viewing purpose. So I cannot enter my numbers ! I use open office ...
What am I doing wrong Khalid ? Please help !

Thank you very much !
Best regards from Germany
Ferris


Slew to target canceled

Reiner vom Bruch
 

Hi !

 

Just updated one of my Mini2 to 4.17, downloaded the Master from today because of the new Ascom-Driver.

 

A funny behaveour now: with SHC-push button to move the Mount, SHC says „Slew to target canceled“ and the movement stops. It did only e very short movement.

Controlling onstep via Webinterface, „slew West/East North/South“ everything is fine. The mount moves as long as I want.

 

This Controller worked up to today with 3.16g very good and expected.

 

I have two complet Onstep´s. Both SHC show the same behaveour at the fresh updated Controller. Both have the Version 1.8d

 

The other onstep  has the Version 4.4g from Apr. 17 2020 (why ist hat Version Number higher ?) Here both controller work as expected.

 

So there must be something wrong with my settings in config.h  of the new updated Version. But I went thoug both config.h and I can´t see any different. Limits are set at the original values of the original config.h

 

Any Idear ?

 

CS
Reiner


Re: RTC Init Failed

Howard Dutton
 

On Tue, Oct 13, 2020 at 11:46 AM, George Cushing wrote:
Upload method: "STM32Cube Programmer (SWD)"
And this should be "Serial" right?


Re: RTC Init Failed

Howard Dutton
 

On Tue, Oct 13, 2020 at 11:46 AM, George Cushing wrote:
C:\Users\pinya\AppData\Local\Temp\arduino_build_285942\sketch\src/pinmaps/Pins.STM32B.h:192:2: error: #error "Wrong processor for this configuration!"
Seems like the PINMAP was right otherwise you would never have gotten here.

What this really looks like is an older version of OnStep without Bluepill STM32Duino support.


Re: RTC Init Failed

Khalid Baheyeldin
 

Whatever you put in Config.h for PINMAP is wrong or misspelled.


Re: RTC Init Failed

George Cushing
 

Trying to flash know good STM32 BP withSTM32duino and getting two errors.

In file included from C:\Users\pinya\AppData\Local\Temp\arduino_build_285942\sketch\src/pinmaps/Models.h:47,
                 from C:\Users\pinya\Documents\Arduino\OnStep\OnStep.ino:61:
C:\Users\pinya\AppData\Local\Temp\arduino_build_285942\sketch\src/pinmaps/Pins.STM32B.h:192:2: error: #error "Wrong processor for this configuration!"
  192 | #error "Wrong processor for this configuration!"
      |  ^~~~~
In file included from C:\Users\pinya\Documents\Arduino\OnStep\OnStep.ino:62:
C:\Users\pinya\AppData\Local\Temp\arduino_build_285942\sketch\src/HAL/HAL.h:67:4: error: #error "Unsupported Platform! If this is a new platform, it needs the appropriate entries in the HAL directory."
   67 |   #error "Unsupported Platform! If this is a new platform, it needs the appropriate entries in the HAL directory."
      |    ^~~~~
 
C:\Users\pinya\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h:651:44: error: operator '*' has no right operand
 
  651 | #define RTC                 ((RTC_TypeDef *)RTC_BASE)
      |                                            ^~~
C:\Users\pinya\AppData\Local\Temp\arduino_build_285942\sketch\src/pinmaps/Validate.STM32Blue.h:42:5: note: in expansion of macro 'RTC'
   42 | #if RTC == DS3231
        |       ^~~
C:\Users\pinya\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\system/Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h:651:44: error: operator '*' has no right operand
  651 | #define RTC                 ((RTC_TypeDef *)RTC_BASE)
        |                                                                 ^
C:\Users\pinya\AppData\Local\Temp\arduino_build_285942\sketch\src/pinmaps/ValidatePins.h:131:6: note: in expansion of macro 'RTC'
  131 | #if (RTC == DS3234S || RTC == DS3234M) && !defined(DS3234_CS_PIN)
      |      ^~~
 
Using library SrcWrapper at version 1.0.1 in folder: C:\Users\pinya\AppData\Local\Arduino15\packages\STM32\hardware\stm32\1.9.0\libraries\SrcWrapper 
 
exit status 1
Error compiling for board Generic STM32F1 series.

Board setup.
 
Board: "Generic STM32F1 series"
Board part number: BluePill F103CB (or C8 with 128k)"
U(S)ART support( if available); "none"
USB speed (if available): "Low/Full Speed"
Optimize: Smallest (-Os default)"
Upload method: "STM32Cube Programmer (SWD)"
Port: "COM15"
Get Board info
Programmer: "AVR ISP"
Burn Bootloader
 


Re: RTC Init Failed

Howard Dutton
 

On Tue, Oct 13, 2020 at 11:30 AM, andrea tasselli wrote:
The issue was with the RTC module. Not much of a RTC module without a real time clock, isn’t it. Replaced with the other one and the error goes away. As for the WeMos the fault was mine. I should have connected first and not to expect it to do it for me. Anyway, thanks for the support.
OnStep wasn't lying. :)

Guess you are up and running, glad you had the spare RTC to make short work of figuring that out.


Re: RTC Init Failed

andrea tasselli
 

Howard and Khalid,

The issue was with the RTC module. Not much of a RTC module without a real time clock, isn’t it. Replaced with the other one and the error goes away. As for the WeMos the fault was mine. I should have connected first and not to expect it to do it for me. Anyway, thanks for the support.

Andrea


Re: RTC Init Failed

Howard Dutton
 

On Tue, Oct 13, 2020 at 10:52 AM, Khalid Baheyeldin wrote:
The RTC itself is optional. So for now, turn TIME_LOCATION_SOURCE to OFF, and forget about the RTC Init error (for now).
You can leave it on and forget about the warning, doesn't matter other than having to set the date/time at startup by other means.


Re: RTC Init Failed

Khalid Baheyeldin
 

On Tue, Oct 13, 2020 at 01:36 PM, andrea tasselli wrote:
I can’t see anything else when I use the Serial Monitor. I can try replacing the board (I got a spare) yet it would be better to try and understand why it fails. Is it a software issue or hardware one?
For now, there is no need to replace the RTC module, if the EEPROM chip on it is verified to work.
That is the crucial part needed for the BluePill to work.

The RTC itself is optional. So for now, turn TIME_LOCATION_SOURCE to OFF, and forget about the RTC Init error (for now).

Besides, why the App isn’t working. Any idea here?
You said the WeMos D1 Mini's blue LED blinks then goes steady.
That means the WeMos is able to connect to OnStep successfully.
What happens when you connect to the ONSTEP access point and point a browser to http://192.168.0.1/ ?


Re: RTC Init Failed

Howard Dutton
 
Edited

On Tue, Oct 13, 2020 at 10:36 AM, andrea tasselli wrote:
I can’t see anything else when I use the Serial Monitor. I can try replacing the board (I got a spare) yet it would be better to try and understand why it fails. Is it a software issue or hardware one?
I have no reason to think it's a software issue.

Besides, why the App isn’t working. Any idea here?
Did you follow the steps in the Wiki to get it (WiFi) working?
https://onstep.groups.io/g/main/wiki/7119

What happened?  Describe the steps taken and the results.


Re: RTC Init Failed

andrea tasselli
 

Khalid,

I can’t see anything else when I use the Serial Monitor. I can try replacing the board (I got a spare) yet it would be better to try and understand why it fails. Is it a software issue or hardware one?

Besides, why the App isn’t working. Any idea here?

Cheers

Andrea


Re: RTC Init Failed

andrea tasselli
 

Howard,

Just a standard BluePill from George Cushing (I mean, the kit). LV8279 drivers. Running the software side on a Win7 machine.

Andrea


Re: OnStep astroberry problems

Khalid Baheyeldin
 

On Tue, Oct 13, 2020 at 01:13 PM, Alessandro Pensato wrote:
or take it from other repository like https://ppa.stellarmate.com/repos/apt/stable/pool/main/k/kstars-bleeding/

I do not know if there are problems with dependences or other stuff
You can install .deb packages and ask that dependencies be installed using gdebi.

First install gdebi from your normal repo:

sudo apt-get install gdebi

Then download the .deb that you want installed, and use gdebi

sudo gdebi ./package.deb

You will be asked to confirm if you want to proceed, and a list of dependencies will be
presented (hopefully they are all in your regular repo too).
Make sure that there are no problems before you confirm.


Re: OnStep astroberry problems

tomax1@...
 

Tak, z astroberry 2.0.3 OnStep działa poprawnie tylko w wersji 4.17, przetestowanej.
 
 
 
 
 
 

10701 - 10720 of 37001