5v relay and IR sensor interface 8051

What is Relay, IR sensor interface with 8051?


The relay is a switch like our home switch using light, fan, TV etc., single channel relay to use Light or fan or TV.


Relay Function:

Inside the relay have coil, low power circuit to operate high volts, it generates magnet filed then its Open and Close the relay.

It required diodes 1n4007, resistor and transistor BC547 or BC548. when giving power supply 5v need transistor BC547 or 12v to relay need ULN drivers for 4 channel relays. Remember need to see amps like 10amp, 20amp or 30amp, it will give lifetime to use.

5v relay, 12v relay and uln driver
5v 30Amp single channel Relay


If you want to do Relay project to ON and OFF the Light, then need to do that first prepare C code in Embedded language. By using Keil C51 software to do program in it. When doing the project need to concentrate the pins of microcontroller and resistors. use resistors like 1k, 220ohms or 330ohms.


When connection relay to microcontroller 8051 need BC547 transistor, it has three terminals one is Vcc, GND and output pin. based on requirement need to connect 5v to Vcc, Gnd and output pin its microcontroller in between put transistor middle pin. 1st pin is Vcc, 2nd pin connect to microcontroller or Arduino uno and 3rd pin is Gnd.


IR sensor Function:

IR sensor is an infra-red rays led, to detect the object or human hand it detects the light rays, how it reflects the rays, if happens any object, its Active if not No signal.

You can use it for counting seeds or apples with plenty, it's helpful the IR sensor. It's also had power supply 5v or 3.3v, GND and output pin.

IR sensor, infra red sensor and microcontrollers
IR sensor with Adjust frequency


It's also had Embedded C code by using Microcontroller or Arduino uno just change the pins or delay, need 2x16 LCD display.


You can adjust the frequency distance like 2cm to 5cm of IR sensor. You can do project on it to count the seeds.

If you want to know about 8051 microcontrollers, click it and 8051 Flash programmer of 8051 click it. We clearly given the topic on it.


Conclusion:

As per my understanding about the IR sensor and Relay, if you want clear understanding just to LED blink ON and OFF. just edit the program like Sbit LED = P1^0; change it as Sbit Relay =P1^0; You will get simple C code from internet by using Embedded C code of Light ON and OFF.


Latest Computer Stuff Kit Solutions of Topics 32.




Heat sink fan in computer

How to use Heat sink fan for processor?

They are four steps to know perfect about Heatsink Fan for system and CPU processors. Using different way like liquid heatsink fan for latest use.

Heatsink fan, Fan for processor and Thermal paste
Bottoms heatsink with thermal paste


Heat sink fan in computer:

It is use for processor cooling purpose, it's very important for processor like Pentium, dual core, core 2duo, i3, i5, i7 and i9 processors, simply to say to use processor overheat to cool the processor then we use heat sink fan, its name only we can understand, heat mean temperature like degrees to know, if not use the processor will damage.

Heat sink in computer:

It's very important for processor, when power on the system will check the fan is working or BIOS setup checks the CMOS battery, then after try to communicate with other co-processor or storage operating system.

i5 processor heatsink, heatsink and liquid copper
Front Fan with Heatsink fix


Now world best computer in market, which is sensor or based on temperature system will run best performance, best example 11th Gen i5 11400f processor, best motherboard used, when will give best performance the system.

Heat sink fan function:

Mainly using fan to be cooling the processor, with kept heatsink paste which is melt while heat the processor it observed the heatsink for a second or minutes then heatsink withhold up to 2 to 3 minutes after fan try to cool, fan wires have four, yellow, black, green and violet colors.

heatsink paste, latest processor and MSI motherboard
Side fan with Heatsink with wires


Without heatsink with fan, processor get shutdown because of overheat.

Heat Sink with Cooling Fan price:

In the market available between Rs.350 to 1500, based on system configuration, low value computer for basic use, you can use 350 rs. is enough for us.

High configures have between 500 to 2000rs.

Today in market available heatsink like Liquid water with copper and two fans, which give high end performance of processor.

It has different connections to motherboard, like MSI H510 M - A pro Motherboard it is use for 10th or 11th generation configuration system.

In motherboard have different components like resistor, capacitor, regulator, IC, BIOS, CMOS with different cool temperature based on Cabinet, some have fans alternative some are ventilation have.

Conclusion:

As per my suggestion is use latest like 11th generation motherboard and i5 or i7 processor is enough for use 3D Animation or video editing for short film or movies with eight GB Graphic Card and use heatsink normal Heatsink FAN or Liquid heatsink FAN.


Latest Computer Stuff Kit Solutions of Topics 26.


Latest Motherboard MSI pro configuration tips:

Video Editing software latest for HD or 4k or 8K output.

8051 flash programmer software

What is Flash Programmer in embedded system?

Today worldwide increasing the electronic components, which is friendly to use the embedded system, embedded is a fix the components once side, it will make the with human intervention, can do the task as we know it. If you want client they can explain the task to you, then you have to prepare the project.

for example, if a customer or client required for his home automation light on and off through Bluetooth, then you have to prepare for embedded project with the components and circuit diagram to it. You need tools like flash programmer to dump the C code of 8051 microcontroller.


What is Flash programmer?

The flash programmer is a dump the code into the AT89s52 Microcontroller project, which you need for your project. here required software tools like flash programmer executive file in Hex decimal format.

8051 embedded tips, flash programmer kit and AT89s52
Flash Programmer - ISP with USB.


Why we use flash programmer?

When we need the flash programmer is to prepare the c code with syntax of code, which apply the project, software requires for specific microcontroller, there are so many microcontrollers are they at around 2500 are there. the best microcontroller is AT89s52 is best for project need, it also budgets friendly to us.

Microcontroller tips, electronics items and embedded components
8051 Development board with ISP.


Which is best for project microcontroller?

There are so many microcontroller project kit available, my main intension is do self task. for example blink led on and off with short progam or code.

#include <Reg52.h>

Sbit LED = P1^0;

void main()

{


//store data here, give delay on and off


}



If you face problem on software, steps follow:

When doing program into the microcontroller, need to check first power supply or USB cable from PC or Laptop to Flash programmer. when connect or hook to head section of microcontroller need to check when putting into the development board with Flash programmer.

PCB of 8051 board, embedded project and Microcontroller
8051 Development board with power supply.


What is price for AT89s52 microcontroller budget friendly?

The AT89s52 AT (Atmel) microcontroller is price is Rs.65/-

other components like capacitor, resistor, crystal oscillator, led, bug sticks, female to female connectors, male to female connectors, flux, soldering iron, lead may be price @ 300 around of these components for microcontroller, other are like 5v 10amp relay single channel @ 95, 5v 30amp relay single channel @ 250/- based on quality of the product or components.




Latest Computer Stuff Kit Solutions of Topics 31.


8052 embedded system Keil C code tips.

2x16 LCD 8-bit mode Display for 8051 interface tips.


PC repair Network issue resolve

How to do PC or Laptop Network troubleshooting?

First check internet cable properly connected to PC or laptop. Whether had any loose connection or internet server down. How to fix network problem in windows. If these parts are running correctly, the next step is check on desktop task bar which have a small monitor icon available nearby date and time at the bottom right side of monitor.

network adapter driver windows, network diagnostics
Screenshot 1 | Troubleshoot problems

Second step: Go to near small monitor icon and then have to mouse right click it and select “Troubleshoot problems” option, then after one wizard will appear like as “Windows Network Diagnostics”. There will ask some important feature of our requirement.

how to fix network problem in windows, windows network diagnostics
Screenshot 2 | Network Diagnostics

My best option I will do, when I have faced the issues. It will ask you about of “What type of networking problems are you having”?

Windows network problems and solutions have tested your internet connection and verified that you are able to access some websites. Are you looking for help with a different issue?

First option: I’m trying to reach a specific website or folder on a network. If you are facing any problem with particular website, then take the http or https address line and paste it and press “Next” button to resolve the issue of a particular website.


Second option: I’m having a different problem. Show me other network troubleshooting options.


Here, you have to select this option any other option way to rectify the problem, and here you will get like as “Choose the networking issue to troubleshoot”, here three options available such as 1) Allow other computers to connect to this computer, 2) Connect to your workplace using Direct Access and 3) Use a specific network adapter (for example, Ethernet or wireless).


network adapter driver windows, manual settings in network
Screenshot 3 | Choose the networking issue

The above options of first one for if you have more than one computer or laptop to share the data from one computer to other computer, this kind of part to resolve the issue of select this option.


Second option for connect to your workplace means if you are facing problem any website does not access from the server than this option is useful to resolve the issue.


Third option is the best option. Who have PC or laptop in home or small business place?  Easily rectify the problem of this option.


If you select this third option, then you will appear wizard like as “Select the network adapter to diagnose”.   It will ask you that “If you’re not sure, select the last option in the list”. On your computer PC or Laptop have more than one LAN card or Ethernet, it will detect the LAN card or Ethernet like as “Local Area Connection”, Local Area Connection 2 and all network adapters.


how to fix internet connection on windows, local area connections
Screenshot 4 | Select the network adapter

If you know very well which LAN card, you have connected for internet or networking purpose than need to select appropriate option. If you don’t know the LAN card connection port on the motherboard which fixed on PCI slot, then better to select the last option as “All network adapter” and press Next button. After this you will get the information about internet or network or LAN card issue like as Network drivers or LAN card network adapter driver windows drivers not installed then must to install the drivers to overcome this issue.


Desktop troubleshooting:


while working in the computer, we will get some technical issue like as running slow, monitor issues, keyboard, mouse, CPU etc.


To resolve the issue such kind of problems comes.


PC repair, troubleshoot pc, Desktop and Networking tips
PC Desktop Image-1



Monitors issue comes then follow below the steps:

Software troubleshooting steps - If monitor not working properly such as getting black screen, no power light on or Screen shaking.


First step is having to check thoroughly the display cable or VGA cable once and VGA port pins check to computer properly.
Second step have to check thoroughly of VGA port pins, if any broken or bend the pins.


Third step check properly Power cables or chords connected correctly.


Fourth step check in motherboard once replace the RAM or take a cloth clean the RAM slots like as DIMM slots.


Processor issue comes then follow below the steps:

First step is when will get one beep and one long beep sound comes. It indicates the processor issue.


Second step is checking heat sink fan running or not, if not run then check fan power connection on the motherboard.


Third step is removing heat sink from the processor and check heat sink paste have or not. If not have then reapply new paste on the heat sink.


Fourth step is checking heat sink fixed property on the motherboard. There are four hooks have to fix it on the motherboard. If it is not properly fixed may not run booting the system.


RAM (Random Access Memory) issue comes then follow below the steps:

First step is when display or monitor gets black screen. It is the problem of RAM.


Second step is when getting monitor black screen, then once replace or clean the DIMM slot once and replace the RAMs.
Third step is if your RAM have two slots, need to take memory of RAM should be same.


Need not take different RAM memory. For example: 2GB both slots same memory on it (good condition). If different memory taken like as, one is 2GB other one is 4GB (bad condition) it's got few problems have to face after some days.


ROM (Read Only Memory) issue comes then follow below the steps:

First step is ROM is used for system booting setup. Basic troubleshooting, if you want operating system installation or format the system. First have to setup the CD ROM booting should be primary, and Hard disk should be secondary.


Second step is if your USB port pins not working then go to the BIOS setup (when starts the computer press DEL or F2) to go to the BIOS setup. There need to check the USB option selected as Disabled or Enable. If you want USB port pin required, then need to select Enable option and press F10 to save the setup in the BIOS system.


Third step is if your computer not working time properly, then check on the motherboard called as CMOS battery. It is a major help to resolve some problem or issue will over. Once replace the CMOS battery from motherboard and wait for few minutes when removed.


Latest Computer Stuff Kit Solutions of Topics 25.

OpenShot Video Editor tips

How to create video from OpenShot video editing Software?

Go to google and search bar type OpenShot video editing software, you will available the video editing software. It is very comfortable to use the video projects.

It is mainly useful for YouTube channel who create the channel, they can easily use this OpenShot video editing software.

You can create short film; movie can be helpful to make High-Definition quality video in this software. it has more features to use, when required high quality video, you can change the resolution from low to high, HD to 4k or 8k video quality.

 

video editing software, short film making and movies
OpenShot video editing tool - image-1

In the video editing software mainly for output video rendering, you need high quality of personal computer PC or desktop of your project, it can handle as per your requirement based on 3d modeling or animation computer system configuration required, we already given about the latest PC configuration tip.

 

Tracks sequency, video editing software and fps
OpenShot video sequency tip - image-2

Here, Now you can open the OpenShot Video Editing Software, when open the software application, first import the original video into OpenShot video editing software. here you need to give sequency wise, then only comes as per your need, then after edit the scenes with music and sounds effects.

You can change like undo, rename, fast speed or low speed of video frames. 

Next is tracks, if you want more you can add tracks, here you can use the as many for video editing using, text, sounds, translation, animate, etc.,

video editing software tips, HD 1080 hd fps and 24 frames
OpenShot output render video - image-3


Final step is output given project title name xyz and then, after change quality of video like HD1080p 24fps to 8k quality 30fps or 60fps, as you like, if you use high fps (frame per second), it will consume more space storage, it may be GB (Giga Byte).

Conclusion: As per my experience about the OpenShot video editing software is best for animation, short film with good HD 1080p 30fps using giving best quality of video with HD. Best to know about the video editing software you can refer screenshot of images video editing software.


Latest Computer Stuff Kit Solutions of Topics 24.


What is 2x16 LCD display in 2026

Best Embedded display of 2x16 LCD 8-bit.

The Embedded display is 2x16 LCD 8-bit mode Display, which is use for to know the value of the input and output. In the LCD display to know the value like calculator, addition, subtraction, Multiplication and Division.

You can go further details about 2X16 LCD 8-bit Display data sheet to know the dimensions of the device.

8051 Microcontroller, 2x16 LCD 8bit display, Embedded C
Front 2x16 LCD 8-bit Display Image-1

In the 2x16 LCD display have LED lights internal and external display. In the device have dot matrix black color led. it is designed systematical to use the device in our daily projects like, Microcontroller, Arduino uno etc., it is best choice for hobbyist or students.

In detail about 2x16 LCD 8-bit display have 16 pins, first to end ie.,16th pin.

1st and 2nd pin is GND and VCC

3rd pin is for contrast the display give 10K preset have 3 terminal 1 terminal for VCC another terminal for GND, middle pin is for LCD 2x16 3rd pin use.

4th, 5th and 6th pins for control and program to give access from Microcontroller or Arduino uno. like as RS, RW and EN these three command in Embedded C code. it has mentioned in program as Sbit RS=P3^0; Sbit RW=P3^1; and Sbit EN=P3^2, these three are very important. don't confuse here is have very critical. most important point in the embedded project.

Black light VCC and GND, Embedded C code
Back side 2x16 LCD Display image-2


7th to 14th is 8-bit data lines from the 2x16 LCD 8-bit display, it's had dateline from 8052 microcontroller to LCD Display. To carry data from microcontroller to LCD to display text like, "Hello World".

15th and 16th pin is for to glow the back light, then use these 15th pin as VCC and 16th pin as GND.

To know clear, understand the LCD, then we need to write Keil C code embedded.

Sample C code:

#included  <Reg52.h>

#define LCD P2

Sbit RS = P3^0;

Sbit RW=P3^1;

Sbit EN=P3^2;

void delay(unsigned int msec)   // Time delay funtion

{

 

int i,j ;

for(i=0;i<msec;i++)

  for(j=0;j<1275;j++);

}

               

void lcd_cmd (unsigned char item)   // Function to send command on LCD

{

dataport = item;

rs= 0;

rw=0;

en=1;

delay(1);

en=0;

return;

}

 

void lcd_data(unsigned char item)  // Function to send data on LCD

{

dataport = item;

rs= 1;

rw=0;

en=1;

delay(1);

en=0;

return;

}

void lcd(unsigned char str1[5])  // Function to initialize LCD

{

lcd_cmd(0x38);  //2 lines 5x38 matrix, 

lcd_cmd(0x0e);  //Cursor Blinking

delay(m_sec);

lcd_data_string(str1);

return;

}

It's just sample code looks like this for 2x16 LCD 8-bit Display, the above Embedded Keil C program, it has dump to Flash Isp programmer to dump into the Microcontroller or Arduino UNO.


Latest Computer Stuff Kit Solutions of Topics 30.



8052 Embedded system in 2026

What is 8052 Microcontroller with Keil C code?

The Microcontroller is a single chip, it's had family such as 8031, 8051, 8052 series family. first invented by Motorola, intel introduced 8031, without memory, next they introduced 4k rom.

The microcontroller has 40-pin Dip (Dual inline Pack) left side 20-pins, right side 20-pins, 40th-pin VCC and 20th-pin GND.

8052 Microcontroller, 8051 Development board, Single chip
Microcontroller Development Board Image-1


No need to buy 8051 Development board. You can try yourself; it's just simple way.

first step: Find the 8051 notches, then count left to bottom 20-pin and bottom to right 40-pin.

Here, have mainly crystal frequence 11.0592Mhz. if you have serial port then use baud rate purpose only crystal frequence 11.0592Mhz. if not have taken serial port, then consider the crystal frequence frequency is 12Mhz, for crystal frequence 11.0592 MHz, required two 33pf (Pico farad) one terminal to crystal frequence another terminal to gnd.

8051 40-pin IC, Xtal oscillator 11.0592Mhz and 33pf capacitor
40-pin Socket with AT89S52 Image-2

Second step: 9th pin should be Reset pin to run microcontroller smooth way; we need to consider the reset switch. Here, required 8k2 resistor and 10 micro farads by 16volts. if you want reset switch or may not as per your convenient.

Third step: In the microcontroller must high the 31st pin. if not do, your microcontroller will not work, hang or stop. It should be given to VCC (5V).

As we know four input and output ports are there, that is Port 0, Port 1, Port 2 and Port 3. Each port has 8-bit directional or unidirectional behave have. In these pins only we will edit in C code Keil software change pins or ports, such as LCD port (#define LCD P2) in header section.

LCD display for Embedded systems, Keil LCD program and 8051 Mc.
2x16 LCD 8-bit Display Image-3

If you want particular pin then need to type as Sbit means single bit from 8-bit I/o. in the program have to mention as Sbit = P1^0; like this you want to mention in the Keil C code. First need to give header such as #include <Reg51.h> then start the program to store in Memory which is use as 

#include <Reg51.h>

#define LCD P2

Sbit LED0 = P1^0;

Sbit LED1 = P1^1;

Void main()

{

int i, j;

While (1)

for (i=0; i<=100; i++);

LED0 == 0;

delay (50);

for (j=0; j<=100; j++)

delay(50);

LED1 == 1;

}

return 0;

}

The above is sample Embedded C code for hobbyist or student people.


Latest Computer Stuff Kit Solutions of Topics 29.

Blog traffic – how to increase traffic to website

Mobile Internet connection - Browsers like Google chrome, Mozilla Firefox.

Desktop or Laptop Troubleshoot - Monitor, Processor, Hard disk RAM and ROM.