Electronics tutorials including microcontroller, microprocessor, programing and circuits. Intended for beginners, electronics hobbyists, college students, professionals and educational purposes.

Interfacing HC-SR501 PIR Motion Sensor with Raspberry Pi

All living beings radiate energy to the surroundings in the form of infrared radiations which are invisible to human eyes. A PIR (Passive infrared) sensor can be used to detect these passive radiations. When an object (human or animal) emitting infrared radiations passes through the field of view of the sensor, it detects the change in temperature and therefore can be used to detect motion. HC-SR501 uses differential detection with two pyroelectric infrared sensors. By taking difference of the values, the average...

Interfacing HC-SR04 Ultrasonic Sensor with Raspberry Pi

HC-SR04 Ultrasonic Sensor Ultrasonic distance sensors are designed to measure distance between the source and target using ultrasonic waves. We use ultrasonic waves because they are relatively accurate across short distances and don't cause disturbances as they are inaudible to human ear. HC-SR04 is a commonly used module for non contact distance measurement for distances from 2cm to 400cm. It uses sonar (like bats and dolphins) to measure distance with high accuracy and stable readings. It consist of an ultrasonic transmitter, receiver...

Using Switch with Raspberry Pi – Python

I hope that you already go through our tutorial, LED Blinking using Raspberry Pi. Detecting switch status is one of the basic step in learning Raspberry Pi GPIO operations. Here we using Python programming language. I hope that you already installed Python GPIO Library in your Raspberry Pi, if not please follow our first tutorial LED Blinking using Raspberry Pi. Raspberry Pi GPIO Pin Out Raspberry Pi GPIO layout Pull Up and Pull Down Raspberry Pi has internal Pull Up and Pull Down resistors which can be...

Custom Characters on LCD using PIC – MikroC

I hope that you already go through our tutorial, Interfacing Character LCD with PIC Microcontroller - MicroC Pro. These character based LCDs are commonly made using HD44780 compatible controllers. It allows us to define 8 custom characters in addition to the standard pre-programmed characters. In this tutorial we will learn to define our own custom characters using MikroC compiler. DDRAM, CGROM and CGRAM CGROM - Character Generator ROM This is the memory which holds 5x8 or 5x10 dot patterns of predefined characters in...

Using Raspberry Pi through VNC

Virtual Network Computing (VNC), is a graphical desktop sharing system used to remotely control a computer's desktop from another computer. It uses Remote Frame Buffer Protocol (RFB). It transmits keyboard strokes and mouse movement from the controller to the remote host and relays back the graphical screen updates from the host, over a network like Ethernet. Installing a VNC server like TightVNC on Raspberry Pi enables the user to remotely access the desktop of Pi and perform necessary operations. This is...

Accessing Raspberry Pi through SSH

SSH stands for Secure Shell. It is a secure channel created over an insecure network. The channel consists of a server and a client. This channel uses public key cryptography and can be used for secure transmission of passwords, remote log in, command execution etc.. SSH can be used when we cannot physically access the Raspberry Pi due to various reasons like the USB ports are engaged or the board is in a remote location. This method also minimizes hassle of...

Interfacing LCD with PIC Microcontroller – CCS C

In this tutorial we will see How to interface a 16x2 character LCD Module with PIC 16F877A Microcontroller using CCS C Compiler. 16x2 character LCD is a very commonly used LCD module in electronic projects and products. 16x2 means it can display 2 rows of 16 characters. It is a very basic and low cost module. Its other variants such as 16x1, 20x4 are available in the market. In these displays each character is displayed using 5x8 or 5x10 dot...

Interfacing LCD with Arduino Uno

16x2 character LCD display is a very basic LCD module which is commonly used in electronic projects. 16x2 means it can display 2 rows of 16 characters (columns). Its other variants such as 16x1, 16x4 etc are also available. These LCDs are usually made using HD44870 compatible controllers. In this tutorial we will see how to interface a 16x2 Character LCD display with Arduino Uno development board. Arduino provides built in libraries for interfacing HD44870 compatible LCDs. 16x2 LCD Pin Diagram In...

>