What is TWI? TWI stands for Two Wire Interface. We previously learn about segment display (SSD). SSD require many GPIO pin that could be used for any other purpose. We can use only 2 wires for up to 6SSD display at a same time. So only 2GPIO pins can be used for controlling up to […]
Category: I/O Port Operations
The DS18B20 Digital Thermometer provides 9 to 12-bit (configurable) temperature readings which indicate the temperature of the device. Information is sent to/from the DS18B20 over a 1-Wire interface, so that only one wire (and ground) needs to be connected from a central microprocessor to a DS18B20. Power for reading, writing, and performing temperature conversions can
DS18B20(Digital Temperature Sensor) interfacing with GPIORead More »
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
Here the RAWs R0 to R3 are connected to the input lines of µC and C0 to C3 are connected to output terminal of the output port. The inputs are active when logic zero that is internal pull up active and the column port are high at that position. The logic is the output port
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
We previously learn about LCD display. In this article we build our own custom character. A standard alphanumeric LCD display has CGRAM area to create user defined patterns. To build a custom pattern we need to write values to the CGRAM area defining which pixel to glow. The values are to be written in the
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
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
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
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