i just mille dout my first real circuit board ever and it looks nice! thanks emc2 ;)
i'll post pictures and a nice vid to make up for the crazy test run video soon...
... jsut needs editing
So is AZ aligned with mountain time or Pacific currently?
hrm...spring ahead fall back...I dunno...GMT-7 here :D
I guess CA and AZ are in synch
AS is always MST. CA is PDT is MST. It is all too confusing for those of use with single neuron processing.
AS == AZ
Anyone here familiar with using HAL scope? Trying to read an index signal on pin 15 and get nada.
Shows up on the 'silly scope before it hits the parallel port so I know it is heading the right direction at least, just can't see it from HAL scope..
can you read any other signals?
I can see e-stop (pin 10 for me) for instance
I can watch the CP signal on pin 17 too
is it easy to switch the wires from 15 to 10
just to test
gotta be something dumb I am doing in the hardware
i'm thinking it might be too fast for the thread you're running
inflexible commmercial BOB that I am gettin gclose to regretting. Leave it at that. Very much MACH3 oriented.
yes, maybe too fast -- occurred to me too
I measure ~50 kHz at the generator.
er.. 50kHz what?
sorry, 50 kHz worth of pulses from my index test thingy. That is being presented to the input on pin 15.
if the index pulse is 20 microsec long your scope thread period has to be at most 10us, which seems unlikely
I just recalled something. I did check the speed thing by manually creating pulses (optical interrupter) and did not see it show up in HAL scope so must be somethng else.
HAL scope thread samples at ~24 usec (single channel) according to the dialog that pops up, so yes, could eb that.
you're sure it's connected to pin 15?
That occurred to me too. It *should* be on pin 15 according to documentation and labelled connector block. As a cynic, I did test other inputs that were not in use. No sigs there either. :)
if it were me, i'd just hook poke some wires directly to the parport connector
yes, that sounds like me too.
you know, +5v through a 1k resistor
will try that
if that doesnt work, then your parport is no good
if it works on 10 and not 15 i mean
I know 10 works since I have e-stop there
will do more debugging tomorrow.
Thanks for ideas.
I wondered if I need some sort of signal conditioning. The pulse index thingy I made uses an H22A1 device, a transistor and accompanying resistors.
I am not electronics saavy, just know enough to make things work sort of 90% of the time. The rest of the time i sthe normal state of cluelessness.
well its mostly just standard empirical testing and debugging, making sure you know what you think you know
I will test the port inputs tomorrow and work my way back toward the indexer. The solution will present itself along the way.
btw your h22a1 sensors has a turn on time of 8us, it might not be too happy at 50kHz
and turn off of 50us, that wont work
i dunno what you're doing though
hrm...well, signal on 'scope looked nice and clean...I bet I fubared the calcs.
ok, maybe the datasheet was being conservative
I have a small encoder disc with 40 dark partitions and therefore 40 clear partitions Sorry, not sure of the correct encoder terminology.
typically called slots or lines
It passes through the H22A1 and trips it out, driving PN4248
dont say 'counts' because it can mean edges (4 edges in a cycle)
Okay, slots, yes, thanks.\
I thought 40 slots was maybe too fast so I made a test encoder with just 1 slot
then another with just 2 at 180 degrees
is this for a lathe spindle or something?
spindle on a small mill
someday maybe adapt to a small lathe
ok.. are you going to be doing tapping or threading?
I want to try tappin on the mill, threading on the lathe
ok, i think you will need to use a quadrature encoder to do tapping, since you have to back out of the hole
well, i did not tell you the WHOLE story :)
I have a device I made that has two H22A1s
also, you need an index channel, a ring with only one line/slot, in order to use lathe threading right now
and the 40 slot encoder
I have no index channel
makes total sense though
needs to know where "home" is
it doesnt make any sense to me, but meh :)
(not home but some reference)
I may have to rethink this
Oh well, it will be fun to make EMC read RPM anyway, just so I can look in the mirror and say I did it.
I do want to make the mill do tapping though.
is counter.c sufficient for a spindle tach input do you think?
counter is obsolete.. use encoder instead
will look at it - thanks
I stalked your website and became engrossed in the encoder article.
i havent actually built one
The microchip white paper is intriguing.
makes me think I should get a more modern optical switch. I used the H22A2 because it was in my junk bin. The encoder wheels were attached to some old Pittman 9413 motors. I just used what I had on hand.
random observation: I bet this is the first time I have signed onto IRC in ...10 years maybe
you mean use a photodiode array instead?
maybe too fancy for my needs, but that is interesting, yes
it's overkill for CNC
I really just need something that turns off faster than 50 uS
even 8 uS turn on time is kind of slow
yeah, its typical
most opto-isolators are around 3-4us
Well, that's why I added the second H22A2. Figured I could get twice as many pulses ( iguess maybe 4X if I knew what I was doing)
But, I am not using the seocnd device for this round of testing.
yep should be easy with emc2/HAL
It works though from a hardware standpoint. I can see both traces on the 'scope and they are decent.
50us @ 40 cycles/rev should get you to about 5000rpm, if my math's right
best way to find out is to look at the waveform though
that looks right
so, what you do with CNC mills?
Mostly break cutting tools. :)
just like the best of 'em
I have a couple of interests.
One is making parts for a rock crawler.
what is a rock crawler?
I used to make motorcycle parts but am not into that any more :(
er, radio control
Rock Crawler...4 wheel drive vehicle that has huge tores and goes places that it is difficult to even walk. Not monster truck...
No, pollution creating, ecounfriendly honest to goodness vehicles.
this thing is a piece of work http://www.toughracing.com/zc126d/index.php?main_page=product_info&products_id=496
I see what some people are doing and am utterly humbled.
Especially the R/C 'copter crowd.
thanks for insights fenn
there's only 10 billion pages on this internet, gotta be in here somewhere..
morning all, btw anyone use 'multicam' is some CNC router. I have some user manuals and control boards that are heading for the trash/bin if anyone wants them
what's the word from EMC fest?
pjm: pics of control boards? I'd pay shipping probably....
great stuff. Just no internet access at the moment
Sweeper one sec i will take a photo
multicam parts: http://pjm.dyndns.org/multicam.jpg
i did 1/2 consider ebaying them, but i'm probably far too lazy
doesn't look like anything I could use as-is, probably not worth it to ship just for component salvage, although the opto-isolators and headers are tempting
bah i'm sick of opto's
i have tubes of them
if anyone needs, i have 50 off TLP3052 which u can have for postage
i'll make a list of the other tubes of optos
hey all, anyone know if it's possible to change a mother board (same cpu) with ubuntu 8?
i have an ECS mb that is the craps with latency errors and i'm thinking of changing to an asus mb. using the same cpu.
i would rather not go thru the complete install if i don't have to.
Roguish: if you're using a default kernel you should be ok....all the drivers will be present
I haven't done anything unusual that i know of. it's strictly an emc2 system.
see you in roughly a week guys
* alex_joni is off for vacation a week ;)
you there fenn?