Skip to main content

Introduction to Microcontrollers.

We often come across these tiny electronic components in our day-to-day life. These small Integrated circuits have many applications ranging from your Coffee maker to the ATM machines. This blog will be more of an introduction to the world of embedded systems.


The term Microcontroller can be understood just by understanding its two components i.e Micro which resembles small size and controller which can be anything used to control/provide instructions to other components. So an MCU(microcontroller unit) is a chip which can be used to control various other components such as sensors, relays, Led’s etc.
Imagine a scenario in which many people are traveling in a bus. There are several locations where any one person may leave the bus and the tickets for different locations are at varying prices. So the Conductor of the bus is responsible for providing the tickets to all the passengers and telling the driver when and where to stop the bus so that the person may leave. So the conductor here takes input from the passengers like destination, preferred seat etc and provides them tickets. Moreover, the conductor gives instruction to the driver also. Hence this analogy is very suitable for a typical embedded system and the conductor here is the MCU and the passengers may be different sensors, buttons, and the driver can be Actuators, LED's etc.
An embedded system is an electronic system designed for a specific purpose. The main component of such a system is the Microcontroller. A typical microcontroller can be defined as a microprocessor with some memory and many peripherals). Since the MCU must be able to control some external component there must be a dedicated hardware line for such usage. These general purpose lines are termed as General Purpose Input/Output lines or the GPIO’s.
The flexibility of an MCU lies in the fact that it can be programmed i.e we can give it instructions to perform certain operations. For example, we can program any MCU to make its GPIO line go LOW i.e to provide logic 0 as output. So these GPIO’s can be used to provide outputs to an external component such as Led. This operation of blinking Led’s is the simplest program that can be written for any MCU and is often the first program which a beginner writes and is equivalent to the “Hello, World!” in Software domain.
All the microcontrollers/processors or other digital circuitry understand only the digital language which is often termed as the Machine language. In the earlier days, the instructions were passed by physically switching between HIGH and LOW but as the systems became complex programming an MCU by using the machine language was next to impossible so the assembly language came into existence. The assembly language was more user-friendly and readable but there was still a need for another high-level language and this is when The C programming language comes into play. This is basically a high level of abstraction but at last the c code is converted into machine code so that any MCU can understand the instructions.
In the upcoming blogs, we will dig deeper into the various terms used above such as the GPIO’s and C programming. Until then you can read more about the History of computers, MCU’s and various programming languages to develop more interest in the World of Electronics!

Comments

Popular posts from this blog

Let's Build a Music Player!

Digital Music Player's are one of the many sensational devices that were developed in the 20th century. They have been around for a while now and have become a part of our life. In the last few years, they have been integrated within Smart Phones and hence, have reached the masses. Now, Let us try to dive into knowing how these devices work and I guarantee that we all would be fascinated by the kind of engineering which goes into making these magic boxes. There are various topics which must be covered in order to build our own music player and so there will be several blogs to build a SOUND foundation. Now let us make a list of the required components and then we will walk through each of them in the upcoming blogs. There are 3 basic parts which are required to build a device which can output Audio:- Storage Medium. Micro-controller. Audio Output device. We will store the required music file onto a storage medium as the onboard memory on a microcontroller is low...

SD-CARD

This Post marks the beginning of our quest to develop a simple Music player. SD stands for Secure digital and these small devices have been around for a while now. They contain flash memory and a memory controller which is given instruction by the main MCU. So our main objective here is to understand how sd cards work and how to interface them with a microcontroller. As to understand the working of SD card we need to dive into the world of transistors and bits! The Sd card contains solid-state memory also known as the flash memory which is a type of EEPROM i.e  Electronically Erasable Programmable Read Only Memory .  Flash memory stores information in an array of memory cells made from  floating-gate transistors . These transistors are used in different topologies as to store each bit. We will not program each bit individually as it will be time-consuming as well as an inefficient way to store the data. As to move to a higher level of abstraction, we need a way to ...

Automated Outdoor Lighting

This Project enables a person to make any Outdoor Lighting Automated i.e to switch On/Off according to the sunlight outside. If it is dark outside then the light will turn On and if it is daytime then it will automatically switch Off. This can be very useful for all Outdoor Lighting of various commercial buildings as well as for residential buildings. This can also be implemented in Vehicles which will automatically turn their lights On.  Our aim can be achieved by designing a proper transistor circuit and using a relay with it to control the high voltage network. T he Requirements Are: 1:- Bipolar Transistor(Bc 547) 2:-5/6v Spdt Relay 3:-Resistors(Around 4.5k And 3k Ohm) 4:-Light Dependent Resistor 5:-5v Power Supply 6:-Pcb For Soldering Things Together 7:-Multimeter          CIRCUIT AND EXPLANATION The project involves the use of a transistor as a switch to make the outdoor light on/off. As we know that transistor can be used in three diffe...