Help wanted;Counting from steppermotors (Via sensors)via LPT
Posted: Thu Aug 30, 2007 8:57 am
Hi folks, I'm kind of a nubi at QB, although I've had it for years and years, I've never done anything quite as complex as I'm going to do.
Me and a good friend of mine had the idea of makin our very own NC-cutter or whatever it's called in english. The machine that can cut circular, angular holes and cut sideways etc.
I haven't, at the writing moment, made any working 'model' so to speak, but that part's quite easy. There's nothing to it really. Sure it takes a while to figure out a working constellation, but that goes for pretty much everything anywhere, right?
My problem; Since it's going to be equipped with multiple sensors onto &H379, or "889", as many of you know, it's the adress for LPT1's 5-bit input ports.
The problem that I'm going to have is that I need to be able to count tree bits simultaneous, yet keep them separated into three diffrent values (X, Y and Z, as in later on, coordinates). These needs to be readable throughout the entire program (Especially from within subs).
The simplest thing is really to use multiple ports, but it's slightly overkill, and at the same time not plausible since it's not easy to get ahold of / configuring old ISA- cards and getting it all to work, least of all, not for an old PII 233 MHz, and possible another motherboard incase it's going up in smoke...
I know this can be done, just not how, and that's where you guys come in =0)
I'm sorry, but I don't have any money to pay you, but I promise that I'll share everything (Schematics and codes) in case you're interrested...
I also would like to have a form of input method for new "programs".
It would really be kind of a drag if one had to manually input every coordinate everytime one needed something new drilled or so.
I was thinking; Best case, some CAD->CAM, but coordinates from a plain ASCII- file would due just fine.
As I said, I've never bothered learning / using advanced counters in & out of Subs, or opening files for input / output before, and I really need help with this.
I don't know if this thing's ever going to see the light of day due to these problems, but if it does, it's possible there's money in it too...
Not professionally, but private perhaps... Who knows, right?
At the very least, we'll (Or rather I) put the credits & Greets for those who've helped us.
What has to be built:
3-Axis control, using Driver- chip's with atleast 3 bit's to control them, possible one more for high / low speed.
Like Enable, Direction, Half / full- step, and 'externally' (Not in driver- chip) maybe a variable strobe (Square wave pulse-giver).
Some kind of control- matrix so that I can swith between the 3 axis. Most likely the input's on the Drivers are going to be latched (As in a short, 1-bit memory).
There might be even more output's for like additional axis (Like tilt & turn), but most likely switching speeds on the cutting-spindle (Thinking some kind of solenoid- driven gearbox at the moment, later issue though).
Geez... There's a ton of stuff that can, and can't be done here.
I think it's worth mentioning that this does not have to be extremely sophisticated in any way, just as long as it works.
So...? Any thoughts anyone..?
Yes, I'm nuts, but that my excuse, what's yours =0)
It's a funny project. Hard, but funny. Really straightens out your noodles
Bye 4 now from Sweden.
Yes, that green banana- shaped country, packed with wooden horses and Elks
For those who've noticed, I've changed the subject- content, sorry.
Me and a good friend of mine had the idea of makin our very own NC-cutter or whatever it's called in english. The machine that can cut circular, angular holes and cut sideways etc.
I haven't, at the writing moment, made any working 'model' so to speak, but that part's quite easy. There's nothing to it really. Sure it takes a while to figure out a working constellation, but that goes for pretty much everything anywhere, right?
My problem; Since it's going to be equipped with multiple sensors onto &H379, or "889", as many of you know, it's the adress for LPT1's 5-bit input ports.
The problem that I'm going to have is that I need to be able to count tree bits simultaneous, yet keep them separated into three diffrent values (X, Y and Z, as in later on, coordinates). These needs to be readable throughout the entire program (Especially from within subs).
The simplest thing is really to use multiple ports, but it's slightly overkill, and at the same time not plausible since it's not easy to get ahold of / configuring old ISA- cards and getting it all to work, least of all, not for an old PII 233 MHz, and possible another motherboard incase it's going up in smoke...
I know this can be done, just not how, and that's where you guys come in =0)
I'm sorry, but I don't have any money to pay you, but I promise that I'll share everything (Schematics and codes) in case you're interrested...
I also would like to have a form of input method for new "programs".
It would really be kind of a drag if one had to manually input every coordinate everytime one needed something new drilled or so.
I was thinking; Best case, some CAD->CAM, but coordinates from a plain ASCII- file would due just fine.
As I said, I've never bothered learning / using advanced counters in & out of Subs, or opening files for input / output before, and I really need help with this.
I don't know if this thing's ever going to see the light of day due to these problems, but if it does, it's possible there's money in it too...
Not professionally, but private perhaps... Who knows, right?
At the very least, we'll (Or rather I) put the credits & Greets for those who've helped us.
What has to be built:
3-Axis control, using Driver- chip's with atleast 3 bit's to control them, possible one more for high / low speed.
Like Enable, Direction, Half / full- step, and 'externally' (Not in driver- chip) maybe a variable strobe (Square wave pulse-giver).
Some kind of control- matrix so that I can swith between the 3 axis. Most likely the input's on the Drivers are going to be latched (As in a short, 1-bit memory).
There might be even more output's for like additional axis (Like tilt & turn), but most likely switching speeds on the cutting-spindle (Thinking some kind of solenoid- driven gearbox at the moment, later issue though).
Geez... There's a ton of stuff that can, and can't be done here.
I think it's worth mentioning that this does not have to be extremely sophisticated in any way, just as long as it works.
So...? Any thoughts anyone..?
Yes, I'm nuts, but that my excuse, what's yours =0)
It's a funny project. Hard, but funny. Really straightens out your noodles
Bye 4 now from Sweden.
Yes, that green banana- shaped country, packed with wooden horses and Elks
For those who've noticed, I've changed the subject- content, sorry.