Arduino Projects   |   Raspberry Pi   |   Electronic Circuits   |   AVR   |   PIC   |   8051   |   Electronic Projects

Problem in coding with LCD interfaced 8051 Voting machine

36 posts / 0 new
Last post
raghvan
raghvan's picture
Offline
Last seen: 4 years 3 months ago
Joined: 08/02/2011 - 08:46
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
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
raghvan's picture
Offline
Last seen: 4 years 3 months ago
Joined: 08/02/2011 - 08:46
Thanx for the help, where
Thanx for the help, where should I upload my proteus file, i am using push buttons for switches...
raghvan
raghvan's picture
Offline
Last seen: 4 years 3 months ago
Joined: 08/02/2011 - 08:46
I am using 16x2 LCD
I am using 16x2 LCD
dagakshay
dagakshay's picture
Offline
Last seen: 8 months 3 weeks ago
Joined: 10/10/2010 - 08:45
send it here i will check
send it here i will check out dagakshay@gmail.com
raghvan
raghvan's picture
Offline
Last seen: 4 years 3 months ago
Joined: 08/02/2011 - 08:46
I hav mailed u proteus

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
raghvan's picture
Offline
Last seen: 4 years 3 months ago
Joined: 08/02/2011 - 08:46
Electronic voting @

[[wysiwyg_imageupload:930:]]This is the image of my proteus circuit

[[wysiwyg_imageupload:932:height=345,width=530]]

dagakshay
dagakshay's picture
Offline
Last seen: 8 months 3 weeks ago
Joined: 10/10/2010 - 08:45
hex C code file which you

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

raghvan
raghvan's picture
Offline
Last seen: 4 years 3 months ago
Joined: 08/02/2011 - 08:46
Sir i have just mailed u that

Sir i have just mailed u that also...

sudhirkmn
sudhirkmn's picture
Offline
Last seen: 2 years 5 months ago
Joined: 15/02/2011 - 12:21
we successfully desingnd lcd
we successfully desingnd lcd based voting machine by using bread board.......we want pcb layout for that pls help me
raghvan
raghvan's picture
Offline
Last seen: 4 years 3 months ago
Joined: 08/02/2011 - 08:46
I have been suggested by my

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
Last seen: 2 years 5 months ago
Joined: 15/02/2011 - 12:21
no doubt about code ...... we
no doubt about code ...... we designed lcd based voting machine frm dat code.....
engineer jahang...
engineer jahangir alam's picture
Offline
Last seen: 1 year 3 weeks ago
Joined: 22/02/2011 - 18:03
plz send me

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

raghvan
raghvan's picture
Offline
Last seen: 4 years 3 months ago
Joined: 08/02/2011 - 08:46
Thank you all of you for your

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...

[[wysiwyg_imageupload:937:height=339,width=300]]

raghvan
raghvan's picture
Offline
Last seen: 4 years 3 months ago
Joined: 08/02/2011 - 08:46
But one question, why do we

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
Last seen: 8 months 3 weeks ago
Joined: 10/10/2010 - 08:45
for PCB layout design try to

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's picture
Offline
Last seen: 2 years 10 months ago
Joined: 06/06/2011 - 20:07
am trying with the same

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

@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
N.KowsalyaDevi's picture
Offline
Last seen: 3 years 5 months ago
Joined: 01/03/2012 - 13:38
Will any one pls help me with

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

 

Prasanth
Prasanth's picture
Offline
Last seen: 3 years 4 months ago
Joined: 15/02/2012 - 22:57
I've done the connections for

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
siva ganga's picture
Offline
Last seen: 2 years 10 months ago
Joined: 27/03/2012 - 07:27
Hi....can any one help me in

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

TEJPAL
TEJPAL's picture
Offline
Last seen: 3 years 3 months ago
Joined: 12/03/2012 - 22:23
lcd is not displaying.....it

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

shahzad subhan
shahzad subhan's picture
Offline
Last seen: 2 years 3 months ago
Joined: 18/04/2012 - 19:17
what is purpose of

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 adnan's picture
Offline
Last seen: 2 years 5 months ago
Joined: 07/03/2012 - 21:52
Electronic voting machine..In

Electronic voting machine..

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

can some one help me....

 

suji
suji's picture
Offline
Last seen: 2 years 11 months ago
Joined: 23/08/2012 - 20:44
pls anyone send the source

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

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

chandrasekhar
chandrasekhar's picture
Offline
Last seen: 3 weeks 3 hours ago
Joined: 28/06/2012 - 03:58
i have problem with data

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
chandrasekhar's picture
Offline
Last seen: 3 weeks 3 hours ago
Joined: 28/06/2012 - 03:58
preset is used for adjusting

preset is used for adjusting the contrast of lcd

Prateek
Prateek's picture
Offline
Last seen: 2 years 1 week ago
Joined: 28/10/2012 - 07:47
Respected sir,               

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
AJISH ALFRED's picture
Offline
Last seen: 8 months 4 weeks ago
Joined: 10/01/2012 - 12:10
Hi Prateek,Check your

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
vaibhav verma's picture
Offline
Last seen: 2 years 4 months ago
Joined: 31/03/2013 - 17:39
respected seniors,    can

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
Meenakshi Bhatia's picture
Offline
Last seen: 1 year 9 months ago
Joined: 19/10/2013 - 10:39
m not able to create the hex

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
Meenakshi Bhatia's picture
Offline
Last seen: 1 year 9 months ago
Joined: 19/10/2013 - 10:39
m not able to create the hex

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
Meenakshi Bhatia's picture
Offline
Last seen: 1 year 9 months ago
Joined: 19/10/2013 - 10:39
m not able to create the hex

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
Last seen: 4 days 30 min ago
Joined: 17/03/2013 - 18:55
I got a problem in EVM....it

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
Last seen: 4 days 30 min ago
Joined: 17/03/2013 - 18:55
hey raghav, can u plz mail

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

my mail id is umashankarkhare@ymail.com 

nazid
nazid's picture
Offline
Last seen: 3 weeks 2 days ago
Joined: 09/10/2014 - 20:24
 @raghavan: can u pls send me

 

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

 

Log in 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