Found 203 Articles for Arduino

How to Perform Basic Linear Algebra on Arduino?

Yash Sanghvi
Updated on 26-Jul-2021 11:51:54

1K+ Views

The BasicLinearAlgebra library helps represent matrices and perform matrix math on Arduino. To install it, search for 'BasicLinearAlgebra' in the Library Manager.Once installed, go to: File → Examples → BasicLinearAlgebra → HowToUseAs the name suggests, this example shows how to use this library. While the comments in this example do much of the explanation, here are a few pointers that help illustrate the use of this library −You need to include the library and define the BLA namespace before getting started, as all the functions are wrapped up inside the BLA namespace.#include using namespace BLA;A matrix is defined using ... Read More

Complex numbers operations in Arduino

Yash Sanghvi
Updated on 26-Jul-2021 11:50:26

656 Views

The Complex library by RobTillart helps perform complex number math in Arduino. In order to install this library, you can search for 'Complex' in library manager. The library can be found on GitHub. (Pay attention to the Readme. The library doesn't compile for Due and Teensy 3.5. A solution is provided there).Once installed, go to: File → Examples → Complex and open the complex.ino example.This example covers all the operations that you can perform with complex numbers. While the example is too large to reproduce here, here are a few points to note −Complex numbers are defined as Complex var(real, ... Read More

Serial Filtering Library in Arduino

Yash Sanghvi
Updated on 26-Jul-2021 11:44:30

1K+ Views

The Serial filtering library in Arduino helps you to apply some low pass filters and the median filter on any incoming data, to give you the filtered output. The GitHub repo of this library can be found here, and it is pretty detailed.In order to install the library, download the source code from GitHub, and place the 'Filter' folder in the libraries folder of Arduino (on Windows, the path is typically: C:/Users//Documents/Arduino/libraries)Once that is done, in the Arduino IDE, open File→Examples→Filter and pick an example of your choice (firFilter for example)As you can see, the code is quite straightforward.#include ... Read More

Fast Fourier Transform (FFT) on Arduino

Yash Sanghvi
Updated on 26-Jul-2021 11:41:01

9K+ Views

There are several libraries available which help you calculate the Fast Fourier Transform (FFT) onboard the Arduino. We will look at the arduinoFFT library. This library can be installed via the Library Manager (search for arduinoFFT).Once installed, go to: File→Examples→arduinoFFT and open the FFT_01 example.ExampleThis example first creates a sinusoidal wave with the frequency of 1000Hz (sampled at 5000Hz). It then windows this using a Hamming function. Later it computes the FFT, determines the frequency with the highest magnitude, and returns it as the fundamental frequency. If that value is close to 1000 Hz, this code works.Let's begin the code ... Read More

Gaussian Library Arduino

Yash Sanghvi
Updated on 26-Jul-2021 11:33:08

726 Views

The Gaussian Library by Ivan Seidel helps you implement Gaussian math, Kalman filters and moving averages in Arduino.To download this library, go to the Library Manager and search for 'Gaussian'. Install the library by Ivan Seidel.Once installed, go to: File → Examples → Gaussian, and open the GaussianRandomPlot example.ExampleNow, this example will seem overwhelming at first. Therefore, what I'll suggest is first running this example on your Arduino, and seeing the Serial Monitor output. I'll show it here.In summary, this code generates 20, 000 random Gaussian numbers, i.e., the numbers follow the Gaussian bell-curve distribution, and segregates them in different ... Read More

LinkedList in Arduino

Yash Sanghvi
Updated on 26-Jul-2021 11:26:29

2K+ Views

The LinkedList library by Ivan Seidel helps implement this data structure in Arduino. A linked list contains a set of nodes wherein each node contains some data, and a link (reference) to the next node in the list.To install this library, go to Library Manager, and search for LinkedList.Once installed, go to: File→ Examples→LinkedList and open the SimpleIntegerList example.Much of the code is self-explanatory. We include the library and create the object, specifying integer as the data type.#include LinkedList myList = LinkedList();Within setup, we populate the list with some integers, using the .add() function.void setup() {    Serial.begin(9600);   ... Read More

Getting help on Arduino Forum

Yash Sanghvi
Updated on 26-Jul-2021 11:22:37

484 Views

Often, you are stuck on somewhere and don't find any relevant help from a Google search. In such cases, you can post your question on the Arduino Forum and ask for help from the vast Arduino community out there. Please make sure that you are not posting any duplicate topics. It is good practice to first check that no topic similar to yours is already present.In order to get help on the Arduino Forum, first sign up for an account on https://forum.arduino.cc/.Once you log in, you will see this screen −Click "New Topic". The following window will open up.You need ... Read More

How to obtain the free RAM in Arduino?

Yash Sanghvi
Updated on 26-Jul-2021 11:20:46

2K+ Views

The Arduino-MemoryFree library can be used to obtain the free RAM within your Arduino. In order to use this library, install it first. The instructions to install a third-party library in Arduino are given here: https://www.tutorialspoint.com/using-a-third-party-library-in-arduinoOnce installed, go to: Files → Examples → Arduino-MemoryFree.ExampleAs you can see the BareMinimum example lives up to its name. It is very short indeed.#include ; #include ; // not needed for new way. but good to have for reference. void setup() {    // put your setup code here, to run once:    Serial.begin(115200);    // forced to be compiled into and ... Read More

Cron Jobs in Arduino

Yash Sanghvi
Updated on 26-Jul-2021 11:17:13

1K+ Views

The CronAlarms library in Arduino helps you set cron jobs in Arduino. If you aren't aware of cron jobs, they are scheduled tasks to be carried out at a fixed time interval. An example can be sending a health packet to a server every day at midnight.In order to install this library, search for CronAlarms in the Library Manager and install the library by Martin Laclaustra.Once installed, go to - File → Examples → CronAlarms.Open CronAlarms_example. If you go through the example, you will see that they are doing the following −Set the time to Saturday 8:29:00am Jan 1 2011, using ... Read More

ArduinoJSON: Filtering Data

Yash Sanghvi
Updated on 26-Jul-2021 11:06:53

569 Views

The ArduinoJSON library, as the name suggests, helps you work with JSON objects on Arduino. In order to install it, go to the Library Manager and search for ArduinoJSON. Install the library by Benoit Blanchon.This is one of the very heavily documented libraries. In fact, it has its own website − https://arduinojson.org/. You can find answers to several questions on this website.In this article, we will look at how to filter data from a larger JSON and produce a smaller JSON.Once you download the ArduinoJSON library, go to: File→Examples→ArduinoJSONExampleThe example we should look at is the JsonFilterExample. The code is ... Read More

Previous 1 ... 3 4 5 6 7 ... 21 Next
Advertisements