Kao sto ti je Bogdan predlozio, uzmes neko gotovo resenje, bez obizra sto je relativno prost zahtev (u sustini i nije bas prosto to vezano za stepere), uglavnom imas vrlo dobar GRBL software za Atmega328 (Arduino UNO), recimo kod njega imas ovako nesto za podesavanje, odprilike sa tim zavrsavas sve sto ti treba oko kretanja stepera:
https://github.com/grbl/grbl
Code:
SEND: $$
RESP: $0=10 (step pulse, usec)
RESP: $1=25 (step idle delay, msec)
RESP: $2=3 (step port invert mask:00000011)
RESP: $3=4 (dir port invert mask:00000100)
RESP: $4=0 (step enable invert, bool)
RESP: $5=0 (limit pins invert, bool)
RESP: $6=0 (probe pin invert, bool)
RESP: $10=3 (status report mask:00000011)
RESP: $11=0.010 (junction deviation, mm)
RESP: $12=0.002 (arc tolerance, mm)
RESP: $13=0 (report inches, bool)
RESP: $20=0 (soft limits, bool)
RESP: $21=1 (hard limits, bool)
RESP: $22=0 (homing cycle, bool)
RESP: $23=0 (homing dir invert mask:00000000)
RESP: $24=25.000 (homing feed, mm/min)
RESP: $25=500.000 (homing seek, mm/min)
RESP: $26=250 (homing debounce, msec)
RESP: $27=1.000 (homing pull-off, mm)
RESP: $100=1600.000 (x, step/mm)
RESP: $101=1600.000 (y, step/mm)
RESP: $102=1600.000 (z, step/mm)
RESP: $110=550.000 (x max rate, mm/min)
RESP: $111=550.000 (y max rate, mm/min)
RESP: $112=550.000 (z max rate, mm/min)
RESP: $120=70.000 (x accel, mm/sec^2)
RESP: $121=70.000 (y accel, mm/sec^2)
RESP: $122=70.000 (z accel, mm/sec^2)
RESP: $130=200.000 (x max travel, mm)
RESP: $131=220.000 (y max travel, mm)
RESP: $132=200.000 (z max travel, mm)
RESP: ok
Dakle to spakujes u jedan Arduino ili klot ATMega328, to ce ti biti "motion controler" i odatle nadalje sa steperom pricas preko G-CODE comandi, bilo iz nekog terminala ili iz nekog tvog drugog kontrolera (npr jedan ATMega328) ...
Izgleda kao glomazno resenje ali nije tako, ovaj GRBL je super-odlican program, mnoooogooo problema ce ti to resiti i ustedeti vreme da to isto pravis sam, to ti je trosak od jednog Arduina ili IC visak ...