The mode defines when the interrupt should be triggered. Note: This function should not have any parameters and its return type is void. Whenever the interrupt is raised MCU stops its Normal execution and jumps to ISR. These pins are used to generate external interrupts.ĪttachInterrupt(DigitalPinToInterrupt(pin),ISR,mode) These pins can provide digital input and output. They can act like digital pins too in Arduino boards. These pins are used to read analog input from the sensors and they are 0-5V compatible. It is similar to unplugging and then plugging back the USB. it starts the execution of the program from the beginning again. This can be used to make the common ground for external circuits and Arduino boards.Ī voltage input pin is used to provide an external power supply ( 7-12V) to the board. This pin on the board outputs 3.3V which can be power supply external components. If you give the power supply to the board through this 5V or 3.3V pin it will bypass the voltage regulator and can damage the Arduino board. Note: Board should be supplied power from the USB connector (5V) or DC power jack ( 7-12V) or Vin pin of the board (7-12V). This pin outputs 5V to external components like resistors, LEDs, etc. So stay tuned, take time and understand these definitions properly so that we can go through the pin configuration of any kind of board instantly. Also, some of these pin definitions are common to other non-Arduino boards like esp, stm32, etc boards as well. Understanding these definitions will help you in programming any of the below Arduino boards and connecting the external hardware like input( sensors) and output devices( LEDs, actuators) to the board. Pin configuration of any board is nothing but it tells what each pin is used for.īefore going through the pin configuration of individual boards let's see some general pins and their definitions which are common to all the boards. Before starting any project make sure that we understand the pin configuration of the board. In this blog, let's look at the Arduino pin configuration of different boards.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |