Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
Magnetic Circuit with Air Gap: Explanation and Examples
B-H Curve or Magnetisation CurveThe B-H curve or magnetisation curve is the graph plotted between magnetic flux density (B) and magnetising force (H). The B-H curve indicates the manner in which the magnetic flux density varies with the change in magnetising force.The following figure shows the general shape of B-H curve of a magnetic material. The nonlinearity of the curve shows that the relative permeability $μ_{r}$ of a magnetic material is not constant but varies depending upon the magnetic flux density.Magnetic HysteresisThe phenomenon of lagging of magnetic flux density (B) behind the magnetising force (H) in a magnetic material subjected ...
Read MoreMagnetic Circuit – Series and Parallel Magnetic Circuit
Magnetic CircuitA magnetic circuit is defined as a closed path followed by the magnetic flux.A magnetic circuit consists of a core of materials having high permeability like iron, soft steel etc. It is because these materials offer very small opposition to the flow of magnetic flux.Consider a coil of N turns wound on an iron core (see the figure). When an electric current I is passes through the coil, magnetic flux (ψ) is set up in the core. This magnetic flux follows a closed path ABCDA and hence ABCDA is the magnetic circuit.In a magnetic circuit, the amount of magnetic ...
Read MoreWhat are the major new features in Arduino IDE 2.0?
The major new features in Arduino IDE 2.0 as compared to the previous versions are −Addition of Autocomplete featureThis was one of the main features putting Arduino at a disadvantage. Several other IDEs came with the autocomplete feature, which made writing code much faster. With the introduction of this feature, Arduino IDE will hopefully cover some lost groundAddition of Debugging ToolThough not yet supported by every board and platform, the introduction of this tool is a step in the right direction. It helps you introduce breakpoints and watch variables at runtime, helping the process of debugging.Serial Monitor is no longer ...
Read MoreWhat are the conditions of Status Bits in Computer Architecture?
The status register comprises the status bits. The bits of the status register are modified according to the operations performed in the ALU. The figure displays a block diagram of an 8-bit ALU with a 4-bit status register.If the end carry C8 is 1, then carry (C) is set to 1. If C8 is 0, then C is cleared to 0.If the highest order bit F7 is 1, then Sign (S) is set to 1. If F7 is 0, then S is set to 0.If the output of ALU is 0, then zero (Z) is set to 1, otherwise, Z ...
Read MoreHow to download and install Arduino IDE 2.0?
Arduino IDE 2.0 is currently available in the beta version. It can be downloaded from the following link: https://www.arduino.cc/en/softwareOnce the .exe file is downloaded, follow the installation steps. Accept the License Agreement, select access, and then select the installation location and click Install.Once the installation is done, open the IDE.Open the dropdown at the top and click 'Select Other Board and Port'Next, select your board and port in the popup that opens up. If you select Arduino boards for the first time, you may see this message −Click Yes, and your IDE 2.0 is ready to work with your Arduino ...
Read MoreWhat are Program Control Instructions?
Instructions of the computer are always stored in consecutive memory locations. These instructions are fetched from successive memory locations for processing and executing.When an instruction is fetched from the memory, the program counter is incremented by 1 so that it points to the address of the next consecutive instruction in the memory. Once a data transfer and data manipulation instruction are executed, the program control along with the program counter, which holds the address of the next instruction to be fetched, is returned to the fetch cycle.Data transfer and manipulation instructions specify the conditions for data processing operations, whereas the ...
Read MoreDifference between #define and const in Arduino
If you've done sufficient Arduino programming, you'd have seen that there are two ways of defining constants.#defineOne way is to use #define, like#define const_name 3constThe other way is to use the const keyword, likeconst int var_name = 3; Difference between #define and const#define is like a placeholder. The Arduino compiler replaces all mentions of this constant with its value at the compile time. This means that the values defined using #define don't take up any program space.Variables defined using const, on the other hand, are just normal variables, whose values can't be changed. They take up program memory space, and ...
Read MoreWhat is data transfer instruction process in Computer Architecture?
Data transfer instructions transfer the data between memory and processor registers, processor registers, and I/O devices, and from one processor register to another. There are eight commonly used data transfer instructions. Each instruction is represented by a mnemonic symbol.The table shows the eight data transfer instructions and their respective mnemonic symbols.Data Transfer InstructionsNameMnemonic SymbolsLoadLDStoreSTMoveMOVExchangeXCHInputInOutputOUTPushPUSHPopPOPThe instructions can be described as follows −Load − The load instruction is used to transfer data from the memory to a processor register, which is usually an accumulator.Store − The store instruction transfers data from processor registers to memory.Move − The move instruction transfers data from ...
Read MoreHow to Use Volatile Variables in Arduino?
Just like in C and C++, you need to qualify a variable with the volatile keyword if it can be modified within an interrupt routine.When you qualify a variable as volatile, this is what happens behind the scenes −The compiler gets instructed that the variable should be loaded into the RAM and not the storage register (where program variables are generally stored/manipulated)This ensures that any changes to the variable outside of the loop() (for example in the interrupt service routine), get immediately reflected in the loop()If you have a variable larger than a byte in size (int or long), then ...
Read MoreHow to Use Static Variables in Arduino?
A static variable is a special kind of variable; it is allocated memory 'statically'. Its lifetime is the entire run of the program. It is specific to a function, i.e., only the function that defined it can access it. However, it doesn't get destroyed after the function call ends. It preserves its value between successive function calls. It is created and initialized the first time a function is called. In the next function call, it is not created again. It just exists.ExampleTake a look at the following example.void setup() { Serial.begin(9600); Serial.println(); } void loop() { staticFunctionDemo(); ...
Read More