the shorty is not a precision device. what you need to measure is two relative points to see at less than a milliohm if the resistance is lower or higher between the two points. the absolute ohm value is not important, and not to be trusted to the last digit !
Okay, thanks for the replies. I understand that it's not a precision device but it has very good components to be one, right? Maybe there is still room for improvement.
I will see if I can find the good function for the devices you measured, but the current may be not constant for the measure so that's why the value is not linear compared to the resistors.
Improvement on the software side would be good, what else can be done to make the circuit physically better than it is now? Constant current source maybe?
Make sure to null out the probes before measuring shorty_measured_res, and again before making your confirmation measurements.
If that's not good enough, change "Rx = Rx * calibration_factor;" to "Rx = (Rx + 0.039) * 0.916;" for linear two-point calibration.
I Appreciate all the inputs.
Yes I'm confident that a constant current source would improve the device accuracy...
Today i tried supplying constant 50mA from a lab power supply , removing the transistor and the following resistor network.
Results are promising. Funky readings went away but need a little more special care.
Edit: i didnt supply constant current but limit the current Max at 50ma.
you could try something like this
why not, but for me not a drawer component I have around, easier to get 2 ex of some basic silicon diode ?
How abour this CMJA5050
https://my.centralsemi.com/datasheets/CMJA5050.PDF
Did you review the datasheet for that part?
It has a 10% tolerance, takes over 10 seconds to come into regulation, and has a TC of -0.3mA/degC.
It is not a precision part, and it also seems to need a supply of 8V or so to regulate.
Okay, how do i limit the current to 50mA then?
These are the results when i use the lab psu limited at 0.05A its almost perfect.
Okay, how do i limit the current to 50mA then?
These are the results when i use the lab psu limited at 0.05A its almost perfect.
If you want precision, I would suggest changing the design to use an opamp controlled current source.
https://en.wikipedia.org/wiki/Current_source#Op-amp_current_sourcesSo, looking at the original Shorty schematic, R3 would be the sense resistor and selected for higher precision, and R1 would be replaced with a transistor controlled by the opamp. R2 and the DUT become the load. Assuming R3 stays at 1 ohm, you would need a voltage reference (the 5V or 3.3V rail may be OK) and divider to get the 50mV reference. Opamp would have to be selected for a low offset voltage.
Thank you for providing information. I'll go and spend some time on this to learn it better so i can implement it , hopefully
Thank you for providing information. I'll go and spend some time on this to learn it better so i can implement it , hopefully
If you don't have experience with opamps, then a much simpler but slightly less accurate solution would be using an LM317L as the current source (in place of R1).
You can get the 50mA using just the LM317L IC and a 25 ohm 1% or better resistor, and calibrate the final result in the firmware.
This will perform much better than that part you suggested earlier.
Note that 25 ohms is not a standard resistor value, so just use a 24.9 ohm, or parallel 3 x 75 or 4 x 100 ohm. Or some other combination like 10 + 15 ohm in series.
if you feed 50mA constant, I'm afraid you can't measure resistors above 0.5Ω
it would be better to stay with 30mA.
Oktay, Lm317L looks easy enough , i'll give it a go.
Hello again. I've been playin with the calibration settings and i think i finally arrived at a point that the results satisfy me.
Lower values are absolutely on point. It reads slightly lower value above 1ohm.
Ordered a couple mcp3421's , waiting for their arrival. The one i've set up on breadboard will stay for further tinkering.
And i made this pcb ordered from oshpark, hope it works as i'd like it to.
PCBs for JDobrey's Shorty Pen have arrived from JLPCB.
5 x PCBs for $4.00USD delivered. Crazy at how low cost they can make these.
I have sourced all my components from LCSC and waiting for them to arrive, and happy to share the BOM if people want it. It's a bit different from JDobrey's which was from 2022.
After a certain period of operation of the device Shorty Pen (frequent calibrations), malfunctions began.
1. After switching to left-handed mode and turning off the device, it is no longer possible to fully return it back.
Plus, calibration no longer works in this mode. At 8.2 Ohm the device turns off without making a sound..
The device does not turn off normally (there is no sound signal and turns off only after the button is released)
2. Also... if during calibration you press the save button with the probes open, the device freezes.
You need to turn off the device again and repeat the calibration process again. I noticed that different devices may have different glitches, but the meaning of glitches is the same - it occurs when information is written to the EEPROM.
The REASON seems to be an overflow of EEPROM or accumulation of errors in the EEPROM..
After reflashing the MK - everything is OK!
@kripton2035
what is the purpose of Q1 at all?
According code it is permanently ON.
@kripton2035
what is the purpose of Q1 at all?
According code it is permanently ON.
yes, it was connected only when measuring on the original device.
I recall it was because it had an auto shut off
here, as I use a mechanical switch to power it on, I did not need anymore.
also it should flow more current in the test probes than with the arduino outputs.