1

I'm currently working on a Project that uses a NodeMCU to activate a motorcycle horn. However, I've run into Problems with operating the Mosfet.

As a Mosfet, I use the IRLZ44N (Datasheet: http://www.irf.com/product-info/datasheets/data/irlz44n.pdf). The motorcycle horn runs on 12V DC and draws 2.5A. I've also used two resistors in the design. See the circuit for an exact Layout:

schematic

simulate this circuit – Schematic created using CircuitLab

Now, I've tested this circuit with an LED, the only difference being a resistor in series to the LED and that the power source for the LED was the 3.3V output of the NodeMCU.

So, what am I doing wrong here? I've tried basically any configuration that came to mind, but so far, I haven't been succesful. Can anyone point me in the right direction?

closed as off-topic by Juraj, MichaelT, VE7JRO Jun 6 at 19:51

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be about Arduino, within the scope defined in the help center." – Juraj, MichaelT, VE7JRO
If this question can be reworded to fit the rules in the help center, please edit the question.

  • looks ok. try it without any resistors, maybe the threshold voltage is out of spec. also make sure you know what D2 means, a lot of folks assume that means gpio2... – dandavis Jun 6 at 19:55
  • Thanks for your answer, I'll try that. But I'm sure I'm using the right GPIO, it works with an LED. – A. Tork Jun 6 at 19:57
  • Concerning the close-votes: Why is this question supposed to be off-topic? The help center clearly states that "Questions about other IDEs, clones/counterfeits/derivatives" are on-topic. This clearly includes the NodeMCU. – A. Tork Jun 6 at 20:02
  • my guess is that it's not about arduino programming, and it's a closer match to the electronics stack. – dandavis Jun 6 at 20:04
  • @A. Tork - Please have a look at this page about General Electronics: arduino.stackexchange.com/help/on-topic "If your question is about making electronics or other electricity questions not related to Arduino, try Electrical Engineering". "If knowledge of Arduino would improve a question, it's on topic." Your question only has a peripheral relationship to Arduino, is mainly about general electronics, and if you substitute a different type of micro controller in the circuit diagram, the question is essentially the same. – VE7JRO Jun 6 at 20:39

Browse other questions tagged or ask your own question.