I am making project where I have used all the 12 pins of arduino (from 2 to 13). It is done to run a bldc motor which has three hall sensor that provide +5 or 0 V depending on rotor position. The hall sensor`s signals are input to arduino.
The following short description is given here to indicate the pin no. used in this program.
int Y = 3; // Q1_Output which goes to the gate driver circuit of a three phase inverter
int J = 5; // Q2_Output to the gate driver circuit of a three phase inverter
int Z = 6; // Q3_Output to the gate driver circuit of a three phase inverter
int I = 9; // Q4_Output to the gate driver circuit of a three phase inverter
int X = 10; // Q5_Output to the gate driver circuit of a three phase inverter
int Q = 11; //Q6_Output to the gate driver circuit of a three phase inverter
int C = 7; // H1_Input from motor hall sensor
int A = 8; // H2_Input from motor hall sensor
int B = 12; // H3_Input from motor hall sensor
int S = 2; // PWMm_Input from an electronic circuit which gives +5 V and 0 v
int D = 4; // PWMr_Input from an electronic circuit which gives +5 V and 0 v
int E = 13; //C_Input from a 5 V source which is given from another microcontroller and a pull down resistor (6k) is used TO this pin as well.
The problem i faced is very different. The motor runs for a 1 to 2 minutes and then all the outputs pins of the arduino either goes LOW or HIGH which causes motor shut down. If I press reset button again then it works for some moments nicely then again it goes.
So, what is the problem ?? Can anyone help me?