Skip to main content
Topic: DP Part Ninja (Read 79370 times) previous topic - next topic

Re: DP Part Ninja

Reply #120
There is a new version of the Ninja Part in development?, ESR measurements will be added on a future release?

Re: DP Part Ninja

Reply #121
Hi, i want to buy some pcbs, there are any left?
Otherwise there are someone interested in group buy?

Re: DP Part Ninja

Reply #122
Hi, has this project been abandoned or just put on the back-burner?

Re: DP Part Ninja

Reply #123
Hi, I have built a stripped down version of the Part ninja with components I have at home, the measures I get are a bit far from real.

On the code I see that it supposes that all component values are perfect (5V power supply, 680 Ohms and 470K Ohms resistors, ...).
I think it's better to leave resistor values as #defines and use the real values.

The power supply can be measured on power up as each USB port gives different voltages (I have seen values between 4.8-5.2V), we can use the 2.5V VREF+ and make a  voltage resistor on PIN1 setting two 680 ohms outputs to VSS and one to VDD to get 1.6666V.

How do you see this changes? I will try to do this changes and see if the improvement on precision is noticeable.


Re: DP Part Ninja

Reply #124
I have 3 Part Ninja v1d pcb left. The first three to pm me their mailing address will get one.

Re: DP Part Ninja

Reply #125
Hi, I was trying to understand the code to make some improvements. The theory behind the code is very clever but code is hard to follow as it is full of variables with very short and unmeaning names. I ended up rewriting great part of the code, I have structured and ordered it and added more comments to make it more understandable, I think the result is good.

I have added the option to use the TX serial port as it is more handy for debugging than the CDC, it can enabled on HardwareProfile.h disabling the LCD as they share the pins. The USB_CDC, LCD and SERIAL can be enabled or disabled with defines but I have not placed #ifdefs all around as I still don't have problems with size.

I have improved the accuracy of resistor calculation and the same principle can be applied to other readings, but maybe the formula I used is specific for my chip or USB port. I noticed that when the component under test in series with 680 resistor requires more than few mA the 0V and 5V output of I/O ports are V_low and (5V-2.8*V_low) respectively, with this adjustment the reading is very similar to my multimeter

I will be glad if anybody can review the code, and check if the LCD works fine as I don't have one to test and check some components to see if the readings are correct.
The compiled HEX file is on folder uPartNinja.XdistXC8_18F4550production

Re: DP Part Ninja

Reply #126
If anybody interested I have also improved the Diode, Zenner and Capacitor calculation by measuring the real VCC using the 2.5V Refence. For capacitor I used the timer0 for calculating the elapsed time more precisely.

To use the real VCC and not 5V I used the log function that has eaten 2500B of Flash, anybody knows a simplified log function that works for integers between [0-6000]?
Other question, which is the intended use of the unused pins marked as PWM and analog?

Re: DP Part Ninja

Reply #127
As I see that some people is downloading the code, this is the updated version with some fixes and the improvements on the calculations. I also implemented the logarithm using much less space that the one on the library.

I was trying to measure inductances the same way capacitors are calculated, but is not practical as voltage change is very fast.
I think that the best method to calculate inductances is to place a capacitor in parallel and measure the voltage at some frequencies generated with the PWM module, I will try when I get some spare time.

Re: DP Part Ninja

Reply #128
Anyone have a digikey partlist for this?


Re: DP Part Ninja

Reply #130

I mirrored it for historical purposes.

The developer that did some improvements used Mercurial. He maintained the .hg directory in the first tarball, but not on the second one. Another issue is that he didn't use the original directory structure and I have no clue how to merge the changes.

Unfortunately, I have no clue about SCMs/VCS, even less DVCS

Can anyone submit a proper pull request? Even better if preserving history, so I encourage the original author to do it.

Kind regards.

Re: DP Part Ninja

Reply #131
I have uploaded the last code to bitbucket

I have recently revised the code because my Part Ninja seems to get stuck under some circumstance like testing P-Channel Mosfets but I have not found yet the error.

Re: DP Part Ninja

Reply #132
[quote author="chemary"]Hi,
I have uploaded the last code to bitbucket

I have recently revised the code because my Part Ninja seems to get stuck under some circumstance like testing P-Channel Mosfets but I have not found yet the error.[/quote]

Thanks a lot!

Why did you delete the history? ... n-hardware ... Part-Ninja