Display i valied value issue during running condition

Hi, i was wrote a one simple program for relay toggle and see the relay toggle count value in the I2C display. code working perfectly. but i am facing a small problem. once i am pressing a start button program starts to running and display shows the value correctly. after particular time period my I2C display shows some invalid data. how to i fix this problem. i hava attached the image below.


Possibly electrical noise from the relay is causing interference on that display. Show a full picture of your setup. The effect you are seeing is common on those displays. Each data item is sent as two 4 byte chunks and these get mixed up if some interference cause the display to lose synchronisation.

What value of Pull Up resistors did you use. I find that if I set the resistance for about 1mA it works nicely. You can also use a solid state relay.

I have attached the image below sir / madam.

Dear sir / madam, i only using internal pullup. i am not add any external pullup resistors. after that issue i was restart the program, till now no issues occurs like that. still, it is running.

Great, I am glad it is working. I did not recommend the internal pull ups as they are very week. If the problem returns add the external parts.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.