Controlling the pump???

void setup () {
Serial.begin(9600);
}
void loop () {
digitalWrite(4,HIGH); //Connected to N-channel enhancement MOSFET so requires positive voltage
digitalWrite(5,HIGH); //Connected to N-channel enhancement MOSFET so requires positive voltage
digitalWrite(6,LOW); //Connected to P-channel enhancement MOSFET so requires a negative voltage
digitalWrite(7,LOW); //Connected to P-channel enhancement MOSFET so requires a negative voltage
delay(1000);
}

On compiling and uploading the above code on the AFWS Controller board the motor does not switch on!! I would like to know why?

When directly applying a voltage of 3.5v to 10v using a DC Power Supply the motor functions perfectly! But when plugged into the microcontroller board it is connected to the AP9930M chip and would not switch on with the above programming code.

I would also like to know how much Vin should be applied to the microcontroller board so as to switch on the motor? (According to specification the motor will function from 3.5v to 12v)

Here is a link to the schematic of the controller board:
http://www.dfrobot.com/image/data/KIT0003/AFWS-control%20board%20SCH.pdf

Here is the datasheet link to the MOSFET (AP9930M):

I have tried using a Vin of 3.5v to 10v after uploading the above code to the microcontroller!

"I have tried using a Vin of 3.5v to 10v after uploading the above code to the microcontroller!"

IS the regulator connected to the Vin? :open_mouth:

I'm taking a wild guess here, but LOW isn't negative voltage, it's zero....