- This topic has 7 replies, 2 voices, and was last updated 10 years, 4 months ago by kishore.
Viewing 8 posts - 1 through 8 (of 8 total)
-
AuthorPosts
-
November 29, 2013 at 2:21 am #2739kishoreParticipant
My project is Biometric fingerprint based voting machine, here i have control unit and ballot unit. iam using SM630 fingerprint module ie interface with control unit and in ballot unit the voter can vote and at last the result is displayed on 16×2 LCD. i want the hard copy of the output or the result which is displayed on LCD. here at present iam using at89c51 in both control unit and ballot unit, i know i have to change the IC what to choose, suggest me. How to connect a printer to the ballot unit or how to send the output to PC for printing the data.
Code for ballot unit:
#include<reg51.h>
#define msec 50#define lcd_data_str_pin P2sbit rs = P3^0;sbit rw = P3^1;sbit en = P3^2;sbit ini_pin = P1^0;sbit stop_pin = P1^5;sbit candidate_1=P1^1;sbit candidate_2=P1^2;sbit candidate_3=P1^3;sbit candidate_4=P1^4;sbit candidate_5=P1^6;sbit candidate_6=P1^7;int max =0;int carry = 0;int arr[6];int vote_amt[3],j;unsigned int vote_1,vote_2,vote_3,vote_4,vote_5,vote_6;void delay(int delay_time){int j,k;for(j=0;j<=delay_time;j++)for(k=0;k<=1275;k++);}void lcd_cmd(unsigned char cmd_addr){lcd_data_str_pin = cmd_addr;en = 1;rs = 0;rw = 0;delay(5);en = 0;return;}void lcd_data_str(char str[50]){int p;for (p=0;str[p]!=’