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

ExperimenterUK
Mon Dec 03 2018, 05:17 PM
Please post questions in the forum. The chat box is for chat
Mon Dec 03 2018, 06:43 AM
help!me!
help! I don't understand busy flag!
Sun Dec 02 2018, 08:01 PM
ile
hello
Mon Nov 12 2018, 05:58 AM
Pavan_user
i have seen your replica of I2C programming using AT89C51 but i am unable to understand the "ack_bit" variable usage ...looks like it is always 1...can you elaborate how acknowledgment is working....
bgk3678
Tue Nov 06 2018, 02:36 PM
kindly any one give solution for my problem
ExperimenterUK
Mon Nov 05 2018, 09:48 PM
Pins high is the normal state. You need a program to set them low
mayengbam
Sun Nov 04 2018, 05:41 PM
hello, i am niranjoy, alll the port of my 8051 is always high, even i erase all the program. why is it so happen and what is the problem. any one please help me!
Sun Nov 04 2018, 02:16 PM
BASAVARAJ g kudamble
hi I am interfacing GSM 300 to 8051 microcontroller to receive message from mobile
ExperimenterUK
Sat Sep 29 2018, 06:28 PM
Please post questions in the forum.
Sat Sep 29 2018, 11:26 AM
Ashfaq Ch
hi i have some AT89C51RC microcontrollers already programed. some one help us to how to download from AT89C51RC and after study and edit all corractions reload to AT89C51RC controller

Downloads

Comments

cadetjeff
Fri Dec 07 2018, 10:11 AM
crak0axel
Sun Dec 02 2018, 01:12 AM
AbuHishaam
Thu Nov 29 2018, 03:43 PM
Evgen87
Thu Nov 29 2018, 10:44 AM
akshaykulkarni
Mon Nov 26 2018, 05:18 AM
atalnet
Fri Nov 16 2018, 07:44 AM
genius784
Wed Nov 14 2018, 09:25 AM
katherineamt
Mon Nov 12 2018, 03:14 PM

Online

Guests: 84, Members: 0 ...

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

Members: 38026
Newest member: cadetjeff
Forum Activity
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Nov 19 2018, 01:11 AM
ExperimenterUK Avatar
Posted By ExperimenterUK
Thu Nov 15 2018, 06:48 PM
Unfortunately I have no experience of LabView,but ...
katherineamt Avatar
Posted By katherineamt
Mon Nov 12 2018, 03:22 PM
I have never used LabView and I have to implement ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Mon Nov 12 2018, 01:21 AM
wimac Avatar
Posted By wimac
Sun Nov 11 2018, 04:03 PM
bgk3678 Avatar
Posted By bgk3678
Sun Nov 11 2018, 07:25 AM
ExperimenterUK Avatar
Posted By ExperimenterUK
Tue Nov 06 2018, 06:10 PM
bgk3678 Avatar
Posted By bgk3678
Sun Nov 04 2018, 02:52 PM
bgk3678 Avatar
Posted By bgk3678
Sun Nov 04 2018, 02:48 PM
Xuenan Avatar
Posted By Xuenan
Sat Nov 03 2018, 01:08 PM
Make the 8051 frequency exactly 11.0592 MHz in pro...