Skip to main content

Posts

How to control digital output with serial monitor in Arduino

Hello Friends, in this blog we will be controlling digital output with serial monitor command. First let’s understand the working of serial monitor. Serial monitor in Arduino IDE is a tool which allows communication between the computer and Arduino board via a serial connection, normally we use USB cable for connection. What are the features of Serial Monitor? It shows the data sent from the Arduino board by using the functions like Serial.print() or Serial.println(). It allows to send text or numeric data to the Arduino board, which can be read by function like, Serial.read() or Serial.parseInt(), thereafter you can use this data for further analysis and action. We can use this tool for debugging and monitoring the function of the sketch. There is a procedure to use the serial monitor, below are the steps given. First initialize the serial communication in the sketch as given below. Normally baud rate is set 9600.  Void setup(){          Serial.begin(9600); } Data can be printed on th
Recent posts

Difference Between Capacitive, and Transformer-Based Power Supply

In the world of electronics, power supplies are crucial in converting AC (alternating current) from mains power to a stable DC (direct current) required by most electronic circuits. Two common types of power supplies are capacitive and transformer-based . Each has its own set of characteristics, advantages, and disadvantages. In this blog, we’ll explore the differences between capacitive and transformer-based power supplies in detail.   1. What is a Capacitive Power Supply? A capacitive power supply is a type of power supply that uses a capacitor to drop the voltage from the AC mains. The capacitor, in combination with other components, reduces the input voltage to a lower value that can be used by low-power circuits. This type of supply is often used in small, low-power applications where isolation from the mains isn't a critical requirement. Working Principle The key component here is a non-polarized capacitor connected in series with the AC mains. The capacitor limi

How to Design 555 Astable Multivibrator

Understanding the Astable Multivibrator with the 555 Timer IC The 555 Timer IC is one of the most versatile and widely used integrated circuits in electronics. Among its various applications, one of the fundamental configurations is the astable multivibrator . In this blog post, we'll delve into the concept of the astable multivibrator, how to design one using the 555 Timer IC.   What is an Astable Multivibrator? An astable multivibrator is an electronic oscillator circuit that continuously switches between its high and low states without requiring external triggering. This makes it a perfect choice for generating a square wave signal, which can be used for various applications such as pulse generation, clock pulses, and tone generation.   555 Timer IC Overview The 555 Timer IC, developed by Signetics (now part of ON Semiconductor), is a highly reliable and easy-to-use chip capable of operating in various modes: astable, monostable, and bistable. For our purposes, we&

Python Data Types

Understanding Python Data Types with Examples Python is a dynamically typed language, meaning you don't need to declare the type of a variable when you create it. The type is automatically assigned based on the value you provide. However, understanding data types is crucial for efficient coding and avoiding bugs in your programs. In this blog, we’ll explore the various data types in Python with examples. 1. Numeric Data Types Python supports several numeric types, including integers, floating-point numbers, and complex numbers. Integers (int) : These are whole numbers without a fractional part. age = 25 print(type(age))   # Output: <class 'int'>   Floating-point (float) : These are numbers with a fractional part. height = 5.9 print(type(height))   # Output: <class 'float'>   Complex numbers (complex) : These consist of a real part and an imaginary part. complex_number = 3 + 4j print(type(complex_number))  

Arduino Game: Escape Lane

Hi Friends,  this is a Game, Escape Lane, made with Arduino. You can name it as per your wish😊 In this game an obstacle comes from the right-hand side towards the character, character has to avoid the obstacle to remain in the game. In this game I tried to give a human like shape to the character, you can try  something else as per your wish As the game advances, score increases accordingly. When the obstacle hits the character, game is over, and it asks to start the game by pressing Pin-12 Material Required 1. Arduino UNO: 1 No. 2. 16x2 LCD Shield: 1 No. 3. Toggle Switches or Push Button: 2 Nos. 4. Some Wires 5. USB Cable to Program Game Working 1. LCD shield is plugged in to the Arduino UNO 2. Input-12 is used to start the game 3. As game is started, obstacle starts coming from the right-hand side toward the character 4. Input-2 is used to control our character, up and down 5. There are two rows, with the help of this switch we can control the position of the character 6. When switc

Difference between Bootloader & Firmware Update

Updating the bootloader and updating the firmware in a microcontroller are two distinct processes, each serving different purposes and involving different steps. Here's a breakdown of the differences: Bootloader Update Purpose : The bootloader is a small program that runs before the main application. It is responsible for initializing the microcontroller and loading the main application firmware. Updating the bootloader might be necessary to add new features, fix bugs, or improve the boot process.   Process : 1.       Enter Bootloader Mode : To update the bootloader, the microcontroller must be put into a special mode. This often involves setting specific pins, pressing buttons, or using a specific command through an existing firmware interface. 2.      Communication Interface : The bootloader update typically uses a specific communication interface such as UART, SPI, I2C, or USB. 3.      Programming Tool : A dedicated programming tool or soft