setDS3231time with NTP time & Ethernetshield issue

Hi there,

I am discovering the whole web, but I can't find the best solution.

I would like to have setDS3231time (RTC) as the current time in my timezone (GMT +1).
With or without Daylight Saving Time, that is not a rocketscience to add.

Other thing;
When I have my RGBLedControl [RGBWW] (Pin 5,6,9,10 & 11) my ethernetshield doens't work.

any advise?

Thanks in advance!

You can set the time on the 3231 to be whatever you want it to be . Have a look at the example sketches with the clock library.

It’s likely the pins you mention are being used by the shield so your leds are conflicting with that .
Have a look at the schematic or instructions with the Ethernet shield to see which pins it is using .

It's unwise to set the RTC to local time. For one thing, any NTP sketch "out there" will set it to UTC. When you decide to implement DST, you will discover some of the other reasons. It's a very simple matter to adjust dynamically from UTC to local time.

permudious:
Other thing;
When I have my RGBLedControl [RGBWW] (Pin 5,6,9,10 & 11) my ethernetshield doens't work.

The Ethernet Shield uses SPI which, on the Arduino UNO uses pins 10, 11, 12, and 13.

hammy:
You can set the time on the 3231 to be whatever you want it to be . Have a look at the example sketches with the clock library.

It’s likely the pins you mention are being used by the shield so your leds are conflicting with that .
Have a look at the schematic or instructions with the Ethernet shield to see which pins it is using .

Hi Hammy, which clock Library? I can't find this one.

johnwasser:
The Ethernet Shield uses SPI which, on the Arduino UNO uses pins 10, 11, 12, and 13.

Thanks! I have reconfigured my pins, the LEDs were programmed on 5, 6, 8, 9 and 10. Now this problem is solved.

Have a look here :

https://create.arduino.cc/projecthub/MisterBotBreak/how-to-use-a-real-time-clock-module-ds3231-bc90fe