Tuesday, April 5, 2022

Test your knowledge in Arduino and ATmega328P

 


Arduino QUIZ# 1

1. As the AVR CPU has a 16-bit wide address bus, the ATmega328P microcontroller is known to be a 16-bit microcontroller.

A. True

B. False

2. The Program Counter register of the microcontroller ATmega328P [select the correct answer from the choices below]

A. is a 14-bit register which contains the address of the instruction stored in the program memory

B. is a 8-bit register which contains the address of the instruction stored in the data memory

C. is a 16-bit register which is part of the 32 general-purpose registers

D. is a 14-bit register, which contains the result of the ALU operation

3. The second phase in an AVR CPU cycle is called "Execution" and this phase is subdivided into [select the correct answer from the choices below]

A. ROF, ALU

B. ROF, IF, ALU

C. ALU, ROF and RWB

D. IF, ROF and RWB

4. Pipelining helps in implementing a certain amount of parallelism in the CPU execution and IF phases so that the RISC CPU could finish most of its instructions in a single clock cycle. [True/False]

A. True

B. False

5. The execution phase might involve ALU operation and read/write operation from/into general-purpose registers and/or data memory. [True/False] 

A. True

B. False

6. Boot Loader is a program that helps the application program image to get uploaded in the desired sections of the program memory. [True/False]

A. True

B. False 

7. As the Program Counter (PC) of ATmega328P is a 14-bit register, it allows access of 32KB of program memory organized in 16K x 16 bits. [True/False]

A. True

B. False 

8. An occurrence of an interrupt for the ATmega328P microcontroller is independent of ALU operation. [True/False]

A. True

B. False  

9. How many Pin Change Interrupt inputs are available on Arduino UNO?

A. 3

B. 10

C. 23

D. 16 

10. Which of the following statements is NOT correct about the polling method?

A. In polling method, the microcontroller keeps on checking an input repeatedly in a loop to determine its state of change

B. Polling method is not efficient to determine the state of change of an external digital input

C. On Arduino UNO, the analog inputs can be checked by polling method

D. In polling method of reading any change of a digital input, there is no chance of missing a transition 

Can you guess the answers correct? Answers to follow in the next post. 😉

Saturday, June 5, 2021

BEGIN WITH ARDUINO - My first book for the Electronics Enthusiasts

The year 2020 started with a gruesome spell, the remnant of which is still continuing around the globe. As the vaccination drive caught up speed around the world, it seems like we have just crossed the most difficult time for the last several decades. During such depressing times, a book seems to be a great companion, apart from the near and dear ones of course. Especially for my fellow electronics enthusiasts studying in high schools and colleges, who might be missing their social groups at schools, I thought of writing something which would be a productive and entertaining engagement. 

I have named the book: BEGIN WITH ARDUINO as the book provides a quick start guide to learn about the Arduino UNO hardware and Arduino IDE software. The book also introduces the basics of a microcontroller, sensors (input devices) and output devices such as displays, motor drivers, I2C/SPI based input/output devices. One chapter is dedicated to circuit building using a breadboard. The last several chapters describe the programming concepts and demonstrate quick programming using the built-in libraries. I am hoping this book would definitely encourage the freshers into this subject to venture out fearlessly and learn.


Chapter 1: Tools & Equipment - A list of essential components and tools you would need to start experimenting with Arduino board.

Chapter 2: Arduino Family - This chapter lists down all major boards in the Arduino boards and draws a quick comparison.

Chapter 3: Arduino and friends - Other popular open-source microcontroller or microprocessor based hardware boards and a quick comparison with Arduino.

Chapter 4: Important digital electronics terminologies for the beginners

Chapter 5: Arduino anatomy - This chapter describes the major components of the Arduino UNO board and lists down the IO pin functionalities or Arduino UNO board.

Chapter 6: Brain of Arduino UNO - Describes the features and major functionalities of the ATmega328P microcontroller in brief. 

Chapter 7: Input Devices - Sensors - Talks about the popular Arduino compatible sensors which could be used for the projects.

Chapter 8: Output Devices - Outlines the concept of driving the output devices using the microcontroller pins. Lists down the basic output devices such as various displays, relays, motor drivers.

Chapter 9: Building Circuit on Breadboard

Chapter 10: Getting started with programming - Describes the features of the Arduino IDE software tools and provides a quick start guide to develop, upload and run your first code using the Blink code.

Chapter 11: Analog Input - Explains how the analog voltages could be read

Chapter 12: Analog Output using PWM - This chapter describes how the pulse width modulation technique could be used to convert analog voltage from a digital value.

Chapter 13: Writing Code for LCD Display - Explain how to use the library for the LCD display and how to develop code for displaying messages on an LCD display with a parallel interface and having an I2C interface.

Chapter 14: Completing the Input-Output Loop - This last chapter provides a complete example of a project using the Arduino UNO board. 

The Book is now available on Amazon KDP International:

 

US: https://www.amazon.com/dp/9390507014

 

UK: https://www.amazon.co.uk/dp/9390507014

 

Germany: https://www.amazon.de/dp/9390507014

 

France: https://www.amazon.fr/dp/9390507014

 

Spain: https://www.amazon.es/dp/9390507014

 

Italy: https://www.amazon.it/dp/9390507014

 

Japan: https://www.amazon.co.jp/dp/9390507014

 

Canada: https://www.amazon.ca/dp/9390507014


Paperback version is available for Indian Distribution:

 

Amazon : https://www.amazon.in/dp/9390507014

 

Flipkart : https://www.flipkart.com/begin-with-arduino/p/itmcd632de58952a