Quantcast
Channel: Reprap Forum - Controllers
Viewing all articles
Browse latest Browse all 10211

Re: About Pin Number Question?

$
0
0
Thanks very much for your explanation in detail.
I can control my stepper motor now by using Creation Workshop software with Sprinter firmware.


Until yesterday night, I did't figured out these pin number where they are.
For example, PIN 46 means digital pin 46 (PWM) in Arduino Pin Mapping. (http://arduino.cc/en/uploads/Hacking/PinMap2560big.png)
Actually, I thought PIN 46 means PD3(TXD1/INT3) before, because it shows the 46 number on map. @@ it's wrong.
It has another main reason why I don't find correct pins that PIN 62 which I can't find where it is in map, thus I got into a mess.
Finally, I had known PIN 62 means Analog PIN 8 (A8).The calculation is just to accumulate the number from digital pin to analog pin.
PIN 62 = 53 (Digital PIN) + 9 (Analog PIN 0~8) = Analog PIN 8
It seems everyone understands this? XDD ~~|||

#define Z_STEP_PIN 46
#define Z_DIR_PIN 48
#define Z_ENABLE_PIN 62
#define Z_MIN_PIN 18
#define Z_MAX_PIN 19


I connected PIN 46(Step), PIN 48(Dir) into my Arduino board mega successfully
and try to make the end stop function works(PIN 18(MIN) connect to ground or not).


Having another problem now about ENABLE PIN.
I connected ENABLE PIN 62 (Analog PIN 8) into Enable port on the easy big driver board(EBD).
But I press enable or disable button on the Creation Workshop Software, it didn't work.
Could it be firmware problem I need to change definition? or I can't connect PIN 62 to Enable Port on EBD directly?

Besides, MS1 MS2 M3 PIN which I need to try to figure out how to make them work on EBD.

Thanks a lot your help!!!


Attached file is my first time to control machines ^^ ~~
Next, I wanna control my stepper motor with optical encoder where I found it in old platform machines. Orz...

Viewing all articles
Browse latest Browse all 10211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>