Pages: [1]   Go Down
Author Topic: GRBL stepper motor driver wiring  (Read 1112 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 26
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi guys, I made a stepper motor driver based off on reprap version 1.2 stepper driver. I uploaded the grbl 0.51 to my arduino, and now needs help on where to connect the step and direction pin to the arduino. I've tried connecting it to Digital 0, 3 but nothing happens.
Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 596
Posts: 33279
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Digital 0
What sort of arduino? That pin is usually reserved for serial communications.

There is a config file in that code, it sets what pins to use, what is it saying?

Quote
but nothing happens.
It could be to do with things like end stop switches not being wired, or trying to step too fast.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 26
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, thanks for the reply, it's a hand built arduino, a variant of the Severino (S3V3). I haven't modified grbl, just uploaded the prebuilt hex file for atmega168.

I have look at the config.h in the 0.51 branch of grbl, and it is assigned to portc. Which I think in arduino is mapped to analog inputs 0-5. I was hesitant to connect to these ports since they are for analog input; but someone could correct me on this.
« Last Edit: November 22, 2011, 07:17:34 am by purgedsoul » Logged

Manchester (England England)
Online Online
Brattain Member
*****
Karma: 596
Posts: 33279
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
since they are for analog input;
Yes but they can also be used as normal digital input and output as well.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 26
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes but they can also be used as normal digital input and output as well.

Aha! thanks for the confirmation, I'm going to try it when i get home.
Logged

Pages: [1]   Go Up
Jump to: