Skip to main content

Posts

Showing posts with the label arduino

Use of Python in Electronics

Electronics and programming have always been closely connected. From simple LED circuits to complex industrial control systems, almost every modern electronic device uses some form of programming. Traditionally, languages such as C and C++ have been widely used in electronics, particularly for microcontrollers and embedded systems. However, another programming language has gradually become an important part of the electronics industry: Python . Python is known for its simple syntax, readability and extensive collection of libraries. What makes it particularly interesting is that it can be used not only for software development but also for electronic testing, hardware communication, data acquisition, automation, measurement analysis and much more. Today, engineers use Python to communicate with electronic instruments, collect data from sensors, test PCBs, communicate with microcontrollers and automate repetitive laboratory tasks. In this article, we will explore the different a...

How to connect SG90 Servo Motor with Arduino UNO

The SG90 micro servo is one of the most popular hobby servos used in robotics and automation projects. Here are its key details: Weight: ~9 g (very compact and lightweight). Operating Voltage: 4.8–6.0 V. Current Draw: ~100–250 mA under normal load, higher at stall. Rotation Range: ~0° to 180° (limited by internal mechanical stops). Control Signal: Pulse width modulation at ~50 Hz. 1 ms pulse ≈ 0° 1.5 ms pulse ≈ 90° 2 ms pulse ≈ 180° Wiring: Red → VCC (5 V) Brown → GND Orange/Yellow → Signal (Arduino digital pin) This servo is widely used in robot arms, pan-tilt camera mounts, RC planes/cars, and small automation projects because of its low cost and ease of use.     How to connect SG90 Motor to Arduino Uno Wiring connection SG90 Red (VCC) → Arduino 5 V (or external 5 V supply for stability). SG90 Brown (GND) → Arduino GND . SG90 Orange (...

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)...

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. W...