Transistors as switches

Ok Im trying to remotely burn a resistor. Ive tried it manually with a 9V battery and a 1Ω resistor. Now I want to control it via a microcontroller. So I found this online: voltage - Switching 9V using a NPN transistor and an Arduino - Electrical Engineering Stack Exchange

Ive used transistors before and I have a basic understanding of them. I understand that a small current to the base will let a large amount of current through from CE. So I modelled this in iCircuit, an app for macs, and it tells me there will be 427mA running though my 1Ω load with a 1kΩ resistor at the base of the transistor

Screen Shot 2018-02-12 at 5.48.05 PM.png

But I want more than that to burn my 1Ω resistor. If 5V out of the mcu thru a 1k R yields: 5/1000=5mA which is close to 427mA. So if I lower R from 1k to 220Ω, I get 1.93A thru my 1Ω load. My questions:

  1. Im worried about that 220Ω. Can it be that low? Is it supposed to protect my MCU in some way and what if its that low (220Ω), could it fail to protect my MCU?

  2. Could I get more Amps through the load without damaging my MCU? The transistor I dont care about.

Thx

Screen Shot 2018-02-12 at 5.48.05 PM.png

1/ A small 9v battery won't provide nearly the current you need - 9 amps? I don't think so - you need a much more powerful power source. 9 amps at 9v -> 81 watts - that's quite a lot

2/ A bipolar transistor isn't a good device for this application. It's current gain is probably only about 10. And it's saturation voltage means it'll probably get very hot, if not die.

A logic level N-channel MOSFET would be a far better choice.

Why do you want to burn up small resistors anyway? for the smoke?

Allan

  1. Im worried about that 220Ω. Can it be that low? Is it supposed to protect my MCU in some way and what if its that low (220Ω), could it fail to protect my MCU?

The absolute maximum current rating for an output pin on the ATmega chip is 40mA, so that works out to 125 Ohms minimum.

However... If you end-up burning-out the transistor and shorting it, you could put 9V across that resistor, so you probably ought to double the resistance.

DVDdoug:
However... If you end-up burning-out the transistor and shorting it, you could put 9V across that resistor, so you probably ought to double the resistance.

And probably kill the Arduino as well.

What size resistor, 1/8 watt, 10 watt? How much current does it take to "burn" your resistor?

Your simulation is wrong.

It implies the gain of the 2N2222 is about 100 - at that current it will be far less.

Even if true, it will mean the 2N2222 will be dissipating > 3 watts - it will definitely burn out. It's only rated at 1/2 watt.

Use eg a IRL44N or FQP30N06L Their Rds on is only a few mohms.

Or, of course, a relay.

Allan.

I want to burn the 1ohm resistor, thats my goal. And i wouldnt mundo burning the 2n2222 if need be. The only thing i don't want to burn is the MCU!

outsider asked: "What size resistor, 1/8 watt, 10 watt? How much current does it take to "burn" your resistor?"

I'm asking it too. And you might want to worry about whether your resistors melt, burn, or explode on overcurrent.

No 2N2222 is going to win against 1 ohm BTW, it will fry first, then maybe fry the Arduino.

And yes, you don't understand that transistor gain, hFE, is irrelevant to operation of a transistor as a switch,
which involves the transistor being in saturation or cutoff. In saturation base current needs to be 5 to 10%
of collector current, whatever the hFE value in the datasheet.

So you have to use a darlington or a MOSFET for high currents.

Sorry its a 1/4W resistor. Ok so I should switch over to a mosfet...ok I have

FQP30N06L
IRL540PBF
TIP120
IRF510PBF

So ok, ill try the FQP. Ill post back with my diagram before I run it.

Why it must be 1 Ohm resistor? You need lot of current to burn it. Do you know cheap jumper wires has similar resistance so they may burn first?

The FQP30N06L should do the trick. I would but a 1k to 5k resistor in series withe the arduino output to the gate of the FET. This is not a functional requirement but will help protect the arduino in case of miswiring or some other failure.

BTW the 2N2222 has no chance passing the current you nead, the FQP30N06L will pass it without a "sweat"

Also be sure the high current does not go through the Arduino board ground. Keep the high current separated with only one wire from the mosfet source to the arduino ground.

Ok so you mean like this but with the Source going to GND 1, which is the same as GND1 from Arduino and GND 2 is the one from the 9V source, right?

Sorry about the drawing but I couldnt find an mcu in the ltspice library so I added it as a voltage controlled switch and connected its + to one side of the switch and its - to GND1. :slight_smile:

Marciokoko:
Ok Im trying to remotely burn a resistor.

Are you trying to make a pyrotechnic igniter for fireworks or model rocketry?
If so there are purpose built, and safe igniter elements and safety circuits.
Tom... :slight_smile:

This is what I have so far. The load is a LED, just because I had one on that board. I added a diode just because I used a reference mosfet diagram from a solenoid project I had.

TomGeorge, what do you mean, what kind of igniters?

Marciokoko:
TomGeorge, what do you mean, what kind of igniters?

he's just trying to know what you're burning the resistors for.

i'm curious too, if you don't mind telling us.

Well Im working on a project where I need to film fires and I want to hide small resistors inside this model and have the fires start on certain cues.

The safest way to do it would be with an opto-isolator or a relay. (Either way would electrically-isolate the Arduino from the stuff you're burning-up.) The relay would require a transistor or MOSFET driver circuit for the coil, so you'd still need a transistor.

Model rocket ignitors.