---
title: "Get Time & Date From The Internet -ethernet Shield & Max7219"
url: "https://maker.wiznet.io/louis_m/projects/get-time-date-from-the-internet-ethernet-shield-max7219/"
markdown_url: "https://maker.wiznet.io/louis_m/projects/get-time-date-from-the-internet-ethernet-shield-max7219/md"
type: "UCC: User Created Content"
author: "Ron"
author_url: "https://www.electromaker.io/project/view/get-time-amp-date-from-the-internet-ethernet-shield-amp-max7219"
editor: "WIZnet"
editor_url: "https://maker.wiznet.io/"
original_author: "Ron"
original_url: "https://www.electromaker.io/project/view/get-time-amp-date-from-the-internet-ethernet-shield-amp-max7219"
published: "2023-09-04"
language: "en"
hardware: ["WIZnet W5100 ethernet shield"]
likes: 0
views: 228
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# Get Time & Date From The Internet -ethernet Shield & Max7219

> Get Time & Date From The Internet -ethernet Shield & Max7219

Original author: Ron (source: https://www.electromaker.io/project/view/get-time-amp-date-from-the-internet-ethernet-shield-amp-max7219)

## Components

- **WIZnet W5100 ethernet shield** x 1 ([docs](https://www.wiznet.hk/en/open-source-hardware/102-w5100s-ethernetshield.html?search_query=W5100+ethernet+shield&results=84))

## Article

## Story

[Embedded media](https://www.youtube.com/embed/-3vTHVz5Z5E?rel=0)

In this tutorial we will learn how to get the date and time from NIST TIME server using Arduino Ethernet Shield and Display it on the MAX7219 8-digit LED Display.

Watch the video!

Step 1: What You Will Need

1 / 6

[![](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422341127497.jpg)](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422341127497.jpg)

[![](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422341346275.jpg)](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422341346275.jpg)

[![](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422341695916.jpg)](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422341695916.jpg)

[![](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422341950499.jpg)](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422341950499.jpg)

[![](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422342455887.jpg)](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422342455887.jpg)

[![](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422342688676.jpg)](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422342688676.jpg)

- Arduino UNO (or any other Arduino)

- Jumper wires

- Ethernet Shield for Arduino

- Max7219 Led Dot Matrix 8-digit Digital Display Control Module

- LAN Internet connection

- Visuino program: [Download Visuino](https://www.visuino.eu/)

Step 2: The Circuit

[![](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422343203663.png)](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422343203663.png)

- Connect Internet **LAN **cable to the **Arduino Ethernet** Shield

- Connect **LED module **pin[VCC] to **Arduino Ethernet **Shield pin[5V]

- Connect **LED module **pin[GND] to **Arduino Ethernet **Shield pin[GND]

- Connect **LED module **pin[DIN] to **Arduino Ethernet **Shield digital pin[11]

- Connect **LED module **pin[CS] to **Arduino Ethernet **Shield digital pin[2]

- Connect **LED module **pin[CLK] to **Arduino Ethernet **Shield digital pin[13]

Step 3: In Visuino Add Ethernet Shield

1 / 5

[![](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422344024458.png)](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422344024458.png)

[![](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422344530947.png)](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422344530947.png)

[![](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422344869095.png)](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422344869095.png)

[![](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422345089493.png)](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422345089493.png)

[![](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422345391705.png)](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422345391705.png)

- Right mouse click on the **Arduino **board and select "**Add Shields**"

- In the "**Shields**" window drag "**Ethernet Shield**" to the left side and in the properties window select "**Sockets**" and click on the 3 dots button.

- In the "**Sockets**" window drag "**TCP/IP Client"** to the left side and in the properties window set "**Port**" to 37 and "**Host**" to: time-c-g.nist.gov

- Close the "**Sockets**" and "**Shields**" window

**Note**: You can find more Time servers here: <https://tf.nist.gov/tf-cgi/servers.cgi>

Step 4: In Visuino Add Components

1 / 5

[![](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422345651397.png)](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422345651397.png)

[![](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422345872069.png)](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422345872069.png)

[![](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422346108087.png)](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422346108087.png)

[![](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422346340508.png)](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422346340508.png)

[![](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422346569072.png)](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422346569072.png)

- Pulse Generator

- Internet Time Protocol

- Decode(Split) Date/Time

- 2X "Split Integer Digits

- Maxim LED Display Controller SPI MAX7219/MAX7221

Step 5: In Visuino Set Components

1 / 7

[![](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422346825958.png)](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422346825958.png)

[![](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422347193632.png)](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422347193632.png)

[![](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422347463803.png)](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422347463803.png)

[![](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422347735783.png)](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422347735783.png)

[![](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422347994839.png)](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422347994839.png)

[![](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422348251991.png)](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422348251991.png)

[![](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422348509041.png)](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422348509041.png)

- Double click on the "**LedController1**" and in the "**PixelGroups window**" drag "**Integer Display 7 Segments**" to the left side and in the properties window set "**Count Digits**" to 2, "**Leading Zeroes**" to True, "**Reversed Order**" to True

- In the "**PixelGroups window**" drag "**Value Section 7 Segments**" to the left side and in the properties window set "**Initial Decmal Point Value**" to True

- In the "**PixelGroups window**" drag another "**Value Section 7 Segments**" to the left side

- In the "**PixelGroups window**" drag "**Integer Display 7 Segments**" to the left side and in the properties window set "**Count Digits**" to 2, "**Leading Zeroes**" to True, "**Reversed Order**" to True

- In the "**PixelGroups window**" drag "**Value Section 7 Segments**" to the left side and in the properties window set "**Initial Decmal Point Value**" to True

- In the "**PixelGroups window**" drag another "**Value Section 7 Segments**" to the left side

- Close the "**PixelGroups window**"

Step 6: In Visuino Connect Components

1 / 2

[![](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422348781940.png)](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422348781940.png)

[![](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422349489281.png)](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422349489281.png)

- Connect "**PulseGenerator1**" pin [Out] to "**InternetTime1**" pin [In]

- Connect "**InternetTime1**" pin [Socket] to "**Arduino Uno**" >**TCP Client1** pin [In]

- Connect "**InternetTime1**" pin [Out] to "**DecodeDateTime1**" pin [In]

- Connect "**DecodeDateTime1**" pin [Month] to "**LedController1**" > "**Integer Display 7 Segments1**"pin [In]

- Connect "**DecodeDateTime1**" pin [Day] to "**SplitIntegerDigits1**" pin [In]

- Connect "**SplitIntegerDigits1**" pin[0] to "**LedController1**" > "**Value Section 7 Segments1**"pin [In]

- Connect "**SplitIntegerDigits1**" pin[1] to "**LedController1**" > "**Value Section 7 Segments2**"pin [In]

- Connect "**DecodeDateTime1**" pin [Hour] to "**SplitIntegerDigits2**" pin [In]

- Connect "**SplitIntegerDigits2**" pin[0] to "**LedController1**" > "**Value Section 7 Segments3**"pin [In]

- Connect "**SplitIntegerDigits2**" pin[1] to "**LedController1**" > "**Value Section 7 Segments4**"pin [In]

- Connect "**DecodeDateTime1**" pin [Minute] to "**LedController1**" > "**Integer Display 7 Segments2**"pin [In]

- Connect "**LedController1**" pin Out SPI to **Arduino **Pin SPI [In]

- Connect "**LedController1**" pin Chip Select to **Arduino **Digital Pin [2]

Step 7: Generate, Compile, and Upload the Code

[![](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422350230332.jpg)](https://www.electromaker.io/uploads/images/projects/3267/story/medium/Ron_Cutts_story_image_1693422350230332.jpg)

In **Visuino**, at the bottom click on the "**Build**" Tab, make sure the correct port is selected, then click on the "**Compile/Build and Upload**" button.

Step 8: Play

If you power the **Arduino**, it will connect to the internet and the display should start showing the date and time from the NIST server.

You can also experiment with other servers that you can find here <https://tf.nist.gov/tf-cgi/servers.cgi>

Congratulations! You have completed your Internet Time project with Visuino. Also attached is the Visuino project, that I created for this Tutorial. You can download and open it in Visuino: [https://www.visuino.eu](https://www.visuino.eu/)

---

Source: https://maker.wiznet.io/louis_m/projects/get-time-date-from-the-internet-ethernet-shield-max7219/
