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


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

design rigor: electronics vs. software

Started byomnilobe@gmail.com
First post2020-01-10 21:46 -0800
Last post2020-01-15 05:58 -0800
Articles 20 on this page of 133 — 24 participants

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


Contents

  design rigor: electronics vs. software omnilobe@gmail.com - 2020-01-10 21:46 -0800
    Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-10 22:10 -0800
      Re: design rigor: electronics vs. software Winfield Hill <winfieldhill@yahoo.com> - 2020-01-11 05:57 -0800
        Re: design rigor: electronics vs. software jlarkin@highlandsniptechnology.com - 2020-01-11 06:57 -0800
          Re: design rigor: electronics vs. software upsidedown@downunder.com - 2020-01-11 17:32 +0200
            Re: design rigor: electronics vs. software jlarkin@highlandsniptechnology.com - 2020-01-11 07:49 -0800
              Re: design rigor: electronics vs. software DecadentLinuxUserNumeroUno@decadence.org - 2020-01-11 16:09 +0000
            Re: design rigor: electronics vs. software DecadentLinuxUserNumeroUno@decadence.org - 2020-01-11 15:54 +0000
          Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-11 08:52 -0800
            Re: design rigor: electronics vs. software John S <Sophi.2@invalid.org> - 2020-01-11 11:07 -0600
              Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-11 09:16 -0800
                Re: design rigor: electronics vs. software John S <Sophi.2@invalid.org> - 2020-01-11 15:24 -0600
            Re: design rigor: electronics vs. software DecadentLinuxUserNumeroUno@decadence.org - 2020-01-11 17:59 +0000
            Re: design rigor: electronics vs. software DecadentLinuxUserNumeroUno@decadence.org - 2020-01-11 18:08 +0000
              Re: design rigor: electronics vs. software John Larkin <jjlarkin@highlandtechnology.com> - 2020-01-11 14:03 -0800
                Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-11 15:58 -0800
                  Re: design rigor: electronics vs. software Winfield Hill <winfieldhill@yahoo.com> - 2020-01-11 17:50 -0800
                    Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-11 19:09 -0800
                    Re: design rigor: electronics vs. software John Larkin <jjlarkin@highlandtechnology.com> - 2020-01-11 21:42 -0800
                      Re: design rigor: electronics vs. software George Herold <ggherold@gmail.com> - 2020-01-12 15:10 -0800
                        Re: design rigor: electronics vs. software John Larkin <jjlarkin@highlandtechnology.com> - 2020-01-12 17:04 -0800
                        Re: design rigor: electronics vs. software John Larkin <jjlarkin@highlandtechnology.com> - 2020-01-13 09:58 -0800
          Re: design rigor: electronics vs. software Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2020-01-12 16:58 +0000
            Re: design rigor: electronics vs. software Tom Gardner <spamjunk@blueyonder.co.uk> - 2020-01-12 18:25 +0000
            Re: design rigor: electronics vs. software DecadentLinuxUserNumeroUno@decadence.org - 2020-01-12 18:32 +0000
            Re: design rigor: electronics vs. software Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-12 15:20 -0500
              Re: design rigor: electronics vs. software DecadentLinuxUserNumeroUno@decadence.org - 2020-01-12 20:31 +0000
                Re: design rigor: electronics vs. software jjhudak4@gmail.com - 2020-01-12 14:38 -0800
                  Re: design rigor: electronics vs. software Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-12 17:55 -0500
                    Re: design rigor: electronics vs. software Klaus Kragelund <klauskvik@hotmail.com> - 2020-01-12 15:34 -0800
                    Re: design rigor: electronics vs. software Clifford Heath <no.spam@please.net> - 2020-01-13 10:47 +1100
                    Re: design rigor: electronics vs. software jjhudak4@gmail.com - 2020-01-12 16:13 -0800
                      Re: design rigor: electronics vs. software Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-12 19:33 -0500
                        Re: design rigor: electronics vs. software three_jeeps <jjhudak@gmail.com> - 2020-01-14 11:43 -0800
                    Re: design rigor: electronics vs. software jjhudak4@gmail.com - 2020-01-12 16:23 -0800
                  Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-12 15:38 -0800
              Re: design rigor: electronics vs. software Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2020-01-14 08:34 +0000
            Re: design rigor: electronics vs. software John Larkin <jjlarkin@highlandtechnology.com> - 2020-01-12 17:07 -0800
              Re: design rigor: electronics vs. software Tom Gardner <spamjunk@blueyonder.co.uk> - 2020-01-13 09:04 +0000
                Re: design rigor: electronics vs. software DecadentLinuxUserNumeroUno@decadence.org - 2020-01-13 09:27 +0000
                Re: design rigor: electronics vs. software Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-13 09:01 -0500
                  Re: design rigor: electronics vs. software Tom Gardner <spamjunk@blueyonder.co.uk> - 2020-01-13 16:22 +0000
                    Re: design rigor: electronics vs. software Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-13 20:35 -0500
                Re: design rigor: electronics vs. software John Larkin <jjlarkin@highlandtechnology.com> - 2020-01-13 07:45 -0800
                  Re: design rigor: electronics vs. software Tom Gardner <spamjunk@blueyonder.co.uk> - 2020-01-13 16:35 +0000
                    Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-13 09:49 -0800
                Re: design rigor: electronics vs. software John Larkin <jjlarkin@highlandtechnology.com> - 2020-01-13 07:58 -0800
                  Re: design rigor: electronics vs. software Tom Gardner <spamjunk@blueyonder.co.uk> - 2020-01-13 16:40 +0000
                    Re: design rigor: electronics vs. software John Larkin <jjlarkin@highlandtechnology.com> - 2020-01-13 09:41 -0800
                      Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-13 10:14 -0800
                      Re: design rigor: electronics vs. software Tom Gardner <spamjunk@blueyonder.co.uk> - 2020-01-13 19:26 +0000
                        Re: design rigor: electronics vs. software jlarkin@highlandsniptechnology.com - 2020-01-13 18:43 -0800
                          Re: design rigor: electronics vs. software Tom Gardner <spamjunk@blueyonder.co.uk> - 2020-01-14 08:19 +0000
                            Re: design rigor: electronics vs. software RBlack <news@rblack01.plus.com> - 2020-01-14 09:34 +0000
                            Re: design rigor: electronics vs. software jlarkin@highlandsniptechnology.com - 2020-01-14 08:39 -0800
                              Re: design rigor: electronics vs. software Tom Gardner <spamjunk@blueyonder.co.uk> - 2020-01-14 17:27 +0000
                              Re: design rigor: electronics vs. software Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-14 12:35 -0500
                                Re: design rigor: electronics vs. software jlarkin@highlandsniptechnology.com - 2020-01-14 09:49 -0800
                                Re: design rigor: electronics vs. software Tom Gardner <spamjunk@blueyonder.co.uk> - 2020-01-14 17:53 +0000
                                  Re: design rigor: electronics vs. software John Larkin <jlarkin@highland_atwork_technology.com> - 2020-01-14 11:45 -0800
                                    Re: design rigor: electronics vs. software Tom Gardner <spamjunk@blueyonder.co.uk> - 2020-01-14 21:55 +0000
                                Re: design rigor: electronics vs. software RBlack <news@rblack01.plus.com> - 2020-01-15 08:17 +0000
                                  Blood glucose (was: design rigor: electronics vs. software) Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-15 07:28 -0500
                                    Re: Blood glucose (was: design rigor: electronics vs. software) Steve Wilson <9fe142ac@gmail.com> - 2020-01-15 05:41 -0800
                                      Re: Blood glucose Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-15 10:15 -0500
                                        Re: Blood glucose Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-15 11:47 -0500
                                          Re: Blood glucose jlarkin@highlandsniptechnology.com - 2020-01-15 09:15 -0800
                                        Re: Blood glucose Steve Wilson <no@spam.com> - 2020-01-15 18:06 +0000
                                    Re: Blood glucose (was: design rigor: electronics vs. software) jlarkin@highlandsniptechnology.com - 2020-01-15 07:46 -0800
                                      Re: Blood glucose Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-15 11:00 -0500
                                      Re: Blood glucose (was: design rigor: electronics vs. software) George Herold <ggherold@gmail.com> - 2020-01-15 10:59 -0800
                                    Re: Blood glucose (was: design rigor: electronics vs. software) George Herold <ggherold@gmail.com> - 2020-01-15 10:43 -0800
                                      Re: Blood glucose Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-15 14:29 -0500
                                        Re: Blood glucose George Herold <ggherold@gmail.com> - 2020-01-15 12:45 -0800
                                          Re: Blood glucose Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-15 16:01 -0500
                                            Re: Blood glucose DecadentLinuxUserNumeroUno@decadence.org - 2020-01-16 02:52 +0000
                                    Re: Blood glucose (was: design rigor: electronics vs. software) RBlack <news@rblack01.plus.com> - 2020-01-16 11:18 +0000
                                      Re: Blood glucose Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-16 09:39 -0500
                                        Re: Blood glucose omnilobe@gmail.com - 2020-01-16 16:03 -0800
                                          Re: Blood glucose Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-16 16:38 -0800
                                          Re: Blood glucose Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-16 20:32 -0500
                                          Re: Blood glucose Bill Sloman <bill.sloman@ieee.org> - 2020-01-16 19:01 -0800
                  Re: design rigor: electronics vs. software Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2020-01-15 09:01 +0000
                    Re: design rigor: electronics vs. software DecadentLinuxUserNumeroUno@decadence.org - 2020-01-15 09:46 +0000
                    Re: design rigor: electronics vs. software DecadentLinuxUserNumeroUno@decadence.org - 2020-01-15 09:48 +0000
                    Re: design rigor: electronics vs. software jlarkin@highlandsniptechnology.com - 2020-01-15 07:49 -0800
        Re: design rigor: electronics vs. software DecadentLinuxUserNumeroUno@decadence.org - 2020-01-11 15:01 +0000
          Re: design rigor: electronics vs. software Winfield Hill <winfieldhill@yahoo.com> - 2020-01-11 07:27 -0800
            Re: design rigor: electronics vs. software DecadentLinuxUserNumeroUno@decadence.org - 2020-01-11 15:44 +0000
              Re: design rigor: electronics vs. software Winfield Hill <winfieldhill@yahoo.com> - 2020-01-11 08:06 -0800
                Re: design rigor: electronics vs. software mpm <mpmillard@aol.com> - 2020-01-13 16:39 -0800
              Re: design rigor: electronics vs. software jlarkin@highlandsniptechnology.com - 2020-01-13 18:50 -0800
            Re: design rigor: electronics vs. software jlarkin@highlandsniptechnology.com - 2020-01-13 18:46 -0800
              Re: design rigor: electronics vs. software Clifford Heath <no.spam@please.net> - 2020-01-14 17:11 +1100
                Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-13 22:23 -0800
                  Re: design rigor: electronics vs. software Clifford Heath <no.spam@please.net> - 2020-01-14 20:28 +1100
                    Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-14 01:44 -0800
                      Re: design rigor: electronics vs. software Clifford Heath <no.spam@please.net> - 2020-01-14 21:06 +1100
                        Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-14 02:17 -0800
                          Re: design rigor: electronics vs. software Clifford Heath <no.spam@please.net> - 2020-01-14 23:04 +1100
                        Re: design rigor: electronics vs. software jlarkin@highlandsniptechnology.com - 2020-01-14 08:42 -0800
                Re: design rigor: electronics vs. software DecadentLinuxUserNumeroUno@decadence.org - 2020-01-14 13:03 +0000
                Re: design rigor: electronics vs. software John Larkin <jlarkin@highland_atwork_technology.com> - 2020-01-14 11:48 -0800
              Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-13 22:14 -0800
      Re: design rigor: electronics vs. software mpm <mpmillard@aol.com> - 2020-01-13 16:35 -0800
        Re: design rigor: electronics vs. software Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-13 20:43 -0500
        Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-13 21:53 -0800
          Re: design rigor: electronics vs. software mpm <mpmillard@aol.com> - 2020-01-14 18:04 -0800
            Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-14 18:23 -0800
          Re: design rigor: electronics vs. software DecadentLinuxUserNumeroUno@decadence.org - 2020-01-15 02:41 +0000
    Re: design rigor: electronics vs. software jlarkin@highlandsniptechnology.com - 2020-01-11 06:47 -0800
      Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-11 08:47 -0800
      Re: design rigor: electronics vs. software bitrex <user@example.net> - 2020-01-11 17:31 -0500
        Re: design rigor: electronics vs. software Rick C <gnuarm.deletethisbit@gmail.com> - 2020-01-11 16:00 -0800
          Re: design rigor: electronics vs. software bitrex <user@example.net> - 2020-01-12 03:04 -0500
        Re: design rigor: electronics vs. software John Robertson <spam@flippers.com> - 2020-01-11 16:53 -0800
          Re: design rigor: electronics vs. software bitrex <user@example.net> - 2020-01-12 03:01 -0500
        Re: design rigor: electronics vs. software jlarkin@highlandsniptechnology.com - 2020-01-13 18:51 -0800
          Re: design rigor: electronics vs. software bitrex <user@example.net> - 2020-01-14 16:31 -0500
            Re: design rigor: electronics vs. software Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2020-01-14 16:43 -0500
              Re: design rigor: electronics vs. software bitrex <user@example.net> - 2020-01-15 18:33 -0500
                Re: design rigor: electronics vs. software bitrex <user@example.net> - 2020-01-15 18:38 -0500
        Re: design rigor: electronics vs. software Tom Gardner <spamjunk@blueyonder.co.uk> - 2020-01-14 08:23 +0000
      Re: design rigor: electronics vs. software RBlack <news@rblack01.plus.com> - 2020-01-13 09:27 +0000
        Re: design rigor: electronics vs. software jlarkin@highlandsniptechnology.com - 2020-01-13 18:56 -0800
          Re: design rigor: electronics vs. software RBlack <news@rblack01.plus.com> - 2020-01-14 09:15 +0000
            Re: design rigor: electronics vs. software jlarkin@highlandsniptechnology.com - 2020-01-14 08:28 -0800
              Re: design rigor: electronics vs. software Steve Wilson <no@spam.com> - 2020-01-14 16:43 +0000
                Re: design rigor: electronics vs. software John Larkin <jlarkin@highland_atwork_technology.com> - 2020-01-14 11:52 -0800
                  Re: design rigor: electronics vs. software Steve Wilson <no@spam.com> - 2020-01-14 22:21 +0000
                    Re: design rigor: electronics vs. software John Larkin <jlarkin@highland_atwork_technology.com> - 2020-01-14 16:00 -0800
              Re: design rigor: electronics vs. software Steve Wilson <no@spam.com> - 2020-01-14 16:49 +0000
      Re: design rigor: electronics vs. software Bill Sloman <bill.sloman@ieee.org> - 2020-01-15 05:58 -0800

Page 4 of 7 — ← Prev page 1 2 3 [4] 5 6 7  Next page →


#573064

FromTom Gardner <spamjunk@blueyonder.co.uk>
Date2020-01-14 21:55 +0000
Message-ID<qNqTF.16470$lJ.15987@fx27.am4>
In reply to#573051
On 14/01/20 19:45, John Larkin wrote:
> On Tue, 14 Jan 2020 17:53:41 +0000, Tom Gardner
> <spamjunk@blueyonder.co.uk> wrote:
> 
>> On 14/01/20 17:35, Phil Hobbs wrote:
>>> On 2020-01-14 11:39, jlarkin@highlandsniptechnology.com wrote:
>>>> On Tue, 14 Jan 2020 08:19:27 +0000, Tom Gardner
>>>> <spamjunk@blueyonder.co.uk> wrote:
>>>>
>>>>> On 14/01/20 02:43, jlarkin@highlandsniptechnology.com wrote:
>>>>>> On Mon, 13 Jan 2020 19:26:26 +0000, Tom Gardner
>>>>>> <spamjunk@blueyonder.co.uk> wrote:
>>>>>>
>>>>>>> On 13/01/20 17:41, John Larkin wrote:
>>>>>>>> On Mon, 13 Jan 2020 16:40:55 +0000, Tom Gardner
>>>>>>>> <spamjunk@blueyonder.co.uk> wrote:
>>>>>>>>
>>>>>>>>> On 13/01/20 15:58, John Larkin wrote:
>>>>>>>>>> On Mon, 13 Jan 2020 09:04:20 +0000, Tom Gardner
>>>>>>>>>> <spamjunk@blueyonder.co.uk> wrote:
>>>>>>>>>>
>>>>>>>>>>> On 13/01/20 01:07, John Larkin wrote:
>>>>>>>>>>>> On Sun, 12 Jan 2020 16:58:40 +0000, Martin Brown
>>>>>>>>>>>> <'''newspam'''@nezumi.demon.co.uk> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> On 11/01/2020 14:57, jlarkin@highlandsniptechnology.com wrote:
>>>>>>>>>>>>>> On 11 Jan 2020 05:57:59 -0800, Winfield Hill <winfieldhill@yahoo.com>
>>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Rick C wrote...
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> Then your very example of the Boeing plane is wrong
>>>>>>>>>>>>>>>> because no one has said the cause of the accident
>>>>>>>>>>>>>>>> was improperly coded software.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Yes, it was an improper spec, with dangerous reliance
>>>>>>>>>>>>>>> on poor hardware.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> If code kills people, it was improperly coded.
>>>>>>>>>>>>>
>>>>>>>>>>>>> Not necessarily. The code written may well have exactly implemented the
>>>>>>>>>>>>> algorithm(s) that the clowns supervised by monkeys specified. It isn't
>>>>>>>>>>>>> the job of programmers to double check the workings of the people who do
>>>>>>>>>>>>> the detailed calculations of aerodynamic force vectors and torques.
>>>>>>>>>>>>>
>>>>>>>>>>>>> It is not the programmers fault if the systems engineering, failure
>>>>>>>>>>>>> analysis and aerodynamics calculations are incorrect in some way!
>>>>>>>>>>>>
>>>>>>>>>>>> The management of two AOA sensors was insane. Fatal, actually. A
>>>>>>>>>>>> programmer should understand simple stuff like that.
>>>>>>>>>>>
>>>>>>>>>>> It is unrealistic to expect programmers to understand sensor
>>>>>>>>>>> reliability. That is the job of the people specifying the
>>>>>>>>>>> system design and encoding that in the system specification
>>>>>>>>>>> and the software specification.
>>>>>>>>>>>
>>>>>>>>>>> Programmers would have zero ability to deviate from implementing
>>>>>>>>>>> the software spec, full stop. If they did knowingly deviate, it
>>>>>>>>>>> would be a career ending decision - at best.
>>>>>>>>>>>
>>>>>>>>>>> Aerospace engineers have lost their pension for far less
>>>>>>>>>>> serious deviations, even though they had zero consequences.
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> https://philip.greenspun.com/blog/2019/03/21/optional-angle-of-attack-sensors-on-the-boeing-737-max/
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Given dual sensors, why would any sane person decide to alternate
>>>>>>>>>> using one per flight?
>>>>>>>>>
>>>>>>>>> Agreed. Especially given the poor reliability of AoA sensors.
>>>>>>>>>
>>>>>>>>> The people that write and signed off that spec
>>>>>>>>> bear a lot of responsibility
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>> A programmer would have to be awfully thick to not object to that.
>>>>>>>>>
>>>>>>>>> The programmer's job is to implement the spec, not to write it
>>>>>>>>>
>>>>>>>>> They may have objected, and may have been overruled.
>>>>>>>>>
>>>>>>>>> Have you worked in large software organisations?
>>>>>>>>
>>>>>>>> Not in, but with. Most "just do our jobs", which means that they don't
>>>>>>>> care to learn much about the process that they are implementing.
>>>>>>>
>>>>>>> Seen that, and it even occurs within software world:
>>>>>>> -analysts lob spec over wall to developers
>>>>>>> -developers lob code over wall to testers
>>>>>>> -developers lob tested code over wall to operations
>>>>>>> -rinse and repeat, slowly
>>>>>>>
>>>>>>> "Devops" tries to avoid that inefficiency.
>>>>>>>
>>>>>>>
>>>>>>>> And the hardware guys don't have much insight or visibility into the
>>>>>>>> software. Often, not much control either, in a large organization
>>>>>>>> where things are very firewalled.
>>>>>>>
>>>>>>> I've turned down job offers where the HR droids couldn't
>>>>>>> deal with someone that successfully straddles both
>>>>>>> hardware and software worlds.
>>>>>>
>>>>>> I interviewed with HP once. The guy looked at my resume and said "The
>>>>>> first thing you need to do is decide whether you're an engineer or a
>>>>>> programmer", so I walked out.
>>>>>
>>>>> HP hired me because I was both. Various parts of HP were
>>>>> very different from each other.
>>>>>
>>>>>
>>>>>> One big company that we work with has, I've heard, 12 levels of
>>>>>> engineering management. If an EE group wants a hole drilled in a
>>>>>> chassis, the request has to propagate up 5 or six management levels,
>>>>>> and then back down, to get to a mechanical engineer. Software is
>>>>>> similarly insulated. Any change fires off an enormous volume of
>>>>>> paperwork and customer "copy exact" notices, so most things just never
>>>>>> get done.
>>>>>
>>>>> So you /do/ understand how programmers couldn't be
>>>>> held responsible for implementing the spec.
>>>>
>>>> I understand that some people are content to just do their jobs and
>>>> cash their checks.
>>>>
>>>> I recently discovered that one group has been responsible, for almost
>>>> 20 years, for a bunch of instrumentation of which over 80% doesn't
>>>> work, and which is not used. But they still get their paychecks, so
>>>> don't rock the boat.
>>>
>>> I'd rather cut my own throat than do that for 20 years.
>>
>> I very deliberately avoided the "20 years experience
>> being 1 year repeated 20 times" trap.
>>
>> I use a specific example from my early career, and the
>> technique I used to avoid it, to sensitise youngsters
>> to the kind of decisions they may face in the future.
>>
>> Herbert's “they’d chosen always the clear, safe course
>> that leads ever downward into stagnation.” was an
>> awful warning for me.
>>
>> But in some companies, and worse industries, that can be
>> a very difficult trap to avoid.
> 
> I was talking to my MD, a really wonderful lady, about problem
> solving. The thing is, her mistakes might kill people, but I can blow
> things up just to see what might happen.

Some electronics/software people are in the position
that their products can people, even when they are
working as designed.

That /ought/ to colour their mentality and practices!

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


#573140

FromRBlack <news@rblack01.plus.com>
Date2020-01-15 08:17 +0000
Message-ID<MPG.3888db08853269ef989685@reader80.eternal-september.org>
In reply to#573035
On Tue, 14 Jan 2020 12:35:56 -0500, Phil Hobbs 
<pcdhSpamMeSenseless@electrooptical.net> said:
> 

[snip]

> Client work almost always succeeds, and the occasional failures are 
> mostly due to the customer's prevarication, such as taking my 
> proof-of-concept system, giving it to a CE outfit, and then pulling me 
> back in to attempt to fix the CE's mess--of course at the last minute, 
> when they've almost run out of money.  That's happened a couple of 
> times, so I try very hard to discourage it.  (The two were the 
> transcutaneous blood glucose/alcohol system and the blood-spot detector 

  ^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^

Bummer, sorry to hear about that.  (I have a personal interest in seeing 
this type of device working and on the market).  Did anyone else pick up 
the project, or did it just die?

> for hens' eggs.)
> 
> Cheers
> 
> Phil Hobbs

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


#573145 — Blood glucose (was: design rigor: electronics vs. software)

FromPhil Hobbs <pcdhSpamMeSenseless@electrooptical.net>
Date2020-01-15 07:28 -0500
SubjectBlood glucose (was: design rigor: electronics vs. software)
Message-ID<2f9235d0-92f8-0f09-cce0-f0fa6d2ba62b@electrooptical.net>
In reply to#573140
On 2020-01-15 03:17, RBlack wrote:
> On Tue, 14 Jan 2020 12:35:56 -0500, Phil Hobbs
> <pcdhSpamMeSenseless@electrooptical.net> said:
>>
> 
> [snip]
> 
>> Client work almost always succeeds, and the occasional failures are
>> mostly due to the customer's prevarication, such as taking my
>> proof-of-concept system, giving it to a CE outfit, and then pulling me
>> back in to attempt to fix the CE's mess--of course at the last minute,
>> when they've almost run out of money.  That's happened a couple of
>> times, so I try very hard to discourage it.  (The two were the
>> transcutaneous blood glucose/alcohol system and the blood-spot detector
> 
>    ^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^
> 
> Bummer, sorry to hear about that.  (I have a personal interest in seeing
> this type of device working and on the market).  Did anyone else pick up
> the project, or did it just die?
> 
>> for hens' eggs.)
>>

Yeah, that was a sad one, for sure.  It remains vivid in my memory, so 
at the risk of boring people, here's the tale.

The founder called me out of the blue at 3 PM on Christmas Eve, 2012. 
He turned out to be a charming fellow with a lot of drive and not a lot 
of education, who was practically supernatural at raising money.  He 
wanted me to build him an instrument, because that's what I do.

He'd patented the general principle, which avoided the individual 
physiological variations that usually bedevil those sorts of measurements.

The idea was to use a hand cradle with a virtual pivot (*) holding a 
fibre bundle against the web of the first and second fingers.  There are 
two arteries very close to the surface there, so you get to measure 
fresh blood instead of tissue fluid, and no one has hair, fat, or 
callouses there, so the physiology is very cooperative.  He had some 
promising data that he took himself using a Perkin-Elmer FTIR and his 
hand cradle.  (He somehow talked some guys at USC into giving him lab 
space and some help doing that--he was entirely self-taught, which has 
its strengths and weaknesses.)

The project was an unusual one for me, in that I didn't have my arms 
around the whole measurement--I built the gizmo, but the founder had his 
USC statistics friends use their AI nous to build the model and extract 
the blood solute data.  Thus I don't actually know how that was done. 
(It wasn't something simple like spectral differencing, anyway.)

I did a photon budget, which is my term for a detailed feasibility 
calculation emphasizing stability and SNR.  That's super important 
because without calculating how good the measurement _could_ be, you 
never really know how you're doing.  A photon budget prevents you from 
wasting time on recreational impossibilities on the one hand, or turning 
a silk purse back into a sow's ear on the other.  In this case it looked 
pretty good, using a tungsten source, a custom-designed split bundle of 
about 20 fibres (TX + RX), a conventional Czerny-Turner monochromator, a 
single extended-InGaAs photodiode, and a chopper plus lock-in for 
detection.

The proof-of-concept system took me about six weeks start to finish, 
including the photon budget, optical design, designing and building the 
electronics, assembling the optomechanics, and writing the software.  It 
was built on a 12 x 24-inch aluminum breadboard using a combination of 
hhacked Microbench (**) parts, JB Weld (the poor man's machine shop), 
and a servo from an RC airplane for moving the grating.  The grating 
cradle was also built from toy airplane parts, courtesy of 
servocity.com.  The electronics was all built in die cast aluminum stomp 
boxes, dead bug style, wired up with BNC cables.  The chopper was a 
commercial (Thor Labs) unit, and the back end was a LabJack and a 
console-mode C++ program running on a second-hand laptop.

It all worked great, and was very amusing to watch--an advanced clinical 
instrument built out of JB Weld and toy parts.  (Wouldn't the FDA have 
loved that?) ;)

We did the preliminary acceptance test by having some friends over for 
cocktails and measuring their blood spectra every 15 minutes or so.  The 
data did exactly as we hoped--nice repeatable curves with the right time 
dependence and no big physiological variations between subjects.  We did 
some glucose work using a strip reader for comparison, but the strips 
have relatively poor accuracy, so we concentrated on the alcohol 
measurement for that part of the demo.  (Quaffing a few cool ones is 
much more fun than sticking pins in your fingers, too.)

After the founder used the POC data to raise a bunch more money, we 
brought the proto and the Perkin-Elmer FTIR to a contract engineering 
house in Orange County CA that will remain nameless because they have 
this unfortunate tendency to sue everybody in sight.  The founder kept 
me sort of distantly in the loop, but his crucial mistake was trying to 
save money by supervising the CE firm himself.  (I tried to help, but 
they ignored me almost entirely because I wasn't the one writing the 
cheques.)

The CE folks proceeded to fall into every pothole along the road, like a 
drunk.  They ignored the photon budget, and so redesigned the front end 
to use an ordinary op amp TIA, not realizing they lost about 15 dB of 
SNR in the process. (I managed to get that one fixed, and the guy 
responsible taken off the project.  Unfortunately they were almost all 
like that.)

They replaced the direct drive for the grating with a belt drive, which 
gave nice smooth motion but of course rapidly lost accuracy as the belt 
squirmed around while moving, so that the calibration wouldn't sit 
still.  They needed more encoder precision, so they put an encoder on 
the motor as well as the grating, and did some micky-mouse trick to 
combine the two encoder readings.   Even the magnetic encoder on the 
grating shaft refused to sit still--it drifted around like mad.  I went 
there to try to get to the bottom of some of this stuff, and although 
they mostly sidelined me because I wasn't writing the cheques, we did 
manage to get to the bottom of that one.  Turned out that the encoder's 
output was the duty cycle of a pulse train (like the RC servo only 
backwards), and they were measuring the pulse width instead, using a 
capture input of their MCU.  That turned the frequency drift into a 
position drift.  Once it was fixed, I hit that poor encoder with cold 
spray and a heat gun, and couldn't get it to move at all.  Kudos to US 
Digital for that one.

The belt-drive system failed nonetheless, basically because the 
measurement was being done on the slope of the very strong IR absorption 
spectrum of water in the 1.4-1.7 micron range, so that small wavelength 
shifts caused much larger amplitude errors.

I told them to use a sine-bar drive like every other Czerny-Turner 
monochromator in the world, but they refused, insisting on using a 
worm-and-sector gear instead, with the encoder on the worm shaft. 
Unlike nearly any other sort of gearing, worms work using sliding 
friction.  That makes the grease film thin out with time.  I calculated 
for their benefit that in their design, with the very small radius of 
the sector gear, the maximum lubricant variation we could tolerate was 
about 70 nanometres.  Since they were nearly finished with the prototype 
build for the formal clinical trial, I told them to use dry molybdenum 
disulphide for lubricant instead of grease.

They straight-up refused, saying they couldn't get MoS2, so I sent them 
a link to the exact SKU on fastenall.com, after verifying that their 
local Fastenall had it in stock.  (I even sent them a Mapquest link so 
they could find the store.  That was a bit sarcastic, which I regret, 
but I was getting pretty tired of them by that point.)  They proceeded 
to ship one unit with grease and three units unlubricated.

When I complained about all the directionless fiddling they were doing, 
one bright lad smiled and said brightly, "That's engineering!"  He was 
one of the better ones.

They also took the POC proto apart to use bits of it in their test 
system, so that they had no comparison data, and, oh, yes, they broke 
the $100k FTIR and didn't tell anyone.

The units failed the acceptance test.  I attended it, but since the USC 
folks weren't crunching the data in real time, the failure wasn't 
entirely apparent till later.  By that point the CE had run through a 
year's time and most of a million bucks.

Some months later, two units arrived on my bench, along with an urgent 
request for me to get to the bottom of it all.

Turned out to be a real onion problem--you know, peel off one layer, 
cry, and peel off the next.

The phase of the detected signal was moving around by 10 degrees or so, 
which was easily enough to destroy the measurement.  The code seemed to 
be a PID controller using an optointerrupter on the chopper wheel, which 
should have been fine.  I built a strobe light using an HP 3325A 
synthesizer driving a LED, so that I could see the loop dynamics.  The 
controller was totally broken--regardless of the settings of P, I, and 
D, there was no way of making the phase sit still.  A gentle stream of 
canned air would move the phase, and it would never recover--i.e. there 
was no integral term in the control law, despite what the settings would 
have one believe.

And then it turned out that they'd never built a lock-in before, and 
were trying to extract the (approximately triangular) signal waveform by 
least-squares curve fitting to a sine wave instead of using an FFT like 
normal people.  Everybody screws up their first digital lock-in, but 
I've never seen one as bad as that.  (For non signals-and-systems folks: 
least squares fitting works OK at high SNR, but for noisy data it falls 
apart completely.  The FFT uses orthogonality, and so works at any SNR.)

I didn't get to the last onion layer, because the founder ran out of 
both dough and friends.  He never did pay me for my last month's work.

A pity.  I would have made those boxes work eventually.


(*) One where the business end slides around on a curved surface, like 
the blade assembly on some razors.
(**) A cage system using plates held together with 6-mm 
centreless-ground stainless steel rods, similar to the Thor Labs 30-mm 
cage system.

Cheers

Phil Hobbs

-- 
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC / Hobbs ElectroOptics
Optics, Electro-optics, Photonics, Analog Electronics
Briarcliff Manor NY 10510

http://electrooptical.net
http://hobbs-eo.com

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


#573149 — Re: Blood glucose (was: design rigor: electronics vs. software)

FromSteve Wilson <9fe142ac@gmail.com>
Date2020-01-15 05:41 -0800
SubjectRe: Blood glucose (was: design rigor: electronics vs. software)
Message-ID<72e6226b-2f13-404c-9e23-0c547a4f8511@googlegroups.com>
In reply to#573145
On Wednesday, January 15, 2020 at 7:29:08 AM UTC-5, Phil Hobbs wrote:
[...]

 
> And then it turned out that they'd never built a lock-in before, and 
> were trying to extract the (approximately triangular) signal waveform by 
> least-squares curve fitting to a sine wave instead of using an FFT like 
> normal people.  Everybody screws up their first digital lock-in, but 
> I've never seen one as bad as that.  (For non signals-and-systems folks: 
> least squares fitting works OK at high SNR, but for noisy data it falls 
> apart completely.  The FFT uses orthogonality, and so works at any SNR.)
> 
> I didn't get to the last onion layer, because the founder ran out of 
> both dough and friends.  He never did pay me for my last month's work.
> 
> A pity.  I would have made those boxes work eventually.
 
> (*) One where the business end slides around on a curved surface, like 
> the blade assembly on some razors.
> (**) A cage system using plates held together with 6-mm 
> centreless-ground stainless steel rods, similar to the Thor Labs 30-mm 
> cage system.
 
> Cheers
 
> Phil Hobbs
> 
> -- 
> Dr Philip C D Hobbs
> Principal Consultant
> ElectroOptical Innovations LLC / Hobbs ElectroOptics
> Optics, Electro-optics, Photonics, Analog Electronics
> Briarcliff Manor NY 10510
> 
> http://electrooptical.net
> http://hobbs-eo.com

That is an amazing story. Thanks.

Was there no way you contact the owner and warn him they were ruining the design? How did they get authorization to redesign the product in the first place?

How do we prevent this from happening to us?

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


#573152 — Re: Blood glucose

FromPhil Hobbs <pcdhSpamMeSenseless@electrooptical.net>
Date2020-01-15 10:15 -0500
SubjectRe: Blood glucose
Message-ID<ea898878-f1e5-1041-4871-ab34b81ee722@electrooptical.net>
In reply to#573149
On 2020-01-15 08:41, Steve Wilson wrote:
> On Wednesday, January 15, 2020 at 7:29:08 AM UTC-5, Phil Hobbs wrote:
> [...]
> 
> 
>> And then it turned out that they'd never built a lock-in before, 
>> and were trying to extract the (approximately triangular) signal 
>> waveform by least-squares curve fitting to a sine wave instead of 
>> using an FFT like normal people.  Everybody screws up their first 
>> digital lock-in, but I've never seen one as bad as that.  (For non 
>> signals-and-systems folks: least squares fitting works OK at high 
>> SNR, but for noisy data it falls apart completely.  The FFT uses 
>> orthogonality, and so works at any SNR.)
>> 
>> I didn't get to the last onion layer, because the founder ran out 
>> of both dough and friends.  He never did pay me for my last
>> month's work.
>> 
>> A pity.  I would have made those boxes work eventually.
> 
>> (*) One where the business end slides around on a curved surface, 
>> like the blade assembly on some razors. (**) A cage system using 
>> plates held together with 6-mm centreless-ground stainless steel 
>> rods, similar to the Thor Labs 30-mm cage system.
> 
>> Cheers
> 
>> Phil Hobbs

> 
> That is an amazing story. Thanks.
> 
> Was there no way you contact the owner and warn him they were
> ruining the design?

Oh, I told him, all right, and he told them.  They did fix a few things, 
but mostly said "yes" and meant "no".  Since I wasn't supervising them, 
they didn't keep me in the loop with what they were doing to fix the 
problems.

> How did they get authorization to redesign the product in the first
> place?

Well, as I said, the FDA wouldn't have liked a system made of toy parts, 
so the optomechanics did need re-doing.  That part they actually did 
reasonably well, apart from the grating mechanism and the chopper servo.

The electronics they just went ahead and re-did, I think in order to 
reuse some previous design.  Digital lock-ins are difficult because you 
have to be totally paranoid about things like slew artifacts, settling 
time, input voltage sag during sampling, and anything getting in on the 
reference.  The frequency domain is brutal that way, and AFAICT nobody 
ever learns that except by way of at least one failure.

> How do we prevent this from happening to us?

Stay out of Orange County. ;)

Seriously, having a sharp technical person supervising, with a formal 
spec, design reviews, sign-offs on hardware and software, unit tests, 
and so on would have prevented it.  It would have been half again as 
expensive, but the system would have worked.  Checking the CE's 
references would have been a smart move too.  They claimed that their 
contracts mostly forbade them to tell who their customers were, and the 
founder fell for that one.

Cheers

Phil Hobbs


-- 
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC / Hobbs ElectroOptics
Optics, Electro-optics, Photonics, Analog Electronics
Briarcliff Manor NY 10510

http://electrooptical.net
http://hobbs-eo.com

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


#573160 — Re: Blood glucose

FromPhil Hobbs <pcdhSpamMeSenseless@electrooptical.net>
Date2020-01-15 11:47 -0500
SubjectRe: Blood glucose
Message-ID<7b4dee80-b773-b39b-af7b-6a6c90680bc7@electrooptical.net>
In reply to#573152
On 2020-01-15 10:15, Phil Hobbs wrote:
> On 2020-01-15 08:41, Steve Wilson wrote:
>> On Wednesday, January 15, 2020 at 7:29:08 AM UTC-5, Phil Hobbs wrote:
>> [...]
>>
>>
>>> And then it turned out that they'd never built a lock-in before, and 
>>> were trying to extract the (approximately triangular) signal waveform 
>>> by least-squares curve fitting to a sine wave instead of using an FFT 
>>> like normal people.  Everybody screws up their first digital lock-in, 
>>> but I've never seen one as bad as that.  (For non signals-and-systems 
>>> folks: least squares fitting works OK at high SNR, but for noisy data 
>>> it falls apart completely.  The FFT uses orthogonality, and so works 
>>> at any SNR.)
>>>
>>> I didn't get to the last onion layer, because the founder ran out of 
>>> both dough and friends.  He never did pay me for my last
>>> month's work.
>>>
>>> A pity.  I would have made those boxes work eventually.
>>
>>> (*) One where the business end slides around on a curved surface, 
>>> like the blade assembly on some razors. (**) A cage system using 
>>> plates held together with 6-mm centreless-ground stainless steel 
>>> rods, similar to the Thor Labs 30-mm cage system.
>>
>>> Cheers
>>
>>> Phil Hobbs
> 
>>
>> That is an amazing story. Thanks.
>>
>> Was there no way you contact the owner and warn him they were
>> ruining the design?
> 
> Oh, I told him, all right, and he told them.  They did fix a few things, 
> but mostly said "yes" and meant "no".  Since I wasn't supervising them, 
> they didn't keep me in the loop with what they were doing to fix the 
> problems.
> 
>> How did they get authorization to redesign the product in the first
>> place?
> 
> Well, as I said, the FDA wouldn't have liked a system made of toy parts, 
> so the optomechanics did need re-doing.  That part they actually did 
> reasonably well, apart from the grating mechanism and the chopper servo.
> 
> The electronics they just went ahead and re-did, I think in order to 
> reuse some previous design.  Digital lock-ins are difficult because you 
> have to be totally paranoid about things like slew artifacts, settling 
> time, input voltage sag during sampling, and anything getting in on the 
> reference.  The frequency domain is brutal that way, and AFAICT nobody 
> ever learns that except by way of at least one failure.
> 
>> How do we prevent this from happening to us?
> 
> Stay out of Orange County. ;)
> 
> Seriously, having a sharp technical person supervising, with a formal 
> spec, design reviews, sign-offs on hardware and software, unit tests, 
> and so on would have prevented it.  It would have been half again as 
> expensive, but the system would have worked.  Checking the CE's 
> references would have been a smart move too.  They claimed that their 
> contracts mostly forbade them to tell who their customers were, and the 
> founder fell for that one.
> 

Oh, and when checking references, if you get good ones be sure to ask 
the names of the CE's people that worked on those projects.  They'll 
always give out their 'A' team's customers, but you may get the 'B' or 
'C' teams.

In our case, the guy who did the lock-in and encoder work was their CTO, 
so presumably the 'B' team is worse. :(

Cheers

Phil Hobbs

-- 
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC / Hobbs ElectroOptics
Optics, Electro-optics, Photonics, Analog Electronics
Briarcliff Manor NY 10510

http://electrooptical.net
http://hobbs-eo.com

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


#573161 — Re: Blood glucose

Fromjlarkin@highlandsniptechnology.com
Date2020-01-15 09:15 -0800
SubjectRe: Blood glucose
Message-ID<s3iu1fpddr7js6uv349j1pacc50k48e7ck@4ax.com>
In reply to#573160
On Wed, 15 Jan 2020 11:47:36 -0500, Phil Hobbs
<pcdhSpamMeSenseless@electrooptical.net> wrote:

>On 2020-01-15 10:15, Phil Hobbs wrote:
>> On 2020-01-15 08:41, Steve Wilson wrote:
>>> On Wednesday, January 15, 2020 at 7:29:08 AM UTC-5, Phil Hobbs wrote:
>>> [...]
>>>
>>>
>>>> And then it turned out that they'd never built a lock-in before, and 
>>>> were trying to extract the (approximately triangular) signal waveform 
>>>> by least-squares curve fitting to a sine wave instead of using an FFT 
>>>> like normal people.  Everybody screws up their first digital lock-in, 
>>>> but I've never seen one as bad as that.  (For non signals-and-systems 
>>>> folks: least squares fitting works OK at high SNR, but for noisy data 
>>>> it falls apart completely.  The FFT uses orthogonality, and so works 
>>>> at any SNR.)
>>>>
>>>> I didn't get to the last onion layer, because the founder ran out of 
>>>> both dough and friends.  He never did pay me for my last
>>>> month's work.
>>>>
>>>> A pity.  I would have made those boxes work eventually.
>>>
>>>> (*) One where the business end slides around on a curved surface, 
>>>> like the blade assembly on some razors. (**) A cage system using 
>>>> plates held together with 6-mm centreless-ground stainless steel 
>>>> rods, similar to the Thor Labs 30-mm cage system.
>>>
>>>> Cheers
>>>
>>>> Phil Hobbs
>> 
>>>
>>> That is an amazing story. Thanks.
>>>
>>> Was there no way you contact the owner and warn him they were
>>> ruining the design?
>> 
>> Oh, I told him, all right, and he told them.  They did fix a few things, 
>> but mostly said "yes" and meant "no".  Since I wasn't supervising them, 
>> they didn't keep me in the loop with what they were doing to fix the 
>> problems.
>> 
>>> How did they get authorization to redesign the product in the first
>>> place?
>> 
>> Well, as I said, the FDA wouldn't have liked a system made of toy parts, 
>> so the optomechanics did need re-doing.  That part they actually did 
>> reasonably well, apart from the grating mechanism and the chopper servo.
>> 
>> The electronics they just went ahead and re-did, I think in order to 
>> reuse some previous design.  Digital lock-ins are difficult because you 
>> have to be totally paranoid about things like slew artifacts, settling 
>> time, input voltage sag during sampling, and anything getting in on the 
>> reference.  The frequency domain is brutal that way, and AFAICT nobody 
>> ever learns that except by way of at least one failure.
>> 
>>> How do we prevent this from happening to us?
>> 
>> Stay out of Orange County. ;)
>> 
>> Seriously, having a sharp technical person supervising, with a formal 
>> spec, design reviews, sign-offs on hardware and software, unit tests, 
>> and so on would have prevented it.  It would have been half again as 
>> expensive, but the system would have worked.  Checking the CE's 
>> references would have been a smart move too.  They claimed that their 
>> contracts mostly forbade them to tell who their customers were, and the 
>> founder fell for that one.
>> 
>
>Oh, and when checking references, if you get good ones be sure to ask 
>the names of the CE's people that worked on those projects.  They'll 
>always give out their 'A' team's customers, but you may get the 'B' or 
>'C' teams.
>
>In our case, the guy who did the lock-in and encoder work was their CTO, 
>so presumably the 'B' team is worse. :(
>
>Cheers
>
>Phil Hobbs


It's impressive how many people are really bad at electronic design.



-- 

John Larkin         Highland Technology, Inc

The cork popped merrily, and Lord Peter rose to his feet. 
"Bunter", he said, "I give you a toast. The triumph of Instinct over Reason"


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


#573165 — Re: Blood glucose

FromSteve Wilson <no@spam.com>
Date2020-01-15 18:06 +0000
SubjectRe: Blood glucose
Message-ID<XnsAB45855211604idtokenpost@144.76.35.198>
In reply to#573152
Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> wrote:

> On 2020-01-15 08:41, Steve Wilson wrote:
>> On Wednesday, January 15, 2020 at 7:29:08 AM UTC-5, Phil Hobbs wrote:
>> [...]
 
>>> And then it turned out that they'd never built a lock-in before,  and
>>> were trying to extract the (approximately triangular) signal waveform
>>> by least-squares curve fitting to a sine wave instead of using an FFT
>>> like normal people.  Everybody screws up their first digital lock-in,
>>> but I've never seen one as bad as that.  (For non signals-and-systems
>>> folks: least squares fitting works OK at high SNR, but for noisy data
>>> it falls apart completely.  The FFT uses orthogonality, and so works
>>> at any SNR.) 
 
>>> I didn't get to the last onion layer, because the founder ran out 
>>> of both dough and friends.  He never did pay me for my last
>>> month's work.
 
>>> A pity.  I would have made those boxes work eventually.
 
>>> (*) One where the business end slides around on a curved surface, 
>>> like the blade assembly on some razors. (**) A cage system using 
>>> plates held together with 6-mm centreless-ground stainless steel 
>>> rods, similar to the Thor Labs 30-mm cage system. 
 
>>> Cheers
 
>>> Phil Hobbs
 
 
>> That is an amazing story. Thanks.
 
>> Was there no way you contact the owner and warn him they were ruining
>> the design? 
 
> Oh, I told him, all right, and he told them.  They did fix a few things,
> but mostly said "yes" and meant "no".  Since I wasn't supervising them, 
> they didn't keep me in the loop with what they were doing to fix the 
> problems.
 
>> How did they get authorization to redesign the product in the first
>> place? 
 
> Well, as I said, the FDA wouldn't have liked a system made of toy parts,
> so the optomechanics did need re-doing.  That part they actually did 
> reasonably well, apart from the grating mechanism and the chopper servo.
 
> The electronics they just went ahead and re-did, I think in order to 
> reuse some previous design.  Digital lock-ins are difficult because you 
> have to be totally paranoid about things like slew artifacts, settling 
> time, input voltage sag during sampling, and anything getting in on the 
> reference.  The frequency domain is brutal that way, and AFAICT nobody 
> ever learns that except by way of at least one failure.
 
>> How do we prevent this from happening to us?
 
> Stay out of Orange County. ;)
 
> Seriously, having a sharp technical person supervising, with a formal 
> spec, design reviews, sign-offs on hardware and software, unit tests, 
> and so on would have prevented it.  It would have been half again as 
> expensive, but the system would have worked.  Checking the CE's 
> references would have been a smart move too.  They claimed that their 
> contracts mostly forbade them to tell who their customers were, and the 
> founder fell for that one.
 
> Cheers
 
> Phil Hobbs

Thanks. There are lessons here for everyone.

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


#573155 — Re: Blood glucose (was: design rigor: electronics vs. software)

Fromjlarkin@highlandsniptechnology.com
Date2020-01-15 07:46 -0800
SubjectRe: Blood glucose (was: design rigor: electronics vs. software)
Message-ID<kmcu1fpv21i1ad9d9ojg2elgqj1hct2ih8@4ax.com>
In reply to#573145
On Wed, 15 Jan 2020 07:28:58 -0500, Phil Hobbs
<pcdhSpamMeSenseless@electrooptical.net> wrote:

>On 2020-01-15 03:17, RBlack wrote:
>> On Tue, 14 Jan 2020 12:35:56 -0500, Phil Hobbs
>> <pcdhSpamMeSenseless@electrooptical.net> said:
>>>
>> 
>> [snip]
>> 
>>> Client work almost always succeeds, and the occasional failures are
>>> mostly due to the customer's prevarication, such as taking my
>>> proof-of-concept system, giving it to a CE outfit, and then pulling me
>>> back in to attempt to fix the CE's mess--of course at the last minute,
>>> when they've almost run out of money.  That's happened a couple of
>>> times, so I try very hard to discourage it.  (The two were the
>>> transcutaneous blood glucose/alcohol system and the blood-spot detector
>> 
>>    ^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^
>> 
>> Bummer, sorry to hear about that.  (I have a personal interest in seeing
>> this type of device working and on the market).  Did anyone else pick up
>> the project, or did it just die?
>> 
>>> for hens' eggs.)
>>>
>
>Yeah, that was a sad one, for sure.  It remains vivid in my memory, so 
>at the risk of boring people, here's the tale.
>
>The founder called me out of the blue at 3 PM on Christmas Eve, 2012. 
>He turned out to be a charming fellow with a lot of drive and not a lot 
>of education, who was practically supernatural at raising money.  He 
>wanted me to build him an instrument, because that's what I do.
>
>He'd patented the general principle, which avoided the individual 
>physiological variations that usually bedevil those sorts of measurements.
>
>The idea was to use a hand cradle with a virtual pivot (*) holding a 
>fibre bundle against the web of the first and second fingers.  There are 
>two arteries very close to the surface there, so you get to measure 
>fresh blood instead of tissue fluid, and no one has hair, fat, or 
>callouses there, so the physiology is very cooperative.  He had some 
>promising data that he took himself using a Perkin-Elmer FTIR and his 
>hand cradle.  (He somehow talked some guys at USC into giving him lab 
>space and some help doing that--he was entirely self-taught, which has 
>its strengths and weaknesses.)
>
>The project was an unusual one for me, in that I didn't have my arms 
>around the whole measurement--I built the gizmo, but the founder had his 
>USC statistics friends use their AI nous to build the model and extract 
>the blood solute data.  Thus I don't actually know how that was done. 
>(It wasn't something simple like spectral differencing, anyway.)
>
>I did a photon budget, which is my term for a detailed feasibility 
>calculation emphasizing stability and SNR.  That's super important 
>because without calculating how good the measurement _could_ be, you 
>never really know how you're doing.  A photon budget prevents you from 
>wasting time on recreational impossibilities on the one hand, or turning 
>a silk purse back into a sow's ear on the other.  In this case it looked 
>pretty good, using a tungsten source, a custom-designed split bundle of 
>about 20 fibres (TX + RX), a conventional Czerny-Turner monochromator, a 
>single extended-InGaAs photodiode, and a chopper plus lock-in for 
>detection.
>
>The proof-of-concept system took me about six weeks start to finish, 
>including the photon budget, optical design, designing and building the 
>electronics, assembling the optomechanics, and writing the software.  It 
>was built on a 12 x 24-inch aluminum breadboard using a combination of 
>hhacked Microbench (**) parts, JB Weld (the poor man's machine shop), 
>and a servo from an RC airplane for moving the grating.  The grating 
>cradle was also built from toy airplane parts, courtesy of 
>servocity.com.  The electronics was all built in die cast aluminum stomp 
>boxes, dead bug style, wired up with BNC cables.  The chopper was a 
>commercial (Thor Labs) unit, and the back end was a LabJack and a 
>console-mode C++ program running on a second-hand laptop.
>
>It all worked great, and was very amusing to watch--an advanced clinical 
>instrument built out of JB Weld and toy parts.  (Wouldn't the FDA have 
>loved that?) ;)
>
>We did the preliminary acceptance test by having some friends over for 
>cocktails and measuring their blood spectra every 15 minutes or so.  The 
>data did exactly as we hoped--nice repeatable curves with the right time 
>dependence and no big physiological variations between subjects.  We did 
>some glucose work using a strip reader for comparison, but the strips 
>have relatively poor accuracy, so we concentrated on the alcohol 
>measurement for that part of the demo.  (Quaffing a few cool ones is 
>much more fun than sticking pins in your fingers, too.)
>
>After the founder used the POC data to raise a bunch more money, we 
>brought the proto and the Perkin-Elmer FTIR to a contract engineering 
>house in Orange County CA that will remain nameless because they have 
>this unfortunate tendency to sue everybody in sight.  The founder kept 
>me sort of distantly in the loop, but his crucial mistake was trying to 
>save money by supervising the CE firm himself.  (I tried to help, but 
>they ignored me almost entirely because I wasn't the one writing the 
>cheques.)
>
>The CE folks proceeded to fall into every pothole along the road, like a 
>drunk.  They ignored the photon budget, and so redesigned the front end 
>to use an ordinary op amp TIA, not realizing they lost about 15 dB of 
>SNR in the process. (I managed to get that one fixed, and the guy 
>responsible taken off the project.  Unfortunately they were almost all 
>like that.)
>
>They replaced the direct drive for the grating with a belt drive, which 
>gave nice smooth motion but of course rapidly lost accuracy as the belt 
>squirmed around while moving, so that the calibration wouldn't sit 
>still.  They needed more encoder precision, so they put an encoder on 
>the motor as well as the grating, and did some micky-mouse trick to 
>combine the two encoder readings.   Even the magnetic encoder on the 
>grating shaft refused to sit still--it drifted around like mad.  I went 
>there to try to get to the bottom of some of this stuff, and although 
>they mostly sidelined me because I wasn't writing the cheques, we did 
>manage to get to the bottom of that one.  Turned out that the encoder's 
>output was the duty cycle of a pulse train (like the RC servo only 
>backwards), and they were measuring the pulse width instead, using a 
>capture input of their MCU.  That turned the frequency drift into a 
>position drift.  Once it was fixed, I hit that poor encoder with cold 
>spray and a heat gun, and couldn't get it to move at all.  Kudos to US 
>Digital for that one.
>
>The belt-drive system failed nonetheless, basically because the 
>measurement was being done on the slope of the very strong IR absorption 
>spectrum of water in the 1.4-1.7 micron range, so that small wavelength 
>shifts caused much larger amplitude errors.
>
>I told them to use a sine-bar drive like every other Czerny-Turner 
>monochromator in the world, but they refused, insisting on using a 
>worm-and-sector gear instead, with the encoder on the worm shaft. 
>Unlike nearly any other sort of gearing, worms work using sliding 
>friction.  That makes the grease film thin out with time.  I calculated 
>for their benefit that in their design, with the very small radius of 
>the sector gear, the maximum lubricant variation we could tolerate was 
>about 70 nanometres.  Since they were nearly finished with the prototype 
>build for the formal clinical trial, I told them to use dry molybdenum 
>disulphide for lubricant instead of grease.
>
>They straight-up refused, saying they couldn't get MoS2, so I sent them 
>a link to the exact SKU on fastenall.com, after verifying that their 
>local Fastenall had it in stock.  (I even sent them a Mapquest link so 
>they could find the store.  That was a bit sarcastic, which I regret, 
>but I was getting pretty tired of them by that point.)  They proceeded 
>to ship one unit with grease and three units unlubricated.
>
>When I complained about all the directionless fiddling they were doing, 
>one bright lad smiled and said brightly, "That's engineering!"  He was 
>one of the better ones.
>
>They also took the POC proto apart to use bits of it in their test 
>system, so that they had no comparison data, and, oh, yes, they broke 
>the $100k FTIR and didn't tell anyone.
>
>The units failed the acceptance test.  I attended it, but since the USC 
>folks weren't crunching the data in real time, the failure wasn't 
>entirely apparent till later.  By that point the CE had run through a 
>year's time and most of a million bucks.
>
>Some months later, two units arrived on my bench, along with an urgent 
>request for me to get to the bottom of it all.
>
>Turned out to be a real onion problem--you know, peel off one layer, 
>cry, and peel off the next.
>
>The phase of the detected signal was moving around by 10 degrees or so, 
>which was easily enough to destroy the measurement.  The code seemed to 
>be a PID controller using an optointerrupter on the chopper wheel, which 
>should have been fine.  I built a strobe light using an HP 3325A 
>synthesizer driving a LED, so that I could see the loop dynamics.  The 
>controller was totally broken--regardless of the settings of P, I, and 
>D, there was no way of making the phase sit still.  A gentle stream of 
>canned air would move the phase, and it would never recover--i.e. there 
>was no integral term in the control law, despite what the settings would 
>have one believe.
>
>And then it turned out that they'd never built a lock-in before, and 
>were trying to extract the (approximately triangular) signal waveform by 
>least-squares curve fitting to a sine wave instead of using an FFT like 
>normal people.  Everybody screws up their first digital lock-in, but 
>I've never seen one as bad as that.  (For non signals-and-systems folks: 
>least squares fitting works OK at high SNR, but for noisy data it falls 
>apart completely.  The FFT uses orthogonality, and so works at any SNR.)
>
>I didn't get to the last onion layer, because the founder ran out of 
>both dough and friends.  He never did pay me for my last month's work.
>
>A pity.  I would have made those boxes work eventually.
>
>
>(*) One where the business end slides around on a curved surface, like 
>the blade assembly on some razors.
>(**) A cage system using plates held together with 6-mm 
>centreless-ground stainless steel rods, similar to the Thor Labs 30-mm 
>cage system.
>
>Cheers
>
>Phil Hobbs

I want a wideband optical spectrum analyzer, say 300 to 1600 nm, for
checking LEDs and IR fiber lasers and generally knowing where we are.
It doesn't need to be very sensitive or terribly accurate. Nobody
makes one, and there should be a market, and it sounds a lot easier
than that project.



-- 

John Larkin         Highland Technology, Inc

The cork popped merrily, and Lord Peter rose to his feet. 
"Bunter", he said, "I give you a toast. The triumph of Instinct over Reason"


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


#573159 — Re: Blood glucose

FromPhil Hobbs <pcdhSpamMeSenseless@electrooptical.net>
Date2020-01-15 11:00 -0500
SubjectRe: Blood glucose
Message-ID<49c78ffe-6ca2-dc17-bd6c-e3d7b77f6034@electrooptical.net>
In reply to#573155
On 2020-01-15 10:46, jlarkin@highlandsniptechnology.com wrote:
> On Wed, 15 Jan 2020 07:28:58 -0500, Phil Hobbs
> <pcdhSpamMeSenseless@electrooptical.net> wrote:
> 
>> On 2020-01-15 03:17, RBlack wrote:
>>> On Tue, 14 Jan 2020 12:35:56 -0500, Phil Hobbs
>>> <pcdhSpamMeSenseless@electrooptical.net> said:
>>>>
>>>
>>> [snip]
>>>
>>>> Client work almost always succeeds, and the occasional failures are
>>>> mostly due to the customer's prevarication, such as taking my
>>>> proof-of-concept system, giving it to a CE outfit, and then pulling me
>>>> back in to attempt to fix the CE's mess--of course at the last minute,
>>>> when they've almost run out of money.  That's happened a couple of
>>>> times, so I try very hard to discourage it.  (The two were the
>>>> transcutaneous blood glucose/alcohol system and the blood-spot detector
>>>
>>>     ^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^
>>>
>>> Bummer, sorry to hear about that.  (I have a personal interest in seeing
>>> this type of device working and on the market).  Did anyone else pick up
>>> the project, or did it just die?
>>>
>>>> for hens' eggs.)
>>>>
>>
>> Yeah, that was a sad one, for sure.  It remains vivid in my memory, so
>> at the risk of boring people, here's the tale.
>>
>> The founder called me out of the blue at 3 PM on Christmas Eve, 2012.
>> He turned out to be a charming fellow with a lot of drive and not a lot
>> of education, who was practically supernatural at raising money.  He
>> wanted me to build him an instrument, because that's what I do.
>>
>> He'd patented the general principle, which avoided the individual
>> physiological variations that usually bedevil those sorts of measurements.
>>
>> The idea was to use a hand cradle with a virtual pivot (*) holding a
>> fibre bundle against the web of the first and second fingers.  There are
>> two arteries very close to the surface there, so you get to measure
>> fresh blood instead of tissue fluid, and no one has hair, fat, or
>> callouses there, so the physiology is very cooperative.  He had some
>> promising data that he took himself using a Perkin-Elmer FTIR and his
>> hand cradle.  (He somehow talked some guys at USC into giving him lab
>> space and some help doing that--he was entirely self-taught, which has
>> its strengths and weaknesses.)
>>
>> The project was an unusual one for me, in that I didn't have my arms
>> around the whole measurement--I built the gizmo, but the founder had his
>> USC statistics friends use their AI nous to build the model and extract
>> the blood solute data.  Thus I don't actually know how that was done.
>> (It wasn't something simple like spectral differencing, anyway.)
>>
>> I did a photon budget, which is my term for a detailed feasibility
>> calculation emphasizing stability and SNR.  That's super important
>> because without calculating how good the measurement _could_ be, you
>> never really know how you're doing.  A photon budget prevents you from
>> wasting time on recreational impossibilities on the one hand, or turning
>> a silk purse back into a sow's ear on the other.  In this case it looked
>> pretty good, using a tungsten source, a custom-designed split bundle of
>> about 20 fibres (TX + RX), a conventional Czerny-Turner monochromator, a
>> single extended-InGaAs photodiode, and a chopper plus lock-in for
>> detection.
>>
>> The proof-of-concept system took me about six weeks start to finish,
>> including the photon budget, optical design, designing and building the
>> electronics, assembling the optomechanics, and writing the software.  It
>> was built on a 12 x 24-inch aluminum breadboard using a combination of
>> hhacked Microbench (**) parts, JB Weld (the poor man's machine shop),
>> and a servo from an RC airplane for moving the grating.  The grating
>> cradle was also built from toy airplane parts, courtesy of
>> servocity.com.  The electronics was all built in die cast aluminum stomp
>> boxes, dead bug style, wired up with BNC cables.  The chopper was a
>> commercial (Thor Labs) unit, and the back end was a LabJack and a
>> console-mode C++ program running on a second-hand laptop.
>>
>> It all worked great, and was very amusing to watch--an advanced clinical
>> instrument built out of JB Weld and toy parts.  (Wouldn't the FDA have
>> loved that?) ;)
>>
>> We did the preliminary acceptance test by having some friends over for
>> cocktails and measuring their blood spectra every 15 minutes or so.  The
>> data did exactly as we hoped--nice repeatable curves with the right time
>> dependence and no big physiological variations between subjects.  We did
>> some glucose work using a strip reader for comparison, but the strips
>> have relatively poor accuracy, so we concentrated on the alcohol
>> measurement for that part of the demo.  (Quaffing a few cool ones is
>> much more fun than sticking pins in your fingers, too.)
>>
>> After the founder used the POC data to raise a bunch more money, we
>> brought the proto and the Perkin-Elmer FTIR to a contract engineering
>> house in Orange County CA that will remain nameless because they have
>> this unfortunate tendency to sue everybody in sight.  The founder kept
>> me sort of distantly in the loop, but his crucial mistake was trying to
>> save money by supervising the CE firm himself.  (I tried to help, but
>> they ignored me almost entirely because I wasn't the one writing the
>> cheques.)
>>
>> The CE folks proceeded to fall into every pothole along the road, like a
>> drunk.  They ignored the photon budget, and so redesigned the front end
>> to use an ordinary op amp TIA, not realizing they lost about 15 dB of
>> SNR in the process. (I managed to get that one fixed, and the guy
>> responsible taken off the project.  Unfortunately they were almost all
>> like that.)
>>
>> They replaced the direct drive for the grating with a belt drive, which
>> gave nice smooth motion but of course rapidly lost accuracy as the belt
>> squirmed around while moving, so that the calibration wouldn't sit
>> still.  They needed more encoder precision, so they put an encoder on
>> the motor as well as the grating, and did some micky-mouse trick to
>> combine the two encoder readings.   Even the magnetic encoder on the
>> grating shaft refused to sit still--it drifted around like mad.  I went
>> there to try to get to the bottom of some of this stuff, and although
>> they mostly sidelined me because I wasn't writing the cheques, we did
>> manage to get to the bottom of that one.  Turned out that the encoder's
>> output was the duty cycle of a pulse train (like the RC servo only
>> backwards), and they were measuring the pulse width instead, using a
>> capture input of their MCU.  That turned the frequency drift into a
>> position drift.  Once it was fixed, I hit that poor encoder with cold
>> spray and a heat gun, and couldn't get it to move at all.  Kudos to US
>> Digital for that one.
>>
>> The belt-drive system failed nonetheless, basically because the
>> measurement was being done on the slope of the very strong IR absorption
>> spectrum of water in the 1.4-1.7 micron range, so that small wavelength
>> shifts caused much larger amplitude errors.
>>
>> I told them to use a sine-bar drive like every other Czerny-Turner
>> monochromator in the world, but they refused, insisting on using a
>> worm-and-sector gear instead, with the encoder on the worm shaft.
>> Unlike nearly any other sort of gearing, worms work using sliding
>> friction.  That makes the grease film thin out with time.  I calculated
>> for their benefit that in their design, with the very small radius of
>> the sector gear, the maximum lubricant variation we could tolerate was
>> about 70 nanometres.  Since they were nearly finished with the prototype
>> build for the formal clinical trial, I told them to use dry molybdenum
>> disulphide for lubricant instead of grease.
>>
>> They straight-up refused, saying they couldn't get MoS2, so I sent them
>> a link to the exact SKU on fastenall.com, after verifying that their
>> local Fastenall had it in stock.  (I even sent them a Mapquest link so
>> they could find the store.  That was a bit sarcastic, which I regret,
>> but I was getting pretty tired of them by that point.)  They proceeded
>> to ship one unit with grease and three units unlubricated.
>>
>> When I complained about all the directionless fiddling they were doing,
>> one bright lad smiled and said brightly, "That's engineering!"  He was
>> one of the better ones.
>>
>> They also took the POC proto apart to use bits of it in their test
>> system, so that they had no comparison data, and, oh, yes, they broke
>> the $100k FTIR and didn't tell anyone.
>>
>> The units failed the acceptance test.  I attended it, but since the USC
>> folks weren't crunching the data in real time, the failure wasn't
>> entirely apparent till later.  By that point the CE had run through a
>> year's time and most of a million bucks.
>>
>> Some months later, two units arrived on my bench, along with an urgent
>> request for me to get to the bottom of it all.
>>
>> Turned out to be a real onion problem--you know, peel off one layer,
>> cry, and peel off the next.
>>
>> The phase of the detected signal was moving around by 10 degrees or so,
>> which was easily enough to destroy the measurement.  The code seemed to
>> be a PID controller using an optointerrupter on the chopper wheel, which
>> should have been fine.  I built a strobe light using an HP 3325A
>> synthesizer driving a LED, so that I could see the loop dynamics.  The
>> controller was totally broken--regardless of the settings of P, I, and
>> D, there was no way of making the phase sit still.  A gentle stream of
>> canned air would move the phase, and it would never recover--i.e. there
>> was no integral term in the control law, despite what the settings would
>> have one believe.
>>
>> And then it turned out that they'd never built a lock-in before, and
>> were trying to extract the (approximately triangular) signal waveform by
>> least-squares curve fitting to a sine wave instead of using an FFT like
>> normal people.  Everybody screws up their first digital lock-in, but
>> I've never seen one as bad as that.  (For non signals-and-systems folks:
>> least squares fitting works OK at high SNR, but for noisy data it falls
>> apart completely.  The FFT uses orthogonality, and so works at any SNR.)
>>
>> I didn't get to the last onion layer, because the founder ran out of
>> both dough and friends.  He never did pay me for my last month's work.
>>
>> A pity.  I would have made those boxes work eventually.
>>
>>
>> (*) One where the business end slides around on a curved surface, like
>> the blade assembly on some razors.
>> (**) A cage system using plates held together with 6-mm
>> centreless-ground stainless steel rods, similar to the Thor Labs 30-mm
>> cage system.
>>
>> Cheers
>>
>> Phil Hobbs
> 
> I want a wideband optical spectrum analyzer, say 300 to 1600 nm, for
> checking LEDs and IR fiber lasers and generally knowing where we are.
> It doesn't need to be very sensitive or terribly accurate. Nobody
> makes one, and there should be a market, and it sounds a lot easier
> than that project.

Smaller TAM though. ;)

You can do nearly that whole range with germanium, or else a 
blue-enhanced Si and an ordinary InGaAs.  The hardware would be a bit of 
a challenge since the bandwidth is more than an octave, so that the 
diffracted orders would overlap.  (It's a lot like having a tuning range 
more than twice the IF in a receiver.)  You'd have to use a filter wheel 
or else cross-dispersion with another grating, and at that point it's 
probably easier to use two spectrometers.  I have an Ocean Optics one 
that I quite like.

Cheers

Phil Hobbs

-- 
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC / Hobbs ElectroOptics
Optics, Electro-optics, Photonics, Analog Electronics
Briarcliff Manor NY 10510

http://electrooptical.net
http://hobbs-eo.com

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


#573167 — Re: Blood glucose (was: design rigor: electronics vs. software)

FromGeorge Herold <ggherold@gmail.com>
Date2020-01-15 10:59 -0800
SubjectRe: Blood glucose (was: design rigor: electronics vs. software)
Message-ID<c475e456-1428-44a1-9f15-76df8f9c4f0b@googlegroups.com>
In reply to#573155
On Wednesday, January 15, 2020 at 10:46:30 AM UTC-5, jla...@highlandsniptechnology.com wrote:
> On Wed, 15 Jan 2020 07:28:58 -0500, Phil Hobbs
> <pcdhSpamMeSenseless@electrooptical.net> wrote:
> 
> >On 2020-01-15 03:17, RBlack wrote:
> >> On Tue, 14 Jan 2020 12:35:56 -0500, Phil Hobbs
> >> <pcdhSpamMeSenseless@electrooptical.net> said:
> >>>
> >> 
> >> [snip]
> >> 
> >>> Client work almost always succeeds, and the occasional failures are
> >>> mostly due to the customer's prevarication, such as taking my
> >>> proof-of-concept system, giving it to a CE outfit, and then pulling me
> >>> back in to attempt to fix the CE's mess--of course at the last minute,
> >>> when they've almost run out of money.  That's happened a couple of
> >>> times, so I try very hard to discourage it.  (The two were the
> >>> transcutaneous blood glucose/alcohol system and the blood-spot detector
> >> 
> >>    ^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^
> >> 
> >> Bummer, sorry to hear about that.  (I have a personal interest in seeing
> >> this type of device working and on the market).  Did anyone else pick up
> >> the project, or did it just die?
> >> 
> >>> for hens' eggs.)
> >>>
> >
> >Yeah, that was a sad one, for sure.  It remains vivid in my memory, so 
> >at the risk of boring people, here's the tale.
> >
> >The founder called me out of the blue at 3 PM on Christmas Eve, 2012. 
> >He turned out to be a charming fellow with a lot of drive and not a lot 
> >of education, who was practically supernatural at raising money.  He 
> >wanted me to build him an instrument, because that's what I do.
> >
> >He'd patented the general principle, which avoided the individual 
> >physiological variations that usually bedevil those sorts of measurements.
> >
> >The idea was to use a hand cradle with a virtual pivot (*) holding a 
> >fibre bundle against the web of the first and second fingers.  There are 
> >two arteries very close to the surface there, so you get to measure 
> >fresh blood instead of tissue fluid, and no one has hair, fat, or 
> >callouses there, so the physiology is very cooperative.  He had some 
> >promising data that he took himself using a Perkin-Elmer FTIR and his 
> >hand cradle.  (He somehow talked some guys at USC into giving him lab 
> >space and some help doing that--he was entirely self-taught, which has 
> >its strengths and weaknesses.)
> >
> >The project was an unusual one for me, in that I didn't have my arms 
> >around the whole measurement--I built the gizmo, but the founder had his 
> >USC statistics friends use their AI nous to build the model and extract 
> >the blood solute data.  Thus I don't actually know how that was done. 
> >(It wasn't something simple like spectral differencing, anyway.)
> >
> >I did a photon budget, which is my term for a detailed feasibility 
> >calculation emphasizing stability and SNR.  That's super important 
> >because without calculating how good the measurement _could_ be, you 
> >never really know how you're doing.  A photon budget prevents you from 
> >wasting time on recreational impossibilities on the one hand, or turning 
> >a silk purse back into a sow's ear on the other.  In this case it looked 
> >pretty good, using a tungsten source, a custom-designed split bundle of 
> >about 20 fibres (TX + RX), a conventional Czerny-Turner monochromator, a 
> >single extended-InGaAs photodiode, and a chopper plus lock-in for 
> >detection.
> >
> >The proof-of-concept system took me about six weeks start to finish, 
> >including the photon budget, optical design, designing and building the 
> >electronics, assembling the optomechanics, and writing the software.  It 
> >was built on a 12 x 24-inch aluminum breadboard using a combination of 
> >hhacked Microbench (**) parts, JB Weld (the poor man's machine shop), 
> >and a servo from an RC airplane for moving the grating.  The grating 
> >cradle was also built from toy airplane parts, courtesy of 
> >servocity.com.  The electronics was all built in die cast aluminum stomp 
> >boxes, dead bug style, wired up with BNC cables.  The chopper was a 
> >commercial (Thor Labs) unit, and the back end was a LabJack and a 
> >console-mode C++ program running on a second-hand laptop.
> >
> >It all worked great, and was very amusing to watch--an advanced clinical 
> >instrument built out of JB Weld and toy parts.  (Wouldn't the FDA have 
> >loved that?) ;)
> >
> >We did the preliminary acceptance test by having some friends over for 
> >cocktails and measuring their blood spectra every 15 minutes or so.  The 
> >data did exactly as we hoped--nice repeatable curves with the right time 
> >dependence and no big physiological variations between subjects.  We did 
> >some glucose work using a strip reader for comparison, but the strips 
> >have relatively poor accuracy, so we concentrated on the alcohol 
> >measurement for that part of the demo.  (Quaffing a few cool ones is 
> >much more fun than sticking pins in your fingers, too.)
> >
> >After the founder used the POC data to raise a bunch more money, we 
> >brought the proto and the Perkin-Elmer FTIR to a contract engineering 
> >house in Orange County CA that will remain nameless because they have 
> >this unfortunate tendency to sue everybody in sight.  The founder kept 
> >me sort of distantly in the loop, but his crucial mistake was trying to 
> >save money by supervising the CE firm himself.  (I tried to help, but 
> >they ignored me almost entirely because I wasn't the one writing the 
> >cheques.)
> >
> >The CE folks proceeded to fall into every pothole along the road, like a 
> >drunk.  They ignored the photon budget, and so redesigned the front end 
> >to use an ordinary op amp TIA, not realizing they lost about 15 dB of 
> >SNR in the process. (I managed to get that one fixed, and the guy 
> >responsible taken off the project.  Unfortunately they were almost all 
> >like that.)
> >
> >They replaced the direct drive for the grating with a belt drive, which 
> >gave nice smooth motion but of course rapidly lost accuracy as the belt 
> >squirmed around while moving, so that the calibration wouldn't sit 
> >still.  They needed more encoder precision, so they put an encoder on 
> >the motor as well as the grating, and did some micky-mouse trick to 
> >combine the two encoder readings.   Even the magnetic encoder on the 
> >grating shaft refused to sit still--it drifted around like mad.  I went 
> >there to try to get to the bottom of some of this stuff, and although 
> >they mostly sidelined me because I wasn't writing the cheques, we did 
> >manage to get to the bottom of that one.  Turned out that the encoder's 
> >output was the duty cycle of a pulse train (like the RC servo only 
> >backwards), and they were measuring the pulse width instead, using a 
> >capture input of their MCU.  That turned the frequency drift into a 
> >position drift.  Once it was fixed, I hit that poor encoder with cold 
> >spray and a heat gun, and couldn't get it to move at all.  Kudos to US 
> >Digital for that one.
> >
> >The belt-drive system failed nonetheless, basically because the 
> >measurement was being done on the slope of the very strong IR absorption 
> >spectrum of water in the 1.4-1.7 micron range, so that small wavelength 
> >shifts caused much larger amplitude errors.
> >
> >I told them to use a sine-bar drive like every other Czerny-Turner 
> >monochromator in the world, but they refused, insisting on using a 
> >worm-and-sector gear instead, with the encoder on the worm shaft. 
> >Unlike nearly any other sort of gearing, worms work using sliding 
> >friction.  That makes the grease film thin out with time.  I calculated 
> >for their benefit that in their design, with the very small radius of 
> >the sector gear, the maximum lubricant variation we could tolerate was 
> >about 70 nanometres.  Since they were nearly finished with the prototype 
> >build for the formal clinical trial, I told them to use dry molybdenum 
> >disulphide for lubricant instead of grease.
> >
> >They straight-up refused, saying they couldn't get MoS2, so I sent them 
> >a link to the exact SKU on fastenall.com, after verifying that their 
> >local Fastenall had it in stock.  (I even sent them a Mapquest link so 
> >they could find the store.  That was a bit sarcastic, which I regret, 
> >but I was getting pretty tired of them by that point.)  They proceeded 
> >to ship one unit with grease and three units unlubricated.
> >
> >When I complained about all the directionless fiddling they were doing, 
> >one bright lad smiled and said brightly, "That's engineering!"  He was 
> >one of the better ones.
> >
> >They also took the POC proto apart to use bits of it in their test 
> >system, so that they had no comparison data, and, oh, yes, they broke 
> >the $100k FTIR and didn't tell anyone.
> >
> >The units failed the acceptance test.  I attended it, but since the USC 
> >folks weren't crunching the data in real time, the failure wasn't 
> >entirely apparent till later.  By that point the CE had run through a 
> >year's time and most of a million bucks.
> >
> >Some months later, two units arrived on my bench, along with an urgent 
> >request for me to get to the bottom of it all.
> >
> >Turned out to be a real onion problem--you know, peel off one layer, 
> >cry, and peel off the next.
> >
> >The phase of the detected signal was moving around by 10 degrees or so, 
> >which was easily enough to destroy the measurement.  The code seemed to 
> >be a PID controller using an optointerrupter on the chopper wheel, which 
> >should have been fine.  I built a strobe light using an HP 3325A 
> >synthesizer driving a LED, so that I could see the loop dynamics.  The 
> >controller was totally broken--regardless of the settings of P, I, and 
> >D, there was no way of making the phase sit still.  A gentle stream of 
> >canned air would move the phase, and it would never recover--i.e. there 
> >was no integral term in the control law, despite what the settings would 
> >have one believe.
> >
> >And then it turned out that they'd never built a lock-in before, and 
> >were trying to extract the (approximately triangular) signal waveform by 
> >least-squares curve fitting to a sine wave instead of using an FFT like 
> >normal people.  Everybody screws up their first digital lock-in, but 
> >I've never seen one as bad as that.  (For non signals-and-systems folks: 
> >least squares fitting works OK at high SNR, but for noisy data it falls 
> >apart completely.  The FFT uses orthogonality, and so works at any SNR.)
> >
> >I didn't get to the last onion layer, because the founder ran out of 
> >both dough and friends.  He never did pay me for my last month's work.
> >
> >A pity.  I would have made those boxes work eventually.
> >
> >
> >(*) One where the business end slides around on a curved surface, like 
> >the blade assembly on some razors.
> >(**) A cage system using plates held together with 6-mm 
> >centreless-ground stainless steel rods, similar to the Thor Labs 30-mm 
> >cage system.
> >
> >Cheers
> >
> >Phil Hobbs
> 
> I want a wideband optical spectrum analyzer, say 300 to 1600 nm, for
> checking LEDs and IR fiber lasers and generally knowing where we are.
> It doesn't need to be very sensitive or terribly accurate. Nobody
> makes one, and there should be a market, and it sounds a lot easier
> than that project.
> 
ocean optics makes some cheaper spectrometers.  But I think you are being a 
bit greedy on the wavelength range.  In fact I think you are limited to 
an octave, because you'll get higher order peaks... but I'm not sure.
(Phil will set me straight... or I'll pull out "Building Scientific Apparatus")

Hmm I was wrong about the octave thing
https://www.oceaninsight.com/products/spectrometers/

(not a great website... lotsa feel good video.)

George H. 
   
> 
> 
> -- 
> 
> John Larkin         Highland Technology, Inc
> 
> The cork popped merrily, and Lord Peter rose to his feet. 
> "Bunter", he said, "I give you a toast. The triumph of Instinct over Reason"

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


#573166 — Re: Blood glucose (was: design rigor: electronics vs. software)

FromGeorge Herold <ggherold@gmail.com>
Date2020-01-15 10:43 -0800
SubjectRe: Blood glucose (was: design rigor: electronics vs. software)
Message-ID<ccfe9462-a2cf-44aa-809f-94af86452c95@googlegroups.com>
In reply to#573145
On Wednesday, January 15, 2020 at 7:29:08 AM UTC-5, Phil Hobbs wrote:
> On 2020-01-15 03:17, RBlack wrote:
> > On Tue, 14 Jan 2020 12:35:56 -0500, Phil Hobbs
> > <pcdhSpamMeSenseless@electrooptical.net> said:
> >>
> > 
> > [snip]
> > 
> >> Client work almost always succeeds, and the occasional failures are
> >> mostly due to the customer's prevarication, such as taking my
> >> proof-of-concept system, giving it to a CE outfit, and then pulling me
> >> back in to attempt to fix the CE's mess--of course at the last minute,
> >> when they've almost run out of money.  That's happened a couple of
> >> times, so I try very hard to discourage it.  (The two were the
> >> transcutaneous blood glucose/alcohol system and the blood-spot detector
> > 
> >    ^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^
> > 
> > Bummer, sorry to hear about that.  (I have a personal interest in seeing
> > this type of device working and on the market).  Did anyone else pick up
> > the project, or did it just die?
> > 
> >> for hens' eggs.)
> >>
> 
> Yeah, that was a sad one, for sure.  It remains vivid in my memory, so 
> at the risk of boring people, here's the tale.
> 
> The founder called me out of the blue at 3 PM on Christmas Eve, 2012. 
> He turned out to be a charming fellow with a lot of drive and not a lot 
> of education, who was practically supernatural at raising money.  He 
> wanted me to build him an instrument, because that's what I do.
> 
> He'd patented the general principle, which avoided the individual 
> physiological variations that usually bedevil those sorts of measurements.
> 
> The idea was to use a hand cradle with a virtual pivot (*) holding a 
> fibre bundle against the web of the first and second fingers.  There are 
> two arteries very close to the surface there, so you get to measure 
> fresh blood instead of tissue fluid, and no one has hair, fat, or 
> callouses there, so the physiology is very cooperative.  He had some 
> promising data that he took himself using a Perkin-Elmer FTIR and his 
> hand cradle.  (He somehow talked some guys at USC into giving him lab 
> space and some help doing that--he was entirely self-taught, which has 
> its strengths and weaknesses.)
> 
> The project was an unusual one for me, in that I didn't have my arms 
> around the whole measurement--I built the gizmo, but the founder had his 
> USC statistics friends use their AI nous to build the model and extract 
> the blood solute data.  Thus I don't actually know how that was done. 
> (It wasn't something simple like spectral differencing, anyway.)
> 
> I did a photon budget, which is my term for a detailed feasibility 
> calculation emphasizing stability and SNR.  That's super important 
> because without calculating how good the measurement _could_ be, you 
> never really know how you're doing.  A photon budget prevents you from 
> wasting time on recreational impossibilities on the one hand, or turning 
> a silk purse back into a sow's ear on the other.  In this case it looked 
> pretty good, using a tungsten source, a custom-designed split bundle of 
> about 20 fibres (TX + RX), a conventional Czerny-Turner monochromator, a 
> single extended-InGaAs photodiode, and a chopper plus lock-in for 
> detection.
> 
> The proof-of-concept system took me about six weeks start to finish, 
> including the photon budget, optical design, designing and building the 
> electronics, assembling the optomechanics, and writing the software.  It 
> was built on a 12 x 24-inch aluminum breadboard using a combination of 
> hhacked Microbench (**) parts, JB Weld (the poor man's machine shop), 
> and a servo from an RC airplane for moving the grating.  The grating 
> cradle was also built from toy airplane parts, courtesy of 
> servocity.com.  The electronics was all built in die cast aluminum stomp 
> boxes, dead bug style, wired up with BNC cables.  The chopper was a 
> commercial (Thor Labs) unit, and the back end was a LabJack and a 
> console-mode C++ program running on a second-hand laptop.
> 
> It all worked great, and was very amusing to watch--an advanced clinical 
> instrument built out of JB Weld and toy parts.  (Wouldn't the FDA have 
> loved that?) ;)
> 
> We did the preliminary acceptance test by having some friends over for 
> cocktails and measuring their blood spectra every 15 minutes or so.  The 
> data did exactly as we hoped--nice repeatable curves with the right time 
> dependence and no big physiological variations between subjects.  We did 
> some glucose work using a strip reader for comparison, but the strips 
> have relatively poor accuracy, so we concentrated on the alcohol 
> measurement for that part of the demo.  (Quaffing a few cool ones is 
> much more fun than sticking pins in your fingers, too.)
> 
> After the founder used the POC data to raise a bunch more money, we 
> brought the proto and the Perkin-Elmer FTIR to a contract engineering 
> house in Orange County CA that will remain nameless because they have 
> this unfortunate tendency to sue everybody in sight.  The founder kept 
> me sort of distantly in the loop, but his crucial mistake was trying to 
> save money by supervising the CE firm himself.  (I tried to help, but 
> they ignored me almost entirely because I wasn't the one writing the 
> cheques.)
> 
> The CE folks proceeded to fall into every pothole along the road, like a 
> drunk.  They ignored the photon budget, and so redesigned the front end 
> to use an ordinary op amp TIA, not realizing they lost about 15 dB of 
> SNR in the process. (I managed to get that one fixed, and the guy 
> responsible taken off the project.  Unfortunately they were almost all 
> like that.)
> 
> They replaced the direct drive for the grating with a belt drive, which 
> gave nice smooth motion but of course rapidly lost accuracy as the belt 
> squirmed around while moving, so that the calibration wouldn't sit 
> still.  They needed more encoder precision, so they put an encoder on 
> the motor as well as the grating, and did some micky-mouse trick to 
> combine the two encoder readings.   Even the magnetic encoder on the 
> grating shaft refused to sit still--it drifted around like mad.  I went 
> there to try to get to the bottom of some of this stuff, and although 
> they mostly sidelined me because I wasn't writing the cheques, we did 
> manage to get to the bottom of that one.  Turned out that the encoder's 
> output was the duty cycle of a pulse train (like the RC servo only 
> backwards), and they were measuring the pulse width instead, using a 
> capture input of their MCU.  That turned the frequency drift into a 
> position drift.  Once it was fixed, I hit that poor encoder with cold 
> spray and a heat gun, and couldn't get it to move at all.  Kudos to US 
> Digital for that one.
> 
> The belt-drive system failed nonetheless, basically because the 
> measurement was being done on the slope of the very strong IR absorption 
> spectrum of water in the 1.4-1.7 micron range, so that small wavelength 
> shifts caused much larger amplitude errors.
> 
> I told them to use a sine-bar drive like every other Czerny-Turner 
> monochromator in the world, but they refused, insisting on using a 
> worm-and-sector gear instead, with the encoder on the worm shaft. 
> Unlike nearly any other sort of gearing, worms work using sliding 
> friction.  That makes the grease film thin out with time.  I calculated 
> for their benefit that in their design, with the very small radius of 
> the sector gear, the maximum lubricant variation we could tolerate was 
> about 70 nanometres.  Since they were nearly finished with the prototype 
> build for the formal clinical trial, I told them to use dry molybdenum 
> disulphide for lubricant instead of grease.
> 
> They straight-up refused, saying they couldn't get MoS2, so I sent them 
> a link to the exact SKU on fastenall.com, after verifying that their 
> local Fastenall had it in stock.  (I even sent them a Mapquest link so 
> they could find the store.  That was a bit sarcastic, which I regret, 
> but I was getting pretty tired of them by that point.)  They proceeded 
> to ship one unit with grease and three units unlubricated.
> 
> When I complained about all the directionless fiddling they were doing, 
> one bright lad smiled and said brightly, "That's engineering!"  He was 
> one of the better ones.
> 
> They also took the POC proto apart to use bits of it in their test 
> system, so that they had no comparison data, and, oh, yes, they broke 
> the $100k FTIR and didn't tell anyone.
> 
> The units failed the acceptance test.  I attended it, but since the USC 
> folks weren't crunching the data in real time, the failure wasn't 
> entirely apparent till later.  By that point the CE had run through a 
> year's time and most of a million bucks.
> 
> Some months later, two units arrived on my bench, along with an urgent 
> request for me to get to the bottom of it all.
> 
> Turned out to be a real onion problem--you know, peel off one layer, 
> cry, and peel off the next.
> 
> The phase of the detected signal was moving around by 10 degrees or so, 
> which was easily enough to destroy the measurement.  The code seemed to 
> be a PID controller using an optointerrupter on the chopper wheel, which 
> should have been fine.  I built a strobe light using an HP 3325A 
> synthesizer driving a LED, so that I could see the loop dynamics.  The 
> controller was totally broken--regardless of the settings of P, I, and 
> D, there was no way of making the phase sit still.  A gentle stream of 
> canned air would move the phase, and it would never recover--i.e. there 
> was no integral term in the control law, despite what the settings would 
> have one believe.
> 
> And then it turned out that they'd never built a lock-in before, and 
> were trying to extract the (approximately triangular) signal waveform by 
> least-squares curve fitting to a sine wave instead of using an FFT like 
> normal people.  Everybody screws up their first digital lock-in, but 
> I've never seen one as bad as that.  (For non signals-and-systems folks: 
> least squares fitting works OK at high SNR, but for noisy data it falls 
> apart completely.  The FFT uses orthogonality, and so works at any SNR.)
> 
> I didn't get to the last onion layer, because the founder ran out of 
> both dough and friends.  He never did pay me for my last month's work.
> 
> A pity.  I would have made those boxes work eventually.
> 
> 
> (*) One where the business end slides around on a curved surface, like 
> the blade assembly on some razors.
> (**) A cage system using plates held together with 6-mm 
> centreless-ground stainless steel rods, similar to the Thor Labs 30-mm 
> cage system.
> 
> Cheers
> 
> Phil Hobbs
> 
> -- 
> Dr Philip C D Hobbs
> Principal Consultant
> ElectroOptical Innovations LLC / Hobbs ElectroOptics
> Optics, Electro-optics, Photonics, Analog Electronics
> Briarcliff Manor NY 10510
> 
> http://electrooptical.net
> http://hobbs-eo.com

Wow!  Thanks, nice story.  I've half dreamed of making a cheap spectrometer
with a grating and rotation stage/ worm drive... figuring if you always 
turn it in one direction the backlash won't be a problem... I never thought 
about the grease!  

Re digital LI:  Color me ignorant, but my first idea would be to 
multiply the signal and ref. in software... is there a reason that is 
a bad idea?  

George H. 

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


#573172 — Re: Blood glucose

FromPhil Hobbs <pcdhSpamMeSenseless@electrooptical.net>
Date2020-01-15 14:29 -0500
SubjectRe: Blood glucose
Message-ID<90aa0afc-4437-90fe-a347-3843dd084655@electrooptical.net>
In reply to#573166
On 2020-01-15 13:43, George Herold wrote:
> On Wednesday, January 15, 2020 at 7:29:08 AM UTC-5, Phil Hobbs wrote:
>> On 2020-01-15 03:17, RBlack wrote:
>>> On Tue, 14 Jan 2020 12:35:56 -0500, Phil Hobbs
>>> <pcdhSpamMeSenseless@electrooptical.net> said:
>>>>
>>>
>>> [snip]
>>>
>>>> Client work almost always succeeds, and the occasional failures are
>>>> mostly due to the customer's prevarication, such as taking my
>>>> proof-of-concept system, giving it to a CE outfit, and then pulling me
>>>> back in to attempt to fix the CE's mess--of course at the last minute,
>>>> when they've almost run out of money.  That's happened a couple of
>>>> times, so I try very hard to discourage it.  (The two were the
>>>> transcutaneous blood glucose/alcohol system and the blood-spot detector
>>>
>>>     ^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^
>>>
>>> Bummer, sorry to hear about that.  (I have a personal interest in seeing
>>> this type of device working and on the market).  Did anyone else pick up
>>> the project, or did it just die?
>>>
>>>> for hens' eggs.)
>>>>
>>
>> Yeah, that was a sad one, for sure.  It remains vivid in my memory, so
>> at the risk of boring people, here's the tale.
>>
>> The founder called me out of the blue at 3 PM on Christmas Eve, 2012.
>> He turned out to be a charming fellow with a lot of drive and not a lot
>> of education, who was practically supernatural at raising money.  He
>> wanted me to build him an instrument, because that's what I do.
>>
>> He'd patented the general principle, which avoided the individual
>> physiological variations that usually bedevil those sorts of measurements.
>>
>> The idea was to use a hand cradle with a virtual pivot (*) holding a
>> fibre bundle against the web of the first and second fingers.  There are
>> two arteries very close to the surface there, so you get to measure
>> fresh blood instead of tissue fluid, and no one has hair, fat, or
>> callouses there, so the physiology is very cooperative.  He had some
>> promising data that he took himself using a Perkin-Elmer FTIR and his
>> hand cradle.  (He somehow talked some guys at USC into giving him lab
>> space and some help doing that--he was entirely self-taught, which has
>> its strengths and weaknesses.)
>>
>> The project was an unusual one for me, in that I didn't have my arms
>> around the whole measurement--I built the gizmo, but the founder had his
>> USC statistics friends use their AI nous to build the model and extract
>> the blood solute data.  Thus I don't actually know how that was done.
>> (It wasn't something simple like spectral differencing, anyway.)
>>
>> I did a photon budget, which is my term for a detailed feasibility
>> calculation emphasizing stability and SNR.  That's super important
>> because without calculating how good the measurement _could_ be, you
>> never really know how you're doing.  A photon budget prevents you from
>> wasting time on recreational impossibilities on the one hand, or turning
>> a silk purse back into a sow's ear on the other.  In this case it looked
>> pretty good, using a tungsten source, a custom-designed split bundle of
>> about 20 fibres (TX + RX), a conventional Czerny-Turner monochromator, a
>> single extended-InGaAs photodiode, and a chopper plus lock-in for
>> detection.
>>
>> The proof-of-concept system took me about six weeks start to finish,
>> including the photon budget, optical design, designing and building the
>> electronics, assembling the optomechanics, and writing the software.  It
>> was built on a 12 x 24-inch aluminum breadboard using a combination of
>> hhacked Microbench (**) parts, JB Weld (the poor man's machine shop),
>> and a servo from an RC airplane for moving the grating.  The grating
>> cradle was also built from toy airplane parts, courtesy of
>> servocity.com.  The electronics was all built in die cast aluminum stomp
>> boxes, dead bug style, wired up with BNC cables.  The chopper was a
>> commercial (Thor Labs) unit, and the back end was a LabJack and a
>> console-mode C++ program running on a second-hand laptop.
>>
>> It all worked great, and was very amusing to watch--an advanced clinical
>> instrument built out of JB Weld and toy parts.  (Wouldn't the FDA have
>> loved that?) ;)
>>
>> We did the preliminary acceptance test by having some friends over for
>> cocktails and measuring their blood spectra every 15 minutes or so.  The
>> data did exactly as we hoped--nice repeatable curves with the right time
>> dependence and no big physiological variations between subjects.  We did
>> some glucose work using a strip reader for comparison, but the strips
>> have relatively poor accuracy, so we concentrated on the alcohol
>> measurement for that part of the demo.  (Quaffing a few cool ones is
>> much more fun than sticking pins in your fingers, too.)
>>
>> After the founder used the POC data to raise a bunch more money, we
>> brought the proto and the Perkin-Elmer FTIR to a contract engineering
>> house in Orange County CA that will remain nameless because they have
>> this unfortunate tendency to sue everybody in sight.  The founder kept
>> me sort of distantly in the loop, but his crucial mistake was trying to
>> save money by supervising the CE firm himself.  (I tried to help, but
>> they ignored me almost entirely because I wasn't the one writing the
>> cheques.)
>>
>> The CE folks proceeded to fall into every pothole along the road, like a
>> drunk.  They ignored the photon budget, and so redesigned the front end
>> to use an ordinary op amp TIA, not realizing they lost about 15 dB of
>> SNR in the process. (I managed to get that one fixed, and the guy
>> responsible taken off the project.  Unfortunately they were almost all
>> like that.)
>>
>> They replaced the direct drive for the grating with a belt drive, which
>> gave nice smooth motion but of course rapidly lost accuracy as the belt
>> squirmed around while moving, so that the calibration wouldn't sit
>> still.  They needed more encoder precision, so they put an encoder on
>> the motor as well as the grating, and did some micky-mouse trick to
>> combine the two encoder readings.   Even the magnetic encoder on the
>> grating shaft refused to sit still--it drifted around like mad.  I went
>> there to try to get to the bottom of some of this stuff, and although
>> they mostly sidelined me because I wasn't writing the cheques, we did
>> manage to get to the bottom of that one.  Turned out that the encoder's
>> output was the duty cycle of a pulse train (like the RC servo only
>> backwards), and they were measuring the pulse width instead, using a
>> capture input of their MCU.  That turned the frequency drift into a
>> position drift.  Once it was fixed, I hit that poor encoder with cold
>> spray and a heat gun, and couldn't get it to move at all.  Kudos to US
>> Digital for that one.
>>
>> The belt-drive system failed nonetheless, basically because the
>> measurement was being done on the slope of the very strong IR absorption
>> spectrum of water in the 1.4-1.7 micron range, so that small wavelength
>> shifts caused much larger amplitude errors.
>>
>> I told them to use a sine-bar drive like every other Czerny-Turner
>> monochromator in the world, but they refused, insisting on using a
>> worm-and-sector gear instead, with the encoder on the worm shaft.
>> Unlike nearly any other sort of gearing, worms work using sliding
>> friction.  That makes the grease film thin out with time.  I calculated
>> for their benefit that in their design, with the very small radius of
>> the sector gear, the maximum lubricant variation we could tolerate was
>> about 70 nanometres.  Since they were nearly finished with the prototype
>> build for the formal clinical trial, I told them to use dry molybdenum
>> disulphide for lubricant instead of grease.
>>
>> They straight-up refused, saying they couldn't get MoS2, so I sent them
>> a link to the exact SKU on fastenall.com, after verifying that their
>> local Fastenall had it in stock.  (I even sent them a Mapquest link so
>> they could find the store.  That was a bit sarcastic, which I regret,
>> but I was getting pretty tired of them by that point.)  They proceeded
>> to ship one unit with grease and three units unlubricated.
>>
>> When I complained about all the directionless fiddling they were doing,
>> one bright lad smiled and said brightly, "That's engineering!"  He was
>> one of the better ones.
>>
>> They also took the POC proto apart to use bits of it in their test
>> system, so that they had no comparison data, and, oh, yes, they broke
>> the $100k FTIR and didn't tell anyone.
>>
>> The units failed the acceptance test.  I attended it, but since the USC
>> folks weren't crunching the data in real time, the failure wasn't
>> entirely apparent till later.  By that point the CE had run through a
>> year's time and most of a million bucks.
>>
>> Some months later, two units arrived on my bench, along with an urgent
>> request for me to get to the bottom of it all.
>>
>> Turned out to be a real onion problem--you know, peel off one layer,
>> cry, and peel off the next.
>>
>> The phase of the detected signal was moving around by 10 degrees or so,
>> which was easily enough to destroy the measurement.  The code seemed to
>> be a PID controller using an optointerrupter on the chopper wheel, which
>> should have been fine.  I built a strobe light using an HP 3325A
>> synthesizer driving a LED, so that I could see the loop dynamics.  The
>> controller was totally broken--regardless of the settings of P, I, and
>> D, there was no way of making the phase sit still.  A gentle stream of
>> canned air would move the phase, and it would never recover--i.e. there
>> was no integral term in the control law, despite what the settings would
>> have one believe.
>>
>> And then it turned out that they'd never built a lock-in before, and
>> were trying to extract the (approximately triangular) signal waveform by
>> least-squares curve fitting to a sine wave instead of using an FFT like
>> normal people.  Everybody screws up their first digital lock-in, but
>> I've never seen one as bad as that.  (For non signals-and-systems folks:
>> least squares fitting works OK at high SNR, but for noisy data it falls
>> apart completely.  The FFT uses orthogonality, and so works at any SNR.)
>>
>> I didn't get to the last onion layer, because the founder ran out of
>> both dough and friends.  He never did pay me for my last month's work.
>>
>> A pity.  I would have made those boxes work eventually.
>>
>>
>> (*) One where the business end slides around on a curved surface, like
>> the blade assembly on some razors.
>> (**) A cage system using plates held together with 6-mm
>> centreless-ground stainless steel rods, similar to the Thor Labs 30-mm
>> cage system.
>>
>> Cheers
>>
>> Phil Hobbs
>>
>> -- 
>> Dr Philip C D Hobbs
>> Principal Consultant
>> ElectroOptical Innovations LLC / Hobbs ElectroOptics
>> Optics, Electro-optics, Photonics, Analog Electronics
>> Briarcliff Manor NY 10510
>>
>> http://electrooptical.net
>> http://hobbs-eo.com
> 
> Wow!  Thanks, nice story.  I've half dreamed of making a cheap spectrometer
> with a grating and rotation stage/ worm drive... figuring if you always
> turn it in one direction the backlash won't be a problem... I never thought
> about the grease!
> 
> Re digital LI:  Color me ignorant, but my first idea would be to
> multiply the signal and ref. in software... is there a reason that is
> a bad idea?

Not at all, if you have the computrons available.  The issues are mostly 
that the frequency domain will show up all sorts of analogue issues that 
don't bug you at all when your signal isn't swamped by wideband noise.

For instance, some ADCs can't swing their internal nodes fast enough to 
avoid pattern-dependent errors, and a lot of amplifiers get driven nuts 
by the charge pulse that comes out the ADC input during sampling.  The 
effects look subtle until you torture-test them.

My usual approach is to use analogue lock-ins, with something like a 
74HC4017 or firmware to produce non-overlapping gate signals for the 
0/pi phases.  The non-overlap is pretty generous to allow the op amps to 
settle completely between sample periods.  That never causes any 
problems IME.

Cheers

Phil Hobbs


-- 
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC / Hobbs ElectroOptics
Optics, Electro-optics, Photonics, Analog Electronics
Briarcliff Manor NY 10510

http://electrooptical.net
http://hobbs-eo.com

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


#573181 — Re: Blood glucose

FromGeorge Herold <ggherold@gmail.com>
Date2020-01-15 12:45 -0800
SubjectRe: Blood glucose
Message-ID<25f801b9-6bc8-4092-8d13-1bbb06f3ce95@googlegroups.com>
In reply to#573172
On Wednesday, January 15, 2020 at 2:29:36 PM UTC-5, Phil Hobbs wrote:
> On 2020-01-15 13:43, George Herold wrote:
> > On Wednesday, January 15, 2020 at 7:29:08 AM UTC-5, Phil Hobbs wrote:
> >> On 2020-01-15 03:17, RBlack wrote:
> >>> On Tue, 14 Jan 2020 12:35:56 -0500, Phil Hobbs
> >>> <pcdhSpamMeSenseless@electrooptical.net> said:
> >>>>
> >>>
> >>> [snip]
> >>>

<Big snip of PH's story>
> >>
> >> Cheers
> >>
> >> Phil Hobbs
> >>
> >> -- 
> >> Dr Philip C D Hobbs
> >> Principal Consultant
> >> ElectroOptical Innovations LLC / Hobbs ElectroOptics
> >> Optics, Electro-optics, Photonics, Analog Electronics
> >> Briarcliff Manor NY 10510
> >>
> >> http://electrooptical.net
> >> http://hobbs-eo.com
> > 
> > Wow!  Thanks, nice story.  I've half dreamed of making a cheap spectrometer
> > with a grating and rotation stage/ worm drive... figuring if you always
> > turn it in one direction the backlash won't be a problem... I never thought
> > about the grease!
> > 
> > Re digital LI:  Color me ignorant, but my first idea would be to
> > multiply the signal and ref. in software... is there a reason that is
> > a bad idea?
> 
> Not at all, if you have the computrons available.  The issues are mostly 
> that the frequency domain will show up all sorts of analogue issues that 
> don't bug you at all when your signal isn't swamped by wideband noise.
So the FFT is faster than multiplying?  So you take a chunk (time wise)
of signal, FFT it, compare phase and amplitude to fundamental in ref. and then
spit out a number?  
 I'll have to look up how to do a digital LI if I ever need one.

With noisy signals a BP filter somewhere in the signal chain is a must.  
(IMHO)  

Hey, when you were talking about measuring blood response while 
having a few brewskis.  I was wondering if this is something you could 
sell to bars?  So patrons could see if they need a taxi before they leave.  
I've always wanted to know what my blood alcohol is... 

Oh speaking of FFT's and windows I read this nice talk by Richard Hamming
https://www.cs.virginia.edu/~robins/YouAndYourResearch.html

George H.  
    
> 
> For instance, some ADCs can't swing their internal nodes fast enough to 
> avoid pattern-dependent errors, and a lot of amplifiers get driven nuts 
> by the charge pulse that comes out the ADC input during sampling.  The 
> effects look subtle until you torture-test them.
> 
> My usual approach is to use analogue lock-ins, with something like a 
> 74HC4017 or firmware to produce non-overlapping gate signals for the 
> 0/pi phases.  The non-overlap is pretty generous to allow the op amps to 
> settle completely between sample periods.  That never causes any 
> problems IME.
> 
> Cheers
> 
> Phil Hobbs
> 
> 
> -- 
> Dr Philip C D Hobbs
> Principal Consultant
> ElectroOptical Innovations LLC / Hobbs ElectroOptics
> Optics, Electro-optics, Photonics, Analog Electronics
> Briarcliff Manor NY 10510
> 
> http://electrooptical.net
> http://hobbs-eo.com

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


#573183 — Re: Blood glucose

FromPhil Hobbs <pcdhSpamMeSenseless@electrooptical.net>
Date2020-01-15 16:01 -0500
SubjectRe: Blood glucose
Message-ID<a717379b-8eac-ee79-9afa-194dca4d5676@electrooptical.net>
In reply to#573181
On 2020-01-15 15:45, George Herold wrote:
> On Wednesday, January 15, 2020 at 2:29:36 PM UTC-5, Phil Hobbs wrote:
>> On 2020-01-15 13:43, George Herold wrote:
>>> On Wednesday, January 15, 2020 at 7:29:08 AM UTC-5, Phil Hobbs wrote:
>>>> On 2020-01-15 03:17, RBlack wrote:
>>>>> On Tue, 14 Jan 2020 12:35:56 -0500, Phil Hobbs
>>>>> <pcdhSpamMeSenseless@electrooptical.net> said:
>>>>>>
>>>>>
>>>>> [snip]
>>>>>
> 
> <Big snip of PH's story>
>>>>
>>>> Cheers
>>>>
>>>> Phil Hobbs
>>>>
>>>> -- 
>>>> Dr Philip C D Hobbs
>>>> Principal Consultant
>>>> ElectroOptical Innovations LLC / Hobbs ElectroOptics
>>>> Optics, Electro-optics, Photonics, Analog Electronics
>>>> Briarcliff Manor NY 10510
>>>>
>>>> http://electrooptical.net
>>>> http://hobbs-eo.com
>>>
>>> Wow!  Thanks, nice story.  I've half dreamed of making a cheap spectrometer
>>> with a grating and rotation stage/ worm drive... figuring if you always
>>> turn it in one direction the backlash won't be a problem... I never thought
>>> about the grease!
>>>
>>> Re digital LI:  Color me ignorant, but my first idea would be to
>>> multiply the signal and ref. in software... is there a reason that is
>>> a bad idea?
>>
>> Not at all, if you have the computrons available.  The issues are mostly
>> that the frequency domain will show up all sorts of analogue issues that
>> don't bug you at all when your signal isn't swamped by wideband noise.

> So the FFT is faster than multiplying?  So you take a chunk (time wise)
> of signal, FFT it, compare phase and amplitude to fundamental in ref. and then
> spit out a number?

No, just multiply-and-accumulate is faster than the FFT, but it only 
gets you one frequency component.

>   I'll have to look up how to do a digital LI if I ever need one.
> 
> With noisy signals a BP filter somewhere in the signal chain is a must.
> (IMHO)

Depends on how much you care about the absolute phase.

> 
> Hey, when you were talking about measuring blood response while
> having a few brewskis.  I was wondering if this is something you could
> sell to bars?  So patrons could see if they need a taxi before they leave.
> I've always wanted to know what my blood alcohol is...

Some bars have breathalyzers today.
> 
> Oh speaking of FFT's and windows I read this nice talk by Richard Hamming
> https://www.cs.virginia.edu/~robins/YouAndYourResearch.html
> 
> George H.
>   
Cheers

Phil Hobbs


-- 
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC / Hobbs ElectroOptics
Optics, Electro-optics, Photonics, Analog Electronics
Briarcliff Manor NY 10510

http://electrooptical.net
http://hobbs-eo.com

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


#573233 — Re: Blood glucose

FromDecadentLinuxUserNumeroUno@decadence.org
Date2020-01-16 02:52 +0000
SubjectRe: Blood glucose
Message-ID<qvoj4f$1kj5$2@gioia.aioe.org>
In reply to#573183
Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> wrote in 
news:a717379b-8eac-ee79-9afa-194dca4d5676@electrooptical.net:

> Some bars have breathalyzers today.

 About 9 years ago I saw a news item on TV showing a UK bar giving 
alcohol to people by way of vapor infusion.  Instant buzz, no ingestion 
required.

  Never saw them show up here in the us.

  I guess they would be called Breathabuzzers.

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


#573277 — Re: Blood glucose (was: design rigor: electronics vs. software)

FromRBlack <news@rblack01.plus.com>
Date2020-01-16 11:18 +0000
SubjectRe: Blood glucose (was: design rigor: electronics vs. software)
Message-ID<MPG.388a56e079e672bb989686@reader80.eternal-september.org>
In reply to#573145
On Wed, 15 Jan 2020 07:28:58 -0500, Phil Hobbs 
<pcdhSpamMeSenseless@electrooptical.net> said:
> 
> On 2020-01-15 03:17, RBlack wrote:
> > On Tue, 14 Jan 2020 12:35:56 -0500, Phil Hobbs
> > <pcdhSpamMeSenseless@electrooptical.net> said:
> >>
> > 
> > [snip]
> > 
> >> Client work almost always succeeds, and the occasional failures are
> >> mostly due to the customer's prevarication, such as taking my
> >> proof-of-concept system, giving it to a CE outfit, and then pulling me
> >> back in to attempt to fix the CE's mess--of course at the last minute,
> >> when they've almost run out of money.  That's happened a couple of
> >> times, so I try very hard to discourage it.  (The two were the
> >> transcutaneous blood glucose/alcohol system and the blood-spot detector
> > 
> >    ^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^
> > 
> > Bummer, sorry to hear about that.  (I have a personal interest in seeing
> > this type of device working and on the market).  Did anyone else pick up
> > the project, or did it just die?
> > 
> >> for hens' eggs.)
> >>
> 
> Yeah, that was a sad one, for sure.  It remains vivid in my memory, so 
> at the risk of boring people, here's the tale.
> 

[big snip]

Wow.  Sounds horribly frustrating.  Thanks for the deatiled write-up.

There are quite a few similarities with our first product, which 
measured blood oxygen saturation.  We had a very steep learning curve, 
if I'd known about your book at the time we could have avoided some of 
the worst blind alleys.

For oxygen saturation the wavelength region of interest is right in the 
middle of the visible, so rather than a mechanical monochromator we were 
able to use a spectrometer with a grating and a linear 2048-pixel 
silicon CCD array.  The spectral data then got fed into a curve-fitting 
algorithm running on an embedded Windows PC.  I wasn't very closely 
involved with that part, my job was to design the CCD interface.  The 
proof-of-concept used an Ocean Optics USB2000, but the CEO was convinced 
we could do it smaller and cheaper.  Let's just say that didn't turn out 
quite how he expected...

The team that developed the proof-of-concept, and then sold us the 
rights, were initially looking at glucose, but oxygen saturation seemed 
to be a lot easier to get working.  There are InGaAs detector arrays 
available, I take it they weren't suitable for your system?

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


#573289 — Re: Blood glucose

FromPhil Hobbs <pcdhSpamMeSenseless@electrooptical.net>
Date2020-01-16 09:39 -0500
SubjectRe: Blood glucose
Message-ID<ee70f224-bdb9-f7a4-c214-a2ab4a126121@electrooptical.net>
In reply to#573277
On 2020-01-16 06:18, RBlack wrote:
> On Wed, 15 Jan 2020 07:28:58 -0500, Phil Hobbs
> <pcdhSpamMeSenseless@electrooptical.net> said:
>>
>> On 2020-01-15 03:17, RBlack wrote:
>>> On Tue, 14 Jan 2020 12:35:56 -0500, Phil Hobbs
>>> <pcdhSpamMeSenseless@electrooptical.net> said:
>>>>
>>>
>>> [snip]
>>>
>>>> Client work almost always succeeds, and the occasional failures are
>>>> mostly due to the customer's prevarication, such as taking my
>>>> proof-of-concept system, giving it to a CE outfit, and then pulling me
>>>> back in to attempt to fix the CE's mess--of course at the last minute,
>>>> when they've almost run out of money.  That's happened a couple of
>>>> times, so I try very hard to discourage it.  (The two were the
>>>> transcutaneous blood glucose/alcohol system and the blood-spot detector
>>>
>>>     ^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^
>>>
>>> Bummer, sorry to hear about that.  (I have a personal interest in seeing
>>> this type of device working and on the market).  Did anyone else pick up
>>> the project, or did it just die?
>>>
>>>> for hens' eggs.)
>>>>
>>
>> Yeah, that was a sad one, for sure.  It remains vivid in my memory, so
>> at the risk of boring people, here's the tale.
>>
> 
> [big snip]
> 
> Wow.  Sounds horribly frustrating.  Thanks for the deatiled write-up.
> 
> There are quite a few similarities with our first product, which
> measured blood oxygen saturation.  We had a very steep learning curve,
> if I'd known about your book at the time we could have avoided some of
> the worst blind alleys.

Yeah, it's better when we all learn from each other.

> For oxygen saturation the wavelength region of interest is right in the
> middle of the visible, so rather than a mechanical monochromator we were
> able to use a spectrometer with a grating and a linear 2048-pixel
> silicon CCD array.  The spectral data then got fed into a curve-fitting
> algorithm running on an embedded Windows PC.  I wasn't very closely
> involved with that part, my job was to design the CCD interface.  The
> proof-of-concept used an Ocean Optics USB2000, but the CEO was convinced
> we could do it smaller and cheaper.  Let's just say that didn't turn out
> quite how he expected...

No huge surprise there.  OO is a pretty good outfit, although their 
hardware is much better than their software nowadays--what with all the 
fancy programming features, it's amazingly difficult to just turn the 
thing on and take a spectrum.

> The team that developed the proof-of-concept, and then sold us the
> rights, were initially looking at glucose, but oxygen saturation seemed
> to be a lot easier to get working.  There are InGaAs detector arrays
> available, I take it they weren't suitable for your system?

They're very expensive, and the ones I know about don't have a lot of 
pixels.  Also I don't think they're available in the extended-wavelength 
(0.8-1.9 um) variety.  It was much cheaper to use more fibres.

Cheers

Phil Hobbs


-- 
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC / Hobbs ElectroOptics
Optics, Electro-optics, Photonics, Analog Electronics
Briarcliff Manor NY 10510

http://electrooptical.net
http://hobbs-eo.com

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


#573320 — Re: Blood glucose

Fromomnilobe@gmail.com
Date2020-01-16 16:03 -0800
SubjectRe: Blood glucose
Message-ID<337a9d8d-a248-4104-a8be-ffa51f217c67@googlegroups.com>
In reply to#573289
On Thursday, January 16, 2020 at 4:39:31 AM UTC-10, Phil Hobbs wrote:
> On 2020-01-16 06:18, RBlack wrote:
> > On Wed, 15 Jan 2020 07:28:58 -0500, Phil Hobbs
> > <pcdhSpptical.net> said:
> >>
> >> On 2020-01-15 03:17, RBlack wrote:
> >>> On Tue, 14 Jan 2020 12:35:56 -0500, Phil Hobbs
> >>> <pcdhSpaoptical.net> said:
> >>>>
> >>>
> >>> [snip]
> >>>
> >>>> Client work almost always succeeds, and the occasional failures are
> >>>> mostly due to the customer's prevarication, such as taking my
> >>>> proof-of-concept system, giving it to a CE outfit, and then pulling me
> >>>> back in to attempt to fix the CE's mess--of course at the last minute,
> >>>> when they've almost run out of money.  That's happened a couple of
> >>>> times, so I try very hard to discourage it.  (The two were the
> >>>> transcutaneous blood glucose/alcohol system and the blood-spot detector
> >>>
> >>>     ^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^
> >>>
> >>> Bummer, sorry to hear about that.  (I have a personal interest in seeing
> >>> this type of device working and on the market).  Did anyone else pick up
> >>> the project, or did it just die?
> >>>
> >>>> for hens' eggs.)
> >>>>
> >>
> >> Yeah, that was a sad one, for sure.  It remains vivid in my memory, so
> >> at the risk of boring people, here's the tale.
> >>
> > 
> > [big snip]
> > 
> > Wow.  Sounds horribly frustrating.  Thanks for the deatiled write-up.
> > 
> > There are quite a few similarities with our first product, which
> > measured blood oxygen saturation.  We had a very steep learning curve,
> > if I'd known about your book at the time we could have avoided some of
> > the worst blind alleys.
> 
> Yeah, it's better when we all learn from each other.
> 
> > For oxygen saturation the wavelength region of interest is right in the
> > middle of the visible, so rather than a mechanical monochromator we were
> > able to use a spectrometer with a grating and a linear 2048-pixel
> > silicon CCD array.  The spectral data then got fed into a curve-fitting
> > algorithm running on an embedded Windows PC.  I wasn't very closely
> > involved with that part, my job was to design the CCD interface.  The
> > proof-of-concept used an Ocean Optics USB2000, but the CEO was convinced
> > we could do it smaller and cheaper.  Let's just say that didn't turn out
> > quite how he expected...
> 
> No huge surprise there.  OO is a pretty good outfit, although their 
> hardware is much better than their software nowadays--what with all the 
> fancy programming features, it's amazingly difficult to just turn the 
> thing on and take a spectrum.
> 
> > The team that developed the proof-of-concept, and then sold us the
> > rights, were initially looking at glucose, but oxygen saturation seemed
> > to be a lot easier to get working.  There are InGaAs detector arrays
> > available, I take it they weren't suitable for your system?
> 
> They're very expensive, and the ones I know about don't have a lot of 
> pixels.  Also I don't think they're available in the extended-wavelength 
> (0.8-1.9 um) variety.  It was much cheaper to use more fibres.
> 
> Cheers
> 
> Phil Hobbs
> 
> 
> -- 
> Dr Philip C D Hobbs
> Principal Consultant
> ElectroOptical Innovations LLC / Hobbs ElectroOptics
> Optics, Electro-optics, Photonics, Analog Electronics
> Briarcliff Manor NY 10510
> 
> http://electrooptical.net
> http://hobbs-eo.com

Hi Phil, 
In conclusion, we electronics design engineers are trapeze artists
who hand-off hardware designs to our team with a certainty.

Software programmers are the Fed Ex handoff folks
who throw the software over the fence.

We care.
Alan F.

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


#573325 — Re: Blood glucose

FromRick C <gnuarm.deletethisbit@gmail.com>
Date2020-01-16 16:38 -0800
SubjectRe: Blood glucose
Message-ID<d10a64c1-6377-421e-ac54-d7e569d426e6@googlegroups.com>
In reply to#573320
On Thursday, January 16, 2020 at 7:03:58 PM UTC-5, omni...@gmail.com wrote:
> On Thursday, January 16, 2020 at 4:39:31 AM UTC-10, Phil Hobbs wrote:
> > On 2020-01-16 06:18, RBlack wrote:
> > > On Wed, 15 Jan 2020 07:28:58 -0500, Phil Hobbs
> > > <pcdhSpptical.net> said:
> > >>
> > >> On 2020-01-15 03:17, RBlack wrote:
> > >>> On Tue, 14 Jan 2020 12:35:56 -0500, Phil Hobbs
> > >>> <pcdhSpaoptical.net> said:
> > >>>>
> > >>>
> > >>> [snip]
> > >>>
> > >>>> Client work almost always succeeds, and the occasional failures are
> > >>>> mostly due to the customer's prevarication, such as taking my
> > >>>> proof-of-concept system, giving it to a CE outfit, and then pulling me
> > >>>> back in to attempt to fix the CE's mess--of course at the last minute,
> > >>>> when they've almost run out of money.  That's happened a couple of
> > >>>> times, so I try very hard to discourage it.  (The two were the
> > >>>> transcutaneous blood glucose/alcohol system and the blood-spot detector
> > >>>
> > >>>     ^^^^^^^^^^^^^^ ^^^^^ ^^^^^^^
> > >>>
> > >>> Bummer, sorry to hear about that.  (I have a personal interest in seeing
> > >>> this type of device working and on the market).  Did anyone else pick up
> > >>> the project, or did it just die?
> > >>>
> > >>>> for hens' eggs.)
> > >>>>
> > >>
> > >> Yeah, that was a sad one, for sure.  It remains vivid in my memory, so
> > >> at the risk of boring people, here's the tale.
> > >>
> > > 
> > > [big snip]
> > > 
> > > Wow.  Sounds horribly frustrating.  Thanks for the deatiled write-up.
> > > 
> > > There are quite a few similarities with our first product, which
> > > measured blood oxygen saturation.  We had a very steep learning curve,
> > > if I'd known about your book at the time we could have avoided some of
> > > the worst blind alleys.
> > 
> > Yeah, it's better when we all learn from each other.
> > 
> > > For oxygen saturation the wavelength region of interest is right in the
> > > middle of the visible, so rather than a mechanical monochromator we were
> > > able to use a spectrometer with a grating and a linear 2048-pixel
> > > silicon CCD array.  The spectral data then got fed into a curve-fitting
> > > algorithm running on an embedded Windows PC.  I wasn't very closely
> > > involved with that part, my job was to design the CCD interface.  The
> > > proof-of-concept used an Ocean Optics USB2000, but the CEO was convinced
> > > we could do it smaller and cheaper.  Let's just say that didn't turn out
> > > quite how he expected...
> > 
> > No huge surprise there.  OO is a pretty good outfit, although their 
> > hardware is much better than their software nowadays--what with all the 
> > fancy programming features, it's amazingly difficult to just turn the 
> > thing on and take a spectrum.
> > 
> > > The team that developed the proof-of-concept, and then sold us the
> > > rights, were initially looking at glucose, but oxygen saturation seemed
> > > to be a lot easier to get working.  There are InGaAs detector arrays
> > > available, I take it they weren't suitable for your system?
> > 
> > They're very expensive, and the ones I know about don't have a lot of 
> > pixels.  Also I don't think they're available in the extended-wavelength 
> > (0.8-1.9 um) variety.  It was much cheaper to use more fibres.
> > 
> > Cheers
> > 
> > Phil Hobbs
> > 
> > 
> > -- 
> > Dr Philip C D Hobbs
> > Principal Consultant
> > ElectroOptical Innovations LLC / Hobbs ElectroOptics
> > Optics, Electro-optics, Photonics, Analog Electronics
> > Briarcliff Manor NY 10510
> > 
> > http://electrooptical.net
> > http://hobbs-eo.com
> 
> Hi Phil, 
> In conclusion, we electronics design engineers are trapeze artists
> who hand-off hardware designs to our team with a certainty.
> 
> Software programmers are the Fed Ex handoff folks
> who throw the software over the fence.

I'm always happy to help the software people.  But often they don't like my answers.  I had one who was integrating some speech compression software and didn't like the sounds he was getting.  He used a scope and saw the 100 kHz noise from the class D amp.  He started raising a big fuss about the horrible noise and would not let go of the bone.  Nothing I said about how that noise was inaudible and likely never made it past the filter of the speaker cone anyway, made any difference to him.  Finally he found the problem in his software.  

Another time was about a board with an FPGA that could not be booted.  Configuring an FPGA is not complex.  There are about five things you have to get right and it will boot.  The trouble is if you mess up any one of them it simply sits there acting like you've done nothing and won't raise the one line that says "programming complete".  There's no debugging except to look at  what you are doing and get it right.  

So I was called to help with the debugging and there were five people at the bench, one a software manager.  Software because the put the FPGA group in software.  So there was the lead SW engineer, an assistant SW engineer (fresh out of school) a software manager, and the same guy who couldn't get his voice compression to work and blamed it on me doing actual software for this board.  In addition they had a FPGA consultant who was making as much as any of the two of us.  At first they don't even want to talk to me even though they demanded that I be there.  

Eventually I took control and explained how simple booting the thing was and if each of the five things weren't right, it would not work with no indication.  So now I list the things and they rattle off of the things they had done to make sure it was working like giving a few extra config clocks to complete the internal functions and release the FPGA to run.  Trouble was when they started working on some other issues they were also doing wrong they had dropped the extra pulses...  So I pointed out that they needed to do ALL of these things and when they did that it worked.   I asked if they needed anything else and when they said no, I walked away.  The manager looked dumbfounded.  lol  I guess she didn't have a lot of time on the bench.  

I guess my point is that while I was happy working with them, they didn't call me in until they were so frustrated they couldn't see what they were doing.  They wanted to throw it back over the wall to me. 

-- 

  Rick C.

  ---+ Get 1,000 miles of free Supercharging
  ---+ Tesla referral code - https://ts.la/richard11209

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


Page 4 of 7 — ← Prev page 1 2 3 [4] 5 6 7  Next page →

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


csiph-web