In previous post, you learned about what is Arduino and how
to install Arduino IDE. In this post, you can learn about basics of Arduino. This post will be longer one, so I cut this post to two parts First of all, we have to learn about Arduino board.
So, there are few differences between Arduino boards, but
structure is same. All Arduino boards have Digital, Analog, Power, PWM, Serial,
SPI pins.
- Digital Pins – Digital pins are the pins which gets or gives digital output or input. Digital input/output means, binary input/output. So, you can control things like LCD displays using these pins, and also this is the most common pin on the Arduino board.
- Analog Pins – Analog pins are the pins which gives or gets analog output or input. Analog means physical things. For an example, radio wave is an Analog signal, but binary signal is digital one. Analog pins are widely use for getting sensor data.
- Power pins – there are few types of power pins in Arduino. They are 5V, 3.3v, GND, VIN, RST pins. Power pins are used for giving and getting power.
- 5v – This pin gives 5V and also you can give exact 5v to Arduino and powerup it. *Note – Don’t give less than 5v or more than 5v to Arduino. It will cause to burn the whole Arduino.
- 3.3V – It gives 3.3v and mostly used for giving power to sensors. But not commonly using this.
- GND – GND means minus port in Arduino. You can put 5V cathode to this pin and powerup the Arduino.
- VIN – VIN pin can get 6v to 12v (0.5amp to 2amps) and powerup the Arduino. It connected to voltage regulator and don’t worry about burning.
- RST – Using this pin, you can reset the Arduino without plug out it. You only have to connect GND pin with it.
- PWM pins – PWM pins are the variable pins of Arduino. It gives Analog result with digital result. We’ll learn about this pin more in other episodes.
- Serial pins – Serial pins are the pins that use for communicate with Arduino. There are two types of serial pins and they are TX and RX. TX, RX pins widely use among the PC to Arduino, Arduino to Arduino, Arduino to Nextion display and Arduino to modules.
- TX – TX means transmit. You can send data from Arduino board to pc or another Arduino board using this port
- RX – RX means receive. You can receive data using this pin.
- SPI pins – There are 3 pins in the SPI pin set. SPI means Serial Peripheral Interface. It synchronizes serial data protocol.
You can verify things using this button. You don’t have to
upload the code to see how this code going to work. It sows errors if there is
any, and also it shows how to correct this error.
You can upload codes to Arduino board using this button.
Just select the Arduino board and the port then upload.
You can get new sketch using this button. You don’t have to open
Arduino again.
You can open Arduino files using this button. You don’t have
to go to file explorer and open it again.
You can save current Arduino file using this button.