Need help with MOSFET


hi, using mosfet first time , have ran problem when using it. so, i'm using mosfet switch on/off dc motor. , when upload simple code motor spins , doesn't follow instructions in sketch. wondering if circuit, code, or components themselves...

i using utc uf630l mosfet. here's datasheet: http://www.alldatasheet.com/datasheet-pdf/pdf/169829/utc/uf630l-ta3-t.html

i believe mosfet work small hobby motor, may wrong...


here's code:
code: [select]
int motor1 = 9;


void setup() {
  // put setup code here, run once:
  pinmode(motor1, output);
}

void loop() {
  // put main code here, run repeatedly:
  digitalwrite(motor1, high);
  delay(5000);
  digitalwrite(motor1, low);
  delay(5000);
}


the circuit included below.

the diode backwards starters. did circuit ?

you don't need resistor.


Arduino Forum > Using Arduino > General Electronics > Need help with MOSFET


arduino

Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'