Re: Precision Piezo Z-probe Now available. January 10, 2019 04:15PM |
Registered: 9 years ago Posts: 487 |
Re: Precision Piezo Z-probe Now available. January 11, 2019 01:29PM |
Registered: 6 years ago Posts: 9 |
Re: Precision Piezo Z-probe Now available. January 11, 2019 01:53PM |
Registered: 9 years ago Posts: 77 |
Re: Precision Piezo Z-probe Now available. January 11, 2019 03:22PM |
Registered: 9 years ago Posts: 487 |
Re: Precision Piezo Z-probe Now available. January 11, 2019 04:48PM |
Registered: 11 years ago Posts: 651 |
Re: Precision Piezo Z-probe Now available. January 11, 2019 04:59PM |
Registered: 9 years ago Posts: 487 |
Re: Precision Piezo Z-probe Now available. January 11, 2019 05:32PM |
Registered: 11 years ago Posts: 651 |
Re: Precision Piezo Z-probe Now available. January 11, 2019 05:48PM |
Registered: 9 years ago Posts: 487 |
Re: Precision Piezo Z-probe Now available. January 11, 2019 06:53PM |
Registered: 5 years ago Posts: 5 |
Re: Precision Piezo Z-probe Now available. January 11, 2019 08:46PM |
Registered: 7 years ago Posts: 31 |
Quote
MKSA
Looking at your schematic, I found it quite strange although I understand the principle.
A 3X Opamp for the piezo signal, its Vout fed to a comparator whose triggering level is determined by a R ladder adjusted by the microcontroller.
Now, the front end Opamp is "strange", and why is its output connected to a 2.5 Vref via a 1M resistor ? Regarding the R ladder. How many possible values ?, just pulled down or a combination of up and down ?. Why not a classical R ladder (R-2R, weighted R) or even a Digipot ?
Re: Precision Piezo Z-probe Now available. January 11, 2019 08:47PM |
Registered: 7 years ago Posts: 31 |
Quote
Moriquendi
@Pyroball,
It looks very interesting, can you give an explanation of how it works? Specifically how the software and hardware interact?
Idris
Re: Precision Piezo Z-probe Now available. January 12, 2019 06:44AM |
Registered: 13 years ago Posts: 1,462 |
Re: Precision Piezo Z-probe Now available. January 12, 2019 07:08AM |
Registered: 9 years ago Posts: 487 |
Re: Precision Piezo Z-probe Now available. January 12, 2019 10:22AM |
Registered: 7 years ago Posts: 31 |
Re: Precision Piezo Z-probe Now available. January 12, 2019 01:09PM |
Registered: 13 years ago Posts: 1,462 |
Re: Precision Piezo Z-probe Now available. January 12, 2019 01:51PM |
Registered: 9 years ago Posts: 487 |
Re: Precision Piezo Z-probe Now available. January 12, 2019 02:36PM |
Registered: 11 years ago Posts: 45 |
Re: Precision Piezo Z-probe Now available. January 12, 2019 02:41PM |
Registered: 9 years ago Posts: 487 |
Re: Precision Piezo Z-probe Now available. January 13, 2019 02:57AM |
Registered: 7 years ago Posts: 1,007 |
Quote
pyr0ball
Quote
MKSA
Looking at your schematic, I found it quite strange although I understand the principle.
A 3X Opamp for the piezo signal, its Vout fed to a comparator whose triggering level is determined by a R ladder adjusted by the microcontroller.
Now, the front end Opamp is "strange", and why is its output connected to a 2.5 Vref via a 1M resistor ? Regarding the R ladder. How many possible values ?, just pulled down or a combination of up and down ?. Why not a classical R ladder (R-2R, weighted R) or even a Digipot ?
Digipots are a lot more expensive than 5x resistors, and the DAC output on arduino's isn't all that reliable I've been led to believe. The circuit acts as a coarse digipot by either disconnecting the digital pins at junctions of the resistor ladder (by setting the pinmode to "INPUT", or pulls them to ground by setting the pin to "OUTPUT" and digitalWrite(LOW). So I've got 5 values to adjust to, which seems to be good enough for all of the piezo sensors I've tried thus far.
Essentially what this is doing is adjusting the reference voltage for the comparator portion of the circuit to within a range that it will filter out normal printer vibrations, and still pick up the piezo bump. Having the 1M resistor with the VRef allows the charge at the inverting input to slowly stabilize after a bump. The piezo is basically acting like a capacitor in this circuit, either charging or discharging based on the mechanical force. With the 1M resistor tied to that pin ensures that the recovery time of the input takes a little while, It's got a very fast rise time, but a very slow fall time. The comparator is also inverting this signal, and drawing a pulled up interrupt pin on the Atmega88 to ground. Having it's "virtual ground" on the inverting input of the comparator be at midrail (~2.5v) allows the voltage to sit at a level that can be more easily adjusted for the noninverting input. It can go up, or down that way, rather than only up, and account for unforeseen environmental causes of voltage change.
Re: Precision Piezo Z-probe Now available. January 13, 2019 01:52PM |
Registered: 10 years ago Posts: 14,683 |
Re: Precision Piezo Z-probe Now available. January 14, 2019 03:25AM |
Registered: 7 years ago Posts: 31 |
Quote
MKSA
What I thought as for the intended mode of operation but:
- Based on the schematic, the 3X amp as drawn is wrong, its IN- is connected to ground ! Schematic error ?
- The 2.5V Vref with a 1M will have no real effect as it is connect to the Opamp OUT. I can't see how it could: "so you don't end up with a mess of extremely fast signals all coming through.". So , is the schematic correct ?
- Using R-2R ladder would have given you a lot more possibilities at no extra cost. Used in DAC for decades.
Yet there are other ways, better ways, for ex. DC42 in his smart effector just feed the sensor signal after some conditioning to the ADC of the processor and do all the this work in software.
To "upgrade, correct" hardware in the field is quite difficult isn't ?
Re: Precision Piezo Z-probe Now available. January 14, 2019 03:55AM |
Registered: 10 years ago Posts: 14,683 |
Quote
pyr0ball
ADC signal processing may be better able to distinguish the waveforms of a bump and filter through software, but it's slow compared to the method I'm using (interrupt pins)...
Re: Precision Piezo Z-probe Now available. January 14, 2019 01:42PM |
Registered: 7 years ago Posts: 31 |
Quote
dc42
Done properly, it's not slow enough to matter. Using a probing speed of 20mm/sec (which is quite fast), if the code takes 100us to take an ADC reading and do the calculations, the jitter introduced would only be 2um.
Re: Precision Piezo Z-probe Now available. January 14, 2019 03:22PM |
Registered: 10 years ago Posts: 14,683 |
Re: Precision Piezo Z-probe Now available. January 14, 2019 05:50PM |
Registered: 13 years ago Posts: 1,462 |
Re: Precision Piezo Z-probe Now available. January 15, 2019 01:45AM |
Registered: 7 years ago Posts: 31 |
Re: Precision Piezo Z-probe Now available. January 16, 2019 09:51PM |
Registered: 6 years ago Posts: 43 |
Re: Precision Piezo Z-probe Now available. January 17, 2019 02:40AM |
Registered: 7 years ago Posts: 1,007 |
Quote
iamthebest22
got a weird problem I hafta ask, the answer seems obvious but I wanna ask to confirm before I do it. So basically it's been working well until today, when I get sudden G29 probe failures at the same exact two points (out of the 36 doing a 6 x 6 it's a huge 500 x 500 mm bed). So I checked and oddly enough once in awhile at those two points, the damn thing suddenly loses power, I thought it was a wire issue so I tested my wires, and they have continuity, so I decided to push the plug in more despite it looking like it's in pretty much all the way and it sorta works fine now?
I'm wondering if I should change the wires nevertheless (it's a 2meter continuous wire) or if it's the F6 board having issues (unlikely but I am liking this board less and less and really tempted to just go for my Duet Wifi). Any idea or to confirm what is causing this weird "no power" (like it just suddenly goes dark no led whatsoever) on just the same exact two probe points (aka the first 2 probe points nears the front right of the machine) on my machine? Thanks
Re: Precision Piezo Z-probe Now available. January 17, 2019 04:07AM |
Registered: 7 years ago Posts: 154 |
Re: Precision Piezo Z-probe Now available. January 17, 2019 06:13AM |
Registered: 13 years ago Posts: 1,462 |