The Arduino Microcontroller
The Arduino Microcontroller
1
Inexpensive - Arduino boards are relatively inexpensive compared
to other microcontroller platforms. The least expensive version of
the Arduino module can be assembled by hand, and even the pre-
assembled Arduino modules cost less than $50
Cross-platform - The Arduino Software (IDE) runs on Windows,
Macintosh OSX, and Linux operating systems. Most
microcontroller systems are limited to Windows.
Simple, clear programming environment - The Arduino Software
(IDE) is easy-to-use for beginners, yet flexible enough for
advanced users to take advantage of as well. For teachers, it's
conveniently based on the Processing programming environment,
so students learning to program in that environment will be
familiar with how the Arduino IDE works.
Open source and extensible software - The Arduino software is
published as open source tools, available for extension by
experienced programmers. The language can be expanded through
C++ libraries, and people wanting to understand the technical
details can make the leap from Arduino to the AVR C
programming language on which it's based. Similarly, you can add
AVR-C code directly into your Arduino programs if you want to.
Open source and extensible hardware - The plans of the Arduino
boards are published under a Creative Commons license, so
experienced circuit designers can make their own version of the
module, extending it and improving it. Even relatively
inexperienced users can build the breadboard version of the
module in order to understand how it works and save money.
2
Types of Arduino Boards
Arduino UNO
he Arduino R3 adds SDA & SCL pins which are next to the AREF and in
addition, there are two pins which are placed near the RESET pin. The
first pin is IOREF, it will allow the shields to adapt to the voltage from
the board. [2]
The other pin is not connected and it is reserved for the future purpose. The
working of Arduino R3 is by all existing shields and it will adapt new
shields which use these additional pins. [2]
3
LilyPad Arduino
This board is an Arduino Programmable Microcontroller and it is designed
to integrate easily into an e-textiles & wearable projects. The other Arduino
boards have the same functionality like lightweight, round package
designed to minimize snagging and profile, with wide tabs that can be sewn
down and connected with conductive thread.
This Arduino board consist of an Atmega 328 with the Arduino bootloader
and to keep it as a small minimum external component are required. The
power supply of this board is 2V to 5V and offers large pin-out holes that
make it easy to sew and connect. Each pin is connected to positive and
negative terminals and to control the input & output devices like light,
motor, and switch. [2]
4
Arduino Mega (R3)
The Arduino Mega is a type of Microcontroller and it is based on the
ATmega2560. It consists of 54 digital input/output pins and from the total
pins 14 pins are used for the PWM output, 16 pins are used for the analog
inputs, 4 pins are used for the hardware serial port of the UART. There
are pins like crystal oscillator of 16 MHz, USB connection, RESET pin,
ICSP header, and a power jack. [2]
Arduino Mega R3
This Arduino Mega is also having SDA and SCL pins which are next to
the AREF. There are two new pins near the RESET pin which are IOREF
that allow the shields to adapt to the voltage provided by the board. The
other is a not connected and is reserved for future purposes. [2]
ATmega2560 Microcontroller
Input voltage – 7-12V
54 Digital I/O Pins (14 PWM outputs)
16 Analog Inputs
256k Flash Memory
16Mhz Clock Speed
5
Arduino Leonardo
Arduino Leonardo
The Arduino red board is programmed by using the USB cable of mini-B
with the help of Arduino IDE software. [2]
Creating it is very simple to utilize in the project design. Just plug the
board, select the menu option to choose an Arduino UNO and you are ready
to upload the program. You can control the RedBoard over USB cable
using the barrel jack. [2]
7
Wireless Biodevices Based on Arduino
Material [3]
Platform Description
8
The platform includes the following elements: [3]
9
Using Arduino
10
Sample code in the Arduino IDE
11
Sending The Data
Serial Port: PC
Connection with the computer is via the same USB cable that we use to
power the Arduino board. We will be able to visualize the data on our PC.
[3]
Wireless communication
A support communication board is necessary for wireless data transmission
(Figure 6). The desired wireless protocol module will be mounted on it. [3]
12
Wi-Fi
The Wi-Fi Roving RN-171 module (a) will provide wireless connection
of our device with any other device equipped with Wi-Fi, such as a
mobile phone. In addition, we can connect our device to a Wi-Fi network
and send the data to the cloud. [3]
Bluetooth
With the Bluetooth module (b) we can send the data to a smartphone or a
PC. [3]
the majority of the mobile phones have the option of setting Bluetooth
communication with another device. This technology will be used to link
a smartphone with our device. The Arduino will acquire biomedical
signals and send them using the Bluetooth protocol to the smartphone.
There, the numerical data will be displayed through an application called
Bluetooth Terminal. [3]
Xbee
The Xbee module (c) will allow us to send data wirelessly from one
Arduino to another. [3]
Using the Xbee communication protocol it is possible to connect two
Arduino devices to display on one of them the data acquired by the other.
The emitter will acquire the biomedical signals and sends them through
the XBee-PRO ZB module to the receiver device. That device will be
connected to the computer where the data will be visualized using the
serial monitor of the Arduino. Related to the software, two sketches will
be needed, one for each Arduino:
Receiver ZigBee: Arduino receiver (in the campus).
ZigBee Communication Example Arduino emitter (in the eHealth
examples).
13
The Arduino receiver just needs to be assembled with a communication
board and the XBee-PRO ZB module. Optionally, the antenna can be
added to increase the gain and hence the communication range. The
sketch must be built with the jumpers removed from the communication
board, then they must be replaced in the Xbee position. The Arduino
emitter must be mounted with the eHealth board, the sensors, the
communication board and the XBee-PRO ZB module. In order to display
the data from the receiver, it must be connected to a PC and the
MonitorSerial must be accessed, from where all the data acquired by the
other terminal will be visualized. [3]
14
References
[1]“What is Arduino?” [Online]. Available:
https://www.arduino.cc/en/guide/introduction.
15