- Posts: 4819
- Thank you received: 0
Hypersensing questions
Sorry, totally off topic.
Please Log in to join the conversation.
I had some issues where this was a bit forgetful and forgot to turn the probe off when retracting so this does a bit more checking. Seems OK now after cutting a full sheet.
Please Log in to join the conversation.
- snowgoer540
- Topic Author
- Offline
- Platinum Member
-
- Posts: 2580
- Thank you received: 0
rodw wrote: Attached is a revised component.ohmic3.comp.. You will need to edit your halfile from ohmic2 to ohmic3.
I had some issues where this was a bit forgetful and forgot to turn the probe off when retracting so this does a bit more checking. Seems OK now after cutting a full sheet.
Installed this tonight. Will report back if anything goes amiss.
Please Log in to join the conversation.
I could not really get back into the headspace where I was when I wrote ohmic2 so I simplified the conditions abit. One thing I did do was turn the probe off if the voltage fell below the low limit which Ohmic2 was ignoring. I might still need to find a better pin to turn the relay on with.
Please Log in to join the conversation.
- snowgoer540
- Topic Author
- Offline
- Platinum Member
-
- Posts: 2580
- Thank you received: 0
rodw wrote: I am in terror now the official tester has shifted his focus to my code!
I could not really get back into the headspace where I was when I wrote ohmic2 so I simplified the conditions abit. One thing I did do was turn the probe off if the voltage fell below the low limit which Ohmic2 was ignoring. I might still need to find a better pin to turn the relay on with.
I find if I don't take copious notes between high-thought-provoking tasks like that, I require too much time to get back to where I was mentally.
I was going to compare the codes to see what might have changed, but honestly I didn't understand what was going on in the ohmic2 comp lol.
Please Log in to join the conversation.
First off there is a moving average calculator. Its high level advanced code. so just ignore it and accept that it calculates the average of the last num_readings eg (5,10,100 or whatever you set the pin at)
So I know from said hours of study that the THCAD is sensitive enough to see the arc voltage ramp up from 0 volts to 24 volts over say 0.04mm of movement as the torch contacts the plate.
When the torch is wet, there is very little change in the arc voltage as it breaks contact from the material but we want to build some hysteresis into the probe on and off signal to prevent false triggering. This means we can't really use a separate lower threshold and be confident the voltage will fall below it.
So what I did is use the moving average and just guessed that with say a 22 volt high voltage threshold, the first time its crossed, it might be say 23 or 24 volts, not 22.01 volts. At that point, the average volts should be quite high becasue the buffered readings that are averaged would be increasing. So once we start moving away from the plate, it should take a few servo cycles before the average falls below the high threshold. So what we've done by using the average is build in some hysteresis between the peak voltage reading and the high threshold.
Ohmic3 takes this one step further and will also turn the probe off if the voltage falls below the low threshold as a failsafe backstop. Without this backstop (say on a dry table), I had a couple of instances where the torch probed backwards forever without the probe turning off. So now its reliable in wet or dry conditions ( I hope!)
So that is as clear as I can make my twisted thought process behind this component. Its really quite cool with a 50c resistor and this code we can do something that is not really possible. That is to implement reliable ohmic probing on a water table (touch wood!!!)
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
- snowgoer540
- Topic Author
- Offline
- Platinum Member
-
- Posts: 2580
- Thank you received: 0
I did notice sometimes it pauses while probing. I think that is when the material was rusty and it got to the float switch instead. I'll have to do some testing around that, see if it's really an issue or a perceived issue.
Please Log in to join the conversation.
My feeling was it is quicker probing with hypersensing.
I have not upgraded to Phil's fast probing. I suspect that might make this more prevalent by smashing into the material.
Please Log in to join the conversation.
