QUADX project

Post Reply
mikebz
Posts: 7
Joined: Tue Nov 29, 2011 4:23 pm

QUADX project

Post by mikebz »

Guys, I m doing the Quadcopter..And the motors cannot be armed right now..Any ideas ?

I m using WMP and NK together..How to check the sensors whether 2 of them are functioning ?

thank you

noobee
Posts: 66
Joined: Fri Feb 25, 2011 2:57 pm

Re: QUADX project

Post by noobee »

does the gui show activity for those 2 sensors?
have you calibrated your tx for 1000-2000 range?

mikebz
Posts: 7
Joined: Tue Nov 29, 2011 4:23 pm

Re: QUADX project

Post by mikebz »

ya..It shown..After i put all the things together, the nunchuck is active which shown in my c onfiguration..But after i open my remote control and with a little move of my throttle, my Nunchuck show OFF. I m confusing of it..

mikebz
Posts: 7
Joined: Tue Nov 29, 2011 4:23 pm

Re: QUADX project

Post by mikebz »

Hi,
Is there the looping is going to activate the motors? However, i have only adjusted the MINTHROTTLE AND MINCHECK, but it still not works. After i changed the 2 values, when i on the remote control and with only a MOVE of my throttle, the nunchuck is OFF which shown in the attachment above. Hence, the motors are not moving until right now.

For my RCDATA,
throttle min : 1100 pitch min : 1090 yaw min : 995
throttle max 1920 pitch max : 1909 yaw max : 1814

#define MINCOMMAND 1000
#define MINTHROTTLE 1110 // original 1120
#define MAXTHROTTLE 1850
#define MINCHECK 1150 // original 1100
#define MAXCHECK 1900

if (rcData[THROTTLE] < MINCHECK) {
errorGyroI[ROLL] = 0;
errorGyroI[PITCH] = 0;
errorGyroI[YAW] = 0;
errorAngleI[ROLL] = 0;
errorAngleI[PITCH] = 0;
rcDelayCommand++;
if ( (rcData[YAW] < MINCHECK || rcData[ROLL] < MINCHECK) && armed == 1) {
if (rcDelayCommand == 20) { // rcDelayCommand = 20 => 20x20ms = 0.4s = time to wait for a specific RC command to be acknowledged
armed = 0;
writeAllMotors(MINCOMMAND);
}
} else if (rcData[YAW] < MINCHECK && rcData[PITCH] < MINCHECK && armed == 0) {
if (rcDelayCommand == 20) calibratingG=400;
} else if ( (rcData[YAW] > MAXCHECK || rcData[ROLL] > MAXCHECK) && rcData[PITCH] < MAXCHECK && armed == 0 && calibratingG == 0 && calibratedACC == 1) {
if (rcDelayCommand == 20) {
armed = 1;
writeAllMotors(MINTHROTTLE);
}
} else if (rcData[YAW] > MAXCHECK && rcData[PITCH] > MAXCHECK && armed == 0) {
if (rcDelayCommand == 20) {
atomicServo[0] = 125; //we center the yaw gyro in conf mode
#if defined(LCD_CONF)
configurationLoop(); //beginning LCD configuration
#endif
previousTime = micros();
}
} else {
rcDelayCommand = 0;
}

In other hand, for my ESC connection, all my throttle go into pin 11,10,3,9, receiver Vcc connect with one ESC(get it from ESC pin 11) and go into arduino 5V, and all my ESCs ground go into receiver grounds. However, use of the ground pin from the receiver connect with one ESC(get it from from ESC pin 11) and go to the Arduino ground.

Is there fulfill all the conditions on GUI and ESC connection ?

Note that : i m using the 1.7 source code.

Thank you~

Best Regards,
mike

mikebz
Posts: 7
Joined: Tue Nov 29, 2011 4:23 pm

Re: QUADX project

Post by mikebz »

Tx range? It shown in GUI ?

noobee
Posts: 66
Joined: Fri Feb 25, 2011 2:57 pm

Re: QUADX project

Post by noobee »

mikebz wrote:Tx range? It shown in GUI ?


yes, adjust your tx epa (end point adjustment) so that the end-to-end range is 1000 to 2000 for all your controls (throttle, yaw, pitch, roll, aux1, etc).

what probably happened is that your right yaw is not high enough to arm the copter (i think it needs > 1900 for a period of time), you have 1814 at this time. so you need to adjust your tx to get a larger range.

Post Reply