Problem writing data to SD card when LCD screen activated.

Hello everyone,

I am trying to create a weather station with an LCD screen that save temperature, humidity date and time to a text file every minute. Here is my problem, when I try to implement the LCD code, I get an error message about the data not being written to the card anymore. When I remove the code, the writing works again. I am pretty sure the connections are ok, and the lcd works fine when the code is up.
If anyone have an idea on what is going on I would really appreciate the help :slight_smile:

Have a good day everyone !


Code.pdf (69.1 KB)

Please see the forum instructions concerning the posting of code.

The SD card uses SPI which typically involves pins 11, 12, and 13. You will have to select different pins for your LCD interface.


Thanks soo much you solved my problem!

And sorry for the code, I'll pay more attention next time I post.


I also face this problem but after reading your post as well as a comment then I solve my problem. here I get a lot of information about LCD as well as you have setup your site in a beautiful manner. By using your setup I setup our site. here you can see this . I am very thankful for this