Internet of Things (Iot)
Internet of Things (Iot)
Analog pins(10)
The Arduino UNO board has six analog input pins A0 through A5. These pins can read
the signal from an analog sensor like the humidity sensor or temperature sensor and
convert it into a digital value that can be read by the microprocessor
Microcontroller Atmega328p(11)
Each Arduino board has its own microcontroller (11). You can assume it as the
brain of your board. The main IC (integrated circuit) on the Arduino is slightly
different from board to board. The microcontrollers are usually of the ATMEL
Company. You must know what IC your board has before loading up a new
program from the Arduino IDE. This information is available on the top of the IC.
For more details about the IC construction and functions, you can refer to the data sheet.
AVR Family
A common alternative to the ATmega328 is the
"picoPower" ATmega328P. A comprehensive list of all
other members of the megaAVR series can be found
on the Atmel website.[3]
ATmega328
ATmega328P and ATmega328P-AUTOMOTIVE
ATmega328PB and ATmega328PB-AUTOMOTIVE
(superset of ATmega328P) - has more UART, I2C, and
SPI peripherals than ATmega328P
Power LED indicator(13)
This LED should light up when you plug your Arduino into a power
source to indicate that your board is powered up correctly. If this light
does not turn on, then there is something wrong with the connection.
TX and RX LEDs(14)
On your board, you will find two labels: TX (transmit) and RX (receive).
They appear in two places on the Arduino UNO board. First, at the
digital pins 0 and 1, to indicate the pins responsible for serial
communication. Second, the TX and RX led (13). The TX led flashes with
different speed while sending the serial data. The speed of flashing
depends on the baud rate used by the board. RX flashes during the
receiving process.
Digital I/O Pins(15)
The Arduino UNO board has 14 digital I/O pins (15) (of which 6 provide PWM
(Pulse Width Modulation) output. These pins can be configured to work as
input digital pins to read logic values (0 or 1) or as digital output pins to drive
different modules like LEDs, relays, etc. The pins labelled “~” can be used to
generate PWM.
AREF Analogue Reference (16)
It allows us to feed the Arduino a reference (analog inputs) voltage from an
external power supply. For example, if we want to measure voltages with a
maximum range of 3.3V, we would feed a nice smooth 3.3V into the AREF pin –
perhaps from a voltage regulator IC. Then the each step of the ADC would
represent 3.22 millivolts.
Pulse Width Modulation (PWM) Signal
PWM is a method for generating an analog signal using a digital source. Here
PWM is used for supplying electrical power to a load that has a relatively slow
response. The supply signal consists of a train of voltages pulses such that the
width of individual pulses controls the effective voltage level to the load. Both
AC and DC signals can be simulated with PWM
How to Download and Install the Arduino IDE Software
The Arduino Integrated Development Environment
(Arduino IDE) is the free software required to interact
with your Arduino controller board, without the Arduino
IDE you can‟t program your Arduino microcontroller to
do electronic projects
The main code, also known as a sketch, created on the IDE platform will
ultimately generate a Hex File which is then transferred and uploaded in the
controller on the board.
The IDE environment mainly contains two basic parts: Editor and Compiler
where former is used for writing the required code and later is used for
compiling and uploading the code into the given Arduino Module.
Menu Bar
Text Editor
Output Pane
You will see the list of already installed libraries, click on the
needed library.
Open the .zip library file. Now you can find it that library in
Include Library option.
4. Tools Menu
5. Help Menu
Below the dropdown menus, you can
see a bar that has five basic and
important options. They are
How to compile code in Arduino
IDE?
Open the Arduino IDE software.
You can compile the code by clicking in the verify option in the drop-down
menus.
When you click on the upload option, it will automatically compile your
sketch.
How to execute code in Arduino IDE?