Discussion in "Project Help" started by    kks    Mar 1, 2018.
Sun Mar 04 2018, 09:54 PM
#11



๐Ÿ˜” Guess you are right. Isn't there any other way in which i can run the motor?

kks


As this is an academic project, do you really need a motor ?
Can you use another way to indicate a door being unlocked.. say an LED ?

Getting a motor to go one way then the other is quite difficult.
You can use relays,but I assume you don't have any.
The L293 chip is the simplest way.

How much current does your motor draw ?



ExperimenterUK


Actually i was thinking about converting the project into a Society Car parking system. So a door opening and closing would look better than just an led. The motor is the one used in toys and stuff. Can't be more than 5v.
Sun Mar 04 2018, 11:35 PM
#12
" The motor is the one used in toys and stuff.
Can't be more than 5v."

In that case connect the + and - connections on the new board
to 5 volts and ground. No 12 volts anywhere.

Your driver board is limited to 600 milliamps (just over half an amp).
A toy motor could exceed that, but should be okay.
Use as small a motor as possible.

You could use relays, which survive mistakes, and handle
bigger motors, but will be more complicated.


[ Edited Sun Mar 04 2018, 11:36 PM ]
Mon Mar 05 2018, 01:20 AM
#13
I don't have a new board. And there is Vcc and + and - pins. On supplying 5v to all three pins and Gnd to Gnd, the programming board's led lights up but not the display. I suppose i may have damaged it when i first gave 12v to Vcc before. I guess now i will either have to buy a new l293d board or just use leds as you mentioned.
Thu Mar 08 2018, 03:53 PM
#14
Okay, i have got my hands on a 12V relay driver IC. I have no idea on how to connect it with the motor. What are the connections and what changes do i have to make to the program code?
Thu Mar 08 2018, 08:08 PM
#15
I have connected the pins in proteus and used the same code that i have posted before to run this simulation.
On running the simulation, the motor just starts and keeps on running. What do i have to do to make it run only when i scan a valid rfid tag?



[ Edited Thu Mar 08 2018, 08:14 PM ]
Thu Mar 08 2018, 09:49 PM
#16
Your simulation uses a relay.
Do you have a relay...if so what model is it ?
If you don't have the right relay your motor can only go one way.
Is that okay .. stop and start, but only in one direction ?

Meanwhile, remove the connection from U2 pin 16 to ground.
Fri Mar 09 2018, 03:57 AM
#17
It's a single chanel relay. ๐Ÿ˜” I guess it won't work. Isn't there a way where i make it rotate in both directions, by giving different commands? Please help me with the codes. I have managed to sort out the connections, tell me if it's right. + and - to 5v and Gnd. NO to the motor and the other end of the motor should be connected to negative of the battery. COM would be connected to the positive of the battery.


[ Edited Fri Mar 09 2018, 07:08 AM ]
Fri Mar 09 2018, 08:48 PM
#18
" Isn't there a way where i make it rotate in both directions,
by giving different commands? Please help me with the codes."

There is, but you need the right hardware.
There are many combinations of relays, drivers and simple transistors.
It depends on what you have or can get.

Are you able to get a 5 or 12 volt, double throw double pole relay
or more single pole relays as in the Proteus simulation ?
If you use a motor you also have to consider what happens
at end of travel.
When raising or lowering an arm you normally need limit switches
to know when to stop.

Normally door locks don't use a motor,they use one of these locks
operated by a coil like a relay.


Electric Strike for Door Entry Access Control Systems
much like a relay.


[ Edited Fri Mar 09 2018, 08:56 PM ]
Sat Mar 10 2018, 01:03 AM
#19
I said it before, i have changed the project to secure car access system in a Society, so i think the door(which is just a long rod or something) opens horizontal to vertical and back again, uses a motor. ๐Ÿ˜…Goodness so now i need a limit switch too in addition to another relay. I can't get my hands on one. The shop which sells these things is very far away from my home and no one is ready to travel that far again. I thought connecting a relay would be easy, but it's even harder than the motor driver ic. If only the motor driver worked, it would have been great. I suppose now i am stick with led. ๐Ÿ˜”
Sat Mar 10 2018, 02:01 AM
#20
>I said it before, i have changed the project to secure car access system
Actually you said you were "thinking" of changing to a secure car access system.

>Goodness so now i need a limit switch too
No, you will need two limit switches.

>now i am stick with led.
You could have two LEDs, one for motor forward, one for back.

You unlock the car with an RFID key.
How do you lock it ?



[ Edited Sat Mar 10 2018, 03:51 AM ]

Get Social

Information

Powered by e107 Forum System

Conversation

Mon Oct 21 2019, 08:46 AM
charmdatemru
cooking
Sun Oct 13 2019, 02:02 AM
Aline Hutchinson
Hey there,
ExperimenterUK
Sat Oct 12 2019, 10:23 PM
Log in.. then post your code in the 8051 forum
Sat Oct 12 2019, 10:18 AM
Bhadra Sajikumar
i am doing a countdown timer with 8051 for my project, unfortunately our professor had to take a leave of absence before he could teach us most of it.. can someone explain the .asm code of it for me?
Mon Sep 23 2019, 07:37 AM
Nathaniel
I am doing a project for my schools wireless security system with cameras,sensors and spot lights using 8051 micro controller, could you help me out with the design and its source code.
Wed Sep 18 2019, 08:48 PM
Caryn Kover
Thank you for your time,
ExperimenterUK
Mon Aug 05 2019, 07:09 PM
@Ismail ..post in forum, give details
Mon Aug 05 2019, 04:33 PM
Ismail balghmi
Hello. Please I won't download
ExperimenterUK
Wed Jul 24 2019, 12:47 AM
@BUSTER123 Please post in the forum
Tue Jul 23 2019, 06:13 PM
BUSTER123
hello! newbie here. i am kind of a guy who hates using ready - made existing libraries, so this helped a lot as i was trying to control and write to a character lcd display. however, i can't figure out how to set the cursor position. for example, i want to set it to the 5th column in the first row, so position 5. so according to the table, i am sending 10000101 on the 8 data lines of the lcd (register select pulled low). the cursor does not move there however. and i cant move the cursor left or right too. is it something wrong that i am doing? thank you.

Downloads

Comments

ilylily07
Tue Oct 15 2019, 04:32 PM
hientran123
Tue Oct 15 2019, 02:27 AM
Sat Oct 05 2019, 02:38 PM
zexalo
Thu Oct 03 2019, 09:53 AM
thanhle12345
Thu Oct 03 2019, 07:37 AM
ramon_vsc
Fri Sep 20 2019, 04:53 PM
youssoufba
Thu Sep 19 2019, 11:57 AM
Taiphan000
Tue Sep 17 2019, 04:21 AM

Online

Guests: 44, Members: 0 ...

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

Members: 38097
Newest member: ilylily07
Forum Activity
wimac Avatar
Posted By wimac
Mon Oct 21 2019, 09:18 AM
Iโ€™ve been following this thread and looking at the...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 03:09 PM
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 03:02 PM
sir, when i on display ,sometime 3rd display is no...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sun Oct 20 2019, 02:53 PM
sir, when i on display ,sometime 3rd display is no...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Oct 20 2019, 12:21 AM
Your code seems okay on my simulationTry my code o...
ExperimenterUK Avatar
Posted By ExperimenterUK
Sun Oct 20 2019, 12:21 AM
Your code seems okay on my simulationTry my code o...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sat Oct 19 2019, 07:13 PM
please find video attachment. 3rd & 4th displa...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Sat Oct 19 2019, 07:05 PM
sir, 3rd and 4th dot matrix display flickering, ...
ExperimenterUK Avatar
Posted By ExperimenterUK
Fri Oct 18 2019, 09:18 PM
Hopefully you understand some of the program.Which...
s_dinesh40@yahoo.com Avatar
Posted By [email protected]
Thu Oct 17 2019, 09:38 PM