I was developing an green house system for plants which was based on nRF51822 SoC. The system was fully completed and working fine except one problem which was reset of nRF51822.
I could not figure out what was causing this reset problem. Following are the major components in my circuit:
- 5 Relays
- External RTC
- Some Analog Sensors
- UART Nextion Display
And following are the situations when nRF51 gets reset.
- A relay was driving a motor. When ever motor switched on it caused reset.
- The second situation was very weird. The system was powered by a 12V, 4A power supply. When ever an electric appliance (220V) switches on anywhere in the house, nRF51 resets. But the interesting thing is it does not happen if we disable the UART peripheral in our system which off course we could not do because it was must for our design. But we tested by disabling it and nRF51 never reset.
I also developed some other systems which were powered by USB but still sometimes the chip resets if UART peripheral is enabled.
Please help me in this issue.
I was using the following module in my system.