Hi Juraj,
I want to make a web server, data logger with ultrasonic sensor and, i2c lcd, rtc module, sd module, enc28j60 module and arduino mega 2560. However, i have a problem using ethernet and sd card module together. My ide v. 1.8.13.
I want to use sd card module and ethernet module together. My code works fine if i remove vcc pin of my SD module from the board. However, if they are connected, my code doesn't work. My lcd ekran shows the requirements of my code until arrive this line "if (ether.begin(sizeof Ethernet::buffer, mymac, 10) == 0)". Then, lcd screen freezes.
My pins;
Arduino Mega 2560
Rtc module:
Clk: 24, dat: 26, rst: 28, vcc: free
Ultrasonic modül:
Trig: 34, echo: 32
Sd kart modül:
Mosi: 51, miso: 50, sck: 52, cs: 4
Lcd i2c ekran modül:
Scl: 21, sda: 20, gnd and 5v vcc
Ethernet modül:
Cs: 10, and icsp pins