getting fustrated and annoyed with 2n7000

okay, so i have a simple circuit setup and seem to be having problems with it that is beggning to want to make me smash stuff up.

im trying to make a 2n7000 actually do its job.

heres a photo of the circuit, the yellow wire from the mosfets center pin is connected to my arduino uno pin 13 running the blink program. the programs running as the built in led is functioning perfectly. the power supply is a 5v supply from an adaptor in the wall.

now, what you see in the picture is all i get. static, dim light.

according to the data sheets online, with the flat face facing you, pins from the left to right are 1(source) 2(gate) 3(drain)

supposedly N channel so running off the negative. switching to possitive just turns the led brighter.

im at a complete loss as ive tried several different ones as i bought a batch of them.

2019-11-04_10-02-55 by chris marsh, on Flickr

nope never mind wasnt working, well it is, but its only driving one led, if i add any more to the circuit only the first led is driven

in this one the source is linked to the power supply gnd and the arduino gnd. the led is constantly on but flashes brighter then dimmer.

2019-11-04_10-28-20 by chris marsh, on Flickr

Each led must have its own current limiting resistor if you are connecting these in parallel.

6v6gt:
Each led must have its own current limiting resistor if you are connecting these in parallel.

yup, got that, but its always the first installed led (and resistor)that gets driven.

never mind, with the gnd tied into the arduinos and the power supply it will drive multiple leds but they are still always partially on and blinking brighter instead of going fully off

its as if theres a current bleed keeping the led partially lit somwhere, maybe its cause im blind and tired but i just cant seem to see it, ive rebuilt the circuit a few times and just cannot work this out.

Measure the voltage on the Arduino pin 13, slow down the delay time to 2000ms.

Always show us ‘your’ sketch.

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}

// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);                       // wait for a second
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);                       // wait for a second
}

its the basic blink example.

i'll have to test the slower rate tomorrow and measure the voltage, but if lowering it to 2000ms solves it, thats a problem as i need to actually increase the flash rate

2000ms is only to give time for the DVM settle down.

EDIT:
I tried the sketch on the circuit here, it works fine.

It is quite likely you have damaged your 2N7000.

i checked the voltage and its 4.94 volts. i will check with a brand new 2n7000

can you confirm with me your pinout and case type?

thanks for taking the time to setup a circuit and test it as well.

download.png

And yes, the Arduino GND needs to be connected to the LED power supply 0V (GND).

"i checked the voltage and its 4.94 volts."
Does it go to 0V?

download.png

02.3MV on digital write low.

i programmed up an ATTiny45 with a blink program and set the circuit on that with 4 leds all on thier own resistor and it seems to be working fine, so i think that 02.3mv is what the problem is

2.3mV can be considered a LOW (i.e. 0V).

Looks like the 2N7000 isn’t turning ‘off’ so it must be bad.

Also, try different wires as sometimes they can be bad/intermittent.

well i went through and 5/10 didnt fully turn off, those that stayed on slightly all had different brightnesses so that sucks massively!

Always buy spares. :wink:

Did you try another pin without a load already on it? Did you try connecting the gate wire directly to Arduino 5V?

On some Arduinos pin13 is special, use a different pin.

secretreeve ,

Do you have a multimeter?

The only thing I can think of is that the gate voltage is not going low enough to fully turn-off the MOSFET. That could be a "pin 13 problem" or it could be normal, or it could be some other problem... I'm not sure what "normal" logic-low is under these conditions.

Try disconnecting the Gate from the Arduino and connect it to the Source pin. That will give you VGS of zero and the MOSFET should turn off.

If it does turn off, disconnect the Gate-Source short, re-connect the Arduino and measure VGS with you multimeter (while writing digital zero). (Or you can connect it to an Arduino analog input and measure it that way.)

OP said:

  • output goes from 4.94v to 2.3mV
  • 5 out of 10 MOSFETs they tested work properly.

OK, sorry... Just some bad parts... I haven't been keeping-up on this thread and it looked like it was still alive and I was still thinking about it and trying to figure-out why a MOSFET wouldn't turn-off. :-[

He probably bought cheap parts from eBay or some unknown-unreliable supplier, or they've been damaged by ESD.

DVDdoug:
He probably bought cheap parts from eBay or some unknown-unreliable supplier, or they've been damaged by ESD.

you dont even know me yet know me so well LMAO!!!

yeah cheap parts for prototyping and using better quality for the actual circuits, that way if i blow up cheap parts i dont care so much lol