Arduino Code Lab 2

Appendix

 

Calibrate Thrust Tc = 0.411*(T-T0) Calibrated Thrust(g) = 0.411 * (Thrust

scale reading(g)-Thrust scale reading at

0% power(g))

 

Power Input Pin = V*I*(P%/100) Power Input(w) = Voltage(v)*current(A)

*(Arduino Power Setting/100)

 

Power Available Pout = Tc*v Power Available(w) = calibrated

thrust(N)* wind tunnel velocity(m/s)

 

Propulsion Efficiency nsys = Pout/pin *100% propulsion Efficiency(%) = power output

(w)/power input(w) *100%

 

Propeller Advance J = v/(RPM/60)*D Propeller Advance(J) = velocity(m/s) /

((Propeller RPM /60)*Propeller diameter(m))

 

1 Mark = 0.4875 inches

Code

motorSpeed(4,25); //constant speed for all at 25%

 goFor(2); //hold for 2 sec

 motorSpeed(4,20); //constant speed for all at 20%

 goToAbsolutePosition(332.3); //go 332.3 marks by calculation

 reverse(4); // reverse all propellers

 motorSpeed(4,30); //constant speed for all at 30%

 goFor(1); //hold for 1 sec

 brake(4); //break all