Arduino Projects    |   Raspberry Pi  |     Electronic Circuits   |   Electronics Reference Design Library  |   AVR    |    PIC    |    8051    |    Electronic Projects

Problem in coding with LCD interfaced 8051 Voting machine

36 posts / 0 new
Last post
raghvan
raghavan's picture
Offline
Joined: 08/02/2011
Posts: 10
Points: 3730
Problem in coding with LCD interfaced 8051 Voting machine
http://www.engineersgarage.com/microcontroller/8051projects/LCD-based-voting-machine-AT89C51-circuit
This link mentions the code for LCD interfaced voting machine-
1)When i convert this c code to hex file using keil, its size is 6KB, but 8051 supports 2kb only
2)I think there is some mistake in the code as this code is not running in proteus simulation

I am new to microcontrollers so required help... By the way this site has been quite helpful...
nikhiljain (not verified)
nikhiljain's picture
first of all the size of hex file may not be 6KB as such. Check http://www.engineersgarage.com/forums/avr/how-read-hex-file and i'm sure this code works with at89c51 because its been shown in the video. as far as proteus simulation is concerned, i think there mite be some problem with the switches you used. can u share ur proteus file so that we can hav a look. or otherwise just try the code on your circuit.. it should work.
raghvan
raghavan's picture
Offline
Joined: 08/02/2011
Posts: 10
Points: 3730
Thanx for the help, where should I upload my proteus file, i am using push buttons for switches...
raghvan
raghavan's picture
Offline
Joined: 08/02/2011
Posts: 10
Points: 3730
I am using 16x2 LCD
dagakshay
dagakshay's picture
Offline
Joined: 10/10/2010
Posts: 560
Points: 170695
send it here i will check out dagakshay@gmail.com
raghvan
raghavan's picture
Offline
Joined: 08/02/2011
Posts: 10
Points: 3730

I hav mailed u proteus simulation file for electronic voting (LCD based), also the hex file... I think there's a problem in my switch connection. Please help me... Thank u for ur response...

raghvan
raghavan's picture
Offline
Joined: 08/02/2011
Posts: 10
Points: 3730

Electronic voting @ proteusThis is the image of my proteus circuit

dagakshay
dagakshay's picture
Offline
Joined: 10/10/2010
Posts: 560
Points: 170695

hex C code file which you using??? mail that one too

raghvan
raghavan's picture
Offline
Joined: 08/02/2011
Posts: 10
Points: 3730

Sir i have just mailed u that also...

sudhirkmn
sudhirkmn's picture
Offline
Joined: 15/02/2011
Posts: 11
Points: 4610
we successfully desingnd lcd based voting machine by using bread board.......we want pcb layout for that pls help me
raghvan
raghavan's picture
Offline
Joined: 08/02/2011
Posts: 10
Points: 3730

I have been suggested by my seniors to use eagle software for designing the PCB, i will start working on it soon and let you know...

sudhirkmn
sudhirkmn's picture
Offline
Joined: 15/02/2011
Posts: 11
Points: 4610
no doubt about code ...... we designed lcd based voting machine frm dat code.....
engineer jahangir...
engineer jahangir alam's picture
Offline
Joined: 22/02/2011
Posts: 1
Points: 375

plz send me (jahangir03eee@gmail.com) the hex code

raghvan
raghavan's picture
Offline
Joined: 08/02/2011
Posts: 10
Points: 3730

Thank you all of you for your response and help, the proteus simulation of Voting machine is working and the code is right, I realized it when instead of using battery in the simulation I used ground and power terminals...

raghvan
raghavan's picture
Offline
Joined: 08/02/2011
Posts: 10
Points: 3730

But one question, why do we take start and stop button as active low in contrast to candidate buttons as active high...???

dagakshay
dagakshay's picture
Offline
Joined: 10/10/2010
Posts: 560
Points: 170695

for PCB layout design try to use PROTEUS... it provides a very good simulation as well and it is one of the standard and well known tool....

Akhil
Akhil_28's picture
Offline
Joined: 06/06/2011
Posts: 2
Points: 790

am trying with the same project i think the code is not correct

 

becos p3^0 and p3^1 are rx and tx in 80c51  and even in the loop void_count there are few mistakes

 

 

can any 1 provide correct code plzz

 

 

thanxx in advance

nikhiljain (not verified)
nikhiljain's picture

@Raghvan : I dont think it wud matter if you take these buttons as active high or active low.. if you change this configuration then you'll have to do slight modifications in the code.

 

@Akhil : You are right about P3^1 and P3^0 pins being Tx and Rx, but that wouldnt matter in this case coz no serial communication is taking place. And the code is correct since so many people on this forum including me have tested this code and circuit successfully. Can you please share what mistake did you find with vote_count() function?

N.KowsalyaDevi
kowsalyadevi's picture
Offline
Joined: 01/03/2012
Posts: 1
Points: 85

Will any one pls help me with vhdl code for electronic voting machine pls

 

Prasanth
prasanth19392's picture
Offline
Joined: 15/02/2012
Posts: 1
Points: 60

I've done the connections for lcd based voting machine using bread board as given. But when i give the supply, the lcd is displaying only boxes in first line and nothing is happening even if i press the buttons. i don't know where the mistake is.

 

guys please guide me,i need to submit this project in four days.

siva ganga
nagasiva's picture
Offline
Joined: 27/03/2012
Posts: 1
Points: 0

Hi....can any one help me in writing the code for updown counter using lcd display and 8051 controller........??????

TEJPAL
TEJPAL's picture
Offline
Joined: 12/03/2012
Posts: 1
Points: 0

lcd is not displaying.....it shows 0's only.....i think there is problem with program.....

shahzad subhan
shahzadsubhan's picture
Offline
Joined: 18/04/2012
Posts: 2
Points: 0

what is purpose of preset(three leg resistor) in the circuit diagram.

it works without it but dont work with it .......

plz ans me

muhammad adnan
muhammad_adnan2076's picture
Offline
Joined: 07/03/2012
Posts: 1
Points: 5

Electronic voting machine..

In proteus , after voting it only display zeros for all candidates

can some one help me....

 

suji
suji venkat's picture
Offline
Joined: 23/08/2012
Posts: 2
Points: 10

pls anyone send the source code for voting machine in assembly language

its urgent...........

chandrasekhar
chandujonty's picture
Offline
Joined: 27/06/2012
Posts: 29
Points: 80

i have problem with data pins(7-14) of my lcd these pins are showing the voltage level as 0v.

iam using pull up resistor for making these pins high ,but these pins are again showing voltage level as low(0v).

please help where the problem is

my emeil id is jontychandrasekhar2@gmail.com

chandrasekhar
chandujonty's picture
Offline
Joined: 27/06/2012
Posts: 29
Points: 80

preset is used for adjusting the contrast of lcd

Prateek
Prateek93's picture
Offline
Joined: 28/10/2012
Posts: 1
Points: 5

Respected sir,

                    We are also having problem with our circuit for voting machine,we have succesfully done the simulation.But when we made the pcb and the lcd just shows boxes and nothing else. 

AJISH ALFRED
ajishalfred's picture
Offline
Joined: 10/01/2012
Posts: 1506
Points: 7165

Hi Prateek,

Check your connections properly especially the READ/WRITE pin, it should be logic zero always. Also check the connections to the DATA/INSTRUCTION pin and the ENABLE PIN.

A tip for debugging: Always include a LED in your hardware and in your code there should be lines to glow this LED, so that you can atleast make sure that the code is running properly in your microcontroller.

vaibhav verma
vaibby verma's picture
Offline
Joined: 31/03/2013
Posts: 1
Points: 5

respected seniors,

    can anyone of you please mail me all the working code and proper working pcb layout for LCD based 8051 voting machine?

    i am doing it for first time!!!!

Meenakshi Bhatia
meenakshibhatia's picture
Offline
Joined: 19/10/2013
Posts: 1
Points: 5

m not able to create the hex file of d code..can any1 send me d code and hex code at ma id bhatia.meenakshi656@gmail....plzz its urgent guysss...thnxxx in advance....

 

Meenakshi Bhatia
meenakshibhatia's picture
Offline
Joined: 19/10/2013
Posts: 1
Points: 5

m not able to create the hex file of d code..can any1 send me d code and hex code at ma id bhatia.meenakshi656@gmail....plzz its urgent guysss...thnxxx in advance....

 

Meenakshi Bhatia
meenakshibhatia's picture
Offline
Joined: 19/10/2013
Posts: 1
Points: 5

m not able to create the hex file of d code...

can any1 send me d code and hex code at ma id bhatia.meenakshi656@gmail....

plzz its urgent guysss...thnxxx in advance....

 

umashankar khare
Umashankar Khare's picture
Offline
Joined: 17/03/2013
Posts: 2
Points: 10

I got a problem in EVM....

it stops working at "press button to vote"

after tht it not works....

plzzz help me

 

umashankar khare
Umashankar Khare's picture
Offline
Joined: 17/03/2013
Posts: 2
Points: 10

hey raghav, can u plz mail that correct code which works for this EVM project??

my mail id is umashankarkhare@ymail.com 

nazid
nazidsk's picture
Offline
Joined: 09/10/2014
Posts: 1
Points: 5

 

@raghavan: can u pls send me ur hex code to me.it willl be helpful to me.my mail id nazidsk@gmail.com

 

Login or register to post comments

APPLICATIONS & TECHNOLOGIES

Learn about the latest applications and industry trends with tutorials and white paper design resources on vertical markets.

Automotive
Energy Harvesting
MEMS Technology
OpenSource Hardware
RFID & NFC
RF Wireless
Sensor
Solar
Touch
Wireless Charging