¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

NTP Clock on ESP8266

 

Greetings all...

The ESP8266 is another WiFi capable board that's available and affordable. They're a bit slower and have less memory and fewer pins than the ESP32 but are fine for many WiFi applications, like a clock.? Since I have a couple ESP8266 NodeMCU boards left over from another project, I thought I'd see if I could port Bruce's NTP clock code to run on one. It was pretty easy to get it going (an additional board definition, one line of code, and a few wiring changes) so if anyone's interested, let me know & I'll post the details.

Thanks to Bruce for sharing his clock projects. One can never have too many clocks.? :)

73...???? Mark??? AA7TA


PCB for NTP clock

 

All,

I am reposting the message below from another forum.? Don is doing a group purchase for the clock PCB.? If anyone has interest, please contact?him directly.

Bruce


"1/15/21:? Just a reminder, its "last call" for boards, will be placing the order tomorrow morning, so definitely get an email to me at ae4dw.don (aT) gmail dot com if you are wanting one and have not yet let me know."??Don--AE4DW


Chinese New Year 2021 #pcb

 

Chinese New Year, also known as the Spring Festival or the Lunar New Year, marks the first day of the New Year in the Chinese calendar.

Chinese New Year 2021 falls on Friday, February 12th, 2021, and celebrations culminate with the Lantern Festival on February 26th, 2021. Celebrations last up to 16 days, but only the first 7 days are considered a public holiday (February 11th¨C17th, 2021).

This is just a reminder for anyone who is planning on ordering W8BH Morse Tutor PCBs from a PCB fabrication house in China, such as JLCPCB, to get your order in soon. In the past, Chinese businesses usually shut down during the Chinese New Year, as everyone goes home for a couple of weeks, or longer.

I have no idea what will happen this year, but if you are planning on ordering PCBs from China, now would be a good time to do so.

--
Regards,
Ken, KM4NFQ "Not Fully Qualified"
/g/w8bhMorseTutor


Re: Wanted: programmed board

 

Folks,
Thank you Ken for pointing out that my WTB note was poorly worded (I should know better than send emails late at night). I¡¯m looking for a programmed PCB (with either STM32 or ESP32), ready to connect with a key, display and start listening to code again. Or if someone has a completed trainer, I could be interested.

Thank you. Merry Christmas to all. Be safe

jim

¡ª
jim W4BEA
Fat-thumbed from my iPhone7

On Dec 24, 2020, at 11:56 AM, Ken KM4NFQ <km4nfq@...> wrote:

?Hello Jim W4BEA

When you say 'board', do you mean the microcontroller?
From the context of your post, it looks like you mean microcontroller, not PCB.
A PCB is a Printed Circuit Board, and is sometimes called the 'board'.

I presume that when you say you have all the 'bits', you also mean you
have the PCB?

There are two versions of the W8BH Morse Tutor.
The first version uses the 'Blue Pill' STM32F103C8T6 microcontroller
module, like this one:

The second version uses the 'ESP32-WROOM-32' microcontroller module,
like this one:
.
Each microcontroller has its own PCB and Bill Of Materials.

We need more information!

The ESP32 Morse Tutor can communicate with another ESP32.
So you would need two of them if you wanted to practice with another Ham.
The 'Blue Pill' STM32 is a standalone Morse Tutor. No WiFi feature.

So even if someone has an extra W8BH Morse Tutor already built that
they are willing to sell to you; which one do you want? Or, if you
only need the microcontroller, which one do you need (ie. which PCB do
you have)? Or, do you need a microcontroller and a PCB for one of the
versions?

I may have an extra STM32 Morse Tutor PCB, if you need one?
However, I do not have an extra 'Blue Pill' microcontroller for it.

Have a Safe and Merry Holiday! Happy Happy Joy Joy!

Regards,
Ken, KM4NFQ "Not Fully Qualified"
/g/w8bhMorseTutor

On Thu, Dec 24, 2020 at 10:14 AM J.C. Hassall <jhassall@...> wrote:

Folks,
I'd like to purchase a board, already programmed for the code Tutor. I have all the bits, just no board. Failing that, I'd consider purchasing a completed assembly if necessary. The only source I could find for the uC was in China, the boards may not arrive until February and I want to get started *now* :-/

73
--
jim W4BEA

The democracy will cease to exist when you take away from those who are willing to work and give to those who would not.
Thomas Jefferson

I sometimes feel bad for the smart people - being simple-minded and easily entertained is totally the way to go! ;-)
J. Stoll





Re: Wanted: programmed board

 

Hello Jim W4BEA

When you say 'board', do you mean the microcontroller?
From the context of your post, it looks like you mean microcontroller, not PCB.
A PCB is a Printed Circuit Board, and is sometimes called the 'board'.

I presume that when you say you have all the 'bits', you also mean you
have the PCB?

There are two versions of the W8BH Morse Tutor.
The first version uses the 'Blue Pill' STM32F103C8T6 microcontroller
module, like this one:

The second version uses the 'ESP32-WROOM-32' microcontroller module,
like this one:
.
Each microcontroller has its own PCB and Bill Of Materials.

We need more information!

The ESP32 Morse Tutor can communicate with another ESP32.
So you would need two of them if you wanted to practice with another Ham.
The 'Blue Pill' STM32 is a standalone Morse Tutor. No WiFi feature.

So even if someone has an extra W8BH Morse Tutor already built that
they are willing to sell to you; which one do you want? Or, if you
only need the microcontroller, which one do you need (ie. which PCB do
you have)? Or, do you need a microcontroller and a PCB for one of the
versions?

I may have an extra STM32 Morse Tutor PCB, if you need one?
However, I do not have an extra 'Blue Pill' microcontroller for it.

Have a Safe and Merry Holiday! Happy Happy Joy Joy!

Regards,
Ken, KM4NFQ "Not Fully Qualified"
/g/w8bhMorseTutor

On Thu, Dec 24, 2020 at 10:14 AM J.C. Hassall <jhassall@...> wrote:

Folks,
I'd like to purchase a board, already programmed for the code Tutor. I have all the bits, just no board. Failing that, I'd consider purchasing a completed assembly if necessary. The only source I could find for the uC was in China, the boards may not arrive until February and I want to get started *now* :-/

73
--
jim W4BEA

The democracy will cease to exist when you take away from those who are willing to work and give to those who would not.
Thomas Jefferson

I sometimes feel bad for the smart people - being simple-minded and easily entertained is totally the way to go! ;-)
J. Stoll


Wanted: programmed board

 

Folks,
I'd like to purchase a board, already programmed for the code Tutor.? I have all the bits, just no board.? Failing that, I'd consider purchasing a completed assembly if necessary.? The only source I could find for the uC was in China, the boards may not arrive until February and I want to get started *now* :-/

73
--
jim? W4BEA

The democracy will cease to exist when you take away from those who are willing to work and give to those who would not.
Thomas Jefferson

I sometimes feel bad for the smart people - being simple-minded and easily entertained is totally the way to go! ;-)
J. Stoll


Re: PCB for the NTP clock

 


Yes, you can use a spare ESP32 Morse Tutor PCB for the NTP clock.? All you need is the power circuit, ESP32 and display.?? The first attached photo shows my Morse Tutor v1 in action.? ?

To make it work, change a few of the pin definitions in User_Setup.h:

#define TFT_MOSI ? ? 23 ? ?
#define TFT_MISO ? ? 19
#define TFT_SCLK ? ? 18
#define TFT_CS ? ? ? ?5? ??
#define TFT_DC ? ? ? 21?

And yes, adding a 2.2 uF cap will let you program the ESP32 without holding down that tiny button.? ?The extra row of pin holes on Morse Tutor ESP32 boards make it an easy?modification.? Just connect a 2.2uF electrolytic cap between the EN (pin 2) and ground (pin 14), as shown in the photo? of my v2 board.

Bruce


On Wed, Dec 16, 2020 at 1:34 PM Ken KM4NFQ <km4nfq@...> wrote:
Thanks for the PCB !!!

In the PCB's PDF, John WA2FZW writes:

"C1 solves an issue related to loading software into this particular
ESP32 board. Without it, one needs to hold the boot button down until
the Arduino IDE establishes a connection with the processor."

Could that C1 be added to the ESP32 Morse Tutor so the button wouldn't
have to be pressed when programming the module?

Another question:
Could an ESP Morse Tutor PCB be used to make an NTP Clock?
I know it would be overkill, but I have an extra ESP32 Morse Tutor PCB.

Thanks for making all this information available Bruce W8BH and John WA2FZW.
Regards, Ken, KM4NFQ


On Tue, Dec 15, 2020 at 11:02 PM Bruce Hall <bhall66@...> wrote:
>
> John WA2FZW designed a PCB for the NTP clock.? I've uploaded his description and gerbers to GitHub on the project page at:?
>
> Bruce
>
>






Re: PCB for the NTP clock

 

Thanks for the PCB !!!

In the PCB's PDF, John WA2FZW writes:

"C1 solves an issue related to loading software into this particular
ESP32 board. Without it, one needs to hold the boot button down until
the Arduino IDE establishes a connection with the processor."

Could that C1 be added to the ESP32 Morse Tutor so the button wouldn't
have to be pressed when programming the module?

Another question:
Could an ESP Morse Tutor PCB be used to make an NTP Clock?
I know it would be overkill, but I have an extra ESP32 Morse Tutor PCB.

Thanks for making all this information available Bruce W8BH and John WA2FZW.
Regards, Ken, KM4NFQ

On Tue, Dec 15, 2020 at 11:02 PM Bruce Hall <bhall66@...> wrote:

John WA2FZW designed a PCB for the NTP clock. I've uploaded his description and gerbers to GitHub on the project page at:

Bruce
w8bh.net


PCB for the NTP clock

 

John WA2FZW designed a PCB for the NTP clock.? I've uploaded his description and gerbers to GitHub on the project page at:?

Bruce


NTP Clock

 


If you have a spare display and an ESP32 from your Morse Tutor, here is another easy clock project.? Only 2 components!

Description:?
Source Code:?

A list of all of the clocks is here:??

Bruce


Re: Another Off Topic: W*BH's GPS Clock

 

Hi Bruce
Thanks for that, Not the answer but will change the power supply on the board to an analogue one which will eliminate a possible problem.
Been through the 6 NEO-M8N I have on u-center. Label says on all but internally they are NEO-M8L's on the one's that don't decode. The one's that do decode are all marked M8N
internally. That maybe my problem.
Need to find out what the difference is, if any.

Will have a better look at the two tomorrow and see if I can see the difference. Could be out of the box protocol.

Thanks again for the help
??


Re: Another Off Topic: W*BH's GPS Clock

 

Dave,

I have a uBlox NEO-M8N here at W8BH and mine works perfectly.? ? I have a few suggestions.

The first thing I'd check is the software:? make sure you are using the "GPS_CLOCK_plus" sketch, since this is the only one compatible with the uBlox.? ?(Why?? Older modules only receive the GPS/US constellation.? The uBlox and other newer units receive from multiple satellite constellations, including Galileo and Glonass, but this breaks compatibility with the old software libraries.)

Next, make sure that the uBlox module is using its default, out-of-the-box protocol.? ?It is possible to reprogram it, using uCenter, so that its data cannot be interpreted by the Blue Pill.? ?An example of this would be a baud rate change.

Finally, check your power supply.? ?Make sure that you are using 3.3V throughout, and that you have a stable, noise-free supply.? For example, I would not count on the Blue Pill, which has an underwhelming regulator, for your 3.3V supply.

Bruce

On Tue, Nov 24, 2020 at 7:20 AM Dave, G8PGO <murzim@...> wrote:
Hopefully someone maybe able to help.
Using the uBlox NEO-M8 GPS modules. Have one up and working with no problems but having great difficulty with a second one. GPS gets Satellites and the PPS LED starts flashing but don't get any on the display except the start up screen and clock. checked both the data pin and the PPS pin on the Bluepill and there is traffic.
Also plugged the GPS into uBlox u-centre utility and everything looks good with a lot of satellites being seen.
Changed Bluepill for a known working one and no change.

? ?


Re: Another Off Topic: W*BH's GPS Clock

 

Hopefully someone maybe able to help.
Using the uBlox NEO-M8 GPS modules. Have one up and working with no problems but having great difficulty with a second one. GPS gets Satellites and the PPS LED starts flashing but don't get any on the display except the start up screen and clock. checked both the data pin and the PPS pin on the Bluepill and there is traffic.
Also plugged the GPS into uBlox u-centre utility and everything looks good with a lot of satellites being seen.
Changed Bluepill for a known working one and no change.

? ?


Re: Another Off Topic: W*BH's GPS Clock

 

If anyone is interested on how to calculate?grid square from lat/long, and vice versa, I saved a copy of my notes to?

Bruce
?




On Wed, Oct 28, 2020 at 7:38 AM Dave, G8PGO <murzim@...> wrote:
Hi Bruce,
That's great thanks very much.
Just tried it out and the 'GPS_CLOCK_duel' does not display the grid square info but the'GPS_CLOCK_plus' does

Will be using that one as I have some of the uBlox NEO-M8 devices as well. will build another one with one of those modules and see how I get on with that.

Thanks again for doing that

Dave, G8PGO


Re: Another Off Topic: W*BH's GPS Clock

 

Hi Bruce,
That's great thanks very much.
Just tried it out and the 'GPS_CLOCK_duel' does not display the grid square info but the'GPS_CLOCK_plus' does

Will be using that one as I have some of the uBlox NEO-M8 devices as well. will build another one with one of those modules and see how I get on with that.

Thanks again for doing that

Dave, G8PGO


Re: Another Off Topic: W*BH's GPS Clock

 

Dave,

I added the grid square location, as you?suggested.? I also added a define, near the top of the sketch, so that you can change the number of displayed characters from 0 (no grid square display) to a full 10 characters.

By default, 6 grid square characters are displayed.?? For example, my clock says "EM79vr".?

I have never seen code for determining the 10-character grid square.? However, I tried it with?my own QTH, as well as a few known landmarks, and it seems to work fine.? A square this small is roughly 30 x 40 meters.? Reports welcome.

By the way,? the GPS library I am using assumes that the GPS module is outputting standard GPGGA/GPRMC? sentences.? However, newer GPS modules, especially ones that are capable of listening to the Russian, EU, and Chinese satellites, don't use this format.? ?I created a third sketch, GPS_CLOCK_plus, which is compatible with the newer multi-GNSS units.? It works great with my uBlox NEO-M8.? ??

Bruce

On Sat, Oct 24, 2020 at 11:25 AM Dave, G8PGO <murzim@...> wrote:
Hi Bruce
Still playing with my version of the GPS Clock.
Looking through the code there is a line
#define TITLE? ? ? ? ? ? "GPS TIME"? ? ? ? ? ? ? ? // shown at top of display
But does not appear.

Also there was an update to the TFT_eSPI library in the IDE, I let it go ahead and updated the code on the clock and no display.
Fortunately had the had the old library on another machine to copy across, now back up and working.?
Are there changes to made with the new version of TFT_eSPI v2.2.23

Lastly a request as my coding skills are no good enough, is there a chance you could add some code to display the Grid Square on the same line as UTC.

Nearly finished putting the bits on to a PCB, just waiting for a voltage regulator.

Thanks for a great little project?
73
Dave, G8PGO


Re: Another Off Topic: W*BH's GPS Clock

 

Great job, Mark!

Bruce

On Tue, Oct 27, 2020 at 12:32 AM Mark M <junquemaile@...> wrote:
Here's what I've come up with so far. I moved the status and sat count to the title bar as in the dual version, that freed up the line for the grid & lat/long. I also had a version that showed altitude in place of lat/long. As for the 10 digit grid, I didn't know there was such a thing. Interesting. It probably wouldn't be too difficult to add the additional digits.

73....??? Mark??? AA7TA


Re: Another Off Topic: W*BH's GPS Clock

 

Here's what I've come up with so far. I moved the status and sat count to the title bar as in the dual version, that freed up the line for the grid & lat/long. I also had a version that showed altitude in place of lat/long. As for the 10 digit grid, I didn't know there was such a thing. Interesting. It probably wouldn't be too difficult to add the additional digits.

73....??? Mark??? AA7TA


Re: Another Off Topic: W*BH's GPS Clock

 

Thanks Mark!? ?It will be fun to see this on the clock.? ?Let me know when you've got it working so we can compare notes.

I dabbled with it a bit over the weekend, too.? I have a version running on my clock that shows your current grid square with whatever precision you want, down to super-extended squares (10 digits, ~30 meter resolution).? ?I didn't know what my super-extended square was until yesterday.

Bruce


On Mon, Oct 26, 2020 at 12:04 AM Mark M <junquemaile@...> wrote:
Quick progress report...

I found the grid calculation code (I really need to get some version control set up so I can find things easier) and I have it running in the single version. It shouldn't be difficult to add it to the dual version, hopefully in the next couple days. Stay tuned...

73...???? Mark??? AA7TA


Re: Another Off Topic: W*BH's GPS Clock

 

Quick progress report...

I found the grid calculation code (I really need to get some version control set up so I can find things easier) and I have it running in the single version. It shouldn't be difficult to add it to the dual version, hopefully in the next couple days. Stay tuned...

73...???? Mark??? AA7TA