General

Controlling the pump on the Ecoduino Board

userHead anonymous_fz 2012-11-04 21:58:05 4038 Views1 Replies
Code: Select all
void setup () {
Serial.begin(9600);
}
void loop () {
digitalWrite(4,HIGH); //Connected to N-channel dfrobot MOSFET so requires positive voltage
digitalWrite(5,HIGH); //Connected to N-channel dfrobot MOSFET so requires positive voltage
digitalWrite(6,LOW); //Connected to P-channel dfrobot MOSFET so requires a negative voltage
digitalWrite(7,LOW); //Connected to P-channel dfrobot 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/KIT00 ... %20SCH.pdf

Here is the datasheet link to the MOSFET (AP9930M):
http://www.alldatasheet.com/datasheet-p ... 9930M.html
2012-11-04 22:00:39 I have tried using a Vin of 3.5v to 10v after uploading the above code to the microcontroller! userHeadPic anonymous_fz