Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #390744 > unrolled thread

Todays tronix: funny divider ratios

Started byJan Panteltje <pNaOnStPeAlMtje@yahoo.com>
First post2015-12-24 11:40 +0000
Last post2015-12-26 14:35 +0000
Articles 20 on this page of 22 — 9 participants

Back to article view | Back to sci.electronics.design


Contents

  Todays tronix: funny divider ratios Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2015-12-24 11:40 +0000
    Re: Todays tronix: funny divider ratios John Larkin <jjlarkin@highlandtechnology.com> - 2015-12-24 09:31 -0800
      Re: Todays tronix: funny divider ratios Robert Baer <robertbaer@localnet.com> - 2015-12-24 22:25 -0800
        Re: Todays tronix: funny divider ratios dagmargoodboat@yahoo.com - 2015-12-25 01:08 -0800
          Re: Todays tronix: funny divider ratios John Larkin <jjlarkin@highlandtechnology.com> - 2015-12-25 07:56 -0800
            Re: Todays tronix: funny divider ratios Winfield Hill <hill@rowland.harvard.edu> - 2015-12-25 08:22 -0800
              Re: Todays tronix: funny divider ratios krw <krw@nowhere.com> - 2015-12-25 11:34 -0500
                Re: Todays tronix: funny divider ratios John Larkin <jjlarkin@highlandtechnology.com> - 2015-12-25 09:02 -0800
                  Re: Todays tronix: funny divider ratios krw <krw@nowhere.com> - 2015-12-25 13:06 -0500
                Re: Todays tronix: funny divider ratios Robert Baer <robertbaer@localnet.com> - 2015-12-27 21:39 -0800
              Re: Todays tronix: funny divider ratios John Larkin <jjlarkin@highlandtechnology.com> - 2015-12-25 09:11 -0800
                Re: Todays tronix: funny divider ratios John Larkin <jjlarkin@highlandtechnology.com> - 2015-12-25 17:18 -0800
            Re: Todays tronix: funny divider ratios Bob Engelhardt <BobEngelhardt@comcast.net> - 2015-12-25 19:36 -0500
              Re: Todays tronix: funny divider ratios John Larkin <jjlarkin@highlandtechnology.com> - 2015-12-25 18:12 -0800
          Re: Todays tronix: funny divider ratios Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2015-12-25 17:05 -0500
            Re: Todays tronix: funny divider ratios dagmargoodboat@yahoo.com - 2015-12-28 08:05 -0800
        Re: Todays tronix: funny divider ratios amdx <nojunk@knology.net> - 2015-12-25 10:45 -0600
    Re: Todays tronix: funny divider ratios Robert Baer <robertbaer@localnet.com> - 2015-12-24 22:23 -0800
    Re: Todays tronix: funny divider ratios Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2015-12-26 10:25 +0000
      Re: Todays tronix: funny divider ratios John Larkin <jjlarkin@highlandtechnology.com> - 2015-12-26 10:12 -0800
        Re: Todays tronix: funny divider ratios krw <krw@nowhere.com> - 2015-12-26 16:16 -0500
    Re: Todays tronix: funny divider ratios Jan Panteltje <pNaOnStPeAlMtje@yahoo.com> - 2015-12-26 14:35 +0000

Page 1 of 2  [1] 2  Next page →


#390744 — Todays tronix: funny divider ratios

FromJan Panteltje <pNaOnStPeAlMtje@yahoo.com>
Date2015-12-24 11:40 +0000
SubjectTodays tronix: funny divider ratios
Message-ID<n5gljg$4ul$1@news.datemas.de>
Todays tronix: funny divider ratios

Did some circuit painting, first zorry my canon a740 broke down just after 5000 pictures taken,
so this is with a cheap ebay video player that also happens to have a camera.

 http://panteltje.com/pub/funny_divider_ratios.jpg

For a reference voltage or 2.048 V,
the highest I can run in a PIC running at 3.3V,
to get closest to max value (least error) in the ADC,
to calculate the divider values for each cell in the multi cell charge balancing,
the resistor values are cool, but the ratios somehow amaze me.

BTW the shunt is now in the plus...

[toc] | [next] | [standalone]


#390765

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2015-12-24 09:31 -0800
Message-ID<otao7btu8ju2vdrfnhpdmhre0ej4cc0np1@4ax.com>
In reply to#390744
On Thu, 24 Dec 2015 11:40:32 GMT, Jan Panteltje
<pNaOnStPeAlMtje@yahoo.com> wrote:

>Todays tronix: funny divider ratios
>
>Did some circuit painting, first zorry my canon a740 broke down just after 5000 pictures taken,
>so this is with a cheap ebay video player that also happens to have a camera.
>
> http://panteltje.com/pub/funny_divider_ratios.jpg
>
>For a reference voltage or 2.048 V,
>the highest I can run in a PIC running at 3.3V,
>to get closest to max value (least error) in the ADC,
>to calculate the divider values for each cell in the multi cell charge balancing,
>the resistor values are cool, but the ratios somehow amaze me.
>
>BTW the shunt is now in the plus...

Illegible, as usual.




-- 

John Larkin         Highland Technology, Inc

lunatic fringe electronics 

[toc] | [prev] | [next] | [standalone]


#390837

FromRobert Baer <robertbaer@localnet.com>
Date2015-12-24 22:25 -0800
Message-ID<mj5fy.39917$TE6.34352@fx41.iad>
In reply to#390765
John Larkin wrote:
> On Thu, 24 Dec 2015 11:40:32 GMT, Jan Panteltje
> <pNaOnStPeAlMtje@yahoo.com>  wrote:
>
>> Todays tronix: funny divider ratios
>>
>> Did some circuit painting, first zorry my canon a740 broke down just after 5000 pictures taken,
>> so this is with a cheap ebay video player that also happens to have a camera.
>>
>> http://panteltje.com/pub/funny_divider_ratios.jpg
>>
>> For a reference voltage or 2.048 V,
>> the highest I can run in a PIC running at 3.3V,
>> to get closest to max value (least error) in the ADC,
>> to calculate the divider values for each cell in the multi cell charge balancing,
>> the resistor values are cool, but the ratios somehow amaze me.
>>
>> BTW the shunt is now in the plus...
>
> Illegible, as usual.
>
>
>
>
   I totally agree; would it be worthwhile to hire a draftsman for him?

[toc] | [prev] | [next] | [standalone]


#390867

Fromdagmargoodboat@yahoo.com
Date2015-12-25 01:08 -0800
Message-ID<cb197bfb-a377-46f7-8747-f251b30a3c3c@googlegroups.com>
In reply to#390837
On Friday, December 25, 2015 at 1:25:28 AM UTC-5, Robert Baer wrote:
> John Larkin wrote:
> > On Thu, 24 Dec 2015 11:40:32 GMT, Jan Panteltje
> > <pNaOnStPeAlMtje@yahoo.com>  wrote:
> >
> >> Todays tronix: funny divider ratios
> >>
> >> Did some circuit painting, first zorry my canon a740 broke down just after 5000 pictures taken,
> >> so this is with a cheap ebay video player that also happens to have a camera.
> >>
> >> http://panteltje.com/pub/funny_divider_ratios.jpg
> >>
> >> For a reference voltage or 2.048 V,
> >> the highest I can run in a PIC running at 3.3V,
> >> to get closest to max value (least error) in the ADC,
> >> to calculate the divider values for each cell in the multi cell charge balancing,
> >> the resistor values are cool, but the ratios somehow amaze me.
> >>
> >> BTW the shunt is now in the plus...
> >
> > Illegible, as usual.
> >
> >
> >
> >
>    I totally agree; would it be worthwhile to hire a draftsman for him?

Jan needs a scanner.  LTSpice for drawing, then a screencap would be even
better.

Cheers,
James Arthur

[toc] | [prev] | [next] | [standalone]


#390893

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2015-12-25 07:56 -0800
Message-ID<sroq7b57tihd44jtj73ukb6ecr1lbp164e@4ax.com>
In reply to#390867
On Fri, 25 Dec 2015 01:08:23 -0800 (PST), dagmargoodboat@yahoo.com
wrote:

>On Friday, December 25, 2015 at 1:25:28 AM UTC-5, Robert Baer wrote:
>> John Larkin wrote:
>> > On Thu, 24 Dec 2015 11:40:32 GMT, Jan Panteltje
>> > <pNaOnStPeAlMtje@yahoo.com>  wrote:
>> >
>> >> Todays tronix: funny divider ratios
>> >>
>> >> Did some circuit painting, first zorry my canon a740 broke down just after 5000 pictures taken,
>> >> so this is with a cheap ebay video player that also happens to have a camera.
>> >>
>> >> http://panteltje.com/pub/funny_divider_ratios.jpg
>> >>
>> >> For a reference voltage or 2.048 V,
>> >> the highest I can run in a PIC running at 3.3V,
>> >> to get closest to max value (least error) in the ADC,
>> >> to calculate the divider values for each cell in the multi cell charge balancing,
>> >> the resistor values are cool, but the ratios somehow amaze me.
>> >>
>> >> BTW the shunt is now in the plus...
>> >
>> > Illegible, as usual.
>> >
>> >
>> >
>> >
>>    I totally agree; would it be worthwhile to hire a draftsman for him?
>
>Jan needs a scanner.  LTSpice for drawing, then a screencap would be even
>better.
>
>Cheers,
>James Arthur

I draw with a roller-ball pen, or a sharpie if it's handy, on grid
paper, and photograph it with a cheap but decent camera. Irfanview
crops and sharpens as needed. Pencil tends to be fuzzy. Drawing a
schematic in ink is like trapeze without a net.

https://dl.dropboxusercontent.com/u/53724080/Circuits/Resistors/R-pak_values.JPG

Such stuff should always have a title/author/date.


-- 

John Larkin         Highland Technology, Inc

lunatic fringe electronics 

[toc] | [prev] | [next] | [standalone]


#390899

FromWinfield Hill <hill@rowland.harvard.edu>
Date2015-12-25 08:22 -0800
Message-ID<n5jqfo01l7q@drn.newsguy.com>
In reply to#390893
John Larkin wrote...
>
>https://dl.dropboxusercontent.com/u/53724080/Circuits/Resistors/R-pak_values.JPG

Since arguably the quad packs have better matching than absolute values, it'd be
more useful to explore what divider ratios can be created with a quad pack.


-- 
 Thanks,
    - Win

[toc] | [prev] | [next] | [standalone]


#390902

Fromkrw <krw@nowhere.com>
Date2015-12-25 11:34 -0500
Message-ID<aorq7b9i7b9kbppciv5lnudps03nfu85fl@4ax.com>
In reply to#390899
On 25 Dec 2015 08:22:16 -0800, Winfield Hill
<hill@rowland.harvard.edu> wrote:

>John Larkin wrote...
>>
>>https://dl.dropboxusercontent.com/u/53724080/Circuits/Resistors/R-pak_values.JPG
>
>Since arguably the quad packs have better matching than absolute values, it'd be
>more useful to explore what divider ratios can be created with a quad pack.

Arguably negates the whole notion.  Manufacturers won't support that
assumption without paying through the nose for it, so it's useless to
me.  One can assume some temperature coupling if the power dissipation
is similar but that's about all.

I'm trying to find some 0402-equivalent .1% quad packs (0804, or some
such) but no luck yet.  A few manufacturers have discussed the
possibility but nothing yet.  I could use, perhaps, ten million a
year.

[toc] | [prev] | [next] | [standalone]


#390907

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2015-12-25 09:02 -0800
Message-ID<bhtq7b96see7p275m1t2tumeg07jm5ff4v@4ax.com>
In reply to#390902
On Fri, 25 Dec 2015 11:34:58 -0500, krw <krw@nowhere.com> wrote:

>On 25 Dec 2015 08:22:16 -0800, Winfield Hill
><hill@rowland.harvard.edu> wrote:
>
>>John Larkin wrote...
>>>
>>>https://dl.dropboxusercontent.com/u/53724080/Circuits/Resistors/R-pak_values.JPG
>>
>>Since arguably the quad packs have better matching than absolute values, it'd be
>>more useful to explore what divider ratios can be created with a quad pack.
>
>Arguably negates the whole notion.  Manufacturers won't support that
>assumption without paying through the nose for it, so it's useless to
>me.  One can assume some temperature coupling if the power dissipation
>is similar but that's about all.

You can assume that all the resistors in a pak were made of the same
stuff and laser trimmed at the same time.

>
>I'm trying to find some 0402-equivalent .1% quad packs (0804, or some
>such) but no luck yet.  A few manufacturers have discussed the
>possibility but nothing yet.  I could use, perhaps, ten million a
>year.

There are lots of thinfilm networks around, like 0.1% with PPM TC
tracking.


-- 

John Larkin         Highland Technology, Inc

lunatic fringe electronics 

[toc] | [prev] | [next] | [standalone]


#390916

Fromkrw <krw@nowhere.com>
Date2015-12-25 13:06 -0500
Message-ID<k91r7bts2nr5f5uu16ssv11ghfo0s062aq@4ax.com>
In reply to#390907
On Fri, 25 Dec 2015 09:02:19 -0800, John Larkin
<jjlarkin@highlandtechnology.com> wrote:

>On Fri, 25 Dec 2015 11:34:58 -0500, krw <krw@nowhere.com> wrote:
>
>>On 25 Dec 2015 08:22:16 -0800, Winfield Hill
>><hill@rowland.harvard.edu> wrote:
>>
>>>John Larkin wrote...
>>>>
>>>>https://dl.dropboxusercontent.com/u/53724080/Circuits/Resistors/R-pak_values.JPG
>>>
>>>Since arguably the quad packs have better matching than absolute values, it'd be
>>>more useful to explore what divider ratios can be created with a quad pack.
>>
>>Arguably negates the whole notion.  Manufacturers won't support that
>>assumption without paying through the nose for it, so it's useless to
>>me.  One can assume some temperature coupling if the power dissipation
>>is similar but that's about all.
>
>You can assume that all the resistors in a pak were made of the same
>stuff and laser trimmed at the same time.

You can't because the manufacturer won't stand behind any tracking.
>>
>>I'm trying to find some 0402-equivalent .1% quad packs (0804, or some
>>such) but no luck yet.  A few manufacturers have discussed the
>>possibility but nothing yet.  I could use, perhaps, ten million a
>>year.
>
>There are lots of thinfilm networks around, like 0.1% with PPM TC
>tracking.

Not in 4x0402.  I think I can find 4x0603 (0612) but I don't think I
can spare the space.  I need a lot of 'em.

[toc] | [prev] | [next] | [standalone]


#391265

FromRobert Baer <robertbaer@localnet.com>
Date2015-12-27 21:39 -0800
Message-ID<oW3gy.41654$8V1.36483@fx28.iad>
In reply to#390902
krw wrote:
> On 25 Dec 2015 08:22:16 -0800, Winfield Hill
> <hill@rowland.harvard.edu>  wrote:
>
>> John Larkin wrote...
>>>
>>> https://dl.dropboxusercontent.com/u/53724080/Circuits/Resistors/R-pak_values.JPG
>>
>> Since arguably the quad packs have better matching than absolute values, it'd be
>> more useful to explore what divider ratios can be created with a quad pack.
>
> Arguably negates the whole notion.  Manufacturers won't support that
> assumption without paying through the nose for it, so it's useless to
> me.  One can assume some temperature coupling if the power dissipation
> is similar but that's about all.
>
> I'm trying to find some 0402-equivalent .1% quad packs (0804, or some
> such) but no luck yet.  A few manufacturers have discussed the
> possibility but nothing yet.  I could use, perhaps, ten million a
> year.
>
   Would not that quantity allow a custom run?

[toc] | [prev] | [next] | [standalone]


#390908

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2015-12-25 09:11 -0800
Message-ID<aotq7b9gvbd16ik1ak1lv36ksc6f3j9vee@4ax.com>
In reply to#390899
On 25 Dec 2015 08:22:16 -0800, Winfield Hill
<hill@rowland.harvard.edu> wrote:

>John Larkin wrote...
>>
>>https://dl.dropboxusercontent.com/u/53724080/Circuits/Resistors/R-pak_values.JPG
>
>Since arguably the quad packs have better matching than absolute values, it'd be
>more useful to explore what divider ratios can be created with a quad pack.

This might be all of them...

https://dl.dropboxusercontent.com/u/53724080/Parts/Resistors/Rpak_Dividers.asc

https://dl.dropboxusercontent.com/u/53724080/Parts/Resistors/Rpak_Dividers_1.jpg


-- 

John Larkin         Highland Technology, Inc

lunatic fringe electronics 

[toc] | [prev] | [next] | [standalone]


#390982

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2015-12-25 17:18 -0800
Message-ID<3bqr7b9qqjeu14sg09mu58174htoku0e77@4ax.com>
In reply to#390908
On Fri, 25 Dec 2015 09:11:41 -0800, John Larkin
<jjlarkin@highlandtechnology.com> wrote:

>On 25 Dec 2015 08:22:16 -0800, Winfield Hill
><hill@rowland.harvard.edu> wrote:
>
>>John Larkin wrote...
>>>
>>>https://dl.dropboxusercontent.com/u/53724080/Circuits/Resistors/R-pak_values.JPG
>>
>>Since arguably the quad packs have better matching than absolute values, it'd be
>>more useful to explore what divider ratios can be created with a quad pack.
>
>This might be all of them...
>
>https://dl.dropboxusercontent.com/u/53724080/Parts/Resistors/Rpak_Dividers.asc
>
>https://dl.dropboxusercontent.com/u/53724080/Parts/Resistors/Rpak_Dividers_1.jpg

What would be useful is to figure out all the 3t regulator (LM317,
LM1117) voltages that can be made from one r-pack. Then do multiple
voltages by stacking regulators or sharing dividers.


-- 

John Larkin         Highland Technology, Inc

lunatic fringe electronics 

[toc] | [prev] | [next] | [standalone]


#390973

FromBob Engelhardt <BobEngelhardt@comcast.net>
Date2015-12-25 19:36 -0500
Message-ID<n5knc001leu@news7.newsguy.com>
In reply to#390893
On 12/25/2015 10:56 AM, John Larkin wrote:
> ...
> https://dl.dropboxusercontent.com/u/53724080/Circuits/Resistors/R-pak_values.JPG
> ...

2 more:
____|___
R   R  R
R   |  |    =  .4
--------
     |


__|___
R    R
R    R     = 1
------
    |

[toc] | [prev] | [next] | [standalone]


#390987

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2015-12-25 18:12 -0800
Message-ID<jmtr7b1j1j2i90s67a6au6gp8nl9mlu84v@4ax.com>
In reply to#390973
On Fri, 25 Dec 2015 19:36:07 -0500, Bob Engelhardt
<BobEngelhardt@comcast.net> wrote:

>On 12/25/2015 10:56 AM, John Larkin wrote:
>> ...
>> https://dl.dropboxusercontent.com/u/53724080/Circuits/Resistors/R-pak_values.JPG
>> ...
>
>2 more:
>____|___
>R   R  R
>R   |  |    =  .4
>--------
>     |
>
>
>__|___
>R    R
>R    R     = 1
>------
>    |


OK, added 0.4. The quad 1.0 is sort of obvious, but might be useful
for power dissipation or wideband termination or something.

https://dl.dropboxusercontent.com/u/53724080/Parts/Resistors/R-pak_values.JPG


-- 

John Larkin         Highland Technology, Inc

lunatic fringe electronics 

[toc] | [prev] | [next] | [standalone]


#390947

FromPhil Hobbs <pcdhSpamMeSenseless@electrooptical.net>
Date2015-12-25 17:05 -0500
Message-ID<nsWdnXGFPvAiIODLnZ2dnUU7-amdnZ2d@supernews.com>
In reply to#390867
On 12/25/2015 04:08 AM, dagmargoodboat@yahoo.com wrote:
> On Friday, December 25, 2015 at 1:25:28 AM UTC-5, Robert Baer wrote:
>> John Larkin wrote:
>>> On Thu, 24 Dec 2015 11:40:32 GMT, Jan Panteltje
>>> <pNaOnStPeAlMtje@yahoo.com>  wrote:
>>>
>>>> Todays tronix: funny divider ratios
>>>>
>>>> Did some circuit painting, first zorry my canon a740 broke down just after 5000 pictures taken,
>>>> so this is with a cheap ebay video player that also happens to have a camera.
>>>>
>>>> http://panteltje.com/pub/funny_divider_ratios.jpg
>>>>
>>>> For a reference voltage or 2.048 V,
>>>> the highest I can run in a PIC running at 3.3V,
>>>> to get closest to max value (least error) in the ADC,
>>>> to calculate the divider values for each cell in the multi cell charge balancing,
>>>> the resistor values are cool, but the ratios somehow amaze me.
>>>>
>>>> BTW the shunt is now in the plus...
>>>
>>> Illegible, as usual.
>>>
>>>
>>>
>>>
>>     I totally agree; would it be worthwhile to hire a draftsman for him?
>
> Jan needs a scanner.  LTSpice for drawing, then a screencap would be even
> better.
>
> Cheers,
> James Arthur
>
Just connecting up the lines and making the text legible would help.  I 
gave up on Jan's schematics long ago.  It's a pity, because he often has 
interesting ideas.

Cheers

Phil Hobbs

-- 
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC
Optics, Electro-optics, Photonics, Analog Electronics

160 North State Road #203
Briarcliff Manor NY 10510

hobbs at electrooptical dot net
http://electrooptical.net

[toc] | [prev] | [next] | [standalone]


#391307

Fromdagmargoodboat@yahoo.com
Date2015-12-28 08:05 -0800
Message-ID<9adecb8a-c766-4b8a-94a8-77cb584ef081@googlegroups.com>
In reply to#390947
On Friday, December 25, 2015 at 5:05:59 PM UTC-5, Phil Hobbs wrote:
> On 12/25/2015 04:08 AM, dagmargoodboat@yahoo.com wrote:
> > On Friday, December 25, 2015 at 1:25:28 AM UTC-5, Robert Baer wrote:
> >> John Larkin wrote:
> >>> On Thu, 24 Dec 2015 11:40:32 GMT, Jan Panteltje
> >>> <pNaOnStPeAlMtje@yahoo.com>  wrote:
> >>>
> >>>> Todays tronix: funny divider ratios
> >>>>
> >>>> Did some circuit painting, first zorry my canon a740 broke down just after 5000 pictures taken,
> >>>> so this is with a cheap ebay video player that also happens to have a camera.
> >>>>
> >>>> http://panteltje.com/pub/funny_divider_ratios.jpg
> >>>>
> >>>> For a reference voltage or 2.048 V,
> >>>> the highest I can run in a PIC running at 3.3V,
> >>>> to get closest to max value (least error) in the ADC,
> >>>> to calculate the divider values for each cell in the multi cell charge balancing,
> >>>> the resistor values are cool, but the ratios somehow amaze me.
> >>>>
> >>>> BTW the shunt is now in the plus...
> >>>
> >>> Illegible, as usual.
> >>>
> >>>
> >>>
> >>>
> >>     I totally agree; would it be worthwhile to hire a draftsman for him?
> >
> > Jan needs a scanner.  LTSpice for drawing, then a screencap would be even
> > better.
> >
> >
> Just connecting up the lines and making the text legible would help.  I 
> gave up on Jan's schematics long ago.  It's a pity, because he often has 
> interesting ideas.

He does, and I enjoy his posts.  I tried photo-enhancing contrast on some
of his images, without success.

Cheers,
James Arthur

[toc] | [prev] | [next] | [standalone]


#390905

Fromamdx <nojunk@knology.net>
Date2015-12-25 10:45 -0600
Message-ID<n5jrmd$2ne$1@dont-email.me>
In reply to#390837
On 12/25/2015 12:25 AM, Robert Baer wrote:
> John Larkin wrote:
>> On Thu, 24 Dec 2015 11:40:32 GMT, Jan Panteltje
>> <pNaOnStPeAlMtje@yahoo.com>  wrote:
>>
>>> Todays tronix: funny divider ratios
>>>
>>> Did some circuit painting, first zorry my canon a740 broke down just
>>> after 5000 pictures taken,
>>> so this is with a cheap ebay video player that also happens to have a
>>> camera.
>>>
>>> http://panteltje.com/pub/funny_divider_ratios.jpg
>>>
>>> For a reference voltage or 2.048 V,
>>> the highest I can run in a PIC running at 3.3V,
>>> to get closest to max value (least error) in the ADC,
>>> to calculate the divider values for each cell in the multi cell
>>> charge balancing,
>>> the resistor values are cool, but the ratios somehow amaze me.
>>>
>>> BTW the shunt is now in the plus...
>>
>> Illegible, as usual.
>>
>>
>>
>>
>    I totally agree; would it be worthwhile to hire a draftsman for him?
>

  A kickstarter campaign for a Panteltje schematic translator is needed!

  Jan, you have has great projects of interest, just those darn 
schematic drawings. Hope you're feeling the love.

                                        Mikek

[toc] | [prev] | [next] | [standalone]


#390836

FromRobert Baer <robertbaer@localnet.com>
Date2015-12-24 22:23 -0800
Message-ID<Uh5fy.39916$TE6.18910@fx41.iad>
In reply to#390744
Jan Panteltje wrote:
> Todays tronix: funny divider ratios
>
> Did some circuit painting, first zorry my canon a740 broke down just after 5000 pictures taken,
> so this is with a cheap ebay video player that also happens to have a camera.
>
>   http://panteltje.com/pub/funny_divider_ratios.jpg
* If you try harder, the fuzzy will blend the greys together for a nice 
Z-rated blob (if X-rated is for adults only, then Z-rated is for no eyes).

>
> For a reference voltage or 2.048 V,
> the highest I can run in a PIC running at 3.3V,
> to get closest to max value (least error) in the ADC,
> to calculate the divider values for each cell in the multi cell charge balancing,
> the resistor values are cool, but the ratios somehow amaze me.
>
> BTW the shunt is now in the plus...

[toc] | [prev] | [next] | [standalone]


#391039

FromJan Panteltje <pNaOnStPeAlMtje@yahoo.com>
Date2015-12-26 10:25 +0000
Message-ID<n5lpv0$jkb$1@news.datemas.de>
In reply to#390744
This will probably not help you, but mm maybe even Con Fuse you more than you already are,
but

To measure voltages with a PIC ADC (or any other ADC)
first some things, and requirements.
And some things we can chose.

I have chosen to use PIC asm and 32 bit signed integer math.
In case you dunno what signed means, it means bit 31 is the sign bit (well there is more to it, but read up on it).
Second let us assume we have a 36 V battery pack, and want to measure it.

AND we have a 10 bit ADC, that is one that counts from 0 to 1023 FYI.
Also we use a 2.048 reference, that is the PIC internal 1024 mV reference x 2, the maximum we can use at 3.3V PIC supply voltage.
We need 3.3 V supply for the PIC because it interfaces to a 3,3 V ethernet module,
that would probably work too with a 5 V PIC and a resistor divider, then we could use a 4096 reference.
But just for the suspense we use 3.3 V and a 2.048 V reference.
So 1023 steps on the ADC is in fact 2.048 V on the ADC input pin.

Simple City says that the battery pack will have 9 cells, and the max voltage per cell is 4.2 V (set by a parallel regulator per cell),
so 9 * 4.2 , and I use wcalc in a terminal in Linux, easy to do mazz with: 
> 9 * 4.2  = 37.8

Interesting, we like binary, so let us say Max Voltage (you know him right?) is lower than 40960 mV.

Now to avoid doing too much mazz maybe you can see that if we make 1023 steps on the ADC correspond to 40960 mV on the battery.

There are a number of issues
1) the PIC 1024 mV reference has a tolerance (unknown).
2) the resistors in the voltage divider have tolerance, say even if we use 1 % resistor then that is still a lot, as 1% of 40960 mV is 400 mV,
   almost half a volt, and since we need to know battery voltage of each cell within say  40 mV, all these things need software correction, with a given hardware.

Now, if we leave out the sign bit, than we have 30 bits to play with.
The ADC is ten bits, that leaves 20 bits to multiply the ADC value with:
2^20 = 1048576

So here is the mazz for a 40960 mV on the input, a 20 x resistor divider (say 190 k versus 10 k), 1023 steps on ADC, and 40960 mV battery voltage:

-> ((1023 * (1049602 + 0  ) ) / 1048576) * 2      *    20      =  40960.038986     -> 40960
     steps   fudge     cor      2^20       2xVref      divider    display in mV       only integer part 

if we add 25 counts correction then
 -> ((1023 * (1049602 + 25) ) / 1048576) * 2 * 20  = 40961.014595  -> 40961 mV displayed.


So we can calibrate display value to 1 mV easily.

Of course the ADC has only 1024 steps, so 40960 / 1024 = 40 mV resolution, say +/- 40 mV that would be between cells too, so 4.2 4.16 4.24 per cell. 

Setting the fudge factor a bit lower than 1049602 and adding a 16 bit correction value (0-65535) in EEPROM, set via RS232 once, will make in possible
to calibrate out most errors due to reference voltage and resistor divider.

The math in integer stays simple.
Will It Wurk?


BTW I received via interstellar link the message it is not spelled mazz, but mazzel (if this works).


[toc] | [prev] | [next] | [standalone]


#391067

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2015-12-26 10:12 -0800
Message-ID<smlt7bhsq2kuoets50dr40dddvgjknekq6@4ax.com>
In reply to#391039
On Sat, 26 Dec 2015 10:25:34 GMT, Jan Panteltje
<pNaOnStPeAlMtje@yahoo.com> wrote:

>
>This will probably not help you, but mm maybe even Con Fuse you more than you already are,
>but
>
>To measure voltages with a PIC ADC (or any other ADC)
>first some things, and requirements.
>And some things we can chose.
>
>I have chosen to use PIC asm and 32 bit signed integer math.
>In case you dunno what signed means, it means bit 31 is the sign bit (well there is more to it, but read up on it).

Sounds like sign-magnitude. We generally use 2's complement. Or
lately, mostly work in floating point.

>Second let us assume we have a 36 V battery pack, and want to measure it.
>
>AND we have a 10 bit ADC, that is one that counts from 0 to 1023 FYI.
>Also we use a 2.048 reference, that is the PIC internal 1024 mV reference x 2, the maximum we can use at 3.3V PIC supply voltage.
>We need 3.3 V supply for the PIC because it interfaces to a 3,3 V ethernet module,
>that would probably work too with a 5 V PIC and a resistor divider, then we could use a 4096 reference.
>But just for the suspense we use 3.3 V and a 2.048 V reference.
>So 1023 steps on the ADC is in fact 2.048 V on the ADC input pin.
>
>Simple City says that the battery pack will have 9 cells, and the max voltage per cell is 4.2 V (set by a parallel regulator per cell),
>so 9 * 4.2 , and I use wcalc in a terminal in Linux, easy to do mazz with: 
>> 9 * 4.2  = 37.8
>
>Interesting, we like binary, so let us say Max Voltage (you know him right?) is lower than 40960 mV.
>
>Now to avoid doing too much mazz maybe you can see that if we make 1023 steps on the ADC correspond to 40960 mV on the battery.
>
>There are a number of issues
>1) the PIC 1024 mV reference has a tolerance (unknown).

The ARMs that we use have an external ADC reference input. They are
very good about ADC full-scale being very close to the reference, but
the ADCs are noisy and a tad nonlinear.

>2) the resistors in the voltage divider have tolerance, say even if we use 1 % resistor then that is still a lot, as 1% of 40960 mV is 400 mV,
>   almost half a volt, and since we need to know battery voltage of each cell within say  40 mV, all these things need software correction, with a given hardware.
>
>Now, if we leave out the sign bit, than we have 30 bits to play with.
>The ADC is ten bits, that leaves 20 bits to multiply the ADC value with:
>2^20 = 1048576
>
>So here is the mazz for a 40960 mV on the input, a 20 x resistor divider (say 190 k versus 10 k), 1023 steps on ADC, and 40960 mV battery voltage:
>
>-> ((1023 * (1049602 + 0  ) ) / 1048576) * 2      *    20      =  40960.038986     -> 40960
>     steps   fudge     cor      2^20       2xVref      divider    display in mV       only integer part 
>
>if we add 25 counts correction then
> -> ((1023 * (1049602 + 25) ) / 1048576) * 2 * 20  = 40961.014595  -> 40961 mV displayed.
>
>
>So we can calibrate display value to 1 mV easily.
>
>Of course the ADC has only 1024 steps, so 40960 / 1024 = 40 mV resolution, say +/- 40 mV that would be between cells too, so 4.2 4.16 4.24 per cell. 
>
>Setting the fudge factor a bit lower than 1049602 and adding a 16 bit correction value (0-65535) in EEPROM, set via RS232 once, will make in possible
>to calibrate out most errors due to reference voltage and resistor divider.
>
>The math in integer stays simple.
>Will It Wurk?
>
>
>BTW I received via interstellar link the message it is not spelled mazz, but mazzel (if this works).
>
>

We used to do a lot of fixed-point fractional math, shifting, and
assembly-language tricks to do stuff like that. Nowadays, everything
is coded in C and we generally use floats, since our ARMs mostly have
hardware FPP. We have a cal table in flash, and sometimes even a
polynomial cal table.


-- 

John Larkin         Highland Technology, Inc

lunatic fringe electronics 

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | sci.electronics.design


csiph-web