Author Topic: A mcu-based milliohm meter  (Read 28164 times)

0 Members and 1 Guest are viewing this topic.

Offline janengelbrecht

  • Regular Contributor
  • *
  • Posts: 181
  • Country: dk
    • JP-Electronics
Re: A mcu-based milliohm meter
« Reply #50 on: November 13, 2014, 08:36:08 am »
Really a interesting project. Not until now i had realised the presence of differential ADC in these Atmel chips :P I will follow this subject with great joy in the future :)

Offline dannyfTopic starter

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: A mcu-based milliohm meter
« Reply #51 on: November 13, 2014, 12:15:15 pm »
AVR's ADC modules are quite unique among 8-bit mcus (and even among 32-bit mcus) in that it not only offers differential capabilities but has a variable gain module there, allowing it to achieve better resolution than spec'd.

The Attiny's ADC module, unfortunately, is a little bit crippled in that its positive input must be at a higher potential than its negative input. Other AVRs, like usb128x or 32u4, don't have that limitation.

Unfortunately, usb128x is quite expensive. 32u4 is used in many of those cheap Pro mini boards. Unfortunately, those designers did not route out the ADC0/ADC1 pins.

The best pick for this would be a Leonardo board - its ADC0/1 pins are full accessible. But it seems an overkill for this purpose.

If you want to build, however, a milliohm / millivolt meter with digital display, a Leonardo + lcd shield would be a perfect choice.
================================
https://dannyelectronics.wordpress.com/
 

Offline nuno

  • Frequent Contributor
  • **
  • Posts: 606
  • Country: pt
Re: A mcu-based milliohm meter
« Reply #52 on: November 13, 2014, 12:27:03 pm »
Some (for example ATtiny24, ATtiny261) support the "Bipolar Differential Conversion" mode, in which any of the inputs can be higher than the other and the result will be a signed integer.
 

Offline dannyfTopic starter

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: A mcu-based milliohm meter
« Reply #53 on: November 13, 2014, 01:26:53 pm »
Not sure about 261 but Attiny24/44/84 have the same adc module as the 25/45/85: the positive input needs to be at a higher potential than the negative input.

I will get a pro micro and hand solder out the ADC0/ADC1 pins to experiment.
================================
https://dannyelectronics.wordpress.com/
 

Offline nuno

  • Frequent Contributor
  • **
  • Posts: 606
  • Country: pt
Re: A mcu-based milliohm meter
« Reply #54 on: November 13, 2014, 03:57:31 pm »
"As default the ADC converter operates in the unipolar input mode, but the bipolar input mode
can be selected by writting the BIN bit in the ADCSRB to one. In the bipolar input mode two sided
voltage differences are allowed and thus the voltage on the negative input pin can also be
larger than the voltage on the positive input pin
."


Datasheet is your friend :) . In each generation ATMEL introduces some minor improvements.
« Last Edit: November 13, 2014, 03:59:32 pm by nuno »
 
The following users thanked this post: I wanted a rude username

Offline dannyfTopic starter

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: A mcu-based milliohm meter
« Reply #55 on: November 13, 2014, 04:19:16 pm »
That's indeed the case.

Thanks.
================================
https://dannyelectronics.wordpress.com/
 

Offline dannyfTopic starter

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: A mcu-based milliohm meter
« Reply #56 on: November 14, 2014, 12:46:45 am »
Current consumption: 16.6ma total. The driver circuit consumes about 14.7ma so the chip itself consumes 2ma.

================================
https://dannyelectronics.wordpress.com/
 

Offline nctnico

  • Super Contributor
  • ***
  • Posts: 27923
  • Country: nl
    • NCT Developments
Re: A mcu-based milliohm meter
« Reply #57 on: November 14, 2014, 09:11:56 am »
I have a feeling you can increase the resolution a lot if you change the software to do synchronous integration.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline dannyfTopic starter

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: A mcu-based milliohm meter
« Reply #58 on: November 14, 2014, 09:30:33 pm »
Quote
6) Better topology - a real high precision milliohm meter can be done with an external adc - differential input, differential external reference input, 16 bit or more. Put the dut in serial with the precision resistor. The differential adc across the dut and the differential external reference across the precision resistor. The output is ratiometric to the precision resistor.

An example of it would be here - notice how DUT (R3) is connected with the reference resistor (R2). R2 doesn't need to be a precision resistor. If it is not, you need to calibrate the meter.

You can easily go sub-milliohm with this approach.
================================
https://dannyelectronics.wordpress.com/
 

Offline dannyfTopic starter

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: A mcu-based milliohm meter
« Reply #59 on: November 14, 2014, 09:31:30 pm »
You can reconfigure a typical digital meter, like DT830, in a similar approach to get a very inexpensive milliohm meter out of it, with digital readout too.
================================
https://dannyelectronics.wordpress.com/
 

Offline dannyfTopic starter

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: A mcu-based milliohm meter
« Reply #60 on: November 15, 2014, 10:51:40 pm »
Changed the gain to 1v/100mohm.

The readout is a digital volt meter (1v/100mohm), and a digital current meter (10ua/100mohm)
================================
https://dannyelectronics.wordpress.com/
 

Offline dannyfTopic starter

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: A mcu-based milliohm meter
« Reply #61 on: November 19, 2014, 01:05:15 am »
I took the attiny85 code and ported it to attiny84 - minor changes.

Here it is, measuring a 0.1ohm resistor on a 1v/0.1ohm scale.

Because of the bipolar output, nulling is very easy here.

================================
https://dannyelectronics.wordpress.com/
 

Offline dannyfTopic starter

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: A mcu-based milliohm meter
« Reply #62 on: November 19, 2014, 01:20:49 am »
Minor changes -> running on timer1, 10-bit pwm.

================================
https://dannyelectronics.wordpress.com/
 

Offline nuno

  • Frequent Contributor
  • **
  • Posts: 606
  • Country: pt
Re: A mcu-based milliohm meter
« Reply #63 on: November 19, 2014, 09:49:09 am »
Very nice :)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf