Programming and Interfacing with Arduino
eBook - ePub

Programming and Interfacing with Arduino

Yogesh Misra

Partager le livre
  1. 304 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

Programming and Interfacing with Arduino

Yogesh Misra

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

À propos de ce livre

Programming and Interfacing with Arduino provides an in-depth understanding of the Arduino UNO board. It covers programming concepts, working and interfacing of sensors, input/output devices, communication modules, and actuators with Arduino UNO board. This book contains a large number of programming examples along with the description and interfacing details of hardware with Arduino UNO board.

It discusses important topics, including SPI communication protocol, I2C communication protocol, light-emitting diode, potentiometer, analog-to-digital converter, pulse width modulation, temperature sensor LM35, humidity and temperature sensor DHT11, motor driver L293D, LED interfacing and programming, and push-button interfacing and programming.

Aimed at senior undergraduate students and professionals in areas such as electrical engineering, electronics, and communication engineering, this text:

  • Discusses construction and working of sensors, including ultrasonic sensor, temperature sensor, and optical sensor.


  • Covers construction, working, programming, and interfacing of IO devices.


  • Discusses programming, interfacing construction, and working of relay with the Arduino board for controlling high-voltage devices.


  • Covers interfacing diagram of devices with the Arduino board.


  • Provides videos demonstrating the implementation of programs on the Arduino board.


Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que Programming and Interfacing with Arduino est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  Programming and Interfacing with Arduino par Yogesh Misra en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Technology & Engineering et Electrical Engineering & Telecommunications. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Éditeur
CRC Press
Année
2021
ISBN
9781000431698

1 Introduction to Arduino UNO Board

Learning Outcomes

After completing this chapter, learners will be able to:
  1. Understand various hardware features of the Arduino UNO board.
  2. Understand various features of Integrated Development Environment (IDE) used for the development of software.
  3. Understand how to download and use the Arduino IDE for the development of software.
  4. Understand pin configuration and features of ATmega 328 microcontroller, which is the Arduino UNO board’s main brain.
  5. Understand Serial Peripheral Interface (SPI) and Inter-Integrated Circuit (I2C) serial communication protocols.

1.1 Features of Arduino UNO Board

Arduino is open-source hardware that can be used to develop embedded systems with open-source software. Arduino has gained massive popularity among students and hobbyists for making a working model. The reasons behind the popularity of Arduino are its low cost, availability of software, and easy-to-interface possibility. This book has used the Arduino UNO board’s code because it is the most popular board in the Arduino family. The Arduino UNO is a microcontroller-based board having an ATmega328 microcontroller from ATmega (now MicrochipTM). Most of the Arduino boards have the majority of components, as shown in Figure 1.1. The input voltage range required for the Arduino UNO board’s operation is 6–20 V, but the recommended input voltage range is 7–12 V. If the input voltage is less than 7 V, the digital output pins may supply less than 5 V, and the board may be unstable. The output current from each pin of Arduino UNO is 40 mA.
The components mounted on the Arduino UNO board are labeled from 1 to 17.
FIGURE 1.1 Arduino UNO board. (Courtesy Arduino.)
Power USB (Label 1): Arduino board can be powered on by connecting it to the computer at the USB socket using USB cable as shown in Label 1.
Power Connector (Label 2): Arduino board can be powered on by connecting it to 220 V AC by an adapter at Power Connector as shown as Label 2.
Voltage Regulator (Label 3): The voltage regulator shown in Label 3 is used to regulate the Arduino board’s DC voltage.
Crystal Oscillator (Label 4): A crystal oscillator of 16 MHz is used in the Arduino UNO board to synchronize the microcontroller’s various operations of ATmega 328 and Arduino UNO board.
Reset (Label 5): Sometimes, a program may be stuck at some instruction. In such cases, we have to reset our Arduino board so that the program’s execution should start from the beginning. If a 0 V is applied at the reset pin as shown in Label 5, the Arduino board will reset. An alternate way to reset the Arduino board is by pressing the reset button, as shown in Label 17.
3.3 V (Label 6): The 3.3V output is available at the pin as shown in Label 6.
5 V (Label 7): The 5V output is available at the pin as shown in Label 7.
GND (Label 8): In the Arduino board, three GND (ground) pins are available. Users can use any available ground pin while building their circuit. The two GND (ground) pins are available at the pins, as shown in Label 8. The third GND (ground) pin is available at the right-side pin, as shown in Label 16.
Vin (Label 9): Arduino board can be powered on by connecting a DC voltage in the range of 7–20 V at Vin pin, as shown in Label 9.
Analog Input (Label 10): The Arduino UNO board contains six analog pins named A0, A1, A2, A3, A4, and A5. Internally, these analog pins are connected to a six-channel 10-bit analog-to-digital converter. The allowable analog input voltage range at each analog input pin is 0–5 V. Since each analog input pin is connected to a 10-bit analog-to-digital converter, 0–5 V is divided into 1,024 steps ranging from 0 to 1,023. The six analog pins are shown in Label 10.
ATmega328 (Label 11): The ATmega328 microcontroller is used to perform various arithmetic and logical operations. The ATmega328 microcontroller is manufactured by Atmel Company and shown in Label 11.
ICSP (Label 12): It is a small programming header for the Arduino consisting of MOSI (Master Output Slave Input), MISO (Master Input Slave Output), SCLK (System Clock), RESET, VCC, and GND.
Power LED (Label 13): When the Arduino board is power on, the power LED turns on. The Power LED is shown in Label 13.
Tx and Rx LEDs (Label 14): When the Arduino board transmits data serially from the Arduino board through Pin 1 of the Arduino board, Tx (Transmit) LED blinks.
When the Arduino board receives data serially through Pin 0 of the Arduino board, Rx (Receive) LED blinks. The Tx and Rx LEDs are shown in Label 14.
Digital I/O (Label 15): The Arduino UNO board has 14 digital I/O (input/output) pins. Each of these pins can be c...

Table des matiĂšres