After working with a TIP122, I am now trying to use NFET IRFZ44N with the following components and diagram:
Components:
- Arduino Nano 328p 5.
- Potentiometer 10 kΩ
- IRFZ44N
- Diode 1N4007
- Resistor 10 kΩ
- Resistor 1 kΩ
- Li-po battery 3.7 V 500 mAh
- Cable/wires
- 8520 coreless DC motor 3.7 V
Diagram:
Here's the sketch:
int analogPin = A0; // potentiometer connected to analog pin 3
int val = 0; // variable to store the read value
void setup()
{
pinMode(11, OUTPUT); // sets the pin as output
pinMode(11, LOW); // sets the pin as output
}
void loop()
{
val = analogRead(analogPin); // read the input pin
analogWrite(11, val / 4); // analogRead values go from 0 to 1023, analogWrite values from 0 to 255
}
PROBLEM:
The 8520 coreless DC motor gets very hot in less than one minute when I spin the potentiometer from minumum to maximum. In one minute, there is a vibration of the motor when the potentiometer goes to the minimum value.
Of course there is something wrong with my project, but I have no idea what causing it, wiring and components or something I don't know.