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


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

Sense When No Phone is Plugged Into a USB Charger In Vehicle

Started bysms <scharf.steven@geemail.com>
First post2017-06-28 11:11 -0700
Last post2017-07-02 09:53 -0400
Articles 20 on this page of 79 — 17 participants

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


Contents

  Sense When No Phone is Plugged Into a USB Charger In Vehicle sms <scharf.steven@geemail.com> - 2017-06-28 11:11 -0700
    Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle Rob <nomail@example.com> - 2017-06-28 19:34 +0000
      Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle rickman <gnuarm@gmail.com> - 2017-06-28 15:43 -0400
        Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle sms <scharf.steven@geemail.com> - 2017-06-28 13:09 -0700
      Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle sms <scharf.steven@geemail.com> - 2017-06-28 13:02 -0700
        Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle rickman <gnuarm@gmail.com> - 2017-06-28 16:11 -0400
          Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle sms <scharf.steven@geemail.com> - 2017-06-29 06:42 -0700
            Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle rickman <gnuarm@gmail.com> - 2017-06-29 10:53 -0400
    Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle bitrex <bitrex@de.lete.earthlink.net> - 2017-06-28 16:02 -0400
      Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle rickman <gnuarm@gmail.com> - 2017-06-28 16:11 -0400
        Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle bitrex <bitrex@de.lete.earthlink.net> - 2017-06-28 16:25 -0400
          Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle rickman <gnuarm@gmail.com> - 2017-06-28 17:13 -0400
            Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle bitrex <bitrex@de.lete.earthlink.net> - 2017-06-28 17:40 -0400
              Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle rickman <gnuarm@gmail.com> - 2017-06-28 17:56 -0400
                Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle krw@notreal.com - 2017-06-28 22:01 -0400
                  Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle bitrex <bitrex@de.lete.earthlink.net> - 2017-06-29 10:01 -0400
                    Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle krw@notreal.com - 2017-06-29 20:53 -0400
                      Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle bitrex <bitrex@de.lete.earthlink.net> - 2017-06-30 14:48 -0400
                        Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle krw@notreal.com - 2017-06-30 20:00 -0400
                Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle bitrex <bitrex@de.lete.earthlink.net> - 2017-06-29 09:58 -0400
                  Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle rickman <gnuarm@gmail.com> - 2017-06-29 10:56 -0400
                    Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle bitrex <bitrex@de.lete.earthlink.net> - 2017-06-29 13:00 -0400
                      Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle edward.ming.lee@gmail.com - 2017-06-29 11:13 -0700
                        Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle edward.ming.lee@gmail.com - 2017-06-29 11:21 -0700
                        Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle bitrex <bitrex@de.lete.earthlink.net> - 2017-06-29 14:33 -0400
                        Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle sms <scharf.steven@geemail.com> - 2017-06-29 17:19 -0700
                          Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle edward.ming.lee@gmail.com - 2017-06-29 17:51 -0700
                            Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle sms <scharf.steven@geemail.com> - 2017-06-29 19:02 -0700
                              Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle edward.ming.lee@gmail.com - 2017-06-29 19:46 -0700
                                Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle rickman <gnuarm@gmail.com> - 2017-06-29 23:16 -0400
                                  Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle edward.ming.lee@gmail.com - 2017-06-29 20:32 -0700
    Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle tabbypurr@gmail.com - 2017-06-28 13:50 -0700
    Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle artie <artie.m@gNOSPAMmail.com> - 2017-06-28 14:02 -0700
      Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle tabbypurr@gmail.com - 2017-06-28 17:08 -0700
        Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle rickman <gnuarm@gmail.com> - 2017-06-28 21:02 -0400
          Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle tabbypurr@gmail.com - 2017-06-28 18:16 -0700
            Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle rickman <gnuarm@gmail.com> - 2017-06-28 21:40 -0400
              Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle tabbypurr@gmail.com - 2017-06-28 18:59 -0700
                Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle rickman <gnuarm@gmail.com> - 2017-06-28 22:08 -0400
                  Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle tabbypurr@gmail.com - 2017-06-28 19:36 -0700
                    Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle rickman <gnuarm@gmail.com> - 2017-06-29 11:30 -0400
                      Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle tabbypurr@gmail.com - 2017-06-29 11:16 -0700
                        Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle rickman <gnuarm@gmail.com> - 2017-06-29 14:53 -0400
                          Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle tabbypurr@gmail.com - 2017-06-29 15:50 -0700
                            Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle rickman <gnuarm@gmail.com> - 2017-06-29 21:37 -0400
                              Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle sms <scharf.steven@geemail.com> - 2017-06-29 18:41 -0700
                              Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle tabbypurr@gmail.com - 2017-06-29 23:47 -0700
                          Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle sms <scharf.steven@geemail.com> - 2017-06-29 17:11 -0700
                            Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle tabbypurr@gmail.com - 2017-06-29 23:43 -0700
                              Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle edward.ming.lee@gmail.com - 2017-06-30 10:55 -0700
                                Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle tabbypurr@gmail.com - 2017-06-30 14:36 -0700
                                  Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle edward.ming.lee@gmail.com - 2017-06-30 14:46 -0700
                                  Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle sms <scharf.steven@geemail.com> - 2017-07-01 13:30 -0700
                                Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle sms <scharf.steven@geemail.com> - 2017-07-01 13:19 -0700
                                  Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle edward.ming.lee@gmail.com - 2017-07-01 18:19 -0700
                Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle sms <scharf.steven@geemail.com> - 2017-06-29 15:36 -0700
                  Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle tabbypurr@gmail.com - 2017-06-29 15:52 -0700
                    Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-06-29 16:08 -0700
                    Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle sms <scharf.steven@geemail.com> - 2017-06-29 17:06 -0700
                      Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle tabbypurr@gmail.com - 2017-06-29 23:41 -0700
                        Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle sms <scharf.steven@geemail.com> - 2017-06-30 14:20 -0700
                          Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle tabbypurr@gmail.com - 2017-06-30 14:41 -0700
                  Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle rickman <gnuarm@gmail.com> - 2017-06-29 21:40 -0400
    Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle Don Y <blockedofcourse@foo.invalid> - 2017-06-28 14:08 -0700
    Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle alan.yeager.2013@gmail.com - 2017-06-28 14:21 -0700
      Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle John Robertson <spam@flippers.com> - 2017-06-28 18:13 -0700
        Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle tabbypurr@gmail.com - 2017-06-28 18:18 -0700
    Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle Rheilly Phoull <rheilly@bigslong.com> - 2017-06-29 09:25 +0800
    Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle krw@notreal.com - 2017-06-28 21:57 -0400
    Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle mike <ham789@netzero.net> - 2017-06-28 18:55 -0700
    Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle Mikko OH2HVJ <mikko.syrjalahti@nospam.fi> - 2017-06-29 09:01 +0200
    Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle jack4747@gmail.com - 2017-06-29 00:14 -0700
    Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle whit3rd <whit3rd@gmail.com> - 2017-06-30 15:33 -0700
      Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle Lasse Langwadt Christensen <langwadt@fonz.dk> - 2017-06-30 15:46 -0700
      Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle sms <scharf.steven@geemail.com> - 2017-07-01 13:29 -0700
        Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle John Robertson <spam@flippers.com> - 2017-07-01 14:27 -0700
          Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle krw@notreal.com - 2017-07-01 19:44 -0400
            Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle John Robertson <spam@flippers.com> - 2017-07-01 22:36 -0700
              Re: Sense When No Phone is Plugged Into a USB Charger In Vehicle krw@notreal.com - 2017-07-02 09:53 -0400

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


#466158

Fromrickman <gnuarm@gmail.com>
Date2017-06-29 11:30 -0400
Message-ID<oj366s$4t3$1@dont-email.me>
In reply to#466109
tabbypurr@gmail.com wrote on 6/28/2017 10:36 PM:
> On Thursday, 29 June 2017 03:09:00 UTC+1, rickman  wrote:
>> tabbypurr wrote on 6/28/2017 9:59 PM:
>>> On Thursday, 29 June 2017 02:40:05 UTC+1, rickman  wrote:
>>>> tabbypurr wrote on 6/28/2017 9:16 PM:
>>>>> On Thursday, 29 June 2017 02:02:10 UTC+1, rickman  wrote:
>>>>>> tabbypurr wrote on 6/28/2017 8:08 PM:
>>>>>>> On Wednesday, 28 June 2017 22:02:25 UTC+1, artie  wrote:
>>>>>>>> In article <oj0ra8$475$1@dont-email.me>, sms
>>>>>>>> <scharf.steven@geemail.com> wrote:
>>>>>>>
>>>>>>>>> What I want to do is to have a device that sounds an alarm when the car
>>>>>>>>> is started (USB charging port turns on) but no device is plugged in..
>>>>>>>>>
>>>>>>>>> So I want to detect the current flow from the USB +5 to the phone and if
>>>>>>>>> there is no flow, sound the alarm. There is always some flow upon
>>>>>>>>> power-up, even if the phone is charged, then it stops if the phone is
>>>>>>>>> already topped off.
>>>>>>>
>>>>>>>> INA219, high side dc current (and voltage) sensor, available on a
>>>>>>>> breakout board from Adafruit for around $10, and they have Arduino
>>>>>>>> libraries to support it as well. Much cheaper unless you can get TI to
>>>>>>>> send you the INA233 eval board for free (and even then, the Adafruit
>>>>>>>> INA219 board is a lot smaller).
>>>>>>>>
>>>>>>>> Sense current flowing thru the port, as with the INA233. Another thing
>>>>>>>> to look at would be sensing voltages on the USB data pins. They
>>>>>>>> probably have resistor networks on them (commonly used to signal how
>>>>>>>> much charging current is supported by the port), and will/might shift
>>>>>>>> with a device plugged in.
>>>>>>>
>>>>>>> I sense a youngster. How does that make more sense than a 1 cent resistor & LM324 opamp?
>>>>>>
>>>>>> Maybe you should explain it to us like we are six year olds?
>>>>>
>>>>> LM324 input goes down to ground. So put an R in the -out line and use your 1/4 324 to see if current is flowing, with the other input terminal driven by a resistor divider. That stage output goes to the next through a diode. Stages 2&3 generate bleeps. When current flows, diode conducts so the bleeper is kept silent. Add an LED and a STFU switch too. Keep piezo drive voltage low, you don't want it anoying. Easiest done by making the pulses narrow & driving it through a resistor. I have no idea why anyone would use a computer to do that.
>>>>
>>>> I thought the INA2xx was an amp like your LM324 opamp, just designed
>>>> specifically for current sensing, no?
>>>
>>> http://www.ti.com/lit/ds/symlink/ina219.pdf
>>> It certainly is not a quad opamp and will not do what 'my' 324 does. But my objection was to the use of an arduino. A lot of folk will use an arduino just to sharpen a pencil.
>>
>> I stand corrected.  I thought I recognized the part number.  Guess not.
>> Still, nothing wrong with twiddling a few bits to get a nice simple solution.
>
> An I2C bus and an arduino is far from a nice simple solution. It's a mad kludge.

One man's mad kludge is another man's nice simple solution.

https://s-media-cache-ak0.pinimg.com/736x/41/74/b3/4174b36c7d9962ecb608531fd555a495.jpg

http://img.izismile.com/img/img6/20131115/640/funny_picdump_578_640_34.jpg

-- 

Rick C

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


#466185

Fromtabbypurr@gmail.com
Date2017-06-29 11:16 -0700
Message-ID<10ee014e-b363-444a-89cd-3ea70ebd698b@googlegroups.com>
In reply to#466158
On Thursday, 29 June 2017 16:30:15 UTC+1, rickman  wrote:
> tabbypurr wrote on 6/28/2017 10:36 PM:
> > On Thursday, 29 June 2017 03:09:00 UTC+1, rickman  wrote:
> >> tabbypurr wrote on 6/28/2017 9:59 PM:
> >>> On Thursday, 29 June 2017 02:40:05 UTC+1, rickman  wrote:
> >>>> tabbypurr wrote on 6/28/2017 9:16 PM:
> >>>>> On Thursday, 29 June 2017 02:02:10 UTC+1, rickman  wrote:
> >>>>>> tabbypurr wrote on 6/28/2017 8:08 PM:
> >>>>>>> On Wednesday, 28 June 2017 22:02:25 UTC+1, artie  wrote:

> >>>>>>>>> So I want to detect the current flow from the USB +5 to the phone 

> >>>>>>>> INA219, high side dc current (and voltage) sensor, available on a
> >>>>>>>> breakout board from Adafruit for around $10, and they have Arduino
> >>>>>>>> libraries to support it as well. Much cheaper unless you can get TI to

> > > I have no idea why anyone would use a computer to do that.

> > An I2C bus and an arduino is far from a nice simple solution. It's a mad kludge.
> 
> One man's mad kludge is another man's nice simple solution.

I'm sure a computer could get the job done, but it's still a mad kludge.
If you want to go all overkill at least make it look good or be interesting somehow, like some bizarre mechanism.


NT

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


#466192

Fromrickman <gnuarm@gmail.com>
Date2017-06-29 14:53 -0400
Message-ID<oj3i3g$fiv$1@dont-email.me>
In reply to#466185
tabbypurr@gmail.com wrote on 6/29/2017 2:16 PM:
> On Thursday, 29 June 2017 16:30:15 UTC+1, rickman  wrote:
>> tabbypurr wrote on 6/28/2017 10:36 PM:
>>> On Thursday, 29 June 2017 03:09:00 UTC+1, rickman  wrote:
>>>> tabbypurr wrote on 6/28/2017 9:59 PM:
>>>>> On Thursday, 29 June 2017 02:40:05 UTC+1, rickman  wrote:
>>>>>> tabbypurr wrote on 6/28/2017 9:16 PM:
>>>>>>> On Thursday, 29 June 2017 02:02:10 UTC+1, rickman  wrote:
>>>>>>>> tabbypurr wrote on 6/28/2017 8:08 PM:
>>>>>>>>> On Wednesday, 28 June 2017 22:02:25 UTC+1, artie  wrote:
>
>>>>>>>>>>> So I want to detect the current flow from the USB +5 to the phone
>
>>>>>>>>>> INA219, high side dc current (and voltage) sensor, available on a
>>>>>>>>>> breakout board from Adafruit for around $10, and they have Arduino
>>>>>>>>>> libraries to support it as well. Much cheaper unless you can get TI to
>
>>>> I have no idea why anyone would use a computer to do that.
>
>>> An I2C bus and an arduino is far from a nice simple solution. It's a mad kludge.
>>
>> One man's mad kludge is another man's nice simple solution.
>
> I'm sure a computer could get the job done, but it's still a mad kludge.
> If you want to go all overkill at least make it look good or be interesting somehow, like some bizarre mechanism.

It's funny how some people react to using an MCU for a task that can be done 
with analog.  An MCU is one chip which is hard to reduce further.  But in 
reality it is one chip on a *board* that can be wired into the circuit *very 
easily* to handle two possible power circuits at the same time.  A digital 
solution allows for a *lot* of flexibility in how the circuit alerts the 
user and how it is bypassed when needed.  It is also very easy to update 
with new functionality.

An MCU solution can be bought off the shelf and inserted into a 12V power 
splitter which can be bought for $5.  Simple, easy and cheap.  No proto 
boards needed.  Just a minimal amount of soldering and Bob's your uncle.

Geeze!

-- 

Rick C

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


#466222

Fromtabbypurr@gmail.com
Date2017-06-29 15:50 -0700
Message-ID<a1a50c12-ced2-4e75-80a2-472e34a2a17a@googlegroups.com>
In reply to#466192
On Thursday, 29 June 2017 19:53:15 UTC+1, rickman  wrote:
> tabbypurr wrote on 6/29/2017 2:16 PM:
> > On Thursday, 29 June 2017 16:30:15 UTC+1, rickman  wrote:
> >> tabbypurr wrote on 6/28/2017 10:36 PM:
> >>> On Thursday, 29 June 2017 03:09:00 UTC+1, rickman  wrote:
> >>>> tabbypurr wrote on 6/28/2017 9:59 PM:
> >>>>> On Thursday, 29 June 2017 02:40:05 UTC+1, rickman  wrote:
> >>>>>> tabbypurr wrote on 6/28/2017 9:16 PM:
> >>>>>>> On Thursday, 29 June 2017 02:02:10 UTC+1, rickman  wrote:
> >>>>>>>> tabbypurr wrote on 6/28/2017 8:08 PM:
> >>>>>>>>> On Wednesday, 28 June 2017 22:02:25 UTC+1, artie  wrote:
> >
> >>>>>>>>>>> So I want to detect the current flow from the USB +5 to the phone
> >
> >>>>>>>>>> INA219, high side dc current (and voltage) sensor, available on a
> >>>>>>>>>> breakout board from Adafruit for around $10, and they have Arduino
> >>>>>>>>>> libraries to support it as well. Much cheaper unless you can get TI to
> >
> >>>> I have no idea why anyone would use a computer to do that.
> >
> >>> An I2C bus and an arduino is far from a nice simple solution. It's a mad kludge.
> >>
> >> One man's mad kludge is another man's nice simple solution.
> >
> > I'm sure a computer could get the job done, but it's still a mad kludge.
> > If you want to go all overkill at least make it look good or be interesting somehow, like some bizarre mechanism.
> 
> It's funny how some people react to using an MCU for a task that can be done 
> with analog.  An MCU is one chip which is hard to reduce further.  But in 
> reality it is one chip on a *board* that can be wired into the circuit *very 
> easily* to handle two possible power circuits at the same time.  A digital 
> solution allows for a *lot* of flexibility in how the circuit alerts the 
> user and how it is bypassed when needed.  It is also very easy to update 
> with new functionality.
> 
> An MCU solution can be bought off the shelf and inserted into a 12V power 
> splitter which can be bought for $5.  Simple, easy and cheap.  No proto 
> boards needed.  Just a minimal amount of soldering and Bob's your uncle.
> 
> Geeze!

So to sum up the arduino approach costs 10x the price & does the same job. On which basis you like it. 'Designers' with no engineering sense are not very useful.


NT

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


#466245

Fromrickman <gnuarm@gmail.com>
Date2017-06-29 21:37 -0400
Message-ID<oj49pl$70v$1@dont-email.me>
In reply to#466222
tabbypurr@gmail.com wrote on 6/29/2017 6:50 PM:
> On Thursday, 29 June 2017 19:53:15 UTC+1, rickman  wrote:
>> tabbypurr wrote on 6/29/2017 2:16 PM:
>>> On Thursday, 29 June 2017 16:30:15 UTC+1, rickman  wrote:
>>>> tabbypurr wrote on 6/28/2017 10:36 PM:
>>>>> On Thursday, 29 June 2017 03:09:00 UTC+1, rickman  wrote:
>>>>>> tabbypurr wrote on 6/28/2017 9:59 PM:
>>>>>>> On Thursday, 29 June 2017 02:40:05 UTC+1, rickman  wrote:
>>>>>>>> tabbypurr wrote on 6/28/2017 9:16 PM:
>>>>>>>>> On Thursday, 29 June 2017 02:02:10 UTC+1, rickman  wrote:
>>>>>>>>>> tabbypurr wrote on 6/28/2017 8:08 PM:
>>>>>>>>>>> On Wednesday, 28 June 2017 22:02:25 UTC+1, artie  wrote:
>>>
>>>>>>>>>>>>> So I want to detect the current flow from the USB +5 to the phone
>>>
>>>>>>>>>>>> INA219, high side dc current (and voltage) sensor, available on a
>>>>>>>>>>>> breakout board from Adafruit for around $10, and they have Arduino
>>>>>>>>>>>> libraries to support it as well. Much cheaper unless you can get TI to
>>>
>>>>>> I have no idea why anyone would use a computer to do that.
>>>
>>>>> An I2C bus and an arduino is far from a nice simple solution. It's a mad kludge.
>>>>
>>>> One man's mad kludge is another man's nice simple solution.
>>>
>>> I'm sure a computer could get the job done, but it's still a mad kludge.
>>> If you want to go all overkill at least make it look good or be interesting somehow, like some bizarre mechanism.
>>
>> It's funny how some people react to using an MCU for a task that can be done
>> with analog.  An MCU is one chip which is hard to reduce further.  But in
>> reality it is one chip on a *board* that can be wired into the circuit *very
>> easily* to handle two possible power circuits at the same time.  A digital
>> solution allows for a *lot* of flexibility in how the circuit alerts the
>> user and how it is bypassed when needed.  It is also very easy to update
>> with new functionality.
>>
>> An MCU solution can be bought off the shelf and inserted into a 12V power
>> splitter which can be bought for $5.  Simple, easy and cheap.  No proto
>> boards needed.  Just a minimal amount of soldering and Bob's your uncle.
>>
>> Geeze!
>
> So to sum up the arduino approach costs 10x the price & does the same job. On which basis you like it. 'Designers' with no engineering sense are not very useful.

The arduino is has a huge factor improvement in effort to make it work.  Buy 
a board, solder it in, write some code, done.  How would he get the op amp 
circuit built and in the car?

-- 

Rick C

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


#466247

Fromsms <scharf.steven@geemail.com>
Date2017-06-29 18:41 -0700
Message-ID<oj4a83$njt$1@dont-email.me>
In reply to#466245
On 6/29/17 6:37 PM, rickman wrote:
> tabbypurr@gmail.com wrote on 6/29/2017 6:50 PM:
>> On Thursday, 29 June 2017 19:53:15 UTC+1, rickman  wrote:
>>> tabbypurr wrote on 6/29/2017 2:16 PM:
>>>> On Thursday, 29 June 2017 16:30:15 UTC+1, rickman  wrote:
>>>>> tabbypurr wrote on 6/28/2017 10:36 PM:
>>>>>> On Thursday, 29 June 2017 03:09:00 UTC+1, rickman  wrote:
>>>>>>> tabbypurr wrote on 6/28/2017 9:59 PM:
>>>>>>>> On Thursday, 29 June 2017 02:40:05 UTC+1, rickman  wrote:
>>>>>>>>> tabbypurr wrote on 6/28/2017 9:16 PM:
>>>>>>>>>> On Thursday, 29 June 2017 02:02:10 UTC+1, rickman  wrote:
>>>>>>>>>>> tabbypurr wrote on 6/28/2017 8:08 PM:
>>>>>>>>>>>> On Wednesday, 28 June 2017 22:02:25 UTC+1, artie  wrote:
>>>>
>>>>>>>>>>>>>> So I want to detect the current flow from the USB +5 to 
>>>>>>>>>>>>>> the phone
>>>>
>>>>>>>>>>>>> INA219, high side dc current (and voltage) sensor, 
>>>>>>>>>>>>> available on a
>>>>>>>>>>>>> breakout board from Adafruit for around $10, and they have 
>>>>>>>>>>>>> Arduino
>>>>>>>>>>>>> libraries to support it as well. Much cheaper unless you 
>>>>>>>>>>>>> can get TI to
>>>>
>>>>>>> I have no idea why anyone would use a computer to do that.
>>>>
>>>>>> An I2C bus and an arduino is far from a nice simple solution. It's 
>>>>>> a mad kludge.
>>>>>
>>>>> One man's mad kludge is another man's nice simple solution.
>>>>
>>>> I'm sure a computer could get the job done, but it's still a mad 
>>>> kludge.
>>>> If you want to go all overkill at least make it look good or be 
>>>> interesting somehow, like some bizarre mechanism.
>>>
>>> It's funny how some people react to using an MCU for a task that can 
>>> be done
>>> with analog.  An MCU is one chip which is hard to reduce further.  
>>> But in
>>> reality it is one chip on a *board* that can be wired into the 
>>> circuit *very
>>> easily* to handle two possible power circuits at the same time.  A 
>>> digital
>>> solution allows for a *lot* of flexibility in how the circuit alerts the
>>> user and how it is bypassed when needed.  It is also very easy to update
>>> with new functionality.
>>>
>>> An MCU solution can be bought off the shelf and inserted into a 12V 
>>> power
>>> splitter which can be bought for $5.  Simple, easy and cheap.  No proto
>>> boards needed.  Just a minimal amount of soldering and Bob's your uncle.
>>>
>>> Geeze!
>>
>> So to sum up the arduino approach costs 10x the price & does the same 
>> job. On which basis you like it. 'Designers' with no engineering sense 
>> are not very useful.
> 
> The arduino is has a huge factor improvement in effort to make it work.  
> Buy a board, solder it in, write some code, done.  How would he get the 
> op amp circuit built and in the car?

As I said, I first considered the op amp or comparator approach. I began 
to draw the circuit in a schematic capture program. The number of extra 
components began going up to a level where it became clear that a small 
micro-controller was more practical. When you can buy an Arduino Nano 
for $2 (from China), or $4 (from the U.S.) starting to hand wire a 
single perf board circuit is practical only if time has no value.

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


#466260

Fromtabbypurr@gmail.com
Date2017-06-29 23:47 -0700
Message-ID<008d892f-6d2f-4a75-a0ef-056a7e77fed6@googlegroups.com>
In reply to#466245
On Friday, 30 June 2017 02:37:32 UTC+1, rickman  wrote:

> The arduino is has a huge factor improvement in effort to make it work.  Buy 
> a board, solder it in, write some code, done. 

versus pull some veroboard from a box, solder it in, done.

Using a microprocessor to convert a dc signal into a dc signal is not something I'd be in any hurry to go for.

> How would he get the op amp 
> circuit built and in the car?

If you're asking that in an electronics newsgroup, something is rather wrong.


NT

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


#466231

Fromsms <scharf.steven@geemail.com>
Date2017-06-29 17:11 -0700
Message-ID<oj44vm$ddv$1@dont-email.me>
In reply to#466192
On 6/29/17 11:53 AM, rickman wrote:

> It's funny how some people react to using an MCU for a task that can be 
> done with analog. 

Especially because an MCU includes analog.

> An MCU is one chip which is hard to reduce further.  
> But in reality it is one chip on a *board* that can be wired into the 
> circuit *very easily* to handle two possible power circuits at the same 
> time.  A digital solution allows for a *lot* of flexibility in how the 
> circuit alerts the user and how it is bypassed when needed.  It is also 
> very easy to update with new functionality.

I looked at using comparators or opamps (LM324 or LM393 or LM339). The 
thing is that it's not just that one part. There was a switch, diodes, 
resistors, and a flip flop as well.

> An MCU solution can be bought off the shelf and inserted into a 12V 
> power splitter which can be bought for $5.  Simple, easy and cheap.  No 
> proto boards needed.  Just a minimal amount of soldering and Bob's your 
> uncle.

I think that some people are terrified of having to program an MCU. But 
the Arduino is pretty trivial to program.

> Geeze!
> 

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


#466259

Fromtabbypurr@gmail.com
Date2017-06-29 23:43 -0700
Message-ID<e9e2d097-85a3-4b5b-8aa0-ad5d7c4505de@googlegroups.com>
In reply to#466231
On Friday, 30 June 2017 01:15:27 UTC+1, sms  wrote:
> On 6/29/17 11:53 AM, rickman wrote:
> 
> > It's funny how some people react to using an MCU for a task that can be 
> > done with analog. 
> 
> Especially because an MCU includes analog.
> 
> > An MCU is one chip which is hard to reduce further.  
> > But in reality it is one chip on a *board* that can be wired into the 
> > circuit *very easily* to handle two possible power circuits at the same 
> > time.  A digital solution allows for a *lot* of flexibility in how the 
> > circuit alerts the user and how it is bypassed when needed.  It is also 
> > very easy to update with new functionality.
> 
> I looked at using comparators or opamps (LM324 or LM393 or LM339). The 
> thing is that it's not just that one part. There was a switch, diodes, 
> resistors, and a flip flop as well.

so your design was overcomplex

> > An MCU solution can be bought off the shelf and inserted into a 12V 
> > power splitter which can be bought for $5.  Simple, easy and cheap.  No 
> > proto boards needed.  Just a minimal amount of soldering and Bob's your 
> > uncle.
> 
> I think that some people are terrified of having to program an MCU. But 
> the Arduino is pretty trivial to program.
> 
> > Geeze!

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


#466323

Fromedward.ming.lee@gmail.com
Date2017-06-30 10:55 -0700
Message-ID<4acc3abf-3bc7-4260-9a7f-23f7360101a5@googlegroups.com>
In reply to#466259
On Thursday, June 29, 2017 at 11:43:10 PM UTC-7, tabb...@gmail.com wrote:
> On Friday, 30 June 2017 01:15:27 UTC+1, sms  wrote:
> > On 6/29/17 11:53 AM, rickman wrote:
> > 
> > > It's funny how some people react to using an MCU for a task that can be 
> > > done with analog. 
> > 
> > Especially because an MCU includes analog.
> > 
> > > An MCU is one chip which is hard to reduce further.  
> > > But in reality it is one chip on a *board* that can be wired into the 
> > > circuit *very easily* to handle two possible power circuits at the same 
> > > time.  A digital solution allows for a *lot* of flexibility in how the 
> > > circuit alerts the user and how it is bypassed when needed.  It is also 
> > > very easy to update with new functionality.
> > 
> > I looked at using comparators or opamps (LM324 or LM393 or LM339). The 
> > thing is that it's not just that one part. There was a switch, diodes, 
> > resistors, and a flip flop as well.
> 
> so your design was overcomplex
> 
> > > An MCU solution can be bought off the shelf and inserted into a 12V 
> > > power splitter which can be bought for $5.  Simple, easy and cheap.  No 
> > > proto boards needed.  Just a minimal amount of soldering and Bob's your 
> > > uncle.
> > 
> > I think that some people are terrified of having to program an MCU. But 
> > the Arduino is pretty trivial to program.
> > 
> > > Geeze!

I don't get it.  You are just trying to sense if any thing is plug in.  Just sense any signal on the data pins.  Why do an analog solution for a digital problem.

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


#466339

Fromtabbypurr@gmail.com
Date2017-06-30 14:36 -0700
Message-ID<66878be2-7fdd-4a1a-a2c9-0a84d321ad44@googlegroups.com>
In reply to#466323
On Friday, 30 June 2017 18:55:51 UTC+1, edward....@gmail.com  wrote:

> I don't get it.  You are just trying to sense if any thing is plug in.  Just sense any signal on the data pins.  Why do an analog solution for a digital problem.

I don't know what sort of setup you've got, when I plug my phone in there are no data connections going on.

If you are connecting to data pins and you can rely on them being active always, then you coudl skip the opamp as well as the arduino. 1 transistor, 1 LED, 2 resistors would do it.


NT

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


#466342

Fromedward.ming.lee@gmail.com
Date2017-06-30 14:46 -0700
Message-ID<f0402d24-cc7f-422a-b904-02fc3245b4b0@googlegroups.com>
In reply to#466339
On Friday, June 30, 2017 at 2:36:39 PM UTC-7, tabb...@gmail.com wrote:
> On Friday, 30 June 2017 18:55:51 UTC+1, edward....@gmail.com  wrote:
> 
> > I don't get it.  You are just trying to sense if any thing is plug in.  Just sense any signal on the data pins.  Why do an analog solution for a digital problem.
> 
> I don't know what sort of setup you've got, when I plug my phone in there are no data connections going on.

All phones can be connected to PC/labtop as device.  There are data pins, unless you are using special charging cable without them.

> 
> If you are connecting to data pins and you can rely on them being active always, then you coudl skip the opamp as well as the arduino. 1 transistor, 1 LED, 2 resistors would do it.

You can just sense some pull up and/or signal transitions, or do a full brown USB emulation.

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


#466451

Fromsms <scharf.steven@geemail.com>
Date2017-07-01 13:30 -0700
Message-ID<oj90id$lon$2@dont-email.me>
In reply to#466339
On 6/30/2017 2:36 PM, tabbypurr@gmail.com wrote:
> On Friday, 30 June 2017 18:55:51 UTC+1, edward....@gmail.com  wrote:
> 
>> I don't get it.  You are just trying to sense if any thing is plug in.  Just sense any signal on the data pins.  Why do an analog solution for a digital problem.
> 
> I don't know what sort of setup you've got, when I plug my phone in there are no data connections going on.

That's correct, unless it's plugged into a USB port in the vehicle that 
is more than just a charging port, and that connects to the 
entertainment system.

> If you are connecting to data pins and you can rely on them being active always, then you coudl skip the opamp as well as the arduino. 1 transistor, 1 LED, 2 resistors would do it.

Won't work.

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


#466448

Fromsms <scharf.steven@geemail.com>
Date2017-07-01 13:19 -0700
Message-ID<oj8vu3$k6e$1@dont-email.me>
In reply to#466323
On 6/30/2017 10:55 AM, edward.ming.lee@gmail.com wrote:

<snip>


> I don't get it.  

True.

> You are just trying to sense if any thing is plug in.  Just sense any signal on the data pins.  Why do an analog solution for a digital problem.

There is no signal on the USB data pins that is any different when the 
phone is plugged into only power and ground versus not plugged in at all.

The only way to sense the presence of the phone is by sensing the 
current that flows into the phone when charging, versus no current flow 
when not charging. There could be a Bluetooth solution but it would be 
much less reliable and would not work if the Bluetooth on the phone was 
turned off.

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


#466482

Fromedward.ming.lee@gmail.com
Date2017-07-01 18:19 -0700
Message-ID<aeb4e985-f10e-487b-ab17-db94d8229227@googlegroups.com>
In reply to#466448
On Saturday, July 1, 2017 at 1:19:58 PM UTC-7, sms wrote:
> On 6/30/2017 10:55 AM, edward.ming.lee@gmail.com wrote:
> 
> <snip>
> 
> 
> > I don't get it.  
> 
> True.

I still don't get it.

> 
> > You are just trying to sense if any thing is plug in.  Just sense any signal on the data pins.  Why do an analog solution for a digital problem.
> 
> There is no signal on the USB data pins that is any different when the 
> phone is plugged into only power and ground versus not plugged in at all.

You are talking about a custom module between the phone and car.  It's up to you to decide whether there are data pins on the phone side.  Doesn't matter what the car has.

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


#466219

Fromsms <scharf.steven@geemail.com>
Date2017-06-29 15:36 -0700
Message-ID<oj3ve0$v7l$1@dont-email.me>
In reply to#466101
On 6/28/17 6:59 PM, tabbypurr@gmail.com wrote:

> It certainly is not a quad opamp and will not do what 'my' 324 does. But my objection was to the use of an arduino. A lot of folk will use an arduino just to sharpen a pencil.

I started a design with an LM324 or LM393 and it quickly became too 
complex, though since I worked eight years at NatSemi, I have some 
nostalgia for their analog parts.

Here's the deal. An Arduino costs about $11 
<https://www.amazon.com/dp/B01EWOE0UU>. The A/D inputs are a good fit 
for this.

The other items are sense resistors and a Sonalert. Probably also a SPST 
momentary switch to manually silence the alarm.

Arduino is not always the answer But neither are op amps or comparators.

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


#466225

Fromtabbypurr@gmail.com
Date2017-06-29 15:52 -0700
Message-ID<35639e98-471b-459e-b345-f1104ec29b7e@googlegroups.com>
In reply to#466219
On Thursday, 29 June 2017 23:40:39 UTC+1, sms  wrote:
> On 6/28/17 6:59 PM, tabbypurr wrote:
> 
> > It certainly is not a quad opamp and will not do what 'my' 324 does. But my objection was to the use of an arduino. A lot of folk will use an arduino just to sharpen a pencil.
> 
> I started a design with an LM324 or LM393 and it quickly became too 
> complex,

sounds like something went wrong with your design.

> though since I worked eight years at NatSemi, I have some 
> nostalgia for their analog parts.
> 
> Here's the deal. An Arduino costs about $11 
> <https://www.amazon.com/dp/B01EWOE0UU>. The A/D inputs are a good fit 
> for this.
> 
> The other items are sense resistors and a Sonalert. Probably also a SPST 
> momentary switch to manually silence the alarm.
> 
> Arduino is not always the answer But neither are op amps or comparators.

Nothing is always the answer to anything. That is hardly worth pointing out.
Arduino: $11 + other bits
LM324: cents.


NT

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


#466227

FromLasse Langwadt Christensen <langwadt@fonz.dk>
Date2017-06-29 16:08 -0700
Message-ID<3988a6e5-6cf8-4756-8125-1d0d3121ee33@googlegroups.com>
In reply to#466225
Den fredag den 30. juni 2017 kl. 00.52.59 UTC+2 skrev tabb...@gmail.com:
> On Thursday, 29 June 2017 23:40:39 UTC+1, sms  wrote:
> > On 6/28/17 6:59 PM, tabbypurr wrote:
> > 
> > > It certainly is not a quad opamp and will not do what 'my' 324 does. But my objection was to the use of an arduino. A lot of folk will use an arduino just to sharpen a pencil.
> > 
> > I started a design with an LM324 or LM393 and it quickly became too 
> > complex,
> 
> sounds like something went wrong with your design.
> 
> > though since I worked eight years at NatSemi, I have some 
> > nostalgia for their analog parts.
> > 
> > Here's the deal. An Arduino costs about $11 
> > <https://www.amazon.com/dp/B01EWOE0UU>. The A/D inputs are a good fit 
> > for this.
> > 
> > The other items are sense resistors and a Sonalert. Probably also a SPST 
> > momentary switch to manually silence the alarm.
> > 
> > Arduino is not always the answer But neither are op amps or comparators.
> 
> Nothing is always the answer to anything. That is hardly worth pointing out.
> Arduino: $11 + other bits
> LM324: cents.

you can get and arduino nano clone for a dollar or you can just buy the AVR

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


#466230

Fromsms <scharf.steven@geemail.com>
Date2017-06-29 17:06 -0700
Message-ID<oj44ll$cnq$1@dont-email.me>
In reply to#466225
On 6/29/17 3:52 PM, tabbypurr@gmail.com wrote:
> On Thursday, 29 June 2017 23:40:39 UTC+1, sms  wrote:
>> On 6/28/17 6:59 PM, tabbypurr wrote:
>>
>>> It certainly is not a quad opamp and will not do what 'my' 324 does. But my objection was to the use of an arduino. A lot of folk will use an arduino just to sharpen a pencil.
>>
>> I started a design with an LM324 or LM393 and it quickly became too
>> complex,
> 
> sounds like something went wrong with your design.
> 
>> though since I worked eight years at NatSemi, I have some
>> nostalgia for their analog parts.
>>
>> Here's the deal. An Arduino costs about $11
>> <https://www.amazon.com/dp/B01EWOE0UU>. The A/D inputs are a good fit
>> for this.
>>
>> The other items are sense resistors and a Sonalert. Probably also a SPST
>> momentary switch to manually silence the alarm.
>>
>> Arduino is not always the answer But neither are op amps or comparators.
> 
> Nothing is always the answer to anything. That is hardly worth pointing out.
> Arduino: $11 + other bits
> LM324: cents.

Except it's not just an LM324. There are a bunch of other bits and pieces.

By the time you deal with all the other pieces, and wire it on a perf 
board, you're much better off with an Arduino with its A/D, comparator, 
and I/O. And of course the Arduino board is only so expensive ($11) if 
you want it fast. You can buy a Nano for about $4 in the U.S., $2 if you 
want to wait for it to be shipped from China (free shipping).


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


#466258

Fromtabbypurr@gmail.com
Date2017-06-29 23:41 -0700
Message-ID<4a1d54da-addb-4070-b84b-e511d603f243@googlegroups.com>
In reply to#466230
On Friday, 30 June 2017 01:10:07 UTC+1, sms  wrote:
> On 6/29/17 3:52 PM, tabbypurr wrote:
> > On Thursday, 29 June 2017 23:40:39 UTC+1, sms  wrote:
> >> On 6/28/17 6:59 PM, tabbypurr wrote:
> >>
> >>> It certainly is not a quad opamp and will not do what 'my' 324 does. But my objection was to the use of an arduino. A lot of folk will use an arduino just to sharpen a pencil.
> >>
> >> I started a design with an LM324 or LM393 and it quickly became too
> >> complex,
> > 
> > sounds like something went wrong with your design.
> > 
> >> though since I worked eight years at NatSemi, I have some
> >> nostalgia for their analog parts.
> >>
> >> Here's the deal. An Arduino costs about $11
> >> <https://www.amazon.com/dp/B01EWOE0UU>. The A/D inputs are a good fit
> >> for this.
> >>
> >> The other items are sense resistors and a Sonalert. Probably also a SPST
> >> momentary switch to manually silence the alarm.
> >>
> >> Arduino is not always the answer But neither are op amps or comparators.
> > 
> > Nothing is always the answer to anything. That is hardly worth pointing out.
> > Arduino: $11 + other bits
> > LM324: cents.
> 
> Except it's not just an LM324. There are a bunch of other bits and pieces.

yes, resistors & 2 capacitors.

> By the time you deal with all the other pieces, and wire it on a perf 
> board, you're much better off with an Arduino with its A/D, comparator, 
> and I/O. And of course the Arduino board is only so expensive ($11) if 
> you want it fast. You can buy a Nano for about $4 in the U.S., $2 if you 
> want to wait for it to be shipped from China (free shipping).


NT

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


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

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


csiph-web