Author Topic: EEVblog #240 - Power Supply Design Part 8  (Read 55052 times)

0 Members and 3 Guests are viewing this topic.

Offline ejeffrey

  • Super Contributor
  • ***
  • Posts: 3922
  • Country: us
Re: EEVblog #240 - Power Supply Design Part 8
« Reply #75 on: January 31, 2012, 11:22:49 pm »
On the matter of the MCP DAC.  I had a good and hard look through the datasheet and really don't have any idea of the internal architecture of the DAC.  Is it successive approximation?  Is it some kind of screwy Sigma-Delta method?  How about double-buffered?  If the output is going to a R-2R resistive ladder just how good is the trimming process? 

The data sheet says it is a 'resistive string architecture'  -- to me that means a chain of 4096 resistors in a voltage divider, mosfet switches for each tap, and a buffer amplifier.  It seems a bit surprising to have that long of a string, but it would explain the large INL, and they do claim that it provides low DNL, which makes sense.
 

Offline benemorius

  • Regular Contributor
  • *
  • Posts: 173
Re: EEVblog #240 - Power Supply Design Part 8
« Reply #76 on: February 01, 2012, 12:56:51 am »
@Dave

Can't you keep the 1mV/step you're after while disabling the x2 gain and the error associated with it by multiplying your value by 2 before sending it to the DAC? You don't actually need the DAC to scale all the way to 4.096V right? In the video, it looked like your error was at least somewhat smaller before you switched on the x2 gain. (closer to 2.5mV rather than 5mV)

Also, by forcing the 2 MSBs to zero it seems to me that you're clipping your max DAC output to 1024mV (or 512mV with x1 gain). Obviously you'll catch that sooner or later, but it may as well be sooner. ;)

 

Offline janekm

  • Supporter
  • ****
  • Posts: 515
  • Country: gb
Re: EEVblog #240 - Power Supply Design Part 8
« Reply #77 on: February 01, 2012, 01:23:59 am »
I believe the formula referencing D/4096 in page 23 is a bit of a datasheet bug... It contradicts Table 4-1 on page 19 which states clearly that 1LSB = Vref /256 * G in the case of the 8-bit part (so for Dave's design that would be 16mV). 
So clearly the INL is still tightest for the 12-bit part as one would expect. 

Also, agree with @benemorius... The error will be less if only using the gain when it is needed for the full 4.096V range, as with the gain turned off 1LSB on the 12-bit part is .5mV so only +-6mV INL ( or even better by reducing the gain error, which is max 1% of FSR, or 40mV!).
 

Offline Rerouter

  • Super Contributor
  • ***
  • Posts: 4700
  • Country: au
  • Question Everything... Except This Statement
Re: EEVblog #240 - Power Supply Design Part 8
« Reply #78 on: February 01, 2012, 10:07:36 am »
from the size of the heatsink it looks like the case could potentally host an entire second layer of pcb and possibly even a third, if one wanted to mod that far, possible?
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 38715
  • Country: au
    • EEVblog
Re: EEVblog #240 - Power Supply Design Part 8
« Reply #79 on: February 01, 2012, 10:27:08 am »
from the size of the heatsink it looks like the case could potentally host an entire second layer of pcb and possibly even a third, if one wanted to mod that far, possible?

Indeed. There is a second board to come...

Dave.
 

Offline Rerouter

  • Super Contributor
  • ***
  • Posts: 4700
  • Country: au
  • Question Everything... Except This Statement
Re: EEVblog #240 - Power Supply Design Part 8
« Reply #80 on: February 01, 2012, 10:47:32 am »
and the case :), you have been dragging us along on that
 

Offline Bored@Work

  • Super Contributor
  • ***
  • Posts: 3932
  • Country: 00
Re: EEVblog #240 - Power Supply Design Part 8
« Reply #81 on: February 01, 2012, 11:38:24 am »
and the case :), you have been dragging us along on that

Should we start a betting pool?

My money is on a stackable instrument enclosure from polycase http://www.polycase.com/zn2
http://www.polycase.com/uploads/135971291909912.flv
« Last Edit: February 01, 2012, 11:41:24 am by BoredAtWork »
I delete PMs unread. If you have something to say, say it in public.
For all else: Profile->[Modify Profile]Buddies/Ignore List->Edit Ignore List
 

Offline slateraptor

  • Frequent Contributor
  • **
  • Posts: 833
  • Country: us
Re: EEVblog #240 - Power Supply Design Part 8
« Reply #82 on: February 01, 2012, 11:48:59 am »
My money is on a stackable instrument enclosure from polycase http://www.polycase.com/zn2

They're not made Down Under...you sure you want to make that bet? ;)

BTW, thanks for the link. Never heard of these guys before.
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 38715
  • Country: au
    • EEVblog
Re: EEVblog #240 - Power Supply Design Part 8
« Reply #83 on: February 01, 2012, 11:53:56 am »
They're not made Down Under...you sure you want to make that bet? ;)

Unfortunately the only cases that are made in Australia are the Jiffy Boxes, as used in the uCurrent.

The case is nothing special, nor secret, but now that everyone is keen to know, I'll tease a bit longer...  :P

Dave.
 

Offline baljemmett

  • Supporter
  • ****
  • Posts: 665
  • Country: gb
Re: EEVblog #240 - Power Supply Design Part 8
« Reply #84 on: February 01, 2012, 12:13:15 pm »
The case is nothing special, nor secret, but now that everyone is keen to know, I'll tease a bit longer...  :P

You're a big meanie, Dave ;)  It's the secret 'higher purpose' you've mentioned that intrigues me; I have my suspicions, but better to remain silent and be thought a fool and all that!
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 38715
  • Country: au
    • EEVblog
Re: EEVblog #240 - Power Supply Design Part 8
« Reply #85 on: February 01, 2012, 12:24:58 pm »
You're a big meanie, Dave ;)  It's the secret 'higher purpose' you've mentioned that intrigues me; I have my suspicions, but better to remain silent and be thought a fool and all that!

It's not really a "higher purpose" as such, like an application use like a battery charger some people have suggested. Its just more of a feature that I envisioned from the start that drove many of the decisions.

Dave.
 

Offline Bored@Work

  • Super Contributor
  • ***
  • Posts: 3932
  • Country: 00
Re: EEVblog #240 - Power Supply Design Part 8
« Reply #86 on: February 01, 2012, 12:46:41 pm »
They're not made Down Under...you sure you want to make that bet? ;)
What else should he use, carved wood?  ;)

Quote
BTW, thanks for the link. Never heard of these guys before.

They have some nice stuff. Unfortunately they have horrible shipping costs to Europe, so I tend to avoid them, unless my employer pays. I can think of better deals than $3 for an enclosure plus $50 to $80 for shipping.
I delete PMs unread. If you have something to say, say it in public.
For all else: Profile->[Modify Profile]Buddies/Ignore List->Edit Ignore List
 

Offline markus_b

  • Regular Contributor
  • *
  • Posts: 115
  • Country: ch
Re: EEVblog #240 - Power Supply Design Part 8
« Reply #87 on: February 01, 2012, 02:02:40 pm »
They have some nice stuff. Unfortunately they have horrible shipping costs to Europe, so I tend to avoid them, unless my employer pays. I can think of better deals than $3 for an enclosure plus $50 to $80 for shipping.
I have the same problem (Switzerland). In addition you start to pay taxes and custom fees when the price, including shipping exceeds $75 or so. A small $35 order then costs $120 because of $50 shipping and $35 tax+custom. The Chinese have learnt to deal with this as you can get cheap shipping to the world. This allows Dealextreme et al to thrive.
Markus

A good scientist is a person with original ideas. A good engineer is a person who makes a design that works with as few original ideas as possible.
 

Offline markus_b

  • Regular Contributor
  • *
  • Posts: 115
  • Country: ch
Re: EEVblog #240 - Power Supply Design Part 8
« Reply #88 on: February 01, 2012, 02:09:25 pm »
One idea for the link to a PC, maybe on a daughter-board: Just use a low cost Bluetooth adapter. This provides a serial link with galvanic separation (no cable). On the PC it looks like a serial port, much the same as a USB/serial converter.

With most PCs these days having Bluetooth built-in and such modules available for under $10 this looks very attractive. Example: Bluetooth module at Dealextreme, $6.60
Markus

A good scientist is a person with original ideas. A good engineer is a person who makes a design that works with as few original ideas as possible.
 

Offline FreeThinker

  • Frequent Contributor
  • **
  • Posts: 791
  • Country: england
  • Truth through Thought
Re: EEVblog #240 - Power Supply Design Part 8
« Reply #89 on: February 01, 2012, 03:13:44 pm »
Just a quick question from a noob to avr's is the sda line pulled high internally as I can't see one on the board?
Machines were mice and Men were lions once upon a time, but now that it's the opposite it's twice upon a time.
MOONDOG
 

Offline Bored@Work

  • Super Contributor
  • ***
  • Posts: 3932
  • Country: 00
Re: EEVblog #240 - Power Supply Design Part 8
« Reply #90 on: February 01, 2012, 04:27:53 pm »
Just a quick question from a noob to avr's is the sda line pulled high internally as I can't see one on the board?

The external pullups are in section C4 on the rev B schematics. AVRs do have internal, switchable pull-up's, however these are too weak for I2C.
I delete PMs unread. If you have something to say, say it in public.
For all else: Profile->[Modify Profile]Buddies/Ignore List->Edit Ignore List
 

Offline FreeThinker

  • Frequent Contributor
  • **
  • Posts: 791
  • Country: england
  • Truth through Thought
Re: EEVblog #240 - Power Supply Design Part 8
« Reply #91 on: February 01, 2012, 04:49:24 pm »
Thanks for that B@W. Missed that section entirely...one of the problems with 'modular' schematics is traceing signals that go to umpteen places with no indication on the drawing (especially if you are not familiar with the system/operation) but I should have spotted that one. Getting old I guess :(
Machines were mice and Men were lions once upon a time, but now that it's the opposite it's twice upon a time.
MOONDOG
 

Offline benemorius

  • Regular Contributor
  • *
  • Posts: 173
Re: EEVblog #240 - Power Supply Design Part 8
« Reply #92 on: February 01, 2012, 05:08:02 pm »
Thanks for that B@W. Missed that section entirely...one of the problems with 'modular' schematics is traceing signals that go to umpteen places with no indication on the drawing (especially if you are not familiar with the system/operation) but I should have spotted that one. Getting old I guess :(

But one of the huge advantages of pdf schematics is that you can use the search feature to follow net names around. ;)
 

Offline FreeThinker

  • Frequent Contributor
  • **
  • Posts: 791
  • Country: england
  • Truth through Thought
Re: EEVblog #240 - Power Supply Design Part 8
« Reply #93 on: February 01, 2012, 07:23:33 pm »
Thanks for that B@W. Missed that section entirely...one of the problems with 'modular' schematics is traceing signals that go to umpteen places with no indication on the drawing (especially if you are not familiar with the system/operation) but I should have spotted that one. Getting old I guess :(

But one of the huge advantages of pdf schematics is that you can use the search feature to follow net names around. ;)
Never thought of that  ;D. Tend to print things out (old school).....I really am showing my age :'(
Machines were mice and Men were lions once upon a time, but now that it's the opposite it's twice upon a time.
MOONDOG
 

Offline asgard

  • Regular Contributor
  • *
  • Posts: 124
  • Country: us
Re: EEVblog #240 - Power Supply Design Part 8
« Reply #94 on: February 01, 2012, 08:35:48 pm »
They're not made Down Under...you sure you want to make that bet? ;)
What else should he use, carved wood?  ;)


Why not?  It was good enough for Lee Felsenstein.  Loved those beefy wood end-pieces on the SOL-20's.

BTW about that heatsink.  It appears to be a single-source item common to Australia and New Zealand.
Just how much dissipation is being contemplated here?  Ohmite has a number of chunky single TO-220 heatsinks, but no duals of the same mounting character as yours.  Any particular recommendation on a Mouser/Digikey/Allied substitution?

J.R.
Klaatu Barada Nikto!

J.R. Stoner Bifrost Development Group asgard@jeffnet.org
 

Offline Blue

  • Regular Contributor
  • *
  • Posts: 120
  • Country: nl
  • Fighting for peace is like fucking for virginity
Re: EEVblog #240 - Power Supply Design Part 8
« Reply #95 on: February 01, 2012, 08:57:20 pm »
Dave's teaser: Use two boards and you've got a +- powersupply....
Nice for opamps etc...  ;)
« Last Edit: February 01, 2012, 08:59:47 pm by Blue »
 

Offline EEVblog

  • Administrator
  • *****
  • Posts: 38715
  • Country: au
    • EEVblog
Re: EEVblog #240 - Power Supply Design Part 8
« Reply #96 on: February 01, 2012, 09:56:24 pm »
BTW about that heatsink.  It appears to be a single-source item common to Australia and New Zealand.
Just how much dissipation is being contemplated here?  Ohmite has a number of chunky single TO-220 heatsinks, but no duals of the same mounting character as yours.  Any particular recommendation on a Mouser/Digikey/Allied substitution?

Sorry, no idea.
Yes, the heatsink is custom made for Altronics apparently.
It was just the right size for my box.
The holes are not the right height for a TO-220 package though which is annoying.

Dave.
 

Offline electrode

  • Regular Contributor
  • *
  • Posts: 141
  • Country: au
Re: EEVblog #240 - Power Supply Design Part 8
« Reply #97 on: February 01, 2012, 10:22:16 pm »
Just a quick question from a noob to avr's is the sda line pulled high internally as I can't see one on the board?

The external pullups are in section C4 on the rev B schematics. AVRs do have internal, switchable pull-up's, however these are too weak for I2C.

Hmm? You can definitely use the internal ones for I2C. The Arduino Wire library enables them (20k??), which has been used numerous times without external pullups. There are situations where external ones are better though.
 

alm

  • Guest
Re: EEVblog #240 - Power Supply Design Part 8
« Reply #98 on: February 01, 2012, 10:45:27 pm »
Maximum value for pull up resistors is determined by the capacitance of the track/cable and connected devices. I believe the max rise time for standard mode is 1 us. From the ATmega328p datasheet, the value of the internal pull-ups would be about 33 kohm for Vcc=2.7V, this would limit the capacitance to about 30 pF. The ATmega328p alone contributes about 10pF, this would leave another 10 pF for one slave and about 10 cm of PCB trace. It's probably not enough for multiple slaves or if connectors are involved.
 

Offline Bored@Work

  • Super Contributor
  • ***
  • Posts: 3932
  • Country: 00
Re: EEVblog #240 - Power Supply Design Part 8
« Reply #99 on: February 01, 2012, 10:49:10 pm »
Hmm? You can definitely use the internal ones for I2C. The Arduino Wire library enables them (20k??), which has been used numerous times without external pullups. There are situations where external ones are better though.

The Arduino people do a lot of rubbish things. And just because it sometimes works for them, it isn't a good idea. The build-in pull-ups are rather imprecise, varying up to 50k or maybe higher in older AVRs. Depending on the capacitive load and clock frequency you have on the I2C bus this becomes a gamble. The greater the capacitive load, the higher the clock frequency, the smaller the pull-up resistors should be. Therefore engineers put real pull-up resistors on the bus, while Arduino gamblers just throw the dice.
I delete PMs unread. If you have something to say, say it in public.
For all else: Profile->[Modify Profile]Buddies/Ignore List->Edit Ignore List
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf