Khalid,
This is likely to be the first of many posts. I am going to try to diagnose the issues little by little, so I will need you to try certain circuit configurations with the parts you have, and maybe others.
Disclaimer: Please understand that I am neither responsible nor liable for any actions or harm caused...
The first thing you need to do is get rid of the 33pf capacitors for the crystal. Those will NOT work with the PIC you are trying to use.:nono: With a 20MHz Crystal (classified as HS), you MUST use 15-30pF capacitors. I recommend a capacitor in the middle of that range, such as 20pf.
Lets start with the most basic electronic components and move up to the most difficult.
The second thing I think you should do is mess with the driver section of the circuit. It is worrying that you can't get the motor to engage at all...
So here is what I want you to do: Remove the PIC from the IC socket. Using quite a few jumper wires, construct the attached schematic by putting wires into the corresponding slots in the PIC IC slots. For instance, you should connect a +5v wire to pins 4,6,7,8 of the PIC IC socket, where the IC used to be, etc.
Do all of that except for the direction pin. Now, with all the wires connected as I have laid them out in the schematic, spin the motor. It should still move freely. Now attach the direction pin marked as a red switch in the schematic, (RB6, pin 12 on the IC socket) to the +5V source. The motor should now lock or resist you turning it.
Remember to disconnect resistor R9 in the original schematic.
If that test is successful, that means that the problem is likely with the PIC or a wire mishap.
If the test was unsuccessful, your driver chips may be blown, bad stepper, bad driver wiring, or I may have read the datasheet wrong.
Also, please attach a picture (or two please) of the underside of the board.
Other Questions:
- Do you have spare LEDs and 100 - 200 ohm resistors?
- Have you completed the LED Flasher project you talked about in post #29? It would be good if you did.
- You do have an ohm meter, correct?
- What is the amperage ratings on your +5V and +24V supplies?
Well it is very late now... I will post again tomorrow after you have tried the above.