Saturday, June 6, 2026

What have learned from Embedded systems of 8051

How to use LED bulb with battery?

The LED bulb using for vehicles, home or office use streetlights also use, we go little bit normal using of LED bulb or DC motor with 1.5v to 5volts by using other components like 8051 Microcontroller IC.

We learn in school about True or False in Math's, like Conjunction, Disjunction etc., one means True and zero means False. In computer language is 1 and 0, called as bits, 4 bits is nibble and 8 bits is one byte.

Microcontroller 8051, Embedded C tips, Electronics tips
Green LED Bulb Glowing - 9v battery


To easily understand binary to machinery language such as Octal or Hexadecimal binary codes like 1111 4bits is "F" 0000 4 bits is "0".

The same concept in Microcontroller 8051 have four 8-bit ports are available, you can do any task by sing these four ports, if you want blink light take 4 LED bulb red color and 4 LED bulb green color or DC motor using H-bridge IC to control from Microcontroller 8051. Try to blink alternate you need to write program in Embedded C code, by using software like KEIL C51 software. From basic for beginners can do first take one Green LED and connect to battery like 1.5v to 9volts, 1.5 volts is enough for Green LED to glow the bulb.

Electronics motor, DC motor tips, Embedded Code
DC motor small - 9v battery


In circuit board like 8051 Development board use LED light to indicate power is ON or OFF. Using microcontroller 8051 have four 8-bit ports, take Port 1 have 8-bit pins, you can write a code to blink the LED lights, you need 1k resistor to give life span for LED bulb.

In Embedded C code or program have to write as #include <Regx51.h> is a header file for microcontroller 8051, presently in Market good microcontroller is AT89S52 is enough for your project kit in Embedded system.

 

For example:

#include <Regx52.h>

Sbit P1^0;

Sbit P1^1;

upto Sbit P1^7;

you can use some Delay function as int i, j (i=0; i<=1275; i++) {J=0; j<1000; j++)}

 

int main ()

while {

P1=0xff /*to ON to glow blub

Delay (1000);

P1=0x00 /*to OFF the blub

Delay (1000);

}

The above Embedded C code or program is a sample for understanding the concept of Microcontroller 8051 program fetching input and output pins connecting to LED bulb with 1k resistor.

}

Conclusion:

As per understanding the concept of LED glow the bulb with 9v battery but the life span is in minutes or second why because power is too high, you can use 1.5v battery is enough for small LED bulbs. You can do experiment on 8051 microcontroller IC, how it will work with Embedded C code or program. To understand the Memory in microcontroller like General purpose, bit addressable, registers bank0, bank1, bank2 to temporary use the code or memory.


Latest Computer Stuff Kit Solutions of Topics 56.


How to use Proteus software for Embedded Systems?

How to use Arduino UNO and programming?