How do arduino pins work




















In addition to the specific functions listed below, the analog input pins support bit analog-to-digital conversion ADC using the analogRead function. Most of the analog inputs can also be used as digital pins: analog input 0 as digital pin 14 through analog input 5 as digital pin Analog inputs 6 and 7 present on the Mini and BT cannot be used as digital pins.

Hello Guys! I hope you have learned all about Arduino in my previous guide. Before doing any project based on the Arduino board it is very important that you should know the pin configuration of the board. So in order to help you guys, in this blog, I will guide you over the Pin configuration of each Arduino Model. After going through this blog you can do any project of Arduino with ease. As we discussed we know that Arduino Uno is the most standard board available and probably the best choice for a beginner.

We can directly connect the board to the computer via a USB Cable which performs the function of supplying the power as well as acting as a serial port. Vin: This is the input voltage pin of the Arduino board used to provide input supply from an external power source. Reset: This pin of the board is used to reset the microcontroller. It is used to Resets the microcontroller.

Digital Pins: The pins 0 to 13 are used as a digital input or output for the Arduino board. It is used for communication between the Arduino board and a computer or other devices. The transmitter pin number 1 and receiver pin number 0 is used to transmit and receive the data resp. External Interrupt Pins: This pin of the Arduino board is used to produce the External interrupt and it is done by pin numbers 2 and 3. PWM Pins: This pins of the board is used to convert the digital signal into an analog by varying the width of the Pulse.

The pin numbers 3,5,6,9,10 and 11 are used as a PWM pin. SPI pins include:. The LED glows only when the digital pin becomes high. It is used to provide a reference voltage from an external power supply. The most important thing about this board is that the board has more input-output pins so it is very beneficial for the Advanced Users or the people who want more pins for their projects. Reset: This pin of the board is used to reset the microcontroller It is used to Resets the microcontroller.

The analog pins on this board can be used as a digital Input or Output pins. Serial pins: It is used for communication between the Arduino board and a computer or other devices. It includes serial 0, Serial 1, serial 2, Serial 3 as follows:.

External Interrupts pins: This pin of the Arduino board is used to produce the External interrupt and it is done by the pin numbers 0,3,21,20,19, The Arduino Uno and nano are similar, but the only difference is that its size. The UNO size is 2 times the nano size, so the Arduino nano is more breadboard friendly.

It is used for portable projects. The board has a mini USB cable slot. The transmitter pin number 1 and receiver pin number 2 is used to transmit and receive the data resp. Digital Pins: The pins 4, 6, 8, 9, 10, and 12 are used as a digital input or output for the Arduino board. Along with 14 Digital pins, there are 6 analog input pins, each of which provide 10 bits of resolution, i.

They measure from 0 to 5 volts but this limit can be increased by using AREF pin with analog Reference function. Arduino can be used to communicate with a computer, another Arduino board or other microcontrollers. An ATmega16U2 on the board channels this serial communication over USB and appears as a virtual com port to software on the computer.

However, on Windows, a. The Arduino software includes a serial monitor which allows simple textual data to be sent to and from the Arduino board. A SoftwareSerial library allows for serial communication on any of the Uno's digital pins. The Arduino software includes a Wire library to simplify use of the I2C bus. When ATmega chip is used in place of Arduino Uno, or vice versa, the image below shows the pin mapping between the two.

Download it from here. Arduino Uno is programmed using Arduino programming language based on Wiring.



0コメント

  • 1000 / 1000