wanzero87 WROTE:ok i da siap wiring my PIC..
and now cume nak wiring motor ke PIC..
the manual xmembantu sangat..
boleh ajar xcmne nk wiring ke PIC16F877A,i mean ke port2 yg mane 1 yek..
plzzz reply as soon as possible
and cmne nak interface ngn Visual basic..i nak control dari VB
and my pic board ade RS232 juz sambungkan ke pc n leh operate VB ke????
Sorry to say this, but the manual actually help a lot. Like sich said, the sample circuit (interface) is given. Of course there is no direct example for us to follow, but at least it list out the possible connections using switches, CMOS, transistors; which I think is very comprehensive and sufficient for us to proceed for other interface such as microcontroller, or even PLC.
Why you want to wire the motor to PIC? I thought the motor should be connected to driver and PIC control the motor through the driver. You really need to refer the manual in details, I doubt the manual asked user to wire the motor to controller.
Basically, you can wire the driver to any of PIC's I/O pin. Since you are controlling driver, those PIC pin should be configured as output. As for the speed, you will need to create connection to CCP1 or CPP2 for PWM generation, as explained by sich.
There is no direct solution for controlling your system from computer. Yes, using RS232 to communicate can be one of the way, yet it is not a complete solution. You will need to develop the VB program, and also the program in microcontroller. Basically the RS232 is just providing the interface. Sure, you can develop something like this using VB, yet again, you need to understand the interface and the language to do it...... I will still stick to sich advise, more reading and understanding is require.
Good luck.