Hello, my son is trying to use a MOSFET with his Arduino nano. We are having trouble understanding how to hook up the MOSFET to his output pin. He is using a n channel MOSFET and he has the Arduino programmed to for pin 2 as the output. What he is trying to do is have the Arduino send an output to the MOSFET to send 9 volts from a 9v battery to ignite an Estes Rocket motor via a HM-10 Bluetooth chip. If anyone could assist in a wiring diagram that would be awesome!
There is no shortage of examples of what you want in various topics on this forum, do some searching.
Which MOSFET exactly?
A common mistake is to use a MOSFET that is not logic level, which won't turn on properly with the 5V available on the output of an Arduino pin. Often (not always) logic level MOSFETs have L in their part number.
To make matters worse, cheap MOSFETs sold on popular retail websites are sold as 'Arduino compatible' and similar, but are not logic level.
The 9V gets from the MOSFET to the rocket via a Bluetooth chip? That doesn't sound correct. Most Bluetooth chips are 3.3V. They would be damaged by 9V.
I believe he has the Bluetooth sending a command to the Arduino then the Arduino sends the output to the MOSFET. I'm sorry I'm just trying to be the middle guy here... He's only 13 and I figured I'd ask a question on the forums to help him.
It's ok, I get it. But English, or any other natural language, is a really bad way to describe a circuit. For example, you didn't literally mean that 9V gets transmitted over Bluetooth, but it is literally what you said. That's always the problem with using natural language to describe anything technical.
The "natural" language of electronics is the schematic diagram. A picture says a thousand words, as the saying goes. But a schematic says a thousand words simply and unambiguously.
You don't have to use a fancy software app to produce one. Pencil and paper works just fine, as only as you keep it neat and tidy. If it looks like a spider's web, try again!
We looked over that tutorial and wired it like the picture... But we aren't getting anything from the MOSFET... When he builds it in Tinkercad and simulates it, it works... Is there something we might be overlooking? We have tested the code and pin output, we can see on the multimeter the output come on and go off according to the code he has written on it.
I'm sorry for making it confusing... I have uploaded a picture of the tinkercad design he is using. The light bulb would be the Estes rocket ignitor... He has the supply coming from the ground on the Arduino nano and the gate from pin 2... Between both of them is a 10k resistor. Then his drain is going to the ground of the bulb/ignitor and the other side of that is the voltage lead from the 9v battery. His code is to send output from pin 2 for 5 seconds... That output will be told to send it's output via a Bluetooth chip he will be wiring up via the Rx & Tx wires. All that works fine but we are stuck on this MOSFET. The Estes ignitor needs at least 6v DC to burn. When we are testing we are using a multimeter in-between where the ignitor would be, we aren't seeing and voltage when sending the command. But can see voltage going to the MOSFET and confirm output from pin 2.
If your sketch was generated with an AI like ChatGPT or by someone else tell us in your post.
Questioners know what their hardware and software looks like but the volunteers here do not; you need to fully explain what’s not working, and how it is supposed to work.
Please read all the posting guidelines before asking your questions; follow these guidelines in your post.
As Always, show us a good schematic of your proposed circuit.
Show us good images of your ‘actual’ wiring.
Give WEB links to major components.
In the Arduino IDE, use CtrlT or CMDT to format your code, then copy the complete sketch.
Use the < CODE / > icon from the ‘posting menu’ to attach your copied sketch.
When you follow the posting guidelines, volunteers can be more effective.
The threshold gate voltage of the mosfet is about 1.5V. So .4V wouldn't turn it on at all. But if you see 5V on D2, and if D2 is connected directly to the gate, why is the gate only .4V? It should be 5V too.
I don't know about the igniter, but in the diagram showing the lamp, the lamp is just a low-value resistor. So if the mosfet is actually off, the drain should be at 9V. When the mosfet is on, the drain should be near 0V, and the lamp should be lit.
When we take the 10k resistor out, we get the full 5v output from pin 2, but hooking it up that way, without the resistor still doesn't switch the MOSFET over. But if we install a diode with the cathode towards the gate, we get the MOSFET to switch over, but it doesn't switch off when the Arduino switches off. The Arduino is coded to switch output 2 for 5 secs then off, with the diode installed it switches on, sends a ground output from the drain, which completes the circuit, ignites the Estes ignitor, but stays on for about 15 secs... We have checked the output from the Arduino and can confirm it does stop sending the output after 5 secs and even removing the gate wire from pin 2 the MOSFET still energizes the circuit for 15 secs... Almost like it needs to dump the remaining ground somewhere? I'm sorry I know I need to upload actual pictures... I will tonight, it's hard being the middle man with this and my son, especially with work schedule and his sports... I appreciate all the help so far. He was excited to see some positive gain last night when we removed the resistor and swapped it for the diode.
If you bought the MOSFET from Amazon there is a good chance it's junk. Build a test circuit without the Arduino to verify the MOSFET functions properly before you go any further. Do you have a power supply? A USB phone charger cable you can sacrifice? 4 AA battery holder?
Exactly what igniter are you using? Most require a minimum of 2A to work. That battery will not work.