I2C fundamental

I2C( read as I square C) bus first introduced by Philips. Because of its simplicity and flexibility the I2C bus has become one of the most microcontroller bus system used for interfacing various IC. The I2C bus use only 2 bidirectional data lines for communicating with the microcontroller and the I2C protocol specification can support […]

RFID Card Interface

Some time we need a square door lock or entry for security reasons. RFID card has a unique ID with 1Kb ram. We can write or read from the memory block. Let’s look at the package that available in market- The MFRC522 is a highly integrated reader/writer IC for contactless communication at 13.56MHz. Since on

RFID Card InterfaceRead More »

Graphical LCD

The TFT module is a 128*160 matrix, controlled by the onboard Sitronix ST7735 controller IC. It is a low cost faxable LCD module. TFT stands for Thin Flim Transistor which is a display screen technique used in LCD (liquid crystal display). An active component that serves as a switch for each pixel to be switched

Graphical LCDRead More »

In this article we increase I/O port with the help of IC MCP23S17 which has 16-bit remote bidirectional I/O port with High-speed SPI interface (10 MHz). Let’s look at the Control register for addressing mode- One register (IOCON) is shared between the two ports. The PORTA registers are identical to the PORTB registers, therefore, they

Increasing I/O Port (MCP23s17)Read More »

The 74HC595 device has 8bit serial in parallel out shift register that feeds directly to the 8bit D type storage register. The 8bit serial shift register has its own input clock name SH_CP. The D latch 8 bit registers use pin named ST_CP for latching the 8bit shift registers output to D latch output registers.

8bit shift register (74HC595)Read More »

12Bit ADC(MCP3208)

Sometime 10bit ADC is not enough for precious calculation. In that case we have 12bit ADC i.e. MCP3208. SPI Configuration Here B11-B0 is the 12bit ADC value. Thus the operating logic consist of MCP3208 consists of following steps- Let’s use two function one is only write and other is read-write. So the full user-defined function

12Bit ADC(MCP3208)Read More »

Flammable Gas & Smoke Sensor- It is suitable for detecting the H2, LPG, CH4, CO, Alcohol or Propane. MQ3 sensor can sense LPG, CO, Smoke etc. For MQ3 sensor if the concentration is high the resistance decrease, if the concentration is low the resistance increase.    D0 : Indicates the presence of combined gases D0

Smoke Sensor MQ3 SensorRead More »

Current Sensor

ACS712 is a hall effect-based linear current sensor that can measure both AC and DC current. Let’s look at the connection and steps to interface. For a unipolar supply voltage, it nominally remains at VCC⁄ 2. Thus, VCC = 5 V translates into V IOUT(Q) = 2.5 V. So for 0A the reference voltage is

Current SensorRead More »