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
How to read data from EEPROM in Arduino?
Arduino Uno has 1 kB of EEPROM storage. EEPROM is a type of non-volatile memory, i.e., its contents are preserved even after power-down. Therefore, it can be used to store data that you want to be unchanged across power cycles. Configurations or settings are examples of such data.ExampleWe will see how to read data from EEPROM in this example. We will be walking through an inbuilt example in Arduino. The EEPROM examples can be accessed from − File → Examples → EEPROM.We will look at the eeprom_read example. It is quite straightforward, thanks to the EEPROM library.We begin with the ...
Read MoreWhat is Arduino Ticker Library?
The ticker library in Arduino helps you to perform fixed interval operations. It is a great alternative to using delay() as the interval, since this will provide non-blocking usage. This library doesn't use any hardware timer interrupts. Rather, it works with micros() and millis() to organize your tasks. All you need to provide this library is the name of the function to be called, at what interval, and how many times this should be repeated. The library does the rest.ExampleIn order to install this library, open the Library Manager, and search for 'Ticker'. Install the library by Stefan Staub.Once the ...
Read MoreArduino IDE 2.0 – Using the Boards Manager
In Arduino IDE 2.0, the boards manager is present in the navigation panel on the left.It can also be accessed using Tools → Board → Boards Manager.If you open the boards manager, you can see that it allows you to download packages or cores, each containing one or more boards. For instance, instead of downloading only Uno, you download the 'Arduino AVR Boards' package, and this includes several other boards (like Mega, Leonardo, etc.) apart from Uno.Search for your board of interest, and click 'Install'The progress can be seen in the 'Output' tab at the bottom.
Read MoreInstalling a new library in Arduino IDE 2.0
The process of installing a new library in Arduino 2.0 is quite similar to the older versions of the IDE. While the library manager can be accessed using Tools → Manage Libraries, it is also available in the navigation panel on the left.The process ahead is quite straightforward. Search for the library of your interest, by typing in the search box, locate that library, and click Install!The IDE 2.0 prompts you if the selected library has any dependencies which aren't present, and asks you if you want to install these as well.You can choose the appropriate option, and see the ...
Read MoreHow to use the Autocomplete feature in Arduino IDE 2.0?
The autocomplete feature is a welcome addition in Arduino IDE 2.0. This addresses a major drawback of Arduino IDE when compared to other IDEs, like Eclipse of VS Code.In order to use the auto-complete feature, you first need to select your board (this feature doesn't work till the board is selected). Once that is done, the suggestions should start popping up as soon as your start typing characters, as per the documentation.However, in some cases, like on my machine, this doesn't always happen. In such cases, you can click Ctrl + Space for the suggestions to appear. Perhaps that is ...
Read MoreHow to Use a Serial Monitor with Arduino IDE 2.0?
In Arduino IDE 2.0, the Serial Monitor does not open in a popup window. Rather, it opens in a new tab at the bottom, besides the Output tab.The Serial Monitor can be accessed by Tools → Serial Monitor, or using the keyboard shortcut (Ctrl + Shift + M)The following figure highlights the various parts of the Serial Monitor.Note that because the IDE 2.0 is in the beta mode right now, the Serial Port may not be detected immediately. In some cases, you may need to restart the IDE for it to be detected.Similarly, the Upload button may not work sometimes. ...
Read MoreWhat is Leakage Flux and Fringing in Magnetic Circuits?
Magnetic Leakage or Leakage FluxThe part of magnetic flux that does not follow the desired path in a magnetic circuit is known as leakage flux.In most of practical magnetic circuits, the path of a large part of the magnetic flux is through iron part of the magnetic circuit and the rest part of magnetic flux flows through air. The magnetic flux in the air gap is known as useful flux $(\varphi_{g})$ since it can be used for various useful purposes.Consider a magnetic circuit having an iron core with a coil wound on it and having a narrow air gap. The ...
Read MoreWhat is a Singly-Excited System? How to Calculate its Electromagnetic Torque?
A singly-excited system is type of excitation system used in electromechanical energy conversion which requires only one coil to produce the magnetic field. In the singly-excited system, there is only one set of electrical input terminals and one set of mechanical output terminals. The examples of singly-excited system are electromagnetic relay, hysteresis motor, solenoid valve etc.In a singly excited system, a coil is wound around a magnetic core and is connected to a voltage source so that it produces a magnetic field. Due to this magnetic field, the rotor which is made up of ferromagnetic material, experiences a torque urging ...
Read MoreMutual Inductance with Dot Convention
When the EMF is induced by self and mutual inductance occur simultaneously, the relative polarities of these two induced EMFs must be determined before making any circuit calculations. The induced EMF in a coil due to mutual inductance may either aid or oppose the induced EMF due to self-inductance depending upon the sense of the windings and the directions of the currents in the coils.Dot Notation or Dot RuleThe dot rule or dot convention may be stated as follows −If both currents enter the dotted ends of the coupled coils or if both currents enter undotted ends, then the sign ...
Read MoreMagnetic Hysteresis Including B-H Curve – Importance of Hysteresis Loop
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 More