propeller with Geko Drive or GRex
SkankPile
Posts: 15
Has anybody made the propellor work with the geko drives, or interfaced with the Grex for stepper control·via network?
I'm thinking of using the propeller with sensors and such for the logic and then use the trusted gekos at 80v to drive whatever I want on the steppers. I've done some searches and it seems mostly people are driving homemade controllers for bots and such.. but I want to be able to move large screws, paddles, valves·and the like for automation mixed with PID control..
I'm thinking of using the propeller with sensors and such for the logic and then use the trusted gekos at 80v to drive whatever I want on the steppers. I've done some searches and it seems mostly people are driving homemade controllers for bots and such.. but I want to be able to move large screws, paddles, valves·and the like for automation mixed with PID control..
Comments
I actually implemented the same motion control algorithm as the g-rex uses on the propller for a single axis (or rather one at a time). In the future I intend to allow multi axis interpolated moves but that may be a while.
As for interfacing to a g-rex with a network that could be neat!
Certainly don't think that just because a lot of people want to make the stepper driver as well for whatever reason that the propeller should not just as well be used with off the shelf gear, that's my prefered way of doing things because when you start looking at mid band compensation etc etc I just can't compete with gecko or IMS or whoever.
www.youtube.com/profile_videos?user=littlestworkshop
My two newest videos show a stepper controlled via a propeller using a geckodrive.
Graham
Post Edited (Graham Stabler) : 2/27/2008 4:56:25 PM GMT
Regards,
Craig
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My system: 1.6 GHz AMD Turion64 X2, 4GB DDR2, 256MB ATI Radeon Graphics card, 15.4" Widescreen HD Screen
I have a duel boot of Ubuntu Linux and Windows Vista. Vista, because it came with the PC, Ubuntu because I like software that works.
"Failure is not an option -- it comes bundled with Windows."
Use The Best...
Linux for Servers
Mac for Graphics
Palm for Mobility
Windows for Solitaire
I'm assuming you'd need to generate a pulse of some sort at a certain frequency, or change that frequency to accelerate, number of steps etc... will you please elaborate or share code so I can get a better picture? I'm assuming its just generating a frequency on two pins.. one for step & one for direction.. instead of the 4 pins using the L293 or ULN2003 like in the guides...
any help would be appreciated.. I'm a newb.. and am immercing myself in PWM all the sudden, and trying to learn spin at the same time...
I don't know what the 2ms thing you are talking about is. I think the step is active low and the min low pulse length might be 2us but not 2ms I wouldn't have thought.
Graham
Post Edited (Graham Stabler) : 2/28/2008 9:43:13 PM GMT
Step Frequency: 0 to 200 kHz
Step Pulse “0” Time: 0.5 uS min (Step on falling edge)
Step Pulse “1” Time: 4 uS min
Direction Setup: 1 uS min (20 uS min hold time after Step edge)
my logic is that it will rotate 180deg and rotate back to 0 in about 4 seconds
********************************************************************
'simple step with Gecko
'pin 16 -> direction
'pin 17 -> step
con
steppulse = 20 'step pulse 20us
steplag = 240000 'angular delay ~50step sec
pub stepit
dira[noparse][[/noparse]16] := 1 'go forward 180deg
outa[noparse][[/noparse]16] := 1
dira[noparse][[/noparse]17] := 1
repeat 100
outa[noparse][[/noparse]17] := 1
waitcnt(steplag)
!outa[noparse][[/noparse]17]
waitcnt(steppulse)
outa[noparse][[/noparse]16] := 0 'go reverse 180deg
repeat 100
outa[noparse][[/noparse]17] :=1
waitcnt(steplag)
!outa[noparse][[/noparse]17]
waitcnt(steppulse)
********************************************************************
You should run your stepper with half stepping at least, this gives you 400 steps per revolution so 180 would be 200 steps. Code looks ok from a quick glance.
Actually Geckos have microstepping, either 8 or 10 I forget so that would be 200*8 or 200*10 steps per revolution for a 200 step motor. You cannot position to micro-step resolution but it does give smoother motion (you can position to a half step).
Graham
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My system: 1.6 GHz AMD Turion64 X2, 4GB DDR2, 256MB ATI Radeon Graphics card, 15.4" Widescreen HD Screen
I have a duel boot of Ubuntu Linux and Windows Vista. Vista, because it came with the PC, Ubuntu because I like software that works.
"Failure is not an option -- it comes bundled with Windows."
Use The Best...
Linux for Servers
Mac for Graphics
Palm for Mobility
Windows for Solitaire