I am making a simple automated irrigation system but the arduino is resetting when the power supply is switch on


every time i tap soil sensor on wet, the arduino is resetting however, in dry soil it is not resetting, i dont know the reason, could you please help? there is no problem in the code

i also connect 1N4007 diode to the 5V of relay, it didn't work, it still the arduino is resetting. Could you please examine my circuit diagram cause it might having problem in wiring connection. I am about to present my project.

Your images are very blurry.
Can you export them to a high quality image file or a pdf?
Also include the part numbers for all the modules.

I can't follow ground path between the soil moisture sensor and the Nano. Maybe that is only the poor quality image.

Such claims have often been disproved.


  1. two way power source ac-dc adaptor and solar power
  2. 2 adaptor connected to two solenoid valve, separate power source
  3. arduino uno is connected to 220AC-5DC converter, typically android phone adaptor i used.
  4. two relay 5V is connected to arduino
  5. 5V LCD, Ultrasonic sensor, LoRa and GSM800L Module, and flow rate sensor are connected to 5V supply of arduino.

The output of the Charge Controller (nominally 5V) is connected to the Nano's "VIN".
Not good.

Those are worse

i proved it because sometimes it worked.

As a corollary - sometimes it didn't.
Quo vadis?

1 Like

any suggestion sir?
sorry i can't upload pdf because i'm new user. there are limitations on uploading.

but it worked well sir. i have no problem with that. My concern only is when i tap the soil sensor on wet, the arduino uno reset continuously after receiving the soil sensor measured data that is connected to arduino nano, refer to photo.

You can't power a Nano with a 3.7V battery

What is this?

It's less than 8V going to "VIN" (as previously noted).

Export your PDF to a JPG or PNG.

Your "5v solar panel" never produces 5v at sufficient current. Have you tried just charging the batteries? You need two 3.7 batteries for a 7.4vdc VIN.

i use to lithium batteries and connected in series to produce approximate 7V. It worked on my prototype.

that one you highlighted is LM373, a component to send the soil measured data to arduino nano

You have two different circuit images plus description, but they don't match.

I think he meant that black wire that connects moisture sensor to lora module....

You have quite complex setup. If you can't illustrate how it really is (including power supplies), it's very difficult to give help....
At least measure that you have common ground between all of your devices and that every device receives voltage that is required.

I assume you mean “i use two . . .”

I know you tried your best but you could have shown two cells in series on the sensor/transmitter circuit.

Can you confirm what voltage your “charge controller” outputs to the Nano.?

If you can provide a link to the charge controller specification sheet that would also help.

Hi, @bitherder_57
Welcome to the forum.

Can you please post a copy of your circuit, a picture of a hand drawn circuit in jpg, png?
Hand drawn and photographed is perfectly acceptable.
Please include ALL hardware, power supplies, component names and pin labels.

Cut and paste images are not easy to read or as informative as a proper schematic.

Thanks.. Tom.. :smiley: :+1: :coffee: :australia:

This is not my thread. The @alimaruhom is the helpee, I am one of the helpers. Precious little hep unfortunately.