Discussion in "Project Help" started by    kks    Feb 18, 2018.
Sun Feb 18 2018, 06:10 PM
#1
I have been working on this project for a week, spending at least 2-3 hours daily on the computer trying to figure it out. I searched a lot of similar codes for this project and eventually, i successfully created a Hex file for the same. But the problem is that i am not able to run this on Proteus. The simulation starts successfully but nothing happens when i type, even the LCD doesn't display anything. It would be great if someone help me out because i am quite on the verge on loosing my mind here. I have absolutely no background on electronics and have to make this project because the subject requires it. I have included the Proteus file, C file and the HEX file. Please check it out and tell me what's wrong. Thanks!
Attachment


[ Edited Sun Feb 18 2018, 07:03 PM ]
Sun Feb 18 2018, 10:13 PM
#2
Your Proteus simulation does not have an LCD display.
As you have plenty of spare pins I suggest using the LCD in 8bit mode,
(all 8 data pins connected), as programming is easier.
Mon Feb 19 2018, 02:09 AM
#3
I don't understand. I do have a LCD with all the pins connected. I followed the circuit diagram to make the project. I have attached images. You can see that the LCD just lights up on simulation and then nothing happens even if you type on the terminal.





Mon Feb 19 2018, 06:44 AM
#4
The file you posted is not the one shown in the images.
It only contains an 8051.
Please check and re-post.

You have reversed the pins on the display.
Change them to
LCD 8051
D0------ P1.0
D7----- P1.7

Your code is for 4 bit mode, but should work anyway.

Although you could use a motor to unlock something (L293)
it is more common, and easier to use a solenoid.

> It would be great if someone help me out because i am
>quite on the verge on loosing my mind here.

Don't worry, I think you will soon have it working
 kks like this.
Mon Feb 19 2018, 07:26 AM
#5
I am sorry, i didn't checked the file just copy pasted it from Documents. I have reposted the file now. I did as you said and connected the pins as you wrote, and there is now light blinking so i guess you are correct, still there is nothing being displayed on the LCD. But now the Terminal isn't even coming on my Simulation, could be because of some bug on my Software, has happened before. I am quite a noob in this subject, don't know what a solenoid is, but i can't use that as i have already purchased the motor driver module. Anyways thanks a lot for the good words at the end, you are the only one who has replied nicely enough, as i have posted on one or more forums and haven't got a reply yet. Seriously you are great!
Attachment
Mon Feb 19 2018, 11:16 AM
#6
UPDATE - It's working now, but after successfully entering my RFID code the motor doesn't rotate. I have tried different codes for the motor, writing the function separately and inside the if statement, but it just won't rotate. Please take a look at it and tell me what's wrong. Thanks
Attachment
Mon Feb 19 2018, 11:04 PM
#7


UPDATE - It's working now, but after successfully entering my RFID code the motor doesn't rotate. I have tried different codes for the motor, writing the function separately and inside the if statement, but it just won't rotate. Please take a look at it and tell me what's wrong. Thanks

kks


It's a Proteus thing.
Although the schematic looks fine,
there is something wrong around the supply to R1,R2 and the L293.
I have redrawn then and it works. Congratulations


A minor point, you selected 3 watt and 10 watt resistors.
In reality 0.25 Watt would be used.


Attachment
 kks like this.
Tue Feb 20 2018, 02:00 PM
#8



UPDATE - It's working now, but after successfully entering my RFID code the motor doesn't rotate. I have tried different codes for the motor, writing the function separately and inside the if statement, but it just won't rotate. Please take a look at it and tell me what's wrong. Thanks

kks


It's a Proteus thing.
Although the schematic looks fine,
there is something wrong around the supply to R1,R2 and the L293.
I have redrawn then and it works. Congratulations


A minor point, you selected 3 watt and 10 watt resistors.
In reality 0.25 Watt would be used.


Attachment

ExperimenterUK


Thank you so much. It works properly now.

Get Social

Information

Powered by e107 Forum System

Conversation

Mon Jun 17 2019, 05:33 PM
charmdateapc
cooking
Sun Jun 16 2019, 07:48 PM
hanoch Taub
i need to interface sim800 to 8051, the problem is that on the module sim800 there are 9 pins connector and I don't know how to connect him to 8051, which pins to tx and rx on 8051 module sim there is
Tue May 28 2019, 07:14 PM
Ron Otsig
KBI does not work on P89LPC920 but it works on P89LPC925
Mon May 27 2019, 09:03 AM
BIJI MATHEW
Hello friends....
DragonDad
Tue May 21 2019, 03:02 PM
Hi. Who is online?
Tue May 14 2019, 12:38 AM
Jayson Contreras
Hello
Xkalebar
Sun Apr 28 2019, 09:06 AM
Please provide me the code for gsm based sms controlled notice board
ExperimenterUK
Sun Apr 14 2019, 10:52 PM
@hassan malik post your problem in the "General help Guidance and Discussion" forum
Sun Apr 14 2019, 05:06 PM
RAJESH MAPARi
please send me code to interface atmega32 with 24c1024 serial eeprom
Sun Apr 14 2019, 01:33 PM
hassan malik
hello sir i installed proteus 7.8 professional on window 7 ultimate and window 10 but there would be same errors onn both windows. the error is bad license key.please any one help me

Downloads

Comments

Easwaran22
Thu Jun 13 2019, 10:16 AM
JenniferJJ
Thu Jun 13 2019, 05:12 AM
seyoonnet
Tue Jun 04 2019, 12:37 PM
Charbel
Sun Jun 02 2019, 03:30 PM
ronotsig
Mon May 27 2019, 03:00 AM
WilsonNig
Sun May 26 2019, 03:11 AM
DragonDad
Tue May 21 2019, 02:50 PM
dhiyamtech
Thu May 09 2019, 10:20 AM

Online

Guests: 42, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38072
Newest member: Easwaran22
Forum Activity
JenniferJJ Avatar
Posted By JenniferJJ
Thu Jun 13 2019, 05:17 AM
Hi,Hello Members,I am the newbie member, I like ve...
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu May 30 2019, 08:32 PM
It occurs to me that although the P89LPC921 and P8...
ExperimenterUK Avatar
Posted By ExperimenterUK
Wed May 29 2019, 09:05 PM
I would suggest a fresh approach.The Keil compile...
ronotsig Avatar
Posted By ronotsig
Wed May 29 2019, 03:13 PM
Since the code works for the P89LPC925, it is appa...
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon May 27 2019, 06:23 PM
I can't see any reason that those registers would ...
ronotsig Avatar
Posted By ronotsig
Mon May 27 2019, 03:06 AM
I am trying to using P89LPC921 or P89LPC922 in a p...
Ansh12 Avatar
Posted By Ansh12
Sun Apr 28 2019, 02:15 PM
I made a minor change, it works in Proteus.Try the...
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Apr 25 2019, 08:20 PM
I made a minor change, it works in Proteus.Try the...
gigyani Avatar
Posted By gigyani
Thu Apr 25 2019, 01:17 AM
when i add cufirst.hex its not working.after 2-3 s...
ExperimenterUK Avatar
Posted By ExperimenterUK
Wed Apr 24 2019, 12:29 AM
http://www.8051projects.net/download-d205-electron...