Page 1 of 1

Easy Driver Interfacing with 16F767

Posted: Wed Oct 28, 2015 1:28 pm
by JDR04
I'm hoping somebody could explain how to coect the easydriver to my 16F767 PIC.

I uderstanding how to connect the stepper motor and the external power supply but do not understand how the assigned PIC pins are connected to the driver board itself. All I can find is Arduino diagrams. The confusion for me is when I simulate my flowchart, there seems to be a few pins allocated to the stepper motor unconnected when checking the easydriver website etc.

Any help will be appreciated. Thanks.....John

Re: Easy Driver Interfacing with 16F767

Posted: Wed Oct 28, 2015 1:36 pm
by Benj
Hello,

I think I use the easy driver boards on my CNC machine. They should just have two inputs from the microcontroller, one for step and the other for direction.

I think for mine I get something like 2048 steps per revolution so I have to toggle the step pin on and off 2048 times for one complete revolution. Changing the state of the direction pin changes the direction the motor moves.
index.jpg
index.jpg (12.74 KiB) Viewed 7873 times
So I think all you have to connect up is...

Motor Coils A & B
Step Input
Direction Input
Power In

I believe everything else can be left unconnected.

Re: Easy Driver Interfacing with 16F767

Posted: Wed Oct 28, 2015 8:37 pm
by JDR04
So in terms of the flowchart I did, which pin of the PIC do I connect to the step pin on the easy driver board?

Re: Easy Driver Interfacing with 16F767

Posted: Thu Oct 29, 2015 11:01 am
by Benj
Hello,

You can use any I/O pins for the step and direction inputs. Then just use an output icon to set the state of the direction pin and to toggle the step pin on and off.

The easy driver won't work with the stepper motor component as is as this expects to drive the stepper signals directly using a dual H-bridge but without an additional stepper driver.

Re: Easy Driver Interfacing with 16F767

Posted: Fri Oct 30, 2015 4:41 pm
by JDR04
Thanks Benj, got it to work fine.
Take care.........John