Easy Driver Interfacing with 16F767

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
JDR04
Posts: 271
Joined: Tue Mar 05, 2013 10:49 pm
Has thanked: 111 times
Been thanked: 13 times
Contact:

Easy Driver Interfacing with 16F767

Post 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
Attachments
Easydriver 2b.jpg
(143.33 KiB) Downloaded 3031 times
Stepper 1.fcf
(12 KiB) Downloaded 797 times
Last edited by JDR04 on Wed Oct 28, 2015 1:36 pm, edited 1 time in total.

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: Easy Driver Interfacing with 16F767

Post 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 7790 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.

JDR04
Posts: 271
Joined: Tue Mar 05, 2013 10:49 pm
Has thanked: 111 times
Been thanked: 13 times
Contact:

Re: Easy Driver Interfacing with 16F767

Post 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?

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: Easy Driver Interfacing with 16F767

Post 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.

JDR04
Posts: 271
Joined: Tue Mar 05, 2013 10:49 pm
Has thanked: 111 times
Been thanked: 13 times
Contact:

Re: Easy Driver Interfacing with 16F767

Post by JDR04 »

Thanks Benj, got it to work fine.
Take care.........John

Post Reply