Yash Sanghvi has Published 220 Articles

Compound operators in Arduino

Yash Sanghvi

Yash Sanghvi

Updated on 31-Jul-2021 13:34:22

286 Views

Compound operators in Arduino work just like in C, and they help save you some writing time, and also reduce the number of lines in your code. As the name seems to suggest, compound operators combine multiple operators.The following table lists the compound operators in Arduino.Assume that a and b ... Read More

Convert variables from one type to another in Arduino

Yash Sanghvi

Yash Sanghvi

Updated on 31-Jul-2021 13:32:41

2K+ Views

In order to convert variables from one type to another, you use the CAST operator. The syntax is −(type) var;Where var is the variable to be casted, and type is the new type to which you wish to convert it. For example, if you have a variable of type float, ... Read More

Arduino Uno vs STM32duino (Blue Pill)

Yash Sanghvi

Yash Sanghvi

Updated on 31-Jul-2021 13:29:57

3K+ Views

We will have a comparison of the specifications of Arduino Uno and the STM32 Blue Pill Board.Arduino UnoSTM32duino (Blue Pill)UnoSTM32 Blue PillGeneralDimensions2.08¨ x 0.9¨4¨ x 2.1¨Pricing$20-23$3-5ConnectivityI/O Pins1437PWM Pins615Analog In Pins610Analog Out Pins (DAC)--ComputingProcessorATMega328PSTM32F103C8T6Flash Memory32 kB64 kBSRAM2 kB20 kBEEPROM1 kB-Clock speed16 MHz72 MHzVoltage Level5V3.3VUSB ConnectivityStandard A/B USBMicro-USBCommunicationHardware Serial Ports13SPI SupportYes (1x)Yes ... Read More

Arduino Uno vs Teensy

Yash Sanghvi

Yash Sanghvi

Updated on 31-Jul-2021 13:26:47

1K+ Views

We will have a comparison of the specifications of Arduino Uno and the Teensy 3.5 board.Arduino UnoTeensyPlease refer to the table below for the detailed comparison −UnoTeensy3.5GeneralDimensions2.7¨ x 2.1¨2.5¨ x 0.7¨Pricing$20-23$25-28ConnectivityI/O Pins1442PWM Pins620Analog Pins625ComputingProcessorATMega328PMK64FX512VMD12Flash Memory32 kB512 kBSRAM2 kB256 kBEEPROM1 kB4 kBClock speed16 MHz120 MHzVoltage Level5V3.3V (though all pins are 5V ... Read More

Arduino Uno vs ESP32

Yash Sanghvi

Yash Sanghvi

Updated on 31-Jul-2021 13:22:10

2K+ Views

We will have a comparison of the specifications of Arduino Uno and the ESP32 DevKit v1 DOIT BoardArduino UnoESP32Please refer to the table below for the detailed comparison −UnoESP32GeneralDimensions2.7¨ x 2.1¨2¨ x 1.1¨Pricing$20-23$10-12ConnectivityI/O Pins1436PWM Pins616Analog Pins6Up to 18 *Analog Out Pins (DAC)2ComputingProcessorATMega328PXtensa Dual Core 32-bit LX6 microprocessorFlash Memory32 kB4 MBSRAM2 ... Read More

Arduino Uno vs Arduino Due

Yash Sanghvi

Yash Sanghvi

Updated on 31-Jul-2021 13:18:35

1K+ Views

We will have a comparison of the specifications of Arduino Uno and the Arduino Due BoardArduino UnoArduino DueUnoDueGeneralDimensions2.7¨ x 2.1¨4¨ x 2.1¨Pricing$20-23$40-42ConnectivityI/O Pins1454PWM Pins612Analog Pins612Analog Out Pins (DAC)-2ComputingProcessorATMega328PAT91SAM3X8EFlash Memory32 kB512 kBSRAM2 kB96 kB (split in two banks of 64 kB and 32 kB)EEPROM1 kB-Clock speed16 MHz84 MHzVoltage Level5V3.3VUSB ConnectivityStandard A/B ... Read More

Arduino Uno vs Arduino Nano

Yash Sanghvi

Yash Sanghvi

Updated on 31-Jul-2021 13:13:46

634 Views

We will have a comparison of the specifications of Arduino Uno and the Arduino Nano Board.Arduino UnoArduino NanoPlease refer to the table below for the detailed comparison −UnoNanoGeneralDimensions2.7¨ x 2.1¨1.77¨ x 0.7¨Pricing$20-23$20-21ConnectivityI/O Pins1422PWM Pins66Analog Pins68ComputingProcessorATMega328PATmega328Flash Memory32 kB32 kBSRAM2 kB2 kBEEPROM1 kB1 kBClock speed16 MHz16 MHzVoltage Level5V5VUSB ConnectivityStandard A/B USBMini USBCommunicationHardware ... Read More

Difference between hardware serial and software serial in Arduino

Yash Sanghvi

Yash Sanghvi

Updated on 30-Jul-2021 16:48:28

7K+ Views

A hardware serial, as the name suggests, denotes that a dedicated piece of hardware (UART) enables Serial communication. In Arduino Uno, for instance, pins 0 and 1 have UART support, and they are connected to the USB via a USB-to-UART converter. That facilitates communication between your computer/laptop and the Arduino. ... Read More

How to define a class in Arduino?

Yash Sanghvi

Yash Sanghvi

Updated on 30-Jul-2021 16:45:34

6K+ Views

You can define a class in Arduino just like in C, with public and private variables and methods.The example below demonstrates the definition of a Student class, which has the constructor, two methods (add_science_marks and get_roll_no) and 3 private variables, _division, _roll_no and _science_marks.Exampleclass Student {    public:     ... Read More

I2C/Wire in Arduino Uno

Yash Sanghvi

Yash Sanghvi

Updated on 30-Jul-2021 16:44:08

841 Views

I2C stands for Inter-Integrated Circuit. It is a popular communication protocol used by several peripherals like accelerometer and gyroscopes, OLED Displays, etc. Arduino refers to I2C as Wire, which is a shorter form of the term Atmel uses (Two Wire Interface or TWI). Here are some salient features of I2C ... Read More

Advertisements