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
Easy Driver Interfacing with 16F767
Moderator: Benj
-
- Posts: 271
- Joined: Tue Mar 05, 2013 10:49 pm
- Has thanked: 111 times
- Been thanked: 13 times
- Contact:
Easy Driver Interfacing with 16F767
- 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.
- 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
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.
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.
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- 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
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?
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel