Blinking LED using Atmega32 Microcontroller and Atmel Studio

Similar to printing 'Hello World' in C or C++, the very first step towards programming a microcontroller is Blinking a LED with a delay. Atmega32 is a very popular high performance 8 bit AVR Microcontroller. For this example project we need to use two registers DDR and PORT. DDR stands for Data Direction Register, it determines the direction (Input/Output) of each pins on the microcontroller. HIGH at DDR register makes corresponding pin Output while LOW at DDR register makes corresponding...

Introduction to MATLAB – Beginners Tutorial

MATLAB (Matrix Laboratory) is a forth generation high level programming language and interactive environment for numerical computation developed by MathWorks. It allows data analysis and visualisation, matrix manipulations, function plotting, developing algorithms, creating models and applications, interfacing programs written in other languages such as C, C++, Java and FORTRAN. Applications of MATLAB includes Communication Systems, Embedded Systems, Computational Biology, Digital Signal Processing, Computational Finance, Control Systems, Mechatronics, FPGA Design and Co-design, Test and Measurement, Image and Video Processing and Technical Computing. MATLAB as Calculator In the very...

Interfacing GLCD with PIC Microcontroller

I have already posted about Interfacing character LCD with PIC Microcontrollers. By using GLCD (Graphical LCD) we can present information in a better and user friendly way by using any patterns or shapes. Graphical LCDs are preferred where both character and graphical representation are required. Compared to Character LCD, GLCD is a bit complex and we need a powerful graphic library. MikroC PRO for PIC Microcontrollers provides powerful built in libraries for that. GLCD  MikroC Pro - Graphic LCD Library MikroC Pro for PIC Microcontrollers...

Generating PWM with PIC Microcontroller using CCP Module

PWM is a technique used to generate analog output signal using digital signals. It is commonly used to control average power delivered to a load, motor speed control, generating analog voltage levels and for generating analog waveforms. CCP Modules are available with a number of PIC Microcontrollers. CCP stands for Capture/Compare/PWM. Using PWM module is far more easier and cost effective than using extra chips for PWM generation.  MikroC Pro for PIC Microcontroller provide built-in library for PWM which makes our...

Interfacing Matrix Keypad with PIC Microcontroller using MikroC Library

I already posted about Interfacing Matrix Keypad with PIC Microcontroller with some user-defined functions. Advantages in using user-defined functions are we can extend it up to any number of keys and able to customise according to our application. The MikroC Pro for PIC Microcontrollers provides a library for working with 4*4 keypad. It can also be used to interface 4*3, 4*2 and 4*1 keypads. MikroC provides the following three functions to interface Matrix Keypad. Keypad_Init Keypad_Key_Press Keypad_Key_Click Keypad_Init Prototype: void Keypad_Init(void); It initializes a particular port for working with keypad. A global...

Using Internal EEPROM of PIC Microcontroller

There are commonly three types of memories in a PIC Microcontroller, Flash Program Memory, Data Memory (RAM) and EEPROM Data Memory. We write Programs in the Flash Program Memory of a microcontroller. Flash memory makes it possible to program a microcontroller many times before installing to device and even after the installation we can change the program. RAM Data Memory is used for storing data temporarily during program execution and it is volatile. That is, this memory is cleared when the power...

Interfacing Servo Motor with PIC Microcontroller

Servo Motor uses error sensing negative feedback to control the precise angular position. Servos are used for precise positioning in robotic arms, legs, RC Aeroplanes, Helicopters etc. Please read the article Servo Motor for more information about its working and construction. Hobby Servo Motors have three wires, two of them (RED and BLACK) are used to given power and the third one is used to give control signals. Servo can be easily be controlled using microcontrollers using Pulse Width Modulated (PWM) signals on  the...

Interfacing Stepper Motor with PIC Microcontroller

Introduction A Stepper Motor is a brushless, synchronous DC electric motor, which divides the full rotation into a number of equal steps. It finds great application in field of microcontrollers such as robotics. Please refer the article Stepper Motor or Step Motor for detailed information about working of stepper motor, types and modes of operation. Unipolar Motor is the most popular stepper motor among electronics hobbyist because of its ease of operation and availability. Here I explaining the working of Unipolar and Bipolar Stepper Motor...

>