April 6, 2012 at 12:31 pm #1522SindujaaParticipantI’m currently trying Automatic Bidirectional Visitor Counter project given in your site.I request you to explain the program flow of the C coding given.And also please do let me know asap whether the 7-segment display used here is a Common Anode configuration or a Common Cathode Configuration and whether we can do the project with AT89S52 instead of AT89C51.April 16, 2012 at 6:10 am #7460hari krishnaParticipant
Displays are common anode.
you can use AT89s52 insted of AT89c51 differences only memory size and one timer added extra in 52.
Hari krishna kApril 18, 2012 at 12:32 pm #7477AJISH ALFREDParticipant
From the circuit, it can be found that the seven segment is switched to +5V using a transistor. So I think it is common anodeSeptember 25, 2012 at 6:26 pm #8610hariom jangidParticipant
There are a problem occuring with up key and down key. If we press up key for few second then counter increse no of visitor.suppose that a men stop at position of up sensor for few second then counter count the many people in room.October 29, 2012 at 12:04 pm #8699kangibnuParticipant
I‘ve tried make visitor counter circuit and successful, and I want to combine it with articel read write eeprom (I tried it and succeeded), but when I try to combine both methods the program does not work, please help, I want to store data in the eeprom at24c16 count, and show on seven segment display,
here the code…
#define msec 50
#define lcd_data_str_pin P0
sbit rs = P3^6; //Register select (RS) pin
sbit rw = P3^5; //Read write(RW) pin
sbit en = P3^7; //Enable(EN) pin
sbit sda=P3^1; //sda
sbit scl=P3^0; //sck
sbit sensor_1=P3^1; //sensor1
int max = 0;
int carry = 0;
//inisialissi varibel eeprom
unsigned char reead,write,write2,b,k;
unsigned int temp;
unsigned int count_1,count_2;
void delay(int delay_time) // Time delay function
void delay(unsigned int count) // Function to provide time delay in msec.
void lcd_cmd(unsigned char cmd_addr) //Function to send command to LCD
lcd_data_str_pin = cmd_addr;
en = 1;
rs = 0;
rw = 0;
en = 0;
void lcd_data_str(char str) //Function to send string
- This topic has 14 replies, 9 voices, and was last updated 7 years, 6 months ago by .
Viewing 15 posts - 1 through 15 (of 15 total)