Jump to content

  •  

CNers have asked about a donation box for Cloudy Nights over the years, so here you go. Donation is not required by any means, so please enjoy your stay.

Photo

HomeBrew Gen3 PCB: WiFi+BT+GPS+MUSB+Relay !

  • Please log in to reply
2029 replies to this topic

#1926 mlord

mlord

    Cosmos

  • *****
  • topic starter
  • Posts: 7,707
  • Joined: 25 Oct 2020
  • Loc: Ottawa, Canada.

Posted 08 March 2025 - 07:51 AM

Yes, MUSB is available from the micro-USB Type-B port on the ESP32 module.  The BLUE slider switch has to be in the down position for MUSB.


  • Kanis92 likes this

#1927 calhaus

calhaus

    Sputnik

  • -----
  • Posts: 25
  • Joined: 23 Sep 2024

Posted 09 March 2025 - 12:41 PM

So some updates.

 

I've broke my HBG3! frown.gif

 

Finally i had the time to make the dew heater control system and put everything in a box, but when i've connected the 12v input the esp32 stopped working and now nothing works, i can upload to it, but i cant communicate.

 

So i've:

-Removed the relay board,

-Connected a capacitator from the enable to gnd (because of the upload),

-installed the focuser with an expansion board with A4988 driver (the 12V come from the raw on the HBG3 driver), also made an usb port to connect the servo (for the 4 fase controller cables)

-installed a gps,

-And installed the dew heater system with a sth31, and with this diagram:post-346100-0-57155800-1720962790_thumb.

 

From here, evething was working until i connected the the dew ring cable,thermistor and then 12v 5a output power.

 

For a few seconds i saw the dew system on the celestron hand controller, the a 23 error happeared, and everything stopped working.

I can upload to the esp32 but that's only that. I think it's dead.

I'll have to do everything all over again from the start :/ The real problem it that i can't figure out what i've made wrong, i cant find any short circuits or wrong wiring. I hope i can find out the problem, because after all the work i have ahead, i don't want it to happen again frown.gif

 

By the way, my HBG3 with all the stuff was looking like this:

HBG3meucaixa - Copy.jpg



#1928 calhaus

calhaus

    Sputnik

  • -----
  • Posts: 25
  • Joined: 23 Sep 2024

Posted 09 March 2025 - 12:49 PM

On the code i've changed it so i could use my own calibration parameters,

One nunchuck sends callibration parammeters but they are wrong and the other dont send max and min values, so i've changed it for detect each nunchuck and set the real correct max and mins for one or the other. 

 

I'm not using "NCHUCK_FAKE_DATA", but i think this could cause problems:

#if NCHUCK_FAKE_DATA
  nchuck_y_mhi = nchuck_y_mlo = 137;
#define NCHUCK_FAKE_DATA

At least for me when i was setting my calibration data, the y middle is not 137, but was set like that all the time, i think even with fake data the best is to read the middle data.

 

Also i've changed this:

if (first || newx > nchuck_x_mhi)
    nchuck_x_mhi = newx+2;
  if (first || newx < nchuck_x_mlo)
    nchuck_x_mlo = newx-2;
  if (first || newy > nchuck_y_mhi)
    nchuck_y_mhi = newy+2;
  if (first || newy < nchuck_y_mlo)
    nchuck_y_mlo = newy-2;
  if (--nchuck_measuring_middle)

Added a +/-2 to decrease middle sensibility, because at least with my old nunchuck it helped



#1929 mlord

mlord

    Cosmos

  • *****
  • topic starter
  • Posts: 7,707
  • Joined: 25 Oct 2020
  • Loc: Ottawa, Canada.

Posted 09 March 2025 - 12:56 PM

The issue most likely has to do with the 12V power supplies.  There is one supply running the mount and accessories (including the HBG3), and another 12V supply for the Dew controllers.  These must share a common GND.


Edited by mlord, 09 March 2025 - 03:06 PM.


#1930 calhaus

calhaus

    Sputnik

  • -----
  • Posts: 25
  • Joined: 23 Sep 2024

Posted 09 March 2025 - 02:03 PM

I have the same GND for everything. What can i do?

The servo is from raw of hbg3, should it be from the external?

Or could i've used the raw to power the dew system? 



#1931 mlord

mlord

    Cosmos

  • *****
  • topic starter
  • Posts: 7,707
  • Joined: 25 Oct 2020
  • Loc: Ottawa, Canada.

Posted 09 March 2025 - 03:09 PM

RAW comes straight from the 12V connection on the AUX connector, so drawing power from the mount AUX port.  The mount AUX port is good for perhaps 1A total (everything).  I would not use it to power a motor or a Dew Heater.

 

Cheers


  • calhaus likes this

#1932 Kanis92

Kanis92

    Explorer 1

  • -----
  • Posts: 65
  • Joined: 19 Mar 2023

Posted 09 March 2025 - 09:04 PM

Yes, MUSB is available from the micro-USB Type-B port on the ESP32 module.  The BLUE slider switch has to be in the down position for MUSB.

Thanks Mark.



#1933 calhaus

calhaus

    Sputnik

  • -----
  • Posts: 25
  • Joined: 23 Sep 2024

Posted 10 March 2025 - 08:03 AM

RAW comes straight from the 12V connection on the AUX connector, so drawing power from the mount AUX port.  The mount AUX port is good for perhaps 1A total (everything).  I would not use it to power a motor or a Dew Heater.

 

Cheers

I will change the 12v for the servo to also be external next time, hope it works. :) 



#1934 ShadowAngel

ShadowAngel

    Explorer 1

  • *****
  • Posts: 88
  • Joined: 25 Feb 2020

Posted 11 March 2025 - 01:06 AM

I have an HBG3 with relay setup, got the GPS (BE-182) installed and working well. Went to start looking at adding a stepper focuser and ran into an issue, as i'm pretty new to dealing with arduino and circuit board stuff. The stepper motor i'm using (28BYJ-48 with ULN2003) needs 5v power and ground, but the pads for both are already occupied on the ES32 board with the power leads that go to the relay. What would be the best/easiest way to get power to the stepper driver board, can you just tap into the 5v/ground wires going to the relay board and run those to the stepper, or would that be a bad idea? Solder the 5v and ground wires onto the pads on the relay board, maybe? Use a RJ12 plug and run 5v and ground off one of the relay plugs? Just trying to look at options.


Edited by ShadowAngel, 11 March 2025 - 01:15 AM.


#1935 masi

masi

    Explorer 1

  • -----
  • Posts: 53
  • Joined: 09 Nov 2023
  • Loc: Öhningen, Germany

Posted 11 March 2025 - 01:41 AM

Hi mlord

 

I am not sure if this topic is placed correct if not just let me know where I have to move it.

 

I am using the HBG3 every time I am using my Scope, form time to time, very sporadic it seems that CPWI seems to be frozen. In the CPWI Log I can than see the following messages.

2025-03-10 21:51:35.018 +01:00 [#25] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:35.091 +01:00 [DewHeater_Tasks1#15] (CelestronAuxBus) SENT: Src=0x20 : Dst=0x17 : Cmd=0x00: Data=<empty>
2025-03-10 21:51:35.091 +01:00 [#10] (CelestronAuxBus) Auxbus received 34 bytes: 3B-06-12-20-01-00-43-CC-B8-3B-04-17-20-02-7F-44-3B-09-17-20-00-2E-E0-06-A4-00-00-08-3B-03-10-20-06-C7
2025-03-10 21:51:35.197 +01:00 [#25] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:35.275 +01:00 [#25] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:35.277 +01:00 [#25] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:35.346 +01:00 [DewHeater_Tasks1#15] (CelestronAuxBus) No response received for: Src=0x20 : Dst=0x17 : Cmd=0x00: Data=<empty>.  Attempts remaining: 5
2025-03-10 21:51:35.451 +01:00 [#25] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:35.580 +01:00 [#25] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:35.580 +01:00 [#25] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:35.705 +01:00 [#25] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:35.776 +01:00 [Focuser_Tasks1#16] (CelestronAuxBus) SENT: Src=0x20 : Dst=0x12 : Cmd=0x01: Data=<empty>
2025-03-10 21:51:35.832 +01:00 [#25] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:35.832 +01:00 [#25] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:35.882 +01:00 [#25] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:35.954 +01:00 [Mount_Service_Executor 21#13] (CelestronAuxBus) SENT: Src=0x20 : Dst=0x10 : Cmd=0x06 : Data[hex]= 00-43-43
2025-03-10 21:51:35.954 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:36.145 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:36.145 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:36.212 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:36.220 +01:00 [Mount_Service_Executor 21#13] (CelestronAuxBus) No response received for: Src=0x20 : Dst=0x10 : Cmd=0x06 : Data[hex]= 00-43-43.  Attempts remaining: 3
2025-03-10 21:51:36.459 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:36.459 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:36.464 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:36.516 +01:00 [DewHeater_Tasks1#15] (CelestronAuxBus) SENT: Src=0x20 : Dst=0x17 : Cmd=0x00: Data=<empty>
2025-03-10 21:51:36.709 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:36.709 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:36.719 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:36.770 +01:00 [DewHeater_Tasks1#15] (CelestronAuxBus) No response received for: Src=0x20 : Dst=0x17 : Cmd=0x00: Data=<empty>.  Attempts remaining: 4
2025-03-10 21:51:36.972 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:37.018 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:37.018 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:37.226 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:37.327 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:37.327 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:37.479 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:37.580 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:37.580 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:37.733 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:37.830 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:37.830 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:37.884 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:37.987 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:38.081 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:38.081 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:38.240 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:38.393 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:38.393 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:38.493 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:38.652 +01:00 [Mount_Service_Executor 21#13] (CelestronAuxBus) SENT: Src=0x20 : Dst=0x10 : Cmd=0x06 : Data[hex]= 00-43-43
2025-03-10 21:51:38.702 +01:00 [#25] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:38.702 +01:00 [#25] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:38.745 +01:00 [#25] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:38.917 +01:00 [Mount_Service_Executor 21#13] (CelestronAuxBus) No response received for: Src=0x20 : Dst=0x10 : Cmd=0x06 : Data[hex]= 00-43-43.  Attempts remaining: 2
2025-03-10 21:51:39.000 +01:00 [#25] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:39.011 +01:00 [#25] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:39.011 +01:00 [#25] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:39.254 +01:00 [#25] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:39.322 +01:00 [#25] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:39.323 +01:00 [#25] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:39.415 +01:00 [Focuser_Tasks1#16] (CelestronAuxBus) SENT: Src=0x20 : Dst=0x12 : Cmd=0x01: Data=<empty>
2025-03-10 21:51:39.467 +01:00 [DewHeater_Tasks1#15] (CelestronAuxBus) SENT: Src=0x20 : Dst=0x17 : Cmd=0x00: Data=<empty>
2025-03-10 21:51:39.467 +01:00 [#21] (CelestronAuxBus) Auxbus received 54 bytes: 3B-06-12-20-01-00-43-CC-B8-3B-09-17-20-00-2E-E0-06-A4-00-00-08-3B-03-10-20-06-C7-3B-09-17-20-00-2E-E0-06-A4-00-00-08-3B-06-12-20-01-00-43-CC-B8-3B-03-10-20-06-C7
2025-03-10 21:51:39.508 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:39.572 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:39.573 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:39.679 +01:00 [Focuser_Tasks1#16] (CelestronAuxBus) No response received for: Src=0x20 : Dst=0x12 : Cmd=0x01: Data=<empty>.  Attempts remaining: 9
2025-03-10 21:51:39.746 +01:00 [DewHeater_Tasks1#15] (CelestronAuxBus) No response received for: Src=0x20 : Dst=0x17 : Cmd=0x00: Data=<empty>.  Attempts remaining: 3
2025-03-10 21:51:39.772 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:39.824 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:39.824 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:39.882 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:40.031 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:40.076 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:40.076 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:40.288 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:40.326 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:40.326 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:40.544 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:40.579 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:40.579 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:40.639 +01:00 [Mount_Service_Executor 21#13] (CelestronAuxBus) SENT: Src=0x20 : Dst=0x10 : Cmd=0x06 : Data[hex]= 00-43-43
2025-03-10 21:51:40.713 +01:00 [Focuser_Tasks1#16] (CelestronAuxBus) SENT: Src=0x20 : Dst=0x12 : Cmd=0x01: Data=<empty>
2025-03-10 21:51:40.796 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:40.828 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:40.828 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:40.890 +01:00 [Mount_Service_Executor 21#13] (CelestronAuxBus) No response received for: Src=0x20 : Dst=0x10 : Cmd=0x06 : Data[hex]= 00-43-43.  Attempts remaining: 1
2025-03-10 21:51:40.982 +01:00 [Focuser_Tasks1#16] (CelestronAuxBus) No response received for: Src=0x20 : Dst=0x12 : Cmd=0x01: Data=<empty>.  Attempts remaining: 8
2025-03-10 21:51:41.049 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:41.078 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:41.078 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:41.301 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:41.392 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:41.392 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:41.556 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:41.643 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:41.643 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:41.717 +01:00 [DewHeater_Tasks1#15] (CelestronAuxBus) SENT: Src=0x20 : Dst=0x17 : Cmd=0x00: Data=<empty>
2025-03-10 21:51:41.808 +01:00 [#25] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:41.938 +01:00 [#25] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:41.938 +01:00 [#25] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:41.956 +01:00 [Mount_Service_Executor 21#13] (CelestronAuxBus) SENT: Src=0x20 : Dst=0x10 : Cmd=0x06 : Data[hex]= 00-43-43
2025-03-10 21:51:42.024 +01:00 [Focuser_Tasks1#16] (CelestronAuxBus) SENT: Src=0x20 : Dst=0x12 : Cmd=0x01: Data=<empty>
2025-03-10 21:51:42.024 +01:00 [Mount_Service_Executor 21#13] (MountService) Mount-axis1 set-rate 8.15220584700072E-05
2025-03-10 21:51:42.030 +01:00 [#9] (MountService) IsSlewOrMovePending: GotoInProgress = False; _isSlewInProgress = False; _jogInProgress[0] = False; _jogInProgress[1] = False
2025-03-10 21:51:42.030 +01:00 [#3] (CelestronAuxBus) Auxbus received 48 bytes: 3B-09-17-20-00-2E-E0-06-A4-00-00-08-3B-06-12-20-01-00-43-CC-B8-3B-03-10-20-06-C7-3B-09-17-20-00-2E-E0-06-A4-00-00-08-3B-06-12-20-01-00-43-CC-B8

could it be that this messages pointing to HBG3 could be the reason, and if yes how can I check on HBG3 side what is the reason for it that its not answering ?

 

[DewHeater_Tasks1#15] (CelestronAuxBus) No response received for: Src=0x20 : Dst=0x17 : Cmd=0x00: Data=<empty>.  Attempts remaining: 5

[Focuser_Tasks1#16] (CelestronAuxBus) No response received for: Src=0x20 : Dst=0x12 : Cmd=0x01: Data=<empty>.  Attempts remaining: 9

 

 

HBG3 is connect via Bluetooth to CPWI.

My mount is a celestron CGX

 

I hope I did not forget anything if so let me know what additional infos you need.

 

Martin



#1936 mlord

mlord

    Cosmos

  • *****
  • topic starter
  • Posts: 7,707
  • Joined: 25 Oct 2020
  • Loc: Ottawa, Canada.

Posted 11 March 2025 - 10:07 AM

What would be the best/easiest way to get power to the stepper driver board, can you just tap into the 5v/ground wires going to the relay board and run those to the stepper

Sure.  There's actually an extra set of +5/GND/RAW pads under the OLD display, right beside the ones used by the Relay.  But you can tap into the actual relay wires if you like.  Or the GPS wires (+5/GND there too).  Or directly off the ESP32 (VIN/GND) pins.



#1937 mlord

mlord

    Cosmos

  • *****
  • topic starter
  • Posts: 7,707
  • Joined: 25 Oct 2020
  • Loc: Ottawa, Canada.

Posted 11 March 2025 - 10:11 AM

I am using the HBG3 every time I am using my Scope, form time to time, very sporadic it seems that CPWI seems to be frozen.

It appears from that CPWI log that your setup may also have a Celestron Focus Motor connected?  Those are known to cause communications issues in many, MANY setups.  If you have the HBG3-Relay variant of HBG3, then ensure the Focus Motor is plugged into the Relay ports, rather than directly to the mount (with or without a splitter).

 

Otherwise, one can ignore "errors" for accessories that don't exist (eg. Dew Controller, Focus Motor, ..).  CPWI just queries for those regardless, and the "errors" don't affect anything.


Edited by mlord, 11 March 2025 - 10:14 AM.


#1938 masi

masi

    Explorer 1

  • -----
  • Posts: 53
  • Joined: 09 Nov 2023
  • Loc: Öhningen, Germany

Posted 11 March 2025 - 10:17 AM

It appears from that CPWI log that your setup may also have a Celestron Focus Motor connected?  

I have only HBG3

It is the HBG3 interface for the Focus Motor, nothing from Celestron itself

I am also using the Dew Heater control in HBG3

 

so all is connected on HBG3 and in use.

 

cheers

Martin


Edited by masi, 11 March 2025 - 10:19 AM.


#1939 sunespeg

sunespeg

    Lift Off

  • -----
  • Posts: 9
  • Joined: 28 Sep 2024

Posted 16 March 2025 - 03:10 PM

Feature request:  A set of allowed rates for the mount that can be set in NVram  similar to nchuck.slew.speeds

Purpose: Limit slew /goto speeds from all inputs from various apps, so they dont exceed the max desired rate (if set)

Reason : Most apps allows a custom rate, but the most common  apps skyportal and skysafari resets the selected rate when going to next step in alignment phase, overriding the slower selected value.

 

 

I  tried change the stepdir_speeds_nexstar, but not all apps seems to respect this , maybe because they use 0x02 MC_GOTO_FAST and not MC_MOVE_POS/NEG (0x24 ,0x25) ?

 

My SLT mount has this flaw (i suspect it is a common flaw with this mount and others with similar stepper motors), that it works fine when slewing with nunchuck or app at fast speed, but when using commands that reads MC_GET_POS, the mount gets overloaded and reports clearly wrong values, and eventually crashes.

(details here cloudynights.com/topic/957998-slt-mount-readouts-wrong-during-goto-but-works-fine-in-manual-slew )

 

Such feature could make mounts with alignment issues more reliable ,and work accross all apps since the fix is done in hbg3.

Maybe redirect MC_GOTO_FAST to MC_GOTO_SLOW with highest allowed speed ,and make MC_MOVE respect the allowed rates if set ,to keep it backward compatible?
I think it would be very popular feature amongst people with the dreaded SLT Mount (and possible others)

Worth considering ?



#1940 sunespeg

sunespeg

    Lift Off

  • -----
  • Posts: 9
  • Joined: 28 Sep 2024

Posted 18 March 2025 - 06:16 PM

Adding this to the bus_tx method seems to do the trick. It goes (very) slow on goto commands now, but atleast it doesnt crash the mount.
It is still possible to move it faster with manual method and help it on the way.
 
if (data[2]==32 && (data[3]==16 || data[3]==17) && data[4]==MC_GOTO_FAST  ) {
       data[4]=MC_GOTO_SLOW;
       update_checksum(data);
    }
 
It is a dirty hack and i have no idea what complications it could introduce, ill report back when it has been field tested.

 



#1941 mlord

mlord

    Cosmos

  • *****
  • topic starter
  • Posts: 7,707
  • Joined: 25 Oct 2020
  • Loc: Ottawa, Canada.

Posted 18 March 2025 - 07:07 PM

Not going to touch that one. Better would be to fix the issue with that set-up, and discuss such NOT in this thread.

Cheers

#1942 Magical Trevor

Magical Trevor

    Lift Off

  • -----
  • Posts: 8
  • Joined: 25 Nov 2024

Posted 20 March 2025 - 08:48 AM

Please be nice. I have just purchased a built version of this from Patrick,I am very new to this and am not sure which port to use to connect to the mount. There are three ports, one next to the display and two more below it. which one do i use?  A

                                                     B     C


Edited by Magical Trevor, 20 March 2025 - 08:48 AM.


#1943 MarkEHansen

MarkEHansen

    Explorer 1

  • -----
  • Posts: 82
  • Joined: 21 Dec 2020
  • Loc: Sacramento, CA

Posted 20 March 2025 - 09:45 AM

If you are referring to the RJ45 (6P6C) jacks on the HBG3, any one will do. Just make sure you connect these cables before you power anything on. These cables are not to be connected/removed with power on.

 

Edit: A lot of my information above was wrong. I answered too quickly - sorry about that. Mark cleared up the points below.


Edited by MarkEHansen, 20 March 2025 - 12:27 PM.


#1944 mlord

mlord

    Cosmos

  • *****
  • topic starter
  • Posts: 7,707
  • Joined: 25 Oct 2020
  • Loc: Ottawa, Canada.

Posted 20 March 2025 - 10:10 AM

not sure which port to use to connect to the mount.

The mount can only work when using the port adjacent to the USB micro-B connector, between the red/blue switches. The other pair of 6P6C (not RJ45) ports are from the "Relay" side, and are for accessories but not for the mount.

There is a physical difference in the wiring, as well as firmware differences, between the single mount port and the pair of Relay ports.

"RJ45" is a term some people use to refer to a 8P8C port. The HBG3 does not have any 8P8C ports, only 6P6C ones. "6P" means six possible wire "Positions", and "6C" means all six of them are equipped with "Conductors" (aka. wires).


Edited by mlord, 20 March 2025 - 07:31 PM.

  • MarkEHansen likes this

#1945 Douglas K

Douglas K

    Lift Off

  • -----
  • Posts: 4
  • Joined: 24 Oct 2009

Posted 20 March 2025 - 10:53 AM

I've got mine mostly built out (need to test still) and am working on designing a 3d printable case similar to the one over at https://www.printabl...-homebrew-3-box. As I'm building dual channel with the relay I need to redesign with a bit more space as I've added two bits of strip board for power  distribution points on 12-16v and low voltage plus the two dew controllers plus the relay board and the GPS board.

 

Is there a mechanical drawing of the current HBG3? Even a 2d one that shows the board outline and spacing would be very helpful. I've searched this thread with things like layout, dimensions and spacing without finding one. If you don't have one, don't worry overly much as I can just measure it. :)

 

Thanks for creating this amazing project.


  • mlord likes this

#1946 mlord

mlord

    Cosmos

  • *****
  • topic starter
  • Posts: 7,707
  • Joined: 25 Oct 2020
  • Loc: Ottawa, Canada.

Posted 20 March 2025 - 11:25 AM

No mechanical drawings available. The HBG3 evolved unexpectedly over time, and until recently there wasn't even an up-to-date schematic for the current version!
  • Douglas K likes this

#1947 Douglas K

Douglas K

    Lift Off

  • -----
  • Posts: 4
  • Joined: 24 Oct 2009

Posted 20 March 2025 - 12:39 PM

The issue most likely has to do with the 12V power supplies.  There is one supply running the mount and accessories (including the HBG3), and another 12V supply for the Dew controllers.  These must share a common GND.

Quick question ... is it OK to have the same battery powering the mount and the dew controllers, thus ensuring the same ground? I generally power my scope using my ham radio battery pack which is likely overkill here. The radio battery is a 50Ah LiFePO4 13.3v battery (nominal, never seems to go over 14).


Edited by Douglas K, 20 March 2025 - 02:20 PM.


#1948 mlord

mlord

    Cosmos

  • *****
  • topic starter
  • Posts: 7,707
  • Joined: 25 Oct 2020
  • Loc: Ottawa, Canada.

Posted 20 March 2025 - 03:28 PM

I use the same external battery for both mount and Dew Heaters.

#1949 ShadowAngel

ShadowAngel

    Explorer 1

  • *****
  • Posts: 88
  • Joined: 25 Feb 2020

Posted 20 March 2025 - 08:57 PM

Don't suppose there's a way to calibrate specifically the nunchuck that i've overlooked? I finally got everything assembled and it works great, but running into a problem using the (offbrand) nunchuck. Slewing both slow and fast works great. But if I use it for focusing my stepper, it acts really wonky. I have to push the thumbstick kind of down right and down left instead of right or left, it's jittery, stops a lot, etc. I'm sure it's most likely just that the nunchuck itself is poor quality, but trying to figure out a way I could calibrate out the wonkiness and figured i'd ask before it goes into the dumpster.

Fantastic project all around, thank you for this. I've had a lot of fun working on it and getting it set up.Still needing to find or design a 3d printed enclosure that'll hold the hbg3+relay board as well as my stepper control board and the gps, but even as a jumble of wires and electrical bits it's extremely useful.



#1950 mlord

mlord

    Cosmos

  • *****
  • topic starter
  • Posts: 7,707
  • Joined: 25 Oct 2020
  • Loc: Ottawa, Canada.

Posted 21 March 2025 - 08:00 AM

Just return that Nunchuck and get another one.  I find about one in four is "bad".


  • ShadowAngel likes this


CNers have asked about a donation box for Cloudy Nights over the years, so here you go. Donation is not required by any means, so please enjoy your stay.


Recent Topics






Cloudy Nights LLC
Cloudy Nights Sponsor: Astronomics