Page 1 of 1

How to control motor using computer

PostPosted: Wed Aug 15, 2012 6:20 am
by Newbie007
Hi all,i need a help about my project that using a motor and rfid...referring to the image/file that i attach,i will use the motor as a gate..the problem here is i dont know what hardware to use so that i can connect the motor with computer.FYI iam new in this field...so i really hope that you can list me what kind of hardware and type of motor that can i use...

the condition of the project consist two that is...
1-the gate(motor) will on/run/open when the computer/database detect the user via Rfid
2-the gate(motor) can on/run/open manually using computer..

please i really need your help...thank you..

Re: How to control motor using computer

PostPosted: Wed Aug 15, 2012 10:06 am
by shahrul
Use PIC.
PIC can be interface to DC motor and interface to laptop by USB-to-UART. RFID also can be interface to the PIC. So, just need one connection from device to laptop.

Example project using magnetic lock to laptop. The magnetic lock can be change to DC Motor.

Re: How to control motor using computer

PostPosted: Thu Sep 13, 2012 6:19 pm
by Newbie007
thanks for reply sir...about pic...iam zero of knowledge about this and trying to learn bit by bit...can you show or list to me what item/hardware of pic need to buy...really need your help mr.Shahrul...tq and sorry for my bad language... :)

Re: How to control motor using computer

PostPosted: Thu Sep 13, 2012 7:27 pm
by yonghui

Re: How to control motor using computer

PostPosted: Mon Sep 17, 2012 12:15 pm
by Newbie007
thanks Yonghui . . so arduino also can control the motor right? between arduino and PIC which one is easier to use and learn ?

Re: How to control motor using computer

PostPosted: Mon Sep 17, 2012 3:02 pm
by yonghui
i think for beginner to microcontroller, Arduino is quite simple.
u do not need to read the datasheet. but reading the library reference by arduino to write program. there are sample program provided also. if u dont need to control the speed of motor. u can used relay to turn on and off motor too (for Brush motor)

for PIC u need to read datasheet. and get start with some sample code.

Re: How to control motor using computer

PostPosted: Sat Oct 06, 2012 1:46 pm
by Newbie007
Mr Yonghui accroding to the picture that i attach..i got an information that i can control the movement of the motor(gate) step by step by using the stepping motor..is that true??

here is the condition that i want for my project . .

1 condition
-The motor(gate) will automatically move from 1-2-3-2-1 (close and open) when the RFID detect the data(card)

2 condition
-i can manually control the motor(gate) from 1-2-3 and 3-2-1,(close and open) by using computer..

and if i using the stepping motor..do i need another motor driver ??
for example = http://cytron.com.my/viewProduct.php?pcode=SD02B