Page 1 of 1

MIAC dsPIC - Stepper Motor

Posted: Thu Jun 22, 2017 4:28 pm
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 319 times
This sims OK. But I get nothing on the actual hardware.
Are these the correct ports for the motor outputs?
thanks, J.

Re: MIAC dsPIC - Stepper Motor

Posted: Thu Jun 22, 2017 5:14 pm
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.

Re: MIAC dsPIC - Stepper Motor

Posted: Thu Jun 22, 2017 5:46 pm
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?

Re: MIAC dsPIC - Stepper Motor

Posted: Thu Jun 22, 2017 6:17 pm
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

Re: MIAC dsPIC - Stepper Motor

Posted: Mon Jun 26, 2017 8:36 pm
by Jay Dee
for anyone playing along..
Very simple example but none the less,
MIAC_dsPIC_Stepper.fcfx
stepper
(9.36 KiB) Downloaded 400 times
shows a basic direct connection of a stepper to MIAC motor output pins.
J.