An RC plane is to fly on a certain scenario which is given below and this plane has two servo motors M elevation while M1 for direction rotation left and right and both motors at starting are centered at 90 deg . The first root of the plane is to climb up 20 meters commanding M2 for 4 seconds then to rotate 40 degrees to the right for 1 sec. and then to return to the center staying for 2sec then to turn the plane fli to the left 10 degree for 5 seconds. Using AVR microcontroller, write a code for the above scenario knowing that: M1 & M2 are connected to PC0 & PC1 respectively Assume the remote control as switches connected to port PD2 for elevation and PD3 for direction

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
An RC plane is to fly on a certain scenario which is given below and this plane has two servo motors M2 for
elevation while M1 for direction rotation left and right and both motors at starting are centered at 90 degree
. The first root of the plane is to climb up 20 meters commanding M2 for 4 seconds then to rotate 40
degrees to the right for 1 sec. and then to return to the center staying for 2sec then to turn the plane flight
to the left 10 degree for 5 seconds.
Using AVR microcontroller, write a code for the above scenario knowing that:
M1 & M2 are connected to PC0 & PC1 respectively
Assume the remote control as switches connected to port PD2 for elevation and PD3 for direction
(table1)
7
5
4
2
1
REFS1
REFSO
ADLAR
MUX4
MUX3
MUX2
MUX1
MUXO
REFS1
REFSO
Voltage Reference Selection
AREF, Internal Vref turned off
AVCC with external capacitor at AREF pin
1
Reserved
1
1
Internal 2.56V Voltage Reference with external capacitor at AREF pin
7
5
4
3
2
1
ADEN
ADSC
ADATE
ADIF
ADIE
ADPS2
ADPS1
ADPSO
ADPS2
ADPS1
ADPSO
Division Factor
2
1
2
1
4
1
1
8
Activate Windows
16
32
Go to Settings to activate Winc
64
1
1
128
Transcribed Image Text:An RC plane is to fly on a certain scenario which is given below and this plane has two servo motors M2 for elevation while M1 for direction rotation left and right and both motors at starting are centered at 90 degree . The first root of the plane is to climb up 20 meters commanding M2 for 4 seconds then to rotate 40 degrees to the right for 1 sec. and then to return to the center staying for 2sec then to turn the plane flight to the left 10 degree for 5 seconds. Using AVR microcontroller, write a code for the above scenario knowing that: M1 & M2 are connected to PC0 & PC1 respectively Assume the remote control as switches connected to port PD2 for elevation and PD3 for direction (table1) 7 5 4 2 1 REFS1 REFSO ADLAR MUX4 MUX3 MUX2 MUX1 MUXO REFS1 REFSO Voltage Reference Selection AREF, Internal Vref turned off AVCC with external capacitor at AREF pin 1 Reserved 1 1 Internal 2.56V Voltage Reference with external capacitor at AREF pin 7 5 4 3 2 1 ADEN ADSC ADATE ADIF ADIE ADPS2 ADPS1 ADPSO ADPS2 ADPS1 ADPSO Division Factor 2 1 2 1 4 1 1 8 Activate Windows 16 32 Go to Settings to activate Winc 64 1 1 128
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY