Electronic Signals
Let us study the two types of signals that are used for communication:
Analog Signal: Analog signals can take any value in a given continuous range of values. Generally, analog signals used in Arduino are around 0V to 5V. The analog pins can take data up to 8-bit resolution therefore, they are used for taking large values as input in the Arduino. These signals carry data in a very accurate form without many errors.
Digital Signal: Digital signals can only take discrete values which are, high(‘1’) and low(‘0’). These signals are usually used to Arduino on or off which requires only two values. The collection of two values (0 and 1) can be used to generate a sequence known as the binary sequence which is a collection of zeroes and ones. This is how data is transmitted without much memory requirement but this can lead to certain errors like quantization errors.
Arduino Coding Basics
In some previous articles, we have seen and understood the concepts of Arduino Boards, Arduino IDEs, and the installation procedure for Arduino software. Arduino IDE (Integrated Development Environment) is an essential which makes the task of uploading code on Arduino boards, an easy task. Instead of writing them at the assembly level, the IDEs make it convenient and the codes are written in high-level languages like C and C++. Let us get introduced to the basics of Arduino Coding.
Make sure that you have an appropriate IDE for coding before starting your journey to Arduino coding. Let us study every character, command, and function that is used in Arduino. Keep your Arduino IDE switched on so that you can apply the concepts you learn from the article.
Table of Content
- What is Arduino?
- Electronic Signals
- Brackets
- Line Comment
- Coding Screen
- Time
- pinMode ( )
- digitalWrite( )
- delay ( )
- Solved Example
- Advantages and Disadvantages of Arduino
- Application of Arduino