Question

1. In a ATmega328P used in Arduino UNO a).Briefly describe the function of Digital Pins 2-12....

1. In a ATmega328P used in Arduino UNO a).Briefly describe the function of Digital Pins 2-12. b).Are these pins for digital signal output only, digital signal input only, or both digital signal input and output? c).What are Digital Pins 0 and 1 used for? d).What is unique about Digital Pin 13?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

a) The digital pins 2-12 can act as either digital input or digital output pins. Out of these pins pins 3,5,6,9,10,11 act as PWM pins. Which means that these pins can give PWM signals as output if required. The duty cycle of the PWM signal is set using AnalogWrite function.

b) The digital pins 2-12 can be used used for both input and output. The operation mode of the pins are defined using pinMode function.

c) The digital pins 0 and 1 are called RX and TX respectively. TX stands for Transmission and RX stands for Receiving. These pins are used for serial communication. Both pins are a led each. Which blinks at the time of TX or RX.

d) The digital pin 13 is connected with built in led in the board.Whenever the pin 13 is high, the led will be on.When the pin is low,the led will be of.

Add a comment
Know the answer?
Add Answer to:
1. In a ATmega328P used in Arduino UNO a).Briefly describe the function of Digital Pins 2-12....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • How is the Arduino UNO ATmega328P: a).Able to communicate with a computer via USB for programming...

    How is the Arduino UNO ATmega328P: a).Able to communicate with a computer via USB for programming and serial communications w/o native USB interface? b).As well as describe the func of Analog Pins A0-A5, state if pins are analog signal input only, analog signal output only, or both analog signal input and output?

  • Assume the following script is uploaded to an Arduino UNO and a digital multimeter is used...

    Assume the following script is uploaded to an Arduino UNO and a digital multimeter is used to measure the voltage between Arduino pin 12 (red probe or +) and pin 13 (black probe or -). void setup() { pinMode(13, OUTPUT); pinMode(12, OUTPUT); void loop() { digitalWrite(13, HIGH); digitalWrite(12, LOW); delay(500); digitalWrite(13, HIGH); digitalWrite(12, HIGH); delay(500); O O Select one: a. -5 Volts, 500 second delay, 0 volts, 500 second delay, repeat b. - 5 Volts, 12 second delay, +5 Volts,...

  • Assume the following script is uploaded to an Arduino UNO and a digital multimeter is used...

    Assume the following script is uploaded to an Arduino UNO and a digital multimeter is used to measure the voltage between Arduino pin 12 (red probe or +) and pin 13 (black probe or -). void setup) pinMode(13, OUTPUT); pinMode(12, OUTPUT); } void loop(){ digitalWrite(13, HIGH); digitalWrite(12, LOW); delay(500); digitalWrite(13, HIGH); digitalWrite(12, HIGH); delay(500); } Select one: о a. -5 Volts, 500 second delay, 0 volts, 500 second delay, repeat second delay, 0 volts, V2 second delay, repeat о b....

  • An Arduino Uno is configured with the voltage divider connected to Analog input pin A0 as...

    An Arduino Uno is configured with the voltage divider connected to Analog input pin A0 as shown, and the code shown below is uploaded. What happens? testCodeA | Arduino 1.8.1 1 Hourly Build 2019/10/29 11:12 As dum o testCodeA Uno #define LED 13 5v void setup) { pinModeCLED, OUTPUT) ; } 13 5k-R Ap void loop) int voltage-anal ogRead (A0) ; if (voltage 1024/2) digitalWrite(LED, HIGH); else R digital Write(LED, LOW); } GND Done compiling. Sketch uses 778 bytes (2%)...

  • An Arduino Uno is configured with the voltage divider connected to Analog input pin AO as...

    An Arduino Uno is configured with the voltage divider connected to Analog input pin AO as shown, and the code shown below is uploaded. What happens? testCodeA Arduino 1.8.11 Hourly Build 2019/10/29 11:12 Arduino testCodeA Uno #define LED 13 to SV 130 5ks § void setup() { pinMode(LED, OUTPUT); B toap ŹR 10 Kaş void loop 1 int voltage analogRead(AO); if (voltage > 1024/2) digitalWrite(LED, HIGH); else digitalWrite(LED, LOW); HOGNO Gong Done compiling Sketch uses 778 bytes (2%) of program...

  • An Arduino Uno is configured with the voltage divider connected to Analog input pin AO as...

    An Arduino Uno is configured with the voltage divider connected to Analog input pin AO as shown, and the code shown below is uploaded. What happens? testCodeA Arduino 1.8.11 Hourly Build 2019/10/29 11:12 Arduino Uno testCodeA #define LED 13 to sv 13o 5ke & void setup() { pinMode(LED, OUTPUT); to A 10KZ Ž ŞR void loop() { int voltage-analogRead(AO); if (voltage > 1024/2) digitalWrite(LED, HIGH); else digitalWrite(LED, LOW); GND GND Done compiling Sketch uses 778 bytes (2%) of program storage...

  • answere Please mark only one of the four choices Q1. Controlling the speed of a DC motor by using a micro-controller, is what type of control? b. Digital C. Analog d. All of the above Q2. When cur...

    answere Please mark only one of the four choices Q1. Controlling the speed of a DC motor by using a micro-controller, is what type of control? b. Digital C. Analog d. All of the above Q2. When current flow is interrupted in a DC motor, which motor property causes a reverse voltage spike? a. Resistance b. Capacitance C. Inductance d. None of the above Q3. Which Arduino internal circuit is used to control motor speed? a. Digital to Analog Converter...

  • In the code below i am using a LS-3006 SERVO on the arduino uno and everytime...

    In the code below i am using a LS-3006 SERVO on the arduino uno and everytime i hit the pushbutton to input a time the servo comes on. Would anyone be able to tell me what a solution is to this problem? Thanks #include <Wire.h> #include <DS3231.h> #include <Servo.h> #include <LiquidCrystal.h> #include <Keypad.h> const byte ROWS = 4; // # of rows const byte COLS = 4; // # of columns // Define the Keymap char keys[ROWS][COLS] = { {'1','2','3','A'},...

  • Using the template provided in the lab details section, formulate a program for the Arduino to...

    Using the template provided in the lab details section, formulate a program for the Arduino to generate a PWM signal duty cycles between 0% and 100% at intervals of 10% where a button will increment the PWM signal. Remember the RC is 10 milliseconds. Provide a copy of the final code and explain how it works. Arduino PWM Example int Pin = 9; void setup() { pinMode (Pin, OUTPUT); } void loop() { analogWrite (Pin, 127); // Generate 50% duty...

  • Question 3: In class we showed how to simply light up an LED on our Teensy...

    Question 3: In class we showed how to simply light up an LED on our Teensy microcontroller. In fact, the procedure is similar for all processors including a simpler 8-bit ATmega 328P (a.k.a Arduino Uno) For purposes of this exercise, let's say that the ATmega328 has 4 regular GPIO ports; A, B, C, and D, each with 8 pins. Every GPIO port has three registers (outlined in table below) PORTX: used to write output on a pin on port X...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT