Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Yash Sanghvi has Published 192 Articles
Yash Sanghvi
10K+ Views
In order to print hexadecimal equivalents of numbers or characters, adding 'HEX' as the second argument of Serial.print() will be sufficient.The following code demonstrates this −Examplevoid setup() { // put your setup code here, to run once: Serial.begin(9600); Serial.println(); Serial.println(75); Serial.println(75, HEX); Serial.println('A'); ... Read More
Yash Sanghvi
870 Views
To print plain text on the Serial Monitor, the Serial.print() function can be used.In order to use this function, Serial needs to be initialized first (in the setup preferably). A typical implementation is shown below −Examplevoid setup() { // put your setup code here, to run once: Serial.begin(9600); ... Read More
Yash Sanghvi
2K+ Views
In order to add time delays in Arduino, you can use the delay() function. It takes as an argument the value of the delay in milliseconds. An example execution is given below −Examplevoid setup() { // put your setup code here, to run once: Serial.begin(9600); } void loop() ... Read More
Yash Sanghvi
2K+ Views
If you wish to program your board using the USB Cable, then you don't need to make any changes in the default settings. Read further only if you have an external programmer. If you do wish to program the board using an external programmer, you can select the programmer of ... Read More
Yash Sanghvi
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 ... Read More
Yash Sanghvi
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 ... Read More
Yash Sanghvi
439 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 ... Read More
Yash Sanghvi
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 ... Read More
Yash Sanghvi
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 ... Read More
Yash Sanghvi
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 ... Read More