Sunteți pe pagina 1din 1

Flight Dynamics and Control Assignment 1

Tilt rotor project


Deadline: May 18 11:59 pm

Note:
Arduino software is required. Learn Arduino basics online.
Select Arduino Uno as the default hardware unless specified.
Its better if you have Arduino but you can test your code on simulators too.
Please also note this- to compile a program you need not have Arduino connected.
Arduino is well known for its online documentation. You can always google your doubts.
Feel free to contact any of the Club seniors as well.
Submit the completed assignment in document format and mail to v.manoj1996@gmail.com
before the deadline.

1. Write a simple code that does the following


1. Blink LED-13 pin five times (with one second time interval)
2. Then stop the LED for 5 seconds
3. Then blink the LED at 5Hz for 20 seconds.
4. Stop blinking the LED(hint: use an infinite loop).

2. Write a code that does the following(LED's are connected to 10th pin and 13th pin, use digital
write)
1. Blink LED-10th pin at 1Hz for 10seconds
2. Stop for 1second
3. Blink LED-13th pin at 2Hz for 5seconds
4. stop for 1 sec
5. Blink LED-10th pin at 4Hz for 2.5seconds
6. stop for 1 sec
7. Blink LED-13th pin at 8Hz for 1.225seconds
8. Follow the same pattern
9. What will you observe after long time?

3. Learn about interrupts in Arduino (There is an example in Arduino IDE) and write a
program for the following.
1. In the previous program, we need to halt the program suddenly based on the input given
to digital pin 2 (when pin2 becomes HIGH ,LED should stop blinking permanently(until
next reset)). Do it using interrupts.

4. Give 5 ways by which you can burn/spoil an Arduino.

5. Do a market survey of the available IMU's (Inertial Measurement Units- Gyros,


Accelerometer..). List and compare various IMU's commercially available online.

6. Follow this tutorial(http://diyhacking.com/arduino-mpu-6050-imu-sensor-tutorial/ ). Do all


the steps and put screenshots after compiling the codes given there successfully.

S-ar putea să vă placă și