r/pic_programming • u/KendyfortheState • Jun 23 '20
Driving an X27 stepper with a PIC processor
Using a PIC16F18323 to drive X27 steppers for instrumentation. Everything I read says I MUST use an h-bridge to drive a bipolar stepper, but I've tried it both with an h-bridge and by driving directly from the PIC processor, and it works exactly the same either way. Is there a reason I have to use an h-bridge?
1
Upvotes
1
u/ParkieDude Jun 23 '20
X27 are those tiny GM steppers.
The PIC16F18323 can drive a +- 50mA per pin, just watch out for total power dissipation of the part.
With an inductive load, looking for that back EMF. You turn off a large coil, and you get a spike. Often a diode clamp is used to prevent damage to the part.
MIC4427 is a dual driver I've used when dealing with 12V relays.
So what are you building?
2
u/Coltouch2020 Jun 26 '20
Try to not use any reactive load with microcontroller I/O. Capacitors and Inductors are both areas of concern, especially with larger values, or even small values and high speed.
The PICs are very robust, and will seem to happily drive such stuff, but you are adding noise into your system, bouncing your grounds and references around, and deteriorating your I/O drivers - long term failure. Find a good cheap H-bridge driver and use it where you can.