Arduino Forum

Using Arduino => Installation & Troubleshooting => Topic started by: davax on Sep 14, 2020, 08:27 pm

Title: Arduino and Mosfet module
Post by: davax on Sep 14, 2020, 08:27 pm
Why is arduino running ? I did not send the signal to turn mosfet on

https://imgur.com/fcqf3uo
Title: Re: Arduino and Mosfet module
Post by: UKHeliBob on Sep 14, 2020, 08:32 pm
OP's image

(https://forum.arduino.cc/index.php?action=dlattach;topic=705057.0;attach=381753)
Title: Re: Arduino and Mosfet module
Post by: davax on Sep 15, 2020, 08:32 am
?


Title: Re: Arduino and Mosfet module
Post by: UKHeliBob on Sep 15, 2020, 09:07 am
(https://forum.arduino.cc/index.php?action=dlattach;topic=705057.0;attach=381799)
Title: Re: Arduino and Mosfet module
Post by: davax on Sep 15, 2020, 11:37 am
? why is arduino on , and mosfet is off
Title: Re: Arduino and Mosfet module
Post by: UKHeliBob on Sep 15, 2020, 12:16 pm
Your circuit looks wrong

Shouldn't the battery go to VIN on the MOSFET module  and the V- and V+ terminals supply power when the signal pin is taken HIGH ?

It would help if you described what you are trying to do
Title: Re: Arduino and Mosfet module
Post by: davax on Sep 15, 2020, 04:01 pm
So everything is turned off

I will add a button , which when i hold it will direct power the arduino from battery , until it turns the Mosfet ON

And after 2 minits i added in code , arduino turns the Mosfet OFF ,  and everything is off , so no power consuption ...
Title: Re: Arduino and Mosfet module
Post by: UKHeliBob on Sep 15, 2020, 04:38 pm
Quote
I will add a button , which when i hold it will direct power the arduino from battery , until it turns the Mosfet ON
Please post a diagram of your complete circuit

Noting what I said in reply #5, are you sure that VIN and GND of the MOSFET module should be connected to VIN and GND on the Arduino ?
Title: Re: Arduino and Mosfet module
Post by: davax on Sep 15, 2020, 05:44 pm
I connected it now like you said and same


When i connect the battery wires arduino is ON , but it need to be off right ? because there is no signal to turn it on

My only problem is why is arduino always ON ?
Mosfet is like relay right ?  When i give signal (power) to coil then it turns on

But here it is always on !


(https://forum.arduino.cc/index.php?action=dlattach;topic=705057.0;attach=381866)

(https://forum.arduino.cc/index.php?action=dlattach;topic=705057.0;attach=381868)
Title: Re: Arduino and Mosfet module
Post by: davax on Sep 15, 2020, 05:57 pm
Look , arduino works , and there is no input , to turn mosfet on

(https://forum.arduino.cc/index.php?action=dlattach;topic=705057.0;attach=381874)
Title: Re: Arduino and Mosfet module
Post by: UKHeliBob on Sep 15, 2020, 07:22 pm
Take the Arduino out of the circuit until you know what you are doing.  The picture in reply #9 shows the battery connected between V+ and V-.  Why ?
Title: Re: Arduino and Mosfet module
Post by: davax on Sep 15, 2020, 08:51 pm
Only difference is , there is arduino  and no motor ,...




(https://forum.arduino.cc/index.php?action=dlattach;topic=705057.0;attach=381907)
Title: Re: Arduino and Mosfet module
Post by: UKHeliBob on Sep 15, 2020, 09:07 pm
In the picture in reply #9 your battery is connected to V+ and V-

In the diagram in post #11 the power is connected to VIN and GND

Spot the difference
Title: Re: Arduino and Mosfet module
Post by: davax on Sep 16, 2020, 08:33 pm
I tried both cases , and same happens

Nvm , i will use relay,  with relay works normal..

thanks anyway :)