We already learn how to interface LCD and keypad to microcontroller. In this topic we cover some math calculation in C and build a function for calculating the basic parameter. This a simple calculator to display value. Here 4×4 matrix keypad is used. Our first goal is to display our fist digit and store in […]

Water level indicator indicates the level of water in a source. Let’s build a simple program that indicate the level of water of a reserve tank and auto full when the level of water is less than 25%. We use ULN2003A driver IC that we already introduce in stepper motor. Let’s look at the connection

Water Level IndicatorRead More »

A LCD display is nothing but a set of pixels. If any character sends to display it only glow the dot pixels that required. Standard alphanumeric LCD display can accept 8bit data bytes or 4bit nibble. In 8bit configuration all the bits of corresponding port is used and in 4bit configuration only four bits are

LCD InterfacingRead More »

Stepper motor is an electromagnetic device that converts digital pulses into mechanical shift rotation. It has high simplicity, since no brushes or contacts are presents, low cost, high reliability, high torque at low speed, and high accuracy of motion. Types of stepper motors- Bipolar Stepper Motor Unipolar Stepper Motor The bipolar motor is activated when

Stepper Motor ControlRead More »

The motion sensor can detect motion of an object. This motion sensor module uses the LH1778 passive infrared sensor and the BISS0001 IC to control how motion is detected. There are two variable register to control the sensitivity and time delay adjustment There are two operating mode in the PIR sensor. They are the Low

PIR SensorRead More »

Due to the persistence of vision our eye can’t distinguish what happen in TV. A full movie consists of numbers of pictures that move so fast that we can’t separate them. We will now make a program in which two 7 segment display on-off too fast that we will see a running digit. In the

illusionRead More »

I/O stands for Input/Output function. Example ATmega8 has 23 Programmable I/O Lines that can define as both input and output device. The I/O registers bellow- Let’s build our first program that content DDRx(Data Directions Register x) define the I/O initialization condition. If DDRx-> 1(set) the Output and DDRx-> 0(clear) Input. Conditional operator             expression

Relay ControlRead More »