30.01.2015 Views

PFR - Aerospace Engineering Sciences Senior Design Projects ...

PFR - Aerospace Engineering Sciences Senior Design Projects ...

PFR - Aerospace Engineering Sciences Senior Design Projects ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Project Final Report – CUDBF April 30 th , 2009<br />

ASEN 4028: <strong>Aerospace</strong> <strong>Senior</strong> <strong>Projects</strong><br />

edge of the signal, it stopped the timer. The timer value reflected how many instruction cycles it<br />

took the microcontroller to read the high time of the incoming signal. Knowing that the<br />

microcontroller operated at a frequency of 48 MHz and executed 4 instructions per clock cycle,<br />

the timer value was converted to a time.<br />

Figure 92: Logic to arming microcontroller<br />

Once the microcontroller was armed it then reads the incoming signals, using the CCP pin as<br />

before, from the aileron, elevator, and rudder. To avoid accidental store release, there is a time<br />

delay of three seconds between arming the microcontroller and the microcontroller reading the<br />

incoming signals. The inputs for these control surfaces are similar to how the switch works. On<br />

the transmitter there are two sticks that produce various PWM signals depending on their<br />

position. For instance, moving the left stick to the far left causes the rudder signal to have a high<br />

time of 1.0 ms or duty cycle of 5% and moving it to the far right gives the rudder a signal with a<br />

high time of 2.0 ms or duty cycle of 10%. Based on the signals, the appropriate payload is<br />

released. The flowchart of this process is shown in Figure 93. Every time the microcontroller is<br />

armed it goes through this sequence once and then returns to the arming routine. Code for the<br />

Microcontroller can be observed in Appendix K.<br />

Figure 93: Flowchart for releasing payloads<br />

114

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!