MIAC dsPIC - Stepper Motor

For MIAC users to discuss projects, applications, and any other issues related to the MIAC unit.

Moderators: Benj, Mods

Post Reply
User avatar
Jay Dee
Posts: 398
Joined: Tue Aug 18, 2009 6:42 pm
Has thanked: 121 times
Been thanked: 154 times
Contact:

MIAC dsPIC - Stepper Motor

Post by Jay Dee »

Hi Guys,
another basic MIAC question,
I'm hooking up a small stepper to the motor outputs A,B,C,D
So I set the connections in the stepper properties as;
Coil1 PortD.4
Coil2 PortD.5
Coil3 PortD.6
Coil4 PortD.7
and have called the stepper enable at the start of the FC
MIAC_dsPIC_Stepper.fcfx
stepper miac
(9.05 KiB) Downloaded 316 times
This sims OK. But I get nothing on the actual hardware.
Are these the correct ports for the motor outputs?
thanks, J.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: MIAC dsPIC - Stepper Motor

Post by Benj »

Hello,

Yes those are the right pins for the transistor outputs.

As well as enabling the stepper motor you will also need to enable the transistor outputs by writing a logic 1 to pins F0 (A/B) and F1 (C/D).

This usually happens behind the scenes when you call the Output on or Output off commands.

User avatar
Jay Dee
Posts: 398
Joined: Tue Aug 18, 2009 6:42 pm
Has thanked: 121 times
Been thanked: 154 times
Contact:

Re: MIAC dsPIC - Stepper Motor

Post by Jay Dee »

Thanks Ben,
Ah, I see those pins now. Motors1 RF0 & Motors2 RF1.
I note that the later generation MIACs have a few more features on the outputs, such as the half bridges.
Is there any more info on these?

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: MIAC dsPIC - Stepper Motor

Post by LeighM »

Hi,
The downloadable PDF datasheet is quite comprehensive.
Don't know if you have it?
See the MIAC resource page if not.
Suggestions for additional info welcome. :)
Leigh

User avatar
Jay Dee
Posts: 398
Joined: Tue Aug 18, 2009 6:42 pm
Has thanked: 121 times
Been thanked: 154 times
Contact:

Re: MIAC dsPIC - Stepper Motor

Post by Jay Dee »

for anyone playing along..
Very simple example but none the less,
MIAC_dsPIC_Stepper.fcfx
stepper
(9.36 KiB) Downloaded 393 times
shows a basic direct connection of a stepper to MIAC motor output pins.
J.

Post Reply