Pages

Chapter 2.4 - Breadboard Microcontroller 8051 Mounting and Led Blinking-Practical Tutorial

Alright, we have thoroughly gone through the basic concepts required for this chapter. Also we have seen how to do implement the basic power stage on the breadboard. Which is really important for this setup. As mentioned earlier in the subchapter, we are going to connect the led to Port 1.0 of our microcontroller. Now, Gather all your supplies and lets start with mounting the 8051 microcontroller on the breadboard and blinking an LED.

1. As you can see in the following Image, We have directly mounted the microcontroller on it. Also make sure that the notch (a small u shaped symbol) must point towards the 7805 regulator direction. Make sure you have left enough space in front and backward direction.This extra left space will be used for future where we will mount other things further.
Breadboard Microcontroller 8051 Mounting and Led Blinking-Practical Tutorial
Breadboard Microcontroller 8051 Mounting and Led Blinking
2. Now, connect pin no 20 pin of microcontroller to the ground. Be careful with that don't put it in VCC, else it might get damaged.

Breadboard Microcontroller 8051 Mounting and Led Blinking-Practical Tutorial
Breadboard Microcontroller 8051 Mounting and Led Blinking

3. Now Connect the pin no 40 of microcontroller to VCC +5V as shown in the below image. The above gnd and this vcc will be power source for our microcontroller.

Breadboard Microcontroller 8051 Mounting and Led Blinking-Practical Tutorial
Breadboard Microcontroller 8051 Mounting and Led Blinking

4. Now Connect pin no 31 (EA bar/VPP) to +5v. This is connected so because EA means external access. When it is given gnd, it will indicate that program has to be run from external memory. But in our case, we are going to run the program from internal memory. So we will make it high.

Breadboard Microcontroller 8051 Mounting and Led Blinking-Practical Tutorial
Breadboard Microcontroller 8051 Mounting and Led Blinking

5. Now take the crystal oscillator (11.0592 Mhz) and place the legs of it between pin no 18 and 19 respectively. Don't worry about how it is placed since it doesn't have polarity. Just make sure you have placed it between specified pins only. Take a look at the picture for the reference.

Breadboard Microcontroller 8051 Mounting and Led Blinking-Practical Tutorial
Breadboard Microcontroller 8051 Mounting and Led Blinking

6.  Here is a closer picture of how you can place the crystal oscillator for 8051.

Breadboard Microcontroller 8051 Mounting and Led Blinking-Practical Tutorial
Breadboard Microcontroller 8051 Mounting and Led Blinking

7. When placed it would look like this below picture. Make sure you leave extra space on the left of the crystal oscillator as we are going to mount capacitors there.

Breadboard Microcontroller 8051 Mounting and Led Blinking-Practical Tutorial
Breadboard Microcontroller 8051 Mounting and Led Blinking
8. Now take a 33pf capacitor and place it between 19 pin of microcontroller and gnd respectively. Make sure that the pin is connected after the crystal oscillator, It would be a great placement if you could bend the legs at 90 degree to get a good placement and your breadboard will also look clean.

Breadboard Microcontroller 8051 Mounting and Led Blinking-Practical Tutorial
Breadboard Microcontroller 8051 Mounting and Led Blinking

9. Now place the other 33 pf capacitor in the same way you placed the first one. But between the pins 18 and gnd respectively. This would complete the circuit for crystal oscillator which will provide clock cycles to the 8051 microcontroller.

Breadboard Microcontroller 8051 Mounting and Led Blinking-Practical Tutorial
Breadboard Microcontroller 8051 Mounting and Led Blinking

10. After the placement, it would something look like the following picture. Try to place it cleanly.

Breadboard Microcontroller 8051 Mounting and Led Blinking-Practical Tutorial
Breadboard Microcontroller 8051 Mounting and Led Blinking

11. And your whole circuit would look like this. But wait, it is not completed yet. Lets continue.

Breadboard Microcontroller 8051 Mounting and Led Blinking-Practical Tutorial
Breadboard Microcontroller 8051 Mounting and Led Blinking

12. Now take 10k resistor and put it between pin no 9 and gnd respectively. Pin no 9 is reset pin which will be used to reset the microcontroller.

Breadboard Microcontroller 8051 Mounting and Led Blinking-Practical Tutorial
Breadboard Microcontroller 8051 Mounting and Led Blinking

13. After placing it, it would look something like this show in below image.

Breadboard Microcontroller 8051 Mounting and Led Blinking-Practical Tutorial
Breadboard Microcontroller 8051 Mounting and Led Blinking
14. Now take a 10uf capacitor and place the -ve terminal into pin no 9 and positive terminal into +5v power supply. See below image for reference.

Breadboard Microcontroller 8051 Mounting and Led Blinking-Practical Tutorial
Breadboard Microcontroller 8051 Mounting and Led Blinking

15. It will look like this from above. Make sure the -ve point where the resistor is connected and +ve point where capacitor is connected are not short.

Breadboard Microcontroller 8051 Mounting and Led Blinking-Practical Tutorial
Breadboard Microcontroller 8051 Mounting and Led Blinking

16. Now place the two pin tactical switch just above the microcontroller. This will be our reset switch.

Breadboard Microcontroller 8051 Mounting and Led Blinking-Practical Tutorial
Breadboard Microcontroller 8051 Mounting and Led Blinking

17. After placing it, it should look like the below image.

Breadboard Microcontroller 8051 Mounting and Led Blinking-Practical Tutorial
Breadboard Microcontroller 8051 Mounting and Led Blinking

18. Now connect the one end of tactical switch to vcc by joining it to pin no 40 of microcontroller 8051 as show in the following image.

Breadboard Microcontroller 8051 Mounting and Led Blinking-Practical Tutorial
Breadboard Microcontroller 8051 Mounting and Led Blinking

19. Now connect the second pin of microcontroller to the pin no 9 of microcontroller. In this way the reset circuit will be completed. Recheck the connections and also tally it with the circuit diagram as it is important else your circuit will not work.

Breadboard Microcontroller 8051 Mounting and Led Blinking-Practical Tutorial
Breadboard Microcontroller 8051 Mounting and Led Blinking

20. Now take a blue LED and bend their legs to 90 degree as shown in the below image. We are going to connect this led to our 8051 microcontroller.

Breadboard Microcontroller 8051 Mounting and Led Blinking-Practical Tutorial
Breadboard Microcontroller 8051 Mounting and Led Blinking

21. Now, cut the legs of the LED carefully because we do not want our LED bulb to look ugly on the breadboard.

Breadboard Microcontroller 8051 Mounting and Led Blinking-Practical Tutorial
Breadboard Microcontroller 8051 Mounting and Led Blinking
22. After cutting the legs, it would look like the following image.

Breadboard Microcontroller 8051 Mounting and Led Blinking-Practical Tutorial
Breadboard Microcontroller 8051 Mounting and Led Blinking

22. Now place the negative end of  LED to Port 1.0 or Pin no 1 of 8051 Microcontroller and the +v pin to the +ve line in the breadboard. Make sure you have connected anode to +ve and cathode to pin no 1. 
(Note : We have not used resistor here, since the blue led is capable to handle voltage of over +5V if you are using other color, make sure you use a resistor of value 270 ohm else the led will get damaged.
If you have difficulty differentiating between anode and cathode, the look at the led, the flat large surface is cathode and the the leg with thing surface is Anode)

Breadboard Microcontroller 8051 Mounting and Led Blinking-Practical Tutorial
Breadboard Microcontroller 8051 Mounting and Led Blinking
23. Congratulations..! We have just finished the circuit of Breadboard Microcontroller 8051 Mounting and Led Blinking. Now it needs some programming to blink that blue LED. Crosscheck all your connections, once you are satisfied that your connections are all good then jump to the next subchapter get the code and burn it in the microcontroller.

Breadboard Microcontroller 8051 Mounting and Led Blinking-Practical Tutorial
Breadboard Microcontroller 8051 Mounting and Led Blinking

Go8051 Tutorial

Go8051.com is a medium for hobbyist and enthusiasts to learn 8051 microcontroller from scratch on bread board.