# MICROCONTROLLERS efj

Learning Goal: I’m working on a electrical engineering question and need support to help me learn.

1-Write an AVR program that simulates manually operated traffic lights at a pedestrian crossing. Until no button is pressed a green LED is lit for the cars. After pressing a pushbutton (PA5) the green LED (PC4) will start to blink for 3 seconds with 1 second total delay time for every blink, this is followed by blinking the yellow LED (PC3) for 3 seconds with 0.5 second total delay time for every blink and then the red LED (PC2) will blink for 10 seconds with 1 second total delay time for every blink. When the red LED is on, the 7-segment display (port B) countdowns seconds from 9 to 0 with 1 second time delay for every digit. Use an array to store the digits of the 7-segment display in hexadecimal values.

2-With the AVR ATmega16 microcontroller, a circuit has a servomotor (PC0), three pushbuttons, two LEDs, and a 7-segment. Write a program as when the PB2 pushbutton is pressed the servomotor will rotate 90 degrees and the first LED (PA0) will be on. When the PB3 pushbutton is pressed the servomotor will rotate 180 degrees and the second LED (PA1) will be on. When the PB1 pushbutton is pressed the 7-segment will display a pattern from A to F with a 500 ms delay for every digit. Use an array to store the digits of the 7-segment display in binary format.

3-Using an AVR microcontroller, a circuit has a servomotor (PA0), two pushbuttons, and two LEDs. Write a program as when the PB0 pushbutton is pressed the servomotor will rotate clockwise and the first LED (PD0) will be on. When the PB1 pushbutton is pressed the servomotor will rotate counterclockwise and the second LED (PD1) will be on.

## Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
\$26
The price is based on these factors:
Number of pages
Urgency
Basic features
• Free title page and bibliography
• Unlimited revisions
• Plagiarism-free guarantee
• Money-back guarantee
On-demand options
• Writer’s samples
• Part-by-part delivery
• Overnight delivery
• Copies of used sources
Paper format
• 275 words per page
• 12 pt Arial/Times New Roman
• Double line spacing
• Any citation style (APA, MLA, Chicago/Turabian, Harvard)

# Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

### Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

### Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

### Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.