Yash Sanghvi has Published 192 Articles
Yash Sanghvi
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 ... Read More
Yash Sanghvi
508 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 ... Read More
Yash Sanghvi
803 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 ... Read More
Yash Sanghvi
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 ... Read More
Yash Sanghvi
305 Views
In order to download a new library, go to Tools -> Manage LibrariesSearch for the library of your interest in the window that opens up. Click on the desired library, and click Install.This will Install the library and you will be able to see the example specific to the library ... Read More
Yash Sanghvi
640 Views
To add a new board in Arduino IDE, go to Tools -> Board -> Boards ManagerIn the window that opens up, search for the board of your interest, click on that board, and click on the 'Install' button. You can even choose to install an earlier version of the board ... Read More
Yash Sanghvi
4K+ Views
Formatting the code is quite important to make it readable. It is recommended that you properly format the code regularly, and especially before sharing it with someone else.Follow these steps to auto-format code in Arduino IDE −Go to ToolsClick on Auto FormatAlternatively, you can press Ctrl+T on your keyboard. This ... Read More
Yash Sanghvi
8K+ Views
In order to change the baud rate of the Serial Monitor, go to Tools -> Serial Monitor (or press Ctrl+Shift+M alternatively).Make sure you have a board connected to your PC/Laptop, or the Serial Monitor won't open. Also, make sure that the Port corresponds to the connected board.Once the Serial Monitor ... Read More
Yash Sanghvi
268 Views
There are 6 types of constraints that can be generally used with a PostgreSQL table. They are listed and explained below −NOT NULL CONSTRAINTThis is a very common constraint. If there is a particular column that cannot have null values, you add this constraint at the time of table creation. ... Read More
Yash Sanghvi
3K+ Views
Although quite infrequent, you may come across situations wherein you need to define the primary key on an existing table. This can be achieved using the ALTER TABLE statement.The syntax is −ALTER TABLE table_name ADD PRIMARY KEY (column_name1, column_name2, …., columns_nameN)As can be seen from the above syntax, you can ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP