FAB LAB Khairpur Sukkur IBA Sukkur IBA University
Merit, Quality, Excellence

Week - 12

Output Devices

Assignment

Group Assignment

Power Consumption

Programming

The input voltage is 12 volts.

Programming

The current drawn by a simple DC motor is 89.2mA.



Individual Assignment

An output device is any piece of computer hardware equipment which converts information into human-readable form.It can be text, graphics, tactile, audio, and video. For my final project I need ultrasonic sensor as input devices and LCD ,buzzer as output device.So I decided to work on my final project board.I am using ESP32 controller for my project.I started working on design.

LCD(Liquid Crystal Display)

A liquid-crystal display (LCD) is a flat-panel display or other electronically modulated optical device that uses the light-modulating properties of liquid crystals combined with polarizers.Liquid crystals do not emit light directly,instead using a backlight or reflector to produce images in color or monochrome. 16x2 LCD contain 16 pin,which include GND,VCC,data pins,enable,read/write pins.

navigate to folder


This LCD's working voltage ranges from 4.7 to 5.3 volts. It has two rows, each of which can contain 16 characters. With no backlight, the current consumption is 1mA. A 588 pixel box can be used to create any character. Alphabets and numbers are displayed on alphanumeric LCDs.

LCM-SO16O2DTR/M Pin Out:

In our FAB inventory we have LCM-S01602DTR/M 16 X 2 LCD display.The 16 X 2 LCM-S01602DTR/M pin out is shown below.

navigate to folder


This is the back side of lcd where two inital pins 15,16 are No Connections

Install the LCD display library to Arduino:

navigate to folder


Programming:

you can find example for the library, if you see through the following picture.

navigate to folder


This is the Arduino Program for output display any thing.

To include the library
#include

defining the pins which need to connect to the ardiuno board
Const int rs= 5, en =4, db4 =0, db5 = 1, db6 = 2, db7 = 3;
liquidcrystal lcd(rs, en, db4, db5, db6, db7)
where RS is reset pin en is enable pin and db are data pins which can be changed

To define the lcd number of colums and rows
because i am using 16X2 lcd so i defined as
lcd.begin(16, 2);
To set what massage show to screen
lcd.print("mansoor ahmed");

To set cursor we define colum and line
lcd.setcursor(0,1)
As seen below in image.

navigate to folder


This is final output of my board which is showing output on display

navigate to folder


This circuit was designed and built during week 10. link


Buzzer

The PIEZO Buzzer is a small but effective component for adding sound to our project or device. Its lightweight and compact 2-pin construction allows it to be used on a breadboard, a Perf Board, or even a PCB, making it a popular feature in most electronic applications.

Buzzer's Applications

Alarming Circuits, where the user has to be alarmed about something Communication equipment Automobile electronics Portable equipment due to its compact size

navigate to folder



Seven Segment

In general, there are two types of seven segments; one is known as the common anode and the other as the common cathode.

navigate to folder


As seen in the figure above, there are two com pins. If the 7 segment is normal anode, the com pin should be 5 volts, and any segment I choose to turn on should be GND. One of the segments forms a closed circuit, causing the segment to light up.

navigate to folder


navigate to folder


Control Servo with an RFID Tag

I'll use a solenoid lock as an output device in my project, however because the lock isn't available, I'll use a servo motor to place of Solenoid lock. The rfid module is used in my project.

Import library

Programming

Go to files, examples, MFRC22, and Dumpinfo after downloading the library.

Programming

GO to tools then click on Serial monitor.

Programming

Scane your Tag card. here ID data can be seen.Copy uid card code

Programming

Put your uid card number in this box.

Programming

Once the programme has been uploaded, the tag will be placed to see if access has been refused.

Programming

I use servo motor in the placement of electronic lock due to unavailable in our lab


"Click here"to download all files of this week