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
1342 replies to this topic

#251 mlord

mlord

    Fly Me to the Moon

  • *****
  • topic starter
  • Posts: 6,211
  • Joined: 25 Oct 2020
  • Loc: Ottawa, Canada

Posted 03 April 2023 - 12:08 PM

Would it be possible to get a schematic of the circuit Gen3a?

Post #3 of this very thread: https://www.cloudyni.../#entry12343255



#252 mlord

mlord

    Fly Me to the Moon

  • *****
  • topic starter
  • Posts: 6,211
  • Joined: 25 Oct 2020
  • Loc: Ottawa, Canada

Posted 03 April 2023 - 12:27 PM

Then I could go looking for what could lead to the unreliable operation on the SE.

The best way to go looking for the SE problem, is to turn on VERBOSE mode on the HomeBrew:  hit the letter 'v' on the Arduino Serial Monitor (115200).  Then power on the mount, and observe what happens and where it fails.  The message trace will show where things went wrong.



#253 Zoroastro

Zoroastro

    Mariner 2

  • *****
  • Posts: 216
  • Joined: 06 Jun 2017

Posted 04 April 2023 - 04:41 AM

Hi Mark - what is the purpose of the diode on the 12V line from the J12 to the DC-DC converter?

 

Cheers,

Luca



#254 mlord

mlord

    Fly Me to the Moon

  • *****
  • topic starter
  • Posts: 6,211
  • Joined: 25 Oct 2020
  • Loc: Ottawa, Canada

Posted 04 April 2023 - 06:25 AM

The Diode prevents a USB connection from attempting to power the entire telescope mount.  :)



#255 KenF9000

KenF9000

    Ranger 4

  • -----
  • Posts: 389
  • Joined: 04 Jun 2004
  • Loc: UK, East Yorkshire (54N 0W)

Posted 06 April 2023 - 10:40 AM

I finally managed to get the board built, compiled the script, uploaded it to the device,

 

This what I get:

HomeBrew-v5.28: AUXRELAY=0 MOUNTUSB=1 GPS=1 BLOCK_CFM=1 SSFORWARD=0 NUNCHUCK=1:0
000001590 wifi_mode_switch: server_mode
esp32_wifi ON, Server mode
wifi_begin_server_mode:
esp32_wifi ON, softAP, ssid=HomeBrew-9F1F94, passkey=
GPS detected
000002735 Sending : auxbus_tx: 3b 03 e2 10 fe 0d
000003741 Sending : auxbus_tx: 3b 03 e2 10 fe 0d
000004746 Sending : auxbus_tx: 3b 03 e2 10 fe 0d
000005751 Sending : auxbus_tx: 3b 03 e2 10 fe 0d
000006756 Sending : auxbus_tx: 3b 03 e2 10 fe 0d
and so on.......

 

I have a red led lit on the ESP and a flashing blue led on the GPS module.

 

After a while I get

000066058 Sending : auxbus_tx: 3b 03 e2 10 fe 0d
000067063 Sending : auxbus_tx: 3b 03 e2 10 fe 0d
GPS Fix: true
GPS Time to Fix: 65.840 secs
GPS Start timeout: 120 secs
000068068 Sending : auxbus_tx: 3b 03 e2 10 fe 0d
000069073 Sending : auxbus_tx: 3b 03 e2 10 fe 0d

and so on ....

 

The red led is still on but the GPS flashes red led and blue led.

 

I presume all is ok.

 

Note this is not connected to a scope at this time.

 

Is there a guide on how to set this up and what it does, how to use it?

Any help appreciated.

 

Thanks to mlord for the design and to Michel Racine for the youtube vid on building it.



#256 mlord

mlord

    Fly Me to the Moon

  • *****
  • topic starter
  • Posts: 6,211
  • Joined: 25 Oct 2020
  • Loc: Ottawa, Canada

Posted 06 April 2023 - 10:44 AM

That all looks fine.  When you plug it in to the mount, and then power-on the mount, look for three consecutive bright BLUE blinks from the processor board (the silver side).  Those indicate everything is well and working.

 

After confirming that, the GPS works exactly like a Celestron SkySync (but more modern), and the HomeBrew-xxx WiFi works exactly like a Celestron SkyPortal dongle.  So you can read about those two for more information.

 

Cheers


  • KenF9000 likes this

#257 KenF9000

KenF9000

    Ranger 4

  • -----
  • Posts: 389
  • Joined: 04 Jun 2004
  • Loc: UK, East Yorkshire (54N 0W)

Posted 06 April 2023 - 10:54 AM

That all looks fine.  When you plug it in to the mount, and then power-on the mount, look for three consecutive bright BLUE blinks from the processor board (the silver side).  Those indicate everything is well and working.

 

After confirming that, the GPS works exactly like a Celestron SkySync (but more modern), and the HomeBrew-xxx WiFi works exactly like a Celestron SkyPortal dongle.  So you can read about those two for more information.

 

Cheers

 

Brilliant, thanks for that. I'll hook it up. laugh.gif bow.gif bow.gif bow.gif



#258 KenF9000

KenF9000

    Ranger 4

  • -----
  • Posts: 389
  • Joined: 04 Jun 2004
  • Loc: UK, East Yorkshire (54N 0W)

Posted 06 April 2023 - 11:21 AM

It lives.

 

One problem I did have was I was trying to use Sky Safari to talk to the scope, well that did not work.

Downloaded Celestron Sky Portal. 

 

It works.

 

bow.gif bow.gif bow.gif



#259 soupy01833

soupy01833

    Explorer 1

  • *****
  • Posts: 82
  • Joined: 17 Jan 2022
  • Loc: North Carolina

Posted 06 April 2023 - 11:38 AM

question

when I download the .bin file it loads just fine

I want to run oled so I download the 5.28 ino file.  rename it to .ino
it compiles and uploads but the esp32 gets stuck in a boot loop,  no idea why


and @mlord  thank you for the board.,   it came quick


Edited by soupy01833, 06 April 2023 - 11:43 AM.


#260 coollick

coollick

    Explorer 1

  • -----
  • Posts: 64
  • Joined: 21 Feb 2021
  • Loc: Ottawa, Canada

Posted 06 April 2023 - 11:38 AM

SkySafari will work too if SkyPortal works, just needs to be configured for Celestron WiFi, see post #193


  • KenF9000 likes this

#261 pbddict1

pbddict1

    Explorer 1

  • *****
  • Posts: 82
  • Joined: 06 May 2018
  • Loc: Stamford, NY

Posted 06 April 2023 - 12:09 PM

Installed the OLED and BN180 GPS!!

 

PSX_20230406_125942.jpg

 

PSX_20230406_125919.jpg

 

PSX_20230406_125853.jpg


  • mlord likes this

#262 KenF9000

KenF9000

    Ranger 4

  • -----
  • Posts: 389
  • Joined: 04 Jun 2004
  • Loc: UK, East Yorkshire (54N 0W)

Posted 06 April 2023 - 12:36 PM

Installed the OLED and BN180 GPS!!

 

attachicon.gifPSX_20230406_125942.jpg

 

attachicon.gifPSX_20230406_125919.jpg

 

attachicon.gifPSX_20230406_125853.jpg

With OLED I get a <SSD1306AsciiWire.h> not found, i've tried a few OLED libraries but the one that includes the mentioned ".h" file eludes me.

Would you mind stating the library you used, thanks.


Edited by KenF9000, 06 April 2023 - 12:39 PM.


#263 mlord

mlord

    Fly Me to the Moon

  • *****
  • topic starter
  • Posts: 6,211
  • Joined: 25 Oct 2020
  • Loc: Ottawa, Canada

Posted 06 April 2023 - 01:09 PM

I don't use OLED myself.  But that include file appears to be part of the "Arduino SSD1306Ascii Library".

Google finds it without any problem.  Eg. https://www.arduinol...s/ssd1306-ascii


Edited by mlord, 06 April 2023 - 01:10 PM.


#264 mlord

mlord

    Fly Me to the Moon

  • *****
  • topic starter
  • Posts: 6,211
  • Joined: 25 Oct 2020
  • Loc: Ottawa, Canada

Posted 06 April 2023 - 01:12 PM

when I download the .bin file it loads just fine

I want to run oled so I download the 5.28 ino file.  rename it to .ino
it compiles and uploads but the esp32 gets stuck in a boot loop,  no idea wh

We found/fixed another instance of that behaviour not long ago.  Old bugs in the code that never caused issues with the 1.xx versions of the Arduino IDE, but which crash with the 2.xx versions.  Perhaps you've found another of those!

 

 



#265 KenF9000

KenF9000

    Ranger 4

  • -----
  • Posts: 389
  • Joined: 04 Jun 2004
  • Loc: UK, East Yorkshire (54N 0W)

Posted 06 April 2023 - 01:24 PM

I've just found it at: https://github.com/g...an/SSD1306Ascii

 

For those stuck on the same issue, download the ZIP file using the green "Code" button, select "Download ZIP"

From the IDE, select "Sketch", then "Include Library", then select the "Add .ZIP Library" (its near the top), locate your downloaded zip and import/install it.

 

The code then compiles.


  • pbddict1 likes this

#266 soupy01833

soupy01833

    Explorer 1

  • *****
  • Posts: 82
  • Joined: 17 Jan 2022
  • Loc: North Carolina

Posted 06 April 2023 - 01:40 PM

We found/fixed another instance of that behaviour not long ago.  Old bugs in the code that never caused issues with the 1.xx versions of the Arduino IDE, but which crash with the 2.xx versions.  Perhaps you've found another of those!

Maybe i need to wipe out my Arduino library and start over.  it compiles fine but maybe I have a library that is not correct,

 

 



#267 SieglindeFestkochend

SieglindeFestkochend

    Explorer 1

  • -----
  • Posts: 77
  • Joined: 03 Apr 2020
  • Loc: Germany

Posted 06 April 2023 - 01:55 PM

The best way to go looking for the SE problem, is to turn on VERBOSE mode on the HomeBrew:  hit the letter 'v' on the Arduino Serial Monitor (115200).  Then power on the mount, and observe what happens and where it fails.  The message trace will show where things went wrong.

My interim status regarding the problems with the NexStar SE and the HomeBrew Gen3x:

 

  • If the ESP32 is running at 80 MHz, it is not always already booted up when the HC scans via the serial bus everything that populates the mount. Then the HC sometimes finds a NexStar GPS, or no mount (16/17) or the message "Application Start" can be seen in the HC...
     
  • If the HomeBrew is already booted up because it was powered by USB before you turn on the mount, this will result in a trouble-free start of the mount with HomeBrew Gen3x.

Here's how I researched further:

  • In my NexStar SE, when the ESP32 is running at 160 MHz, it's always booted up before the HC scans. This results in trouble-free operation on a NexStar SE with OLED an anything else. Unfortunately, power consumption increases.
To specify the CPU frequency, see the sketch by Mark Lord, Line 13: "and also CPU Frequency = 80/160Mhz (WiFi/BT)"

If this post doesn't belong here or contains incorrect information, I would be grateful for a hint.

 

 

Thanks again, Mark


Edited by SieglindeFestkochend, 06 April 2023 - 04:40 PM.

  • mlord likes this

#268 mlord

mlord

    Fly Me to the Moon

  • *****
  • topic starter
  • Posts: 6,211
  • Joined: 25 Oct 2020
  • Loc: Ottawa, Canada

Posted 06 April 2023 - 02:16 PM

Is your hand-controller firmware up-to-date?  The latest firmwares seem to take much longer at startup now.  Either way though, I also always use 160MHz for the ESP32 CPU now.  I will update the instructions to match that.


  • pbddict1 and SieglindeFestkochend like this

#269 soupy01833

soupy01833

    Explorer 1

  • *****
  • Posts: 82
  • Joined: 17 Jan 2022
  • Loc: North Carolina

Posted 06 April 2023 - 03:33 PM

i am good now  setting cpu frequency to 160  seems to have resolved my boot loop


  • pbddict1 likes this

#270 SieglindeFestkochend

SieglindeFestkochend

    Explorer 1

  • -----
  • Posts: 77
  • Joined: 03 Apr 2020
  • Loc: Germany

Posted 06 April 2023 - 04:36 PM

Is your hand-controller firmware up-to-date?  The latest firmwares seem to take much longer at startup now.  Either way though, I also always use 160MHz for the ESP32 CPU now.  I will update the instructions to match that.

HC: NXS 5.34.2065

MC: 5.14 5.14


Edited by SieglindeFestkochend, 06 April 2023 - 04:38 PM.


#271 soupy01833

soupy01833

    Explorer 1

  • *****
  • Posts: 82
  • Joined: 17 Jan 2022
  • Loc: North Carolina

Posted 06 April 2023 - 05:27 PM

Installed the OLED and BN180 GPS!!

 

attachicon.gifPSX_20230406_125942.jpg

 

attachicon.gifPSX_20230406_125919.jpg

 

attachicon.gifPSX_20230406_125853.jpg

 

Did you design the enclosure yourself?



#272 pbddict1

pbddict1

    Explorer 1

  • *****
  • Posts: 82
  • Joined: 06 May 2018
  • Loc: Stamford, NY

Posted 06 April 2023 - 06:24 PM

Did you design the enclosure yourself?

 

"Design" might be too strong a word!!

 

Yes I did make it from scratch.

I measured Mlord's board, made a box to fit it, and then added some holes for stuff to poke out of :)

Autodesk Fusion 360 is awesome (and free)


  • mlord likes this

#273 soupy01833

soupy01833

    Explorer 1

  • *****
  • Posts: 82
  • Joined: 17 Jan 2022
  • Loc: North Carolina

Posted 06 April 2023 - 07:17 PM

I normally use tinkercad

I might try to do something off coolicks original stl



#274 mlord

mlord

    Fly Me to the Moon

  • *****
  • topic starter
  • Posts: 6,211
  • Joined: 25 Oct 2020
  • Loc: Ottawa, Canada

Posted 06 April 2023 - 07:41 PM

I hope to have .STL for a basic Gen3c enclosure to post here by the weekend.



#275 coollick

coollick

    Explorer 1

  • -----
  • Posts: 64
  • Joined: 21 Feb 2021
  • Loc: Ottawa, Canada

Posted 06 April 2023 - 07:50 PM

I normally use tinkercad

I might try to do something off coolicks original stl

If you want to tinker...https://www.tinkerca...ngs/dk77gXFjQE0


  • soupy01833 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