Articles on Trending Technologies

Technical articles with clear explanations and examples

Change board selection in Arduino IDE

Yash Sanghvi
Yash Sanghvi
Updated on 23-Mar-2021 1K+ Views

Changing the board is quite straightforward in Arduino IDE. You need to go to Tools -> Board.The list of available boards opens up. You can select the board of your choice. Once selected, you can verify that the Board name has changed in Tools -> Board.Please note that each board comes with its own set of settings. For instance, when selecting the Arduino Nano board, you can also configure the processor. Please read the datasheet of your board to figure out the correct settings for your board. In most cases, the default cases work well.

Read More

How to export the binary file of a code in Arduino IDE

Yash Sanghvi
Yash Sanghvi
Updated on 23-Mar-2021 6K+ Views

Sometimes, you need to export the compiled binary of your code for sharing with colleagues, or for programming your board using some other programmers like ISP programmer, or for OTA (Over-The-Air update) purposes. This exported binary (actually hex file for Arduino boards) will contain not only your application code, but also the source code of the dependencies in the hex format. The way to export this binary is the following −Go to Sketch -> Export Compiled BinaryNow, navigate to the folder containing your sketch (your .ino file). You can use Sketch -> Show Sketch Folder for navigating to the sketch ...

Read More

How to program a board using Arduino IDE

Yash Sanghvi
Yash Sanghvi
Updated on 23-Mar-2021 463 Views

In order to program a board using Arduino IDE, first make sure that the correct board is selected in Tools -> Board, and also make sure that the board is connected to your machine and the correct COM Port is selected.Once you've done the basic verifications, you can click on the Upload button on the top left.Alternatively, you can click on Sketch -> Upload.Make sure that you don't select the Upload using Programmer option if you are trying to upload the sketch using the USB. Upload Using Programmer option has to be used when you use an external programmer to ...

Read More

How to compile code using Arduino IDE

Yash Sanghvi
Yash Sanghvi
Updated on 23-Mar-2021 4K+ Views

There are two ways to compile code using the Arduino IDE.You can click the tick-mark button at the top-left. That will begin the compilation.Alternatively, you can go to Sketch -> Verify/ CompileThe compilation progress will be shown at the bottom of the screen.If you'd like to see Verbose print statements at the bottom when the compilation is in progress, you can go to File -> Preferences and click on the Show Verbose Output during Compilation checkbox −Below that, you can also define the kind of compiler warnings you wish to receive. Click OK after you are done with the settings. ...

Read More

Check if the board is connected or not in Arduino IDE

Yash Sanghvi
Yash Sanghvi
Updated on 23-Mar-2021 6K+ Views

In order to check if your board is connected to the Arduino IDE, you can go to Tools -> Port. It should show all the available COM ports.Now, you can disconnect your board. If one COM port disappears, then you can be sure that your board was connected and detected by the Arduino IDE.This practice also helps you identify the correct COM port corresponding to your board, when multiple COM ports are available. In case your board is not getting detected, there maybe some issues with the USB Drivers. On Windows, you can open Device Manager, and open Ports (COM ...

Read More

Add new header files in Arduino IDE

Yash Sanghvi
Yash Sanghvi
Updated on 23-Mar-2021 2K+ Views

Sometimes, you may feel the need to define your own custom header files, for organizing your code better. Say you want to create a global_variables.h file for storing all your global variables.You can create the file within Arduino IDE by clicking on the bottom arrow at the top right of the screen, and selecting 'New Tab'. (Alternatively, you can press Ctrl+Shift+N on your keyboard)Name your file in the prompt and press OK.The new file gets created, and can be found in your Sketch folder.In order to include this file in your main .ino code, you can simply add the following ...

Read More

Get Source Codes of Libraries that come with Arduino IDE

Yash Sanghvi
Yash Sanghvi
Updated on 23-Mar-2021 4K+ Views

Sometimes, you are just curious to know where the source files of Arduino are hidden. In other words, from where does Arduino know what to do when you write Serial.print(). Or where are the source codes of various libraries like SPI or Wire are stored.The Arduino Source Code files can be accessed by going to the directory containing your Arduino Software. On Windows, you can type Arduino in the start, right-click on Arduino and click on 'Open File Location'. If this opens a shortcut icon, you can right-click on the shortcut icon and again click on 'Open File Location'.This will ...

Read More

See inbuilt examples in Arduino IDE

Yash Sanghvi
Yash Sanghvi
Updated on 23-Mar-2021 530 Views

To see inbuilt examples in Arduino IDE, follow the steps given below −Step 1: Go to File.Step 2: Click Examples from the dropdown menu.Step 3: Select the relevant example from the category of your interest.If you add separate boards like ESP32 to your Arduino IDE, you can also see examples specific to that board, if you've selected that board from Tools -> Board

Read More

Serial Plotter in Arduino

Yash Sanghvi
Yash Sanghvi
Updated on 23-Mar-2021 827 Views

The Serial Plotter is available in Arduino Versions 1.6.6 and above. It is a handy tool for visualizing rapid incoming data, say from a sensor. With Serial Monitor, you may not be able to register the changes in the data, especially if the data is changing too quickly. Serial Plotter will visually show you the changes. What's more, the Serial Plotter can also plot multiple values at a time. I think an example will best explain this.Have a look at the code below. We are generating random numbers, but these could very well be readings from Analog or digital sensors.Examplevoid ...

Read More

View Serial Output in Arduino

Yash Sanghvi
Yash Sanghvi
Updated on 23-Mar-2021 7K+ Views

In order to view Serial output (basically see whatever is printed by the device using Serial.print() or its variants), you can use the Serial Monitor built into the Arduino IDE.First connect the board to the Arduino IDE. This should show a new COM port in Tools -> PortIn case you see multiple Serial Ports, it will be a good idea to disconnect your board and see which port disappears. That way, you can identify the port corresponding to your board. Once you have selected the correct Port, click on Tools -> Serial Monitor or press Ctrl + Shift + M ...

Read More
Showing 50061–50070 of 61,297 articles
Advertisements