GPS Clock - Part 2 LSE, MAX7219, Timezone and Daylight Saving and using Beitian 280 GPS @na5y
GPS Clock - Part 2 LSE, MAX7219, Timezone and Daylight Saving and using Beitian 280 GPS  @na5y
Uploaded March 2021 | Updated November 2026, 1 day ago
In this video I enhance the clock I started in this video youtube.com/watch?v=2hyc2fgf3Io&t=1022s with the following:
- Use the external low speed oscillator to improve accuracy
- Use the MAX7219 LED Driver IC
- Include the Time and TimeZone libraries
- Use the Beitian GPS receiver

My github repo for the code
github.com/thaaraak/GPS-Clock

The MAX7219 datasheet is here:
datasheets.maximintegrated.com/en/ds/MAX7219-MAX7221.pdf

Here's the MAX7219 arduino library
github.com/JemRF/max7219

The Beitian GPS receiver is available here (not affiliated)
banggood.com/Beitian-BS-280-232-GPS-Receiver-Module-1PPS-Timing-With-Flash-+-GPS-Antenna-p-1334706.html?akmClientCountry=America&cur_warehouse=CN

Here's a link to a simple RX/TX RS232 to TTL circuit
picprojects.org.uk/projects/simpleSIO/ssio.htm

Timezone and Timelib arduino libraries
github.com/JChristensen/Timezone
github.com/PaulStoffregen/Time

The LED/MAX7219 combo from Amazon
amazon.com/gp/product/B087B8WTRZ/ref=ppx_yo_dt_b_asin_title_o07_s00?ie=UTF8&psc=1

Please Note: There is a bug in the code currently parsing the GPS RMC message. I am using strtok to parse which doesn't work where there are duplicated delimiters. I'll post a fix shortly

Update: I added the "zstrtok" function from the zstring library to fix the above:
github.com/fnoyanisi/zString

Index
0:00 Intro
0:51 Using the Low Speed External Oscillator
1:49 Configuring the LSE in STMCube
4:54 The MAX7219 LED Driver
6:40 The MAX7219 Datasheet and capabilities (excuse focus)
8:05 Configuring SPI MAX7219
10:48 MAX7219 SPI write code
11:43 MAX7219 Operation Codes / Registers
13:31 MAX7219 In action
20:48 Using Timezone and TimeLib code
24:14 Local time displayed on the LED
25:18 Converting RS232 voltage levels from the Beitian 280 to 5V
29:55 RS232 signals from Beitian displayed on oscilloscope
30:58 Converted signals displayed on oscilloscope
31:54 Wrap up
GPS Clock - Part 2 LSE, MAX7219, Timezone and Daylight Saving and using Beitian 280 GPSGeorgia at cinnamon creek ranchESP32 and PCM3060 with Arduino Audio ToolsSheridan on the ViveIF Amplifier/AGC with MC1350PQCX Transceiver Part 5 -  Microcontroller and Quadrature Sampling DetectorESP32 IoT Radio - Part 2 Audio ProcessingQAV500 Local Park - TexasESP32 A1S with Arduino Audio ToolsQCX Transceiver Part 3  - Phase Shift Network and Complete Audio PathEnsemble RXTX Build #8 - Quadrature Sampling Encoder Phase ShiftIntroducing Georgia to the joy of magnesium ribbon
NA5Y |

GPS Clock - Part 2 LSE, MAX7219, Timezone and Daylight Saving and using Beitian 280 GPS

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER