Rocksolid Light

Welcome to Rocksolid Light

mail  files  register  newsreader  groups  login

Message-ID:  

But you'll notice Perl has a goto. -- Larry Wall in <199710211624.JAA17833@wall.org>


tech / sci.electronics.design / This isn't working

SubjectAuthor
* This isn't workingrhor...@gmail.com
+* Re: This isn't workingJohn Larkin
|+* Re: This isn't workingrhor...@gmail.com
||`* Re: This isn't workingJohn Larkin
|| +- Re: This isn't workingJohn Larkin
|| `* Re: This isn't workingrhor...@gmail.com
||  +- Re: This isn't workingAnthony William Sloman
||  `* Re: This isn't workingJohn Larkin
||   `- Re: This isn't workingrhor...@gmail.com
|`* Re: This isn't workingJasen Betts
| `* Re: This isn't workingArie de Muijnck
|  `- Re: This isn't workingPhil Hobbs
+* Re: This isn't workingrhor...@gmail.com
|`- Re: This isn't workingrhor...@gmail.com
+- Re: This isn't workingrhor...@gmail.com
`* Re: This isn't workingAnthony William Sloman
 +* Re: This isn't workingAnthony William Sloman
 |`* Re: This isn't workingAnthony William Sloman
 | `- Re: This isn't workingAnthony William Sloman
 `* Re: This isn't workingrhor...@gmail.com
  +* Re: This isn't workingAnthony William Sloman
  |`* Re: This isn't workingAnthony William Sloman
  | `- Re: This isn't workingAnthony William Sloman
  +* Re: This isn't workingwhit3rd
  |+* Re: This isn't workingJan Panteltje
  ||`- Re: This isn't workingAnthony William Sloman
  |`- Re: This isn't workingwhit3rd
  `- Re: This isn't workingpiglet

Pages:12
This isn't working

<240e0ce5-e062-4fbf-81fa-39fa37764708n@googlegroups.com>

  copy mid

https://news.novabbs.org/tech/article-flat.php?id=134161&group=sci.electronics.design#134161

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:a05:622a:100e:b0:429:ce0a:d92f with SMTP id d14-20020a05622a100e00b00429ce0ad92fmr36124qte.13.1706462061136;
Sun, 28 Jan 2024 09:14:21 -0800 (PST)
X-Received: by 2002:a81:57d5:0:b0:5e6:27ee:67fb with SMTP id
l204-20020a8157d5000000b005e627ee67fbmr1137482ywb.4.1706462060826; Sun, 28
Jan 2024 09:14:20 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Sun, 28 Jan 2024 09:14:20 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=75.15.243.201; posting-account=cinlnAoAAABWWFgc_siC56jRtRTjUix2
NNTP-Posting-Host: 75.15.243.201
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <240e0ce5-e062-4fbf-81fa-39fa37764708n@googlegroups.com>
Subject: This isn't working
From: rhorerles@gmail.com (rhor...@gmail.com)
Injection-Date: Sun, 28 Jan 2024 17:14:21 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2677
 by: rhor...@gmail.com - Sun, 28 Jan 2024 17:14 UTC

I want to use an EC1 rotary encoder to control a battery powered device. The EC1 sports a momentary switch, rather than an on / off switch, however, so I need to add a circuit to latch the momentary pulse. Figure 3 on this page should work: http://www.mosaic-industries.com/embedded-systems/microcontroller-projects/electronic-circuits/push-button-switch-turn-on/latching-toggle-power-switch.

The battery will have an output boltage between 17V and 25V, and the device can use up to 10 amperes, however, so the IRF3719 dual MOSFET suggested on that page won't quite work. Instead, I am using an FQP47P06 P-channel power MOSFET as the main switch and a 2N7002 N-channel MOSFET as the gate driver for the FQP47P06. I don't know why, but it isn't working, however. When the button is pushed, if the device is off, the switch properly turns on, but when the device is already on, pushing the button does nothing. With a 22.0 Volt battery input, pushing and holding the switch brings the voltage at the gate of the 2N7002 to 19.9 Volts, which implies a drain current of about 0.2 milliamps in the 2N7002. That sounds about right.

Looking at the scope, it takes about 150 - 200 ms for the voltage to reach this value, which also seems about right, and as expected, it takes considerably longer for the voltage at the 1uF capacitor to recover to near 0V. I am surmising the 19.9 V level experienced at the top of the cap is not high enough to shut off the FQP47P06. I wonder if the modification below would help?

http://siliconventures.net/images/Flashlight%20Switch%20Update.PNG

Re: This isn't working

<i56dri1hkv0h01mu82bpv2db8m0p3upe5h@4ax.com>

  copy mid

https://news.novabbs.org/tech/article-flat.php?id=134171&group=sci.electronics.design#134171

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 28 Jan 2024 18:20:52 +0000
From: jl@997PotHill.com (John Larkin)
Newsgroups: sci.electronics.design
Subject: Re: This isn't working
Date: Sun, 28 Jan 2024 10:19:39 -0800
Organization: Highland Tech
Reply-To: xx@yy.com
Message-ID: <i56dri1hkv0h01mu82bpv2db8m0p3upe5h@4ax.com>
References: <240e0ce5-e062-4fbf-81fa-39fa37764708n@googlegroups.com>
X-Newsreader: Forte Agent 3.1/32.783
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 21
X-Trace: sv3-sDFeaQN8R0HD4QsLhLFSsQo28jup1KMBWUxiKoHmNvxO6SCoU43C405W0bONoRBNGfk90cgz/203CiQ!jkja4KfUFoBcBAFCr5V0AFPwVD1Tvan19MYCkPADlwWuRZTT8Lh5bw8r7D6ux6wNgEZzoOkzuQQA!usTDrw==
X-Complaints-To: www.supernews.com/docs/abuse.html
X-DMCA-Complaints-To: www.supernews.com/docs/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: John Larkin - Sun, 28 Jan 2024 18:19 UTC

On Sun, 28 Jan 2024 09:14:20 -0800 (PST), "rhor...@gmail.com"
<rhorerles@gmail.com> wrote:

> I want to use an EC1 rotary encoder to control a battery powered device. The EC1 sports a momentary switch, rather than an on / off switch, however, so I need to add a circuit to latch the momentary pulse. Figure 3 on this page should work: http://www.mosaic-industries.com/embedded-systems/microcontroller-projects/electronic-circuits/push-button-switch-turn-on/latching-toggle-power-switch.
>
> The battery will have an output boltage between 17V and 25V, and the device can use up to 10 amperes, however, so the IRF3719 dual MOSFET suggested on that page won't quite work. Instead, I am using an FQP47P06 P-channel power MOSFET as the main switch and a 2N7002 N-channel MOSFET as the gate driver for the FQP47P06. I don't know why, but it isn't working, however. When the button is pushed, if the device is off, the switch properly turns on, but when the device is already on, pushing the button does nothing. With a 22.0 Volt battery input, pushing and holding the switch brings the voltage at the gate of the 2N7002 to 19.9 Volts, which implies a drain current of about 0.2 milliamps in the 2N7002. That sounds about right.
>
> Looking at the scope, it takes about 150 - 200 ms for the voltage to reach this value, which also seems about right, and as expected, it takes considerably longer for the voltage at the 1uF capacitor to recover to near 0V. I am surmising the 19.9 V level experienced at the top of the cap is not high enough to shut off the FQP47P06. I wonder if the modification below would help?
>
>http://siliconventures.net/images/Flashlight%20Switch%20Update.PNG

The circuit image is cropped but looks wrong. Spice it.

It technically violates the abs-max gate voltage spec of the 2N7002,
but it would probably survive.

I recently bought a bunch of LED flashlights from Amazon. Machined and
anodized, adjustable focus, single AA battery, three blink/intensity
modes, really interesting light pattern. $3 each. How can they do
that?

Re: This isn't working

<904f6668-d409-4fd2-8a52-5ef8a61e58e4n@googlegroups.com>

  copy mid

https://news.novabbs.org/tech/article-flat.php?id=134186&group=sci.electronics.design#134186

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:a05:622a:1895:b0:42a:9c3b:c087 with SMTP id v21-20020a05622a189500b0042a9c3bc087mr139717qtc.7.1706494153842;
Sun, 28 Jan 2024 18:09:13 -0800 (PST)
X-Received: by 2002:a05:6902:2384:b0:dc2:48af:bef8 with SMTP id
dp4-20020a056902238400b00dc248afbef8mr1890147ybb.10.1706494153424; Sun, 28
Jan 2024 18:09:13 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Sun, 28 Jan 2024 18:09:13 -0800 (PST)
In-Reply-To: <i56dri1hkv0h01mu82bpv2db8m0p3upe5h@4ax.com>
Injection-Info: google-groups.googlegroups.com; posting-host=75.15.243.201; posting-account=cinlnAoAAABWWFgc_siC56jRtRTjUix2
NNTP-Posting-Host: 75.15.243.201
References: <240e0ce5-e062-4fbf-81fa-39fa37764708n@googlegroups.com> <i56dri1hkv0h01mu82bpv2db8m0p3upe5h@4ax.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <904f6668-d409-4fd2-8a52-5ef8a61e58e4n@googlegroups.com>
Subject: Re: This isn't working
From: rhorerles@gmail.com (rhor...@gmail.com)
Injection-Date: Mon, 29 Jan 2024 02:09:13 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2170
 by: rhor...@gmail.com - Mon, 29 Jan 2024 02:09 UTC

On Sunday, January 28, 2024 at 12:21:11 PM UTC-6, John Larkin wrote:
> On Sun, 28 Jan 2024 09:14:20 -0800 (PST), Les wrote:

> >http://siliconventures.net/images/Flashlight%20Switch%20Update.PNG
> The circuit image is cropped but looks wrong. Spice it.

That is the drawing from the sim. The two lines off to the right go to other parts of the circuit that do not affect the switch.

What looks wrong?

> It technically violates the abs-max gate voltage spec of the 2N7002,
> but it would probably survive.

I could insert a Zener diode between R2 and the gate of the 2N7002. That shouldn't affect the operation of Q2. I haven't gone beyond 22.5 volts in testing.

> I recently bought a bunch of LED flashlights from Amazon. Machined and
> anodized, adjustable focus, single AA battery, three blink/intensity
> modes, really interesting light pattern. $3 each. How can they do
> that?

Loss leader?

Re: This isn't working

<7c5erih51gjrbjnqrkahdg5inpv50t0rif@4ax.com>

  copy mid

https://news.novabbs.org/tech/article-flat.php?id=134191&group=sci.electronics.design#134191

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 29 Jan 2024 03:09:14 +0000
From: jl@997PotHill.com (John Larkin)
Newsgroups: sci.electronics.design
Subject: Re: This isn't working
Date: Sun, 28 Jan 2024 19:08:01 -0800
Organization: Highland Tech
Reply-To: xx@yy.com
Message-ID: <7c5erih51gjrbjnqrkahdg5inpv50t0rif@4ax.com>
References: <240e0ce5-e062-4fbf-81fa-39fa37764708n@googlegroups.com> <i56dri1hkv0h01mu82bpv2db8m0p3upe5h@4ax.com> <904f6668-d409-4fd2-8a52-5ef8a61e58e4n@googlegroups.com>
X-Newsreader: Forte Agent 3.1/32.783
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 18
X-Trace: sv3-Dw5ramg78wm3uIbpJx5IVEb6ycD8SY3dU/fWXnjfXgApE1W8cvN8IMylzVHw/C4mu9U5V8ygzWwuAmZ!RNLWE7dSUeTgVoyU6txonH32J7vvpttvDPnTAEoSpDK1hMIPvkre+9E1QJLeUyEP1OK0OX0OQ45k!zxHQAQ==
X-Complaints-To: www.supernews.com/docs/abuse.html
X-DMCA-Complaints-To: www.supernews.com/docs/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: John Larkin - Mon, 29 Jan 2024 03:08 UTC

On Sun, 28 Jan 2024 18:09:13 -0800 (PST), "rhor...@gmail.com"
<rhorerles@gmail.com> wrote:

>On Sunday, January 28, 2024 at 12:21:11?PM UTC-6, John Larkin wrote:
>> On Sun, 28 Jan 2024 09:14:20 -0800 (PST), Les wrote:
>
>> >http://siliconventures.net/images/Flashlight%20Switch%20Update.PNG
>> The circuit image is cropped but looks wrong. Spice it.
>
>That is the drawing from the sim. The two lines off to the right go to other parts of the circuit that do not affect the switch.
>
>What looks wrong?

As you noted, it doesn't turn off.

The voltage charging C4 is somewhere between 25 and 12.5. It can't
turn off Q2.

Re: This isn't working

<e07erid4q40s96nqdagvbgcld3rgk9oope@4ax.com>

  copy mid

https://news.novabbs.org/tech/article-flat.php?id=134192&group=sci.electronics.design#134192

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!border-2.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 29 Jan 2024 03:35:47 +0000
From: jl@997PotHill.com (John Larkin)
Newsgroups: sci.electronics.design
Subject: Re: This isn't working
Date: Sun, 28 Jan 2024 19:34:35 -0800
Organization: Highland Tech
Reply-To: xx@yy.com
Message-ID: <e07erid4q40s96nqdagvbgcld3rgk9oope@4ax.com>
References: <240e0ce5-e062-4fbf-81fa-39fa37764708n@googlegroups.com> <i56dri1hkv0h01mu82bpv2db8m0p3upe5h@4ax.com> <904f6668-d409-4fd2-8a52-5ef8a61e58e4n@googlegroups.com> <7c5erih51gjrbjnqrkahdg5inpv50t0rif@4ax.com>
X-Newsreader: Forte Agent 3.1/32.783
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 25
X-Trace: sv3-KIWOheBR1Cbg6HAbDDZ7jkt95e2O8AU2aoSfBNJB0sVA+ISsWDHf2QEUXejaypWhhnhTQrb73Pf1C+J!8MtzBckg80ujRO+nG5wiePdLA8wE96cGkhsjHCsd8uQG4581MFv4JhAlQRjNMJg9NzT12OREqrrd!PqryOw==
X-Complaints-To: www.supernews.com/docs/abuse.html
X-DMCA-Complaints-To: www.supernews.com/docs/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
 by: John Larkin - Mon, 29 Jan 2024 03:34 UTC

On Sun, 28 Jan 2024 19:08:01 -0800, John Larkin <jl@997PotHill.com>
wrote:

>On Sun, 28 Jan 2024 18:09:13 -0800 (PST), "rhor...@gmail.com"
><rhorerles@gmail.com> wrote:
>
>>On Sunday, January 28, 2024 at 12:21:11?PM UTC-6, John Larkin wrote:
>>> On Sun, 28 Jan 2024 09:14:20 -0800 (PST), Les wrote:
>>
>>> >http://siliconventures.net/images/Flashlight%20Switch%20Update.PNG
>>> The circuit image is cropped but looks wrong. Spice it.
>>
>>That is the drawing from the sim. The two lines off to the right go to other parts of the circuit that do not affect the switch.
>>
>>What looks wrong?
>
>As you noted, it doesn't turn off.
>
>The voltage charging C4 is somewhere between 25 and 12.5. It can't
>turn off Q2.

Actually, the real problem is the insistance on not making proper
3-way and 4-way connections. All those extra dots make the electrons
get confused and discouraged.

Re: This isn't working

<766a668d-3b77-4590-91bc-48e4555fe207n@googlegroups.com>

  copy mid

https://news.novabbs.org/tech/article-flat.php?id=134197&group=sci.electronics.design#134197

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:a05:6214:459c:b0:687:8047:570f with SMTP id op28-20020a056214459c00b006878047570fmr249138qvb.0.1706521616187;
Mon, 29 Jan 2024 01:46:56 -0800 (PST)
X-Received: by 2002:a05:690c:d8b:b0:602:cd33:5392 with SMTP id
da11-20020a05690c0d8b00b00602cd335392mr1106932ywb.3.1706521615943; Mon, 29
Jan 2024 01:46:55 -0800 (PST)
Path: i2pn2.org!i2pn.org!news.nntp4.net!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!fdn.fr!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Mon, 29 Jan 2024 01:46:55 -0800 (PST)
In-Reply-To: <7c5erih51gjrbjnqrkahdg5inpv50t0rif@4ax.com>
Injection-Info: google-groups.googlegroups.com; posting-host=75.15.243.201; posting-account=cinlnAoAAABWWFgc_siC56jRtRTjUix2
NNTP-Posting-Host: 75.15.243.201
References: <240e0ce5-e062-4fbf-81fa-39fa37764708n@googlegroups.com>
<i56dri1hkv0h01mu82bpv2db8m0p3upe5h@4ax.com> <904f6668-d409-4fd2-8a52-5ef8a61e58e4n@googlegroups.com>
<7c5erih51gjrbjnqrkahdg5inpv50t0rif@4ax.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <766a668d-3b77-4590-91bc-48e4555fe207n@googlegroups.com>
Subject: Re: This isn't working
From: rhorerles@gmail.com (rhor...@gmail.com)
Injection-Date: Mon, 29 Jan 2024 09:46:56 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: rhor...@gmail.com - Mon, 29 Jan 2024 09:46 UTC

On Sunday, January 28, 2024 at 9:09:26 PM UTC-6, John Larkin wrote:
> On Sun, 28 Jan 2024 18:09:13 -0800 (PST), Les wrote:
> >On Sunday, January 28, 2024 at 12:21:11?PM UTC-6, John Larkin wrote:
> >> On Sun, 28 Jan 2024 09:14:20 -0800 (PST), Les wrote:
> >
> >> >http://siliconventures.net/images/Flashlight%20Switch%20Update.PNG
> >> The circuit image is cropped but looks wrong. Spice it.
> >
> >That is the drawing from the sim. The two lines off to the right go to other parts of the circuit that do not affect the switch.
> >
> >What looks wrong?
> As you noted, it doesn't turn off.
>
> The voltage charging C4 is somewhere between 25 and 12.5. It can't
> turn off Q2.
Yeah, it seemed... wrong somehow. So much for trusting the internet as a source.

Re: This isn't working

<8fd493ca-abb5-4ff8-852a-b56caa1d0acbn@googlegroups.com>

  copy mid

https://news.novabbs.org/tech/article-flat.php?id=134200&group=sci.electronics.design#134200

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:a05:6214:3105:b0:68c:3eb4:dbc7 with SMTP id ks5-20020a056214310500b0068c3eb4dbc7mr216286qvb.5.1706523823222;
Mon, 29 Jan 2024 02:23:43 -0800 (PST)
X-Received: by 2002:a05:690c:e:b0:5ee:d5ed:5f70 with SMTP id
bc14-20020a05690c000e00b005eed5ed5f70mr1380522ywb.9.1706523822909; Mon, 29
Jan 2024 02:23:42 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Mon, 29 Jan 2024 02:23:42 -0800 (PST)
In-Reply-To: <766a668d-3b77-4590-91bc-48e4555fe207n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=59.102.83.245; posting-account=SJ46pgoAAABuUDuHc5uDiXN30ATE-zi-
NNTP-Posting-Host: 59.102.83.245
References: <240e0ce5-e062-4fbf-81fa-39fa37764708n@googlegroups.com>
<i56dri1hkv0h01mu82bpv2db8m0p3upe5h@4ax.com> <904f6668-d409-4fd2-8a52-5ef8a61e58e4n@googlegroups.com>
<7c5erih51gjrbjnqrkahdg5inpv50t0rif@4ax.com> <766a668d-3b77-4590-91bc-48e4555fe207n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <8fd493ca-abb5-4ff8-852a-b56caa1d0acbn@googlegroups.com>
Subject: Re: This isn't working
From: bill.sloman@ieee.org (Anthony William Sloman)
Injection-Date: Mon, 29 Jan 2024 10:23:43 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2446
 by: Anthony William Slom - Mon, 29 Jan 2024 10:23 UTC

On Monday, January 29, 2024 at 8:47:00 PM UTC+11, rhor...@gmail.com wrote:
> On Sunday, January 28, 2024 at 9:09:26 PM UTC-6, John Larkin wrote:
> > On Sun, 28 Jan 2024 18:09:13 -0800 (PST), Les wrote:
> > >On Sunday, January 28, 2024 at 12:21:11?PM UTC-6, John Larkin wrote:
> > >> On Sun, 28 Jan 2024 09:14:20 -0800 (PST), Les wrote:
> > >
> > >> >http://siliconventures.net/images/Flashlight%20Switch%20Update.PNG
> > >> The circuit image is cropped but looks wrong. Spice it.
> > >
> > >That is the drawing from the sim. The two lines off to the right go to other parts of the circuit that do not affect the switch.
> > >
> > >What looks wrong?
> >
> > As you noted, it doesn't turn off.
> >
> > The voltage charging C4 is somewhere between 25 and 12.5. It can't
> > turn off Q2.
>
> Yeah, it seemed... wrong somehow. So much for trusting the internet as a source.

The internet goes everwhere. You have be careful what you connect to.

--
Bill Sloman, Sydney

Re: This isn't working

<1vcfri1gajklernt4egm54g6mcabt770m9@4ax.com>

  copy mid

https://news.novabbs.org/tech/article-flat.php?id=134213&group=sci.electronics.design#134213

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!nntp.comgw.net!weretis.net!feeder8.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 29 Jan 2024 14:25:59 +0000
From: jl@997PotHill.com (John Larkin)
Newsgroups: sci.electronics.design
Subject: Re: This isn't working
Date: Mon, 29 Jan 2024 06:24:46 -0800
Organization: Highland Tech
Reply-To: xx@yy.com
Message-ID: <1vcfri1gajklernt4egm54g6mcabt770m9@4ax.com>
References: <240e0ce5-e062-4fbf-81fa-39fa37764708n@googlegroups.com> <i56dri1hkv0h01mu82bpv2db8m0p3upe5h@4ax.com> <904f6668-d409-4fd2-8a52-5ef8a61e58e4n@googlegroups.com> <7c5erih51gjrbjnqrkahdg5inpv50t0rif@4ax.com> <766a668d-3b77-4590-91bc-48e4555fe207n@googlegroups.com>
X-Newsreader: Forte Agent 3.1/32.783
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 27
X-Trace: sv3-8ICtA7fGZuxD7KcEqA2EZf+wUJLTEHVffX3ZyYPbUQKX1ZKw135CoCmCMwYJKoARVNGt4DvXlwI9Ymp!iHanQuXHA4bPCR0u2HfAXo/VMIohSOfm8++78nDsNbxUMbDr+tpE8nWryBXyq4wi078tufuX+GkT!Yg6mfw==
X-Complaints-To: www.supernews.com/docs/abuse.html
X-DMCA-Complaints-To: www.supernews.com/docs/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Received-Bytes: 2589
 by: John Larkin - Mon, 29 Jan 2024 14:24 UTC

On Mon, 29 Jan 2024 01:46:55 -0800 (PST), "rhor...@gmail.com"
<rhorerles@gmail.com> wrote:

>On Sunday, January 28, 2024 at 9:09:26?PM UTC-6, John Larkin wrote:
>> On Sun, 28 Jan 2024 18:09:13 -0800 (PST), Les wrote:
>> >On Sunday, January 28, 2024 at 12:21:11?PM UTC-6, John Larkin wrote:
>> >> On Sun, 28 Jan 2024 09:14:20 -0800 (PST), Les wrote:
>> >
>> >> >http://siliconventures.net/images/Flashlight%20Switch%20Update.PNG
>> >> The circuit image is cropped but looks wrong. Spice it.
>> >
>> >That is the drawing from the sim. The two lines off to the right go to other parts of the circuit that do not affect the switch.
>> >
>> >What looks wrong?
>> As you noted, it doesn't turn off.
>>
>> The voltage charging C4 is somewhere between 25 and 12.5. It can't
>> turn off Q2.
>Yeah, it seemed... wrong somehow. So much for trusting the internet as a source.

If you fix the C4 problem, easily done, it still won't turn off if the
(unseen) load has much capacitance. And it might still blow out the
mosfet gates. There is so much bad electronics on the internet. Most
of it is bad, actually.

Why not just use a toggle switch?

Re: This isn't working

<784158a8-ded9-4103-b55b-915846b13d3bn@googlegroups.com>

  copy mid

https://news.novabbs.org/tech/article-flat.php?id=134215&group=sci.electronics.design#134215

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:ad4:5492:0:b0:685:73fe:b0d8 with SMTP id pv18-20020ad45492000000b0068573feb0d8mr226237qvb.4.1706539233149;
Mon, 29 Jan 2024 06:40:33 -0800 (PST)
X-Received: by 2002:a05:6902:2489:b0:dc2:2d2c:962a with SMTP id
ds9-20020a056902248900b00dc22d2c962amr2248166ybb.8.1706539232897; Mon, 29 Jan
2024 06:40:32 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Mon, 29 Jan 2024 06:40:32 -0800 (PST)
In-Reply-To: <1vcfri1gajklernt4egm54g6mcabt770m9@4ax.com>
Injection-Info: google-groups.googlegroups.com; posting-host=75.15.243.201; posting-account=cinlnAoAAABWWFgc_siC56jRtRTjUix2
NNTP-Posting-Host: 75.15.243.201
References: <240e0ce5-e062-4fbf-81fa-39fa37764708n@googlegroups.com>
<i56dri1hkv0h01mu82bpv2db8m0p3upe5h@4ax.com> <904f6668-d409-4fd2-8a52-5ef8a61e58e4n@googlegroups.com>
<7c5erih51gjrbjnqrkahdg5inpv50t0rif@4ax.com> <766a668d-3b77-4590-91bc-48e4555fe207n@googlegroups.com>
<1vcfri1gajklernt4egm54g6mcabt770m9@4ax.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <784158a8-ded9-4103-b55b-915846b13d3bn@googlegroups.com>
Subject: Re: This isn't working
From: rhorerles@gmail.com (rhor...@gmail.com)
Injection-Date: Mon, 29 Jan 2024 14:40:33 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1734
 by: rhor...@gmail.com - Mon, 29 Jan 2024 14:40 UTC

On Monday, January 29, 2024 at 8:26:15 AM UTC-6, John Larkin wrote:

>
> Why not just use a toggle switch?
Because I am using a rotary encoder. In previous designs I used a potentiometer with an ON/Off switch, but for several reasons I am moving to a rotary encoder. They have momentary switches.

Re: This isn't working

<48b4e4e2-0d1a-4f55-bb54-f2f40d5c778fn@googlegroups.com>

  copy mid

https://news.novabbs.org/tech/article-flat.php?id=134222&group=sci.electronics.design#134222

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:ad4:594a:0:b0:68c:4edd:5628 with SMTP id eo10-20020ad4594a000000b0068c4edd5628mr264264qvb.2.1706546581912;
Mon, 29 Jan 2024 08:43:01 -0800 (PST)
X-Received: by 2002:a81:9995:0:b0:5e8:bea4:4d3b with SMTP id
q143-20020a819995000000b005e8bea44d3bmr1539635ywg.6.1706546581661; Mon, 29
Jan 2024 08:43:01 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Mon, 29 Jan 2024 08:43:01 -0800 (PST)
In-Reply-To: <e9029080-6ee0-485e-815b-3d68c965466bn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=75.15.243.201; posting-account=cinlnAoAAABWWFgc_siC56jRtRTjUix2
NNTP-Posting-Host: 75.15.243.201
References: <240e0ce5-e062-4fbf-81fa-39fa37764708n@googlegroups.com> <e9029080-6ee0-485e-815b-3d68c965466bn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <48b4e4e2-0d1a-4f55-bb54-f2f40d5c778fn@googlegroups.com>
Subject: Re: This isn't working
From: rhorerles@gmail.com (rhor...@gmail.com)
Injection-Date: Mon, 29 Jan 2024 16:43:01 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4714
 by: rhor...@gmail.com - Mon, 29 Jan 2024 16:43 UTC

On Monday, January 29, 2024 at 7:02:09?AM UTC-6, Fred Bloggs wrote:
> On Sunday, January 28, 2024 at 12:14:25?PM UTC-5, Les wrote:
> The circuit in figure 3 on the page will work once you 1) select a new PFET that can handle the load current, and 2) attenuate the voltages applied to both FET gates to keep them in bounds, 2N7002 is 20Vmax FPQ47PO6 is 25Vmax.

Nope and nope. The spec sheet shows the maxiumum Drain-Source Voltage of the FQP47P06 to be 60V and the maximum Gate-Source to be 25V. The maximuim current is 47A. Since the DS is at most 25.2V and the GS is about 8V, with a maximum current of around 10A (more commonly 0 - 5A), it should not be a problem. I have been using these MOSFETs on these devices for nearly 10 years, and I have never had a failure. I am not sure how you think attenuating the voltages will help since the problem is the gate voltage is already too low, preventing the transistor from turning off once it is turned on. It turns on just fine. I can manually shut it down by shorting the Gate to V+, but pressingt the button never gets the gate voltage high enough to shut down the FET.

> C4 is a 'next state' voltage, meaning the current state must last for about 10 time constants of R14 xC4 (1000ms ) to guarantee the next press of MOM S1 causes a state change.

I am well aware of the RC time constant, and how this is supposed to work.

> In order to tame the voltages applied to the FET gates, proceed as follows:
>
> 1) disconnect R3-R14 connection
>
> 2) add an additional series resistor divider of 22k + 47k between the 25V source and GND, with 22k connected to the source and 47k to GND. Connect a tap from the junction of the 22k + 47k to the top of R14 AND the drain of Q2. Now Q2 can completely discharge C4 to 0V through the 100k. When Q2 is OFF, the 22k +47k will charge C4 to between 10V and 17V, which is safe to put on the gate of Q2 via S1.

Of course it is safe. What it isn't is effective. With a 25V power source, the Gate voltage has to be above 21.5V (measured) in order to shut off the FET. That never happens.

> If 1000ms has elapsed since Q2 was turned on. C4 should be discharged to 0V.
> Pressing S1 will then pull the gate of Q2 to 0V through C4. Q2 turns off, removing the gate drive from Q3 turning it off.

Except it doesn't. See the simulation. Once Q3 is turned on by pressing the switch the first time, the voltage at the Gate never exceeds 20.5 Volts, even if I reduce R3 all the way down to 2K. Any further, and I will exceed the 250 mW rating of the resistors I am using. Tht's quite ridiculous for a MOSFET Gate driver.

> BUT if the output voltage at drain Q3 hangs around for too long because of big capacitors or something on the load, C4 will recharge through R2 and turn on Q2 again. That's your problem because the information you gave is just a snippet.

On the bench right now, the only load is a 7805 feeding an Arduino (30ma / 0.33 uF). In the sim, it is a 4 ohm resistor.

> Your gate drive of Q1 may be a bit on the weak side.

You have got to be kidding me. I drive these with 1M resistors and a 10M pullup all the time. Hell, they can turn on just from static charges in the air if there isn't a pullup resistor. Do you not know how an FET works?

http://siliconventures.net/images/Flashlight%20Switch%20Test.JPG

Re: This isn't working

<19630db3-9bf3-40ec-8f34-772d03017fc6n@googlegroups.com>

  copy mid

https://news.novabbs.org/tech/article-flat.php?id=134224&group=sci.electronics.design#134224

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:a05:6214:4509:b0:68c:47ad:8692 with SMTP id oo9-20020a056214450900b0068c47ad8692mr84150qvb.10.1706547167130;
Mon, 29 Jan 2024 08:52:47 -0800 (PST)
X-Received: by 2002:a05:690c:108:b0:5fc:316d:a366 with SMTP id
bd8-20020a05690c010800b005fc316da366mr1946027ywb.4.1706547166619; Mon, 29 Jan
2024 08:52:46 -0800 (PST)
Path: i2pn2.org!rocksolid2!news.neodome.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Mon, 29 Jan 2024 08:52:46 -0800 (PST)
In-Reply-To: <240e0ce5-e062-4fbf-81fa-39fa37764708n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=75.15.243.201; posting-account=cinlnAoAAABWWFgc_siC56jRtRTjUix2
NNTP-Posting-Host: 75.15.243.201
References: <240e0ce5-e062-4fbf-81fa-39fa37764708n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <19630db3-9bf3-40ec-8f34-772d03017fc6n@googlegroups.com>
Subject: Re: This isn't working
From: rhorerles@gmail.com (rhor...@gmail.com)
Injection-Date: Mon, 29 Jan 2024 16:52:47 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 1780
 by: rhor...@gmail.com - Mon, 29 Jan 2024 16:52 UTC

Well, I have a design. I am not extremely happy with it, but it is working (ish). The parts count is rather high. Holding down the button for more than a half second or so will cause unexpected results, and one cannot turn the unit off within 2 seconds of tuning it on, but the quiescent current is under 75 microamps, which is acceptable. If anyone has any suggestions for improvement, please speak up. (Note: the sub-circuit on the bottom right allows programmatic shut down, in addition to using the push button)

http://siliconventures.net/images/Flashlight%20Switch%20Update.PNG

Re: This isn't working

<ebfddf24-fabb-4123-a1b1-21a34014f549n@googlegroups.com>

  copy mid

https://news.novabbs.org/tech/article-flat.php?id=134267&group=sci.electronics.design#134267

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:a05:6214:20ef:b0:68c:4f4d:a4fd with SMTP id 15-20020a05621420ef00b0068c4f4da4fdmr530749qvk.4.1706618210338;
Tue, 30 Jan 2024 04:36:50 -0800 (PST)
X-Received: by 2002:a05:6902:2089:b0:dc2:2ae2:6ca with SMTP id
di9-20020a056902208900b00dc22ae206camr3024841ybb.5.1706618210110; Tue, 30 Jan
2024 04:36:50 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Tue, 30 Jan 2024 04:36:49 -0800 (PST)
In-Reply-To: <9a03e632-3862-40e8-b816-736eb6808d31n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=75.15.243.201; posting-account=cinlnAoAAABWWFgc_siC56jRtRTjUix2
NNTP-Posting-Host: 75.15.243.201
References: <240e0ce5-e062-4fbf-81fa-39fa37764708n@googlegroups.com>
<e9029080-6ee0-485e-815b-3d68c965466bn@googlegroups.com> <48b4e4e2-0d1a-4f55-bb54-f2f40d5c778fn@googlegroups.com>
<9a03e632-3862-40e8-b816-736eb6808d31n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ebfddf24-fabb-4123-a1b1-21a34014f549n@googlegroups.com>
Subject: Re: This isn't working
From: rhorerles@gmail.com (rhor...@gmail.com)
Injection-Date: Tue, 30 Jan 2024 12:36:50 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: rhor...@gmail.com - Tue, 30 Jan 2024 12:36 UTC

On Monday, January 29, 2024 at 12:30:25 PM UTC-6, Fred Bloggs wrote:
> > > On Sunday, January 28, 2024 at 12:14:25?PM UTC-5, Les wrote:
> > Of course it is safe. What it isn't is effective. With a 25V power source, the Gate voltage has to be above 21.5V (measured) in order to shut off the FET. That never happens.
> The only way that is happening is Q2 is not turning off completely.

No, it isn't the only way. Over a period of time short compared to N x RC, C4 will hold the voltage at R14 close to 0. Assuming R14 = 100K, R3 = 10K, and V+ = 25 Volts, that sets the initial voltage at the Gate of Q3 to be 22.7 Volts, which is not high enough to turn off Q3.

Over time, with the output being close to 24 Volts, the current through R2 causes the voltage at the Gate of Q2 to rise above 2 Volts, which turns Q2 back on. When C4 is at 2 Volts, the Gate of Q3 still sits at 22.9 volts, which still is not high enough to turn Q3 off. As you can see from the test trace, the output voltage drops just a few volts for a very brief moment, but it never, ever turns off. It can't. There are no reasonable values of R2, R3, R14, and C4 that will reliably turn off Q3 in a useful manner when the switch is pressed.

I have tried numerous small variations, including going with an ordinary BJT for Q2, but no simple variant works well enough. Either the device switches on but then switches off way, way too quickly if the swutchg is held for any reasonable length of time, or else it won't turn off at all.

> The reason for that is your gate turn-off is so slow, the Q3 is going linear, it doesn't completely shut-off and supplies current thru the 10k to C1putting enough voltage on Q2 gate to maintain Q3 gate voltage causing some conduction.

This is nonsense. The reason the switch won't turn off is effectively because the high input voltage causes the Gate voltage to be too low no matter what. The voltage at C4 rises too high to keep Q2 shut off before the voltage at R3 rises high enough to shut down Q3. If the input voltage were lower, and / or the threshold voltage of Q3 were higher, it could work.

> FETs are not fully off or fully on only, there are intermediate conduction states.

Try telling me something I don't know. I have been doing this for over 40 years, and my undergraduate studies were in physics. I know precisely how transistors work and how they behave. Please do not treat me like a fool. It wastes everyone's time.

Re: This isn't working

<e1bb2519-1bc1-4f77-a3e0-c790d0011a17n@googlegroups.com>

  copy mid

https://news.novabbs.org/tech/article-flat.php?id=134268&group=sci.electronics.design#134268

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:a0c:d982:0:b0:68c:4ef9:bfed with SMTP id y2-20020a0cd982000000b0068c4ef9bfedmr10122qvj.1.1706620505216;
Tue, 30 Jan 2024 05:15:05 -0800 (PST)
X-Received: by 2002:a05:6902:2082:b0:dc2:5525:f6b with SMTP id
di2-20020a056902208200b00dc255250f6bmr2870151ybb.7.1706620504778; Tue, 30 Jan
2024 05:15:04 -0800 (PST)
Path: i2pn2.org!i2pn.org!news.1d4.us!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Tue, 30 Jan 2024 05:15:04 -0800 (PST)
In-Reply-To: <240e0ce5-e062-4fbf-81fa-39fa37764708n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=59.102.83.245; posting-account=SJ46pgoAAABuUDuHc5uDiXN30ATE-zi-
NNTP-Posting-Host: 59.102.83.245
References: <240e0ce5-e062-4fbf-81fa-39fa37764708n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e1bb2519-1bc1-4f77-a3e0-c790d0011a17n@googlegroups.com>
Subject: Re: This isn't working
From: bill.sloman@ieee.org (Anthony William Sloman)
Injection-Date: Tue, 30 Jan 2024 13:15:05 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2976
 by: Anthony William Slom - Tue, 30 Jan 2024 13:15 UTC

On Monday, January 29, 2024 at 4:14:25 AM UTC+11, rhor...@gmail.com wrote:
> I want to use an EC1 rotary encoder to control a battery powered device. The EC1 sports a momentary switch, rather than an on / off switch, however, so I need to add a circuit to latch the momentary pulse. Figure 3 on this page should work: http://www.mosaic-industries.com/embedded-systems/microcontroller-projects/electronic-circuits/push-button-switch-turn-on/latching-toggle-power-switch.

This is much too late to be useful, but you do need to work exactly what you are trying to. The first thing that worries me is that you don't spell out how long the momentary switch closes the contact.

You then go on to say you want the same momentary switch to turn off the lamp if you press it when the lamp is on.

Life gets a lot simpler if you set up micropower latch to switch between two states - lamp on and lamp off.

It's output can drive the transistor ( the FQP47P06 P-channel power MOSFET).. If you have separate logic to treat an output from the momenetary contact as a latch toggling input - directing it to at the Set or Reset inputs to an RS latch - the design can be pretty straightforward.

You can buy a CMOS S/R latch, but even 4000 series CMOS has a maximum voltage rating of 18V.

There's nothing to stop you making up an CMOS S/R latch with higher voltage discrete N- and P-type MOS Fets, as shown here. but you need four of each sort, and parts that can take 25V from gate to source (and I can't think of any).

https://www.tutorialspoint.com/vlsi_design/vlsi_design_sequential_mos_logic_circuits.htm

It isn't going to be as cheap or as simple as what you've tried, but it is designable.

--
Bill Sloman, Sydney

Re: This isn't working

<94e0cde2-ca56-44fc-8f7e-c4bbc55761b1n@googlegroups.com>

  copy mid

https://news.novabbs.org/tech/article-flat.php?id=134300&group=sci.electronics.design#134300

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:a05:622a:18a1:b0:42b:8f1e:dc6c with SMTP id v33-20020a05622a18a100b0042b8f1edc6cmr1339qtc.12.1706658527938;
Tue, 30 Jan 2024 15:48:47 -0800 (PST)
X-Received: by 2002:a81:57c3:0:b0:5f9:4fa1:1a0b with SMTP id
l186-20020a8157c3000000b005f94fa11a0bmr2125852ywb.0.1706658526117; Tue, 30
Jan 2024 15:48:46 -0800 (PST)
Path: i2pn2.org!i2pn.org!nntp.comgw.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Tue, 30 Jan 2024 15:48:45 -0800 (PST)
In-Reply-To: <e1bb2519-1bc1-4f77-a3e0-c790d0011a17n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=59.102.83.245; posting-account=SJ46pgoAAABuUDuHc5uDiXN30ATE-zi-
NNTP-Posting-Host: 59.102.83.245
References: <240e0ce5-e062-4fbf-81fa-39fa37764708n@googlegroups.com> <e1bb2519-1bc1-4f77-a3e0-c790d0011a17n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <94e0cde2-ca56-44fc-8f7e-c4bbc55761b1n@googlegroups.com>
Subject: Re: This isn't working
From: bill.sloman@ieee.org (Anthony William Sloman)
Injection-Date: Tue, 30 Jan 2024 23:48:47 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3501
 by: Anthony William Slom - Tue, 30 Jan 2024 23:48 UTC

On Wednesday, January 31, 2024 at 12:15:11 AM UTC+11, Anthony William Sloman wrote:
> On Monday, January 29, 2024 at 4:14:25 AM UTC+11, rhor...@gmail.com wrote:
> > I want to use an EC1 rotary encoder to control a battery powered device.. The EC1 sports a momentary switch, rather than an on / off switch, however, so I need to add a circuit to latch the momentary pulse. Figure 3 on this page should work: http://www.mosaic-industries.com/embedded-systems/microcontroller-projects/electronic-circuits/push-button-switch-turn-on/latching-toggle-power-switch.
> This is much too late to be useful, but you do need to work exactly what you are trying to. The first thing that worries me is that you don't spell out how long the momentary switch closes the contact.
>
> You then go on to say you want the same momentary switch to turn off the lamp if you press it when the lamp is on.
>
> Life gets a lot simpler if you set up micropower latch to switch between two states - lamp on and lamp off.
>
> It's output can drive the transistor ( the FQP47P06 P-channel power MOSFET). If you have separate logic to treat an output from the momenetary contact as a latch toggling input - directing it to at the Set or Reset inputs to an RS latch - the design can be pretty straightforward.
>
> You can buy a CMOS S/R latch, but even 4000 series CMOS has a maximum voltage rating of 18V.
>
> There's nothing to stop you making up an CMOS S/R latch with higher voltage discrete N- and P-type MOS Fets, as shown here. but you need four of each sort, and parts that can take 25V from gate to source (and I can't think of any).
>
> https://www.tutorialspoint.com/vlsi_design/vlsi_design_sequential_mos_logic_circuits.htm
>
> It isn't going to be as cheap or as simple as what you've tried, but it is designable.

It might pay you to put in a second battery to power simple CMOS logic. A 9V lithium iron phosphate battery has a ten year life and 9V is compatible with standard CMOS and high enough to turn on a big MOS-Fet - I'd go for an N-MOS-Fet, They tend to be cheaper if you want to control 10A.
--
Bill Sloman, Sydney

Re: This isn't working

<5e41f288-e7a4-4945-9679-5cc9432989f5n@googlegroups.com>

  copy mid

https://news.novabbs.org/tech/article-flat.php?id=134304&group=sci.electronics.design#134304

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:a05:6214:418e:b0:689:3195:df71 with SMTP id ld14-20020a056214418e00b006893195df71mr22788qvb.2.1706677397168;
Tue, 30 Jan 2024 21:03:17 -0800 (PST)
X-Received: by 2002:a05:6902:160d:b0:dbe:d0a9:2be3 with SMTP id
bw13-20020a056902160d00b00dbed0a92be3mr153314ybb.3.1706677396744; Tue, 30 Jan
2024 21:03:16 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Tue, 30 Jan 2024 21:03:16 -0800 (PST)
In-Reply-To: <d3415911-66dc-40cb-820a-dbc81809e765n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=59.102.83.245; posting-account=SJ46pgoAAABuUDuHc5uDiXN30ATE-zi-
NNTP-Posting-Host: 59.102.83.245
References: <240e0ce5-e062-4fbf-81fa-39fa37764708n@googlegroups.com>
<e1bb2519-1bc1-4f77-a3e0-c790d0011a17n@googlegroups.com> <94e0cde2-ca56-44fc-8f7e-c4bbc55761b1n@googlegroups.com>
<d3415911-66dc-40cb-820a-dbc81809e765n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5e41f288-e7a4-4945-9679-5cc9432989f5n@googlegroups.com>
Subject: Re: This isn't working
From: bill.sloman@ieee.org (Anthony William Sloman)
Injection-Date: Wed, 31 Jan 2024 05:03:17 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 6116
 by: Anthony William Slom - Wed, 31 Jan 2024 05:03 UTC

On Wednesday, January 31, 2024 at 1:34:32 PM UTC+11, Fred Bloggs wrote:
> On Tuesday, January 30, 2024 at 6:48:52 PM UTC-5, Anthony William Sloman wrote:
> > On Wednesday, January 31, 2024 at 12:15:11 AM UTC+11, Anthony William Sloman wrote:
> > > On Monday, January 29, 2024 at 4:14:25 AM UTC+11, rhor...@gmail.com wrote:
> > > >
> > > > I want to use an EC1 rotary encoder to control a battery powered device. The EC1 sports a momentary switch, rather than an on / off switch, however, so I need to add a circuit to latch the momentary pulse. Figure 3 on this page should work: http://www.mosaic-industries.com/embedded-systems/microcontroller-projects/electronic-circuits/push-button-switch-turn-on/latching-toggle-power-switch." rel="nofollow" target="_blank">http://www.mosaic-industries.com/embedded-systems/microcontroller-projects/electronic-circuits/push-button-switch-turn-on/latching-toggle-power-switch.
>
> > > This is much too late to be useful, but you do need to work exactly what you are trying to. The first thing that worries me is that you don't spell out how long the momentary switch closes the contact.
> > >
> > > You then go on to say you want the same momentary switch to turn off the lamp if you press it when the lamp is on.
> > >
> > > Life gets a lot simpler if you set up micropower latch to switch between two states - lamp on and lamp off.
> > >
> > > It's output can drive the transistor ( the FQP47P06 P-channel power MOSFET). If you have separate logic to treat an output from the momenetary contact as a latch toggling input - directing it to at the Set or Reset inputs to an RS latch - the design can be pretty straightforward.
> > >
> > > You can buy a CMOS S/R latch, but even 4000 series CMOS has a maximum voltage rating of 18V.
> > >
> > > There's nothing to stop you making up an CMOS S/R latch with higher voltage discrete N- and P-type MOS Fets, as shown here. but you need four of each sort, and parts that can take 25V from gate to source (and I can't think of any).
> > >
> > > https://www.tutorialspoint.com/vlsi_design/vlsi_design_sequential_mos_logic_circuits.htm
> > >
> > > It isn't going to be as cheap or as simple as what you've tried, but it is designable.
> >
> > It might pay you to put in a second battery to power simple CMOS logic. A 9V lithium iron phosphate battery has a ten year life and 9V is compatible with standard CMOS and high enough to turn on a big MOS-Fet - I'd go for an N-MOS-Fet, They tend to be cheaper if you want to control 10A.
> That's just crazy. The circuit in question is Figure 3 here:
>
> http://www.mosaic-industries.com/embedded-systems/microcontroller-projects/electronic-circuits/push-button-switch-turn-on/latching-toggle-power-switch
>
> That circuit is a latch as good as any can be done with logic.

He hasn't been able to make it work. Using a few more parts that can be configured to behave reliably isn't remotely crazy.

> You have to pay attention to the part specifications though. Figure 3 calls for the IRF7319, a dual P-/N- FET. Datasheet here:
>
> https://www.mouser.com/datasheet/2/196/Infineon_IRF7319_DataSheet_v01_01_EN-3363056.pdf
>
> You can't just blindly pair that up with the 50A behemoth FQP47P06. Datasheet here:
>
> https://www.mouser.com/datasheet/2/149/FQP47P06-1009447.pdf
>
> The FPQ has 10x the gate charge and response time. In the Fig 3 circuit, it means the low power driver has run out of adequate drive by the time the FPQ starts to budge. Circuit then becomes junk.

So put in an explicit latch and let the latched output drive the power MOS Fet. Keep the slow turnout out if your control loop.
>
> The IRF7319 is a really excellent design, it's cheap and readily available. It should be rewarded with a purchase preference. So how to make that work? Reconfigure Figure 3 to a low side switch with the N-FET of the -7319 driving the gate of the high-side FPQ pig thru an isolating resistor divider.. That would be isolation for all the feedback around the -7319.
>
> As with most FETs, RDS,ON is practically minimum at 10V VGS, so that part needs some finagling, but is more than doable.
>
> Switch cannot be arbitrary. It should have a maximum bounce time of 5ms, to work with that 100ms next state charge capacitor time constant without trouble. A 5% decrease in repetitive state reinforcing gate drive is only slightly less perfect than a bounce-free switch.

If you want to use the same momentary switch to turn the lamp on, then later to turn it off again you do need to manage switch bounce. Using regular C/MOS parts does give you lots of options.

--
Bill Sloman, Sydney

Re: This isn't working

<02ad58b2-db4c-427b-96fa-09bb074b18c2n@googlegroups.com>

  copy mid

https://news.novabbs.org/tech/article-flat.php?id=134364&group=sci.electronics.design#134364

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:ac8:5a07:0:b0:429:fe75:8d7c with SMTP id n7-20020ac85a07000000b00429fe758d7cmr190026qta.10.1706758861606;
Wed, 31 Jan 2024 19:41:01 -0800 (PST)
X-Received: by 2002:a05:690c:82:b0:602:d17a:7f60 with SMTP id
be2-20020a05690c008200b00602d17a7f60mr775211ywb.10.1706758861306; Wed, 31 Jan
2024 19:41:01 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Wed, 31 Jan 2024 19:41:01 -0800 (PST)
In-Reply-To: <eb5dc538-21b8-4cf7-a37e-6bec5411598fn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=59.102.83.245; posting-account=SJ46pgoAAABuUDuHc5uDiXN30ATE-zi-
NNTP-Posting-Host: 59.102.83.245
References: <240e0ce5-e062-4fbf-81fa-39fa37764708n@googlegroups.com>
<e1bb2519-1bc1-4f77-a3e0-c790d0011a17n@googlegroups.com> <94e0cde2-ca56-44fc-8f7e-c4bbc55761b1n@googlegroups.com>
<d3415911-66dc-40cb-820a-dbc81809e765n@googlegroups.com> <5e41f288-e7a4-4945-9679-5cc9432989f5n@googlegroups.com>
<eb5dc538-21b8-4cf7-a37e-6bec5411598fn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <02ad58b2-db4c-427b-96fa-09bb074b18c2n@googlegroups.com>
Subject: Re: This isn't working
From: bill.sloman@ieee.org (Anthony William Sloman)
Injection-Date: Thu, 01 Feb 2024 03:41:01 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3529
 by: Anthony William Slom - Thu, 1 Feb 2024 03:41 UTC

On Thursday, February 1, 2024 at 3:05:28 AM UTC+11, Fred Bloggs wrote:
> On Wednesday, January 31, 2024 at 12:03:22 AM UTC-5, Anthony William Sloman wrote:
> > On Wednesday, January 31, 2024 at 1:34:32 PM UTC+11, Fred Bloggs wrote:
> > > On Tuesday, January 30, 2024 at 6:48:52 PM UTC-5, Anthony William Sloman wrote:
> > > > On Wednesday, January 31, 2024 at 12:15:11 AM UTC+11, Anthony William Sloman wrote:
> > > > > On Monday, January 29, 2024 at 4:14:25 AM UTC+11, rhor...@gmail.com wrote:

<snip>

> > > > > https://www.tutorialspoint.com/vlsi_design/vlsi_design_sequential_mos_logic_circuits.htm
> > > > >
> > > > > It isn't going to be as cheap or as simple as what you've tried, but it is designable.
> > > >
> > > > It might pay you to put in a second battery to power simple CMOS logic. A 9V lithium iron phosphate battery has a ten year life and 9V is compatible with standard CMOS and high enough to turn on a big MOS-Fet - I'd go for an N-MOS-Fet, They tend to be cheaper if you want to control 10A.
> > > That's just crazy. The circuit in question is Figure 3 here:
> > >
> > > http://www.mosaic-industries.com/embedded-systems/microcontroller-projects/electronic-circuits/push-button-switch-turn-on/latching-toggle-power-switch
> > >
> > > That circuit is a latch as good as any can be done with logic.
> >
> > He hasn't been able to make it work. Using a few more parts that can be configured to behave reliably isn't remotely crazy.
>
> He couldn't pour piss out of a boot if the directions were written on the heel...

That isn't an accurate or constructive observation. Brilliant people can get the circuit behavior they want out of very few parts. There aren't many of them.
The rest of us use a few more parts to put together circuits which are easier to understand and explain, so the service engineers can fix them when something breaks

--
Bill Sloman, Sydney

Re: This isn't working

<9f5b7899-ec98-4357-8abf-25007711b3b5n@googlegroups.com>

  copy mid

https://news.novabbs.org/tech/article-flat.php?id=134659&group=sci.electronics.design#134659

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:ac8:5905:0:b0:42c:17b2:babd with SMTP id 5-20020ac85905000000b0042c17b2babdmr354772qty.13.1707296646621;
Wed, 07 Feb 2024 01:04:06 -0800 (PST)
X-Received: by 2002:a25:ce14:0:b0:dc7:333e:9b2f with SMTP id
x20-20020a25ce14000000b00dc7333e9b2fmr244588ybe.13.1707296646014; Wed, 07 Feb
2024 01:04:06 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Wed, 7 Feb 2024 01:04:05 -0800 (PST)
In-Reply-To: <e1bb2519-1bc1-4f77-a3e0-c790d0011a17n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=75.15.243.201; posting-account=cinlnAoAAABWWFgc_siC56jRtRTjUix2
NNTP-Posting-Host: 75.15.243.201
References: <240e0ce5-e062-4fbf-81fa-39fa37764708n@googlegroups.com> <e1bb2519-1bc1-4f77-a3e0-c790d0011a17n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <9f5b7899-ec98-4357-8abf-25007711b3b5n@googlegroups.com>
Subject: Re: This isn't working
From: rhorerles@gmail.com (rhor...@gmail.com)
Injection-Date: Wed, 07 Feb 2024 09:04:06 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: rhor...@gmail.com - Wed, 7 Feb 2024 09:04 UTC

On Tuesday, January 30, 2024 at 7:15:11 AM UTC-6, Anthony William Sloman wrote:
> This is much too late to be useful, but you do need to work exactly what you are trying to. The first thing that worries me is that you don't spell out how long the momentary switch closes the contact.
At first blush, one might be inclined to ask, "How long does a finger press any button?" I think I know what you mean, however. Certainly most people pressing a button won't typically be able to reliably close a momentary switch and keep that contact for less than about 50 ms. It should be obvious that anyone who is not an idiot would experiment with closure times, and I am not an idiot. In the simulator, I emulated button closures as short as 1ms and as long as 10 seconds. The design to which I pointed, modified in order to work with the required voltages, cannot work. There may be some PFET transistors that high enough thresholds to allow them to work with voltages this high, but I know of none. Certainly I do not have any.

> You then go on to say you want the same momentary switch to turn off the lamp if you press it when the lamp is on.

Um, yeah, an On / Off switch is a pretty ubiquitous sort of control. Indeed, almost all implementations of switched rotary encoders employ the integrated switch in that way, the fact the encoders have momentary switches notwithstanding.

> Life gets a lot simpler if you set up micropower latch to switch between two states - lamp on and lamp off.

I am not entirely sure what you mean, here. I could use a separate SPST switch to power up the device, but that would use up more real estate on the back of the device, and real estate is quite limited. Not only that, but two separate controls for light power and intensity is a bit strange.
> It's output can drive the transistor ( the FQP47P06 P-channel power MOSFET). If you have separate logic to treat an output from the momenetary contact as a latch toggling input - directing it to at the Set or Reset inputs to an RS latch - the design can be pretty straightforward.

Yes, but this only works if the logic is energized when the device is shut down, or if the logic can be waked up with the momentary switch. The latter is what I have chosen to design using discrete components.

> You can buy a CMOS S/R latch, but even 4000 series CMOS has a maximum voltage rating of 18V.

Precisely. I might be able to beat the quiescent current draw using a clever power supply scheme and micropower logic, but this design uses less than 65 microamps, and that is pretty good, I think.

> It isn't going to be as cheap or as simple as what you've tried, but it is designable.

The design below seems to work pretty well, at least in the simulator. Do you know of something better / simpler? Do you have any ideas for improvement?

http://siliconventures.net/images/Flashlight%20Switch%20Circuit.PNG

Re: This isn't working

<3d58c3a5-b03f-417f-98b0-e4f4616d7c83n@googlegroups.com>

  copy mid

https://news.novabbs.org/tech/article-flat.php?id=134660&group=sci.electronics.design#134660

  copy link   Newsgroups: sci.electronics.design
X-Forwarded-Encrypted: i=1; AJvYcCVfBpP86Swb4XrBBpPOUs260aEMHlXrXRjQOvDCOFRrCk8nlV53TQEmai8Qaw3IE2nYAtZpxsuzkMB6L8yHn9OzGg9SAvAyc5FDi4ORo13KwIZJs1biS43fpeE=
X-Received: by 2002:a05:622a:174b:b0:42c:114d:f157 with SMTP id l11-20020a05622a174b00b0042c114df157mr397826qtk.1.1707315770452;
Wed, 07 Feb 2024 06:22:50 -0800 (PST)
X-Forwarded-Encrypted: i=1; AJvYcCVZINlvMjnAr7Q41xmV+Y8zVt0GW91vTURhcauhugPjysFcriLzriv4uXFWuvsTkKUjmoGhfzM0FO71U0ePRKgMcB8Xqo662Zue8BnHSuSqHVNE6HKUuBkE
X-Received: by 2002:a05:6902:1b86:b0:dc2:4fff:75e9 with SMTP id
ei6-20020a0569021b8600b00dc24fff75e9mr1232256ybb.8.1707315770071; Wed, 07 Feb
2024 06:22:50 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Wed, 7 Feb 2024 06:22:49 -0800 (PST)
In-Reply-To: <9f5b7899-ec98-4357-8abf-25007711b3b5n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=59.102.83.245; posting-account=SJ46pgoAAABuUDuHc5uDiXN30ATE-zi-
NNTP-Posting-Host: 59.102.83.245
References: <240e0ce5-e062-4fbf-81fa-39fa37764708n@googlegroups.com>
<e1bb2519-1bc1-4f77-a3e0-c790d0011a17n@googlegroups.com> <9f5b7899-ec98-4357-8abf-25007711b3b5n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3d58c3a5-b03f-417f-98b0-e4f4616d7c83n@googlegroups.com>
Subject: Re: This isn't working
From: bill.sloman@ieee.org (Anthony William Sloman)
Injection-Date: Wed, 07 Feb 2024 14:22:50 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 6881
 by: Anthony William Slom - Wed, 7 Feb 2024 14:22 UTC

On Wednesday, February 7, 2024 at 8:04:11 PM UTC+11, rhor...@gmail.com wrote:
> On Tuesday, January 30, 2024 at 7:15:11 AM UTC-6, Anthony William Sloman wrote:
> > This is much too late to be useful, but you do need to work exactly what you are trying to. The first thing that worries me is that you don't spell out how long the momentary switch closes the contact.
> >
> At first blush, one might be inclined to ask, "How long does a finger press any button?" I think I know what you mean, however. Certainly most people pressing a button won't typically be able to reliably close a momentary switch and keep that contact for less than about 50 ms. It should be obvious that anyone who is not an idiot would experiment with closure times, and I am not an idiot,

Perhaps, but the the point of my question was that there is going to be a minimum "on" time that the circuit won't be able to detect.
What I had in mind

>In the simulator, I emulated button closures as short as 1ms and as long as 10 seconds.

But did you allow for contact bounce? Most mechanical switches bounce when they first make contact, as the lump of moving bends as it hits the contact, and bounces off again breaking the contact for a few milliseconds after the first make. Dry reed switches do it, and one of the charms of mercury wetted dry-reed switches is that the mercury kills the bounce.,

> The design to which I pointed, modified in order to work with the required voltages, cannot work. There may be some PFET transistors that high enough thresholds to allow them to work with voltages this high, but I know of none. Certainly I do not have any.
>
> > You then go on to say you want the same momentary switch to turn off the lamp if you press it when the lamp is on.
>
> Um, yeah, an On / Off switch is a pretty ubiquitous sort of control. Indeed, almost all implementations of switched rotary encoders employ the integrated switch in that way, the fact the encoders have momentary switches notwithstanding.

But the point was that the switch is quite likely to bounce.

> > Life gets a lot simpler if you set up micropower latch to switch between two states - lamp on and lamp off.
>
> I am not entirely sure what you mean, here. I could use a separate SPST switch to power up the device, but that would use up more real estate on the back of the device, and real estate is quite limited. Not only that, but two separate controls for light power and intensity is a bit strange.

It's just one latch, with two states - "lamp off" and "lamp on". Intensity doesn't come into it. The switch then manipulates the state of the latch, and the latch controls the current through the lamp.

> > It's output can drive the transistor ( the FQP47P06 P-channel power MOSFET). If you have separate logic to treat an output from the momenetary contact as a latch toggling input - directing it to at the Set or Reset inputs to an RS latch - the design can be pretty straightforward.

> Yes, but this only works if the logic is energized when the device is shut down, or if the logic can be waked up with the momentary switch. The latter is what I have chosen to design using discrete components.

The latch can be continously energised. Static CMOS logic draws only it's leakage current which would be less than the self-discharge current of the battery.

Leakage current specification for CMOS are a lot higher than devices actually draw. It takes time to measure a low leakage current, and the manufacturers minimise testing time by picking a current that they can be certain the device meets while not spending too much time on it.

> You can buy a CMOS S/R latch, but even 4000 series CMOS has a maximum voltage rating of 18V.
>
> Precisely. I might be able to beat the quiescent current draw using a clever power supply scheme and micropower logic, but this design uses less than 65 microamps, and that is pretty good, I think.

Pity it didn't work.

> > It isn't going to be as cheap or as simple as what you've tried, but it is designable.
> The design below seems to work pretty well, at least in the simulator. Do you know of something better / simpler? Do you have any ideas for improvement?
>
> http://siliconventures.net/images/Flashlight%20Switch%20Circuit.PNG

It's a mess. If I put it into LTSpice I could form an opinion, but I'm not going to bother. If you did, post the .asc file as a string of text - we do that here regularly - and I will play with it, and probably redraw the circuit in a way that made it more intelligible. Service engineers get snotty if you don't.
The "Arduino" symbol is particularly opaque. The BC846PWD dual transistor is merely drawn in a thoroughly confusing way, Both bases and both emitters are tied together but you have drawn the part in a way that obscures these connections. Stacking the transistors one above the other would let you make this obvious, but you've slavishly copied the symbol from the data sheet and made life much more difficult for the reader than it needed to be.

--
Bill Sloman, Sydney

Re: This isn't working

<17984106-3770-41cd-adcd-39d24d961e3cn@googlegroups.com>

  copy mid

https://news.novabbs.org/tech/article-flat.php?id=134670&group=sci.electronics.design#134670

  copy link   Newsgroups: sci.electronics.design
X-Forwarded-Encrypted: i=1; AJvYcCWemJLHh3Hx5/zMCT5TBIvfRD7aBlTjgbU03F9cB94eF5FOnVwEogB3EqKtMbSS1T1SsI4BN8Bp1irOl4CECrUD7DIUE7OP7PHqXDnLBoR6wdc0ISpJ+AF4Qyo=
X-Received: by 2002:a05:622a:4f:b0:42c:3f14:7dd5 with SMTP id y15-20020a05622a004f00b0042c3f147dd5mr203754qtw.12.1707329291391;
Wed, 07 Feb 2024 10:08:11 -0800 (PST)
X-Forwarded-Encrypted: i=1; AJvYcCWSOMmZCWYQSGzhPJLwL8WZWms3IKdmYRDHQbWfVG7yCbP8nDeOIOu5I342YIAe8hodxCVCTuFlAS0i+STPGve+PtyokhyvrkKDmHmDUs2fdYOwjlvt2sRj
X-Received: by 2002:a05:6902:1b0f:b0:dc6:e90a:7f23 with SMTP id
eh15-20020a0569021b0f00b00dc6e90a7f23mr1364873ybb.13.1707329291130; Wed, 07
Feb 2024 10:08:11 -0800 (PST)
Path: i2pn2.org!i2pn.org!newsfeed.endofthelinebbs.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Wed, 7 Feb 2024 10:08:10 -0800 (PST)
In-Reply-To: <9f5b7899-ec98-4357-8abf-25007711b3b5n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=209.221.140.126; posting-account=vKQm_QoAAADOaDCYsqOFDAW8NJ8sFHoE
NNTP-Posting-Host: 209.221.140.126
References: <240e0ce5-e062-4fbf-81fa-39fa37764708n@googlegroups.com>
<e1bb2519-1bc1-4f77-a3e0-c790d0011a17n@googlegroups.com> <9f5b7899-ec98-4357-8abf-25007711b3b5n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <17984106-3770-41cd-adcd-39d24d961e3cn@googlegroups.com>
Subject: Re: This isn't working
From: whit3rd@gmail.com (whit3rd)
Injection-Date: Wed, 07 Feb 2024 18:08:11 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2757
 by: whit3rd - Wed, 7 Feb 2024 18:08 UTC

On Wednesday, February 7, 2024 at 1:04:11 AM UTC-8, rhor...@gmail.com wrote:

> Um, yeah, an On / Off switch is a pretty ubiquitous sort of control. Indeed, almost all implementations of switched rotary encoders employ the integrated switch in that way, the fact the encoders have momentary switches notwithstanding.

> The design below seems to work pretty well, at least in the simulator. Do you know of something better / simpler? Do you have any ideas for improvement?
>
> http://siliconventures.net/images/Flashlight%20Switch%20Circuit.PNG

Whoa, that's a lot. Couldn't you use something more HV-suitable as a switch, like
an SCR? Two transistors and it has momentary-ON solved, and if you crowbar the
SCR it turns off (yet another momentary switch can do that).
To make a latch-like device, you can do the Eccles-Jordan thing with
two identical transconductors cross-coupled, or the Schmitt trigger with emitter coupling, or
the SCR with one NPN and one PNP.

To momentary switch, the SCR is really quite convenient, uses the load current to keep it
active instead of steady power-supply drain.

Re: This isn't working

<f8aca456-091a-4879-8861-f40c4b111936n@googlegroups.com>

  copy mid

https://news.novabbs.org/tech/article-flat.php?id=134706&group=sci.electronics.design#134706

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:a05:622a:649:b0:42c:44b4:3c6f with SMTP id a9-20020a05622a064900b0042c44b43c6fmr158510qtb.3.1707359982088;
Wed, 07 Feb 2024 18:39:42 -0800 (PST)
X-Received: by 2002:a05:6902:e01:b0:dc6:e3c4:c0cf with SMTP id
df1-20020a0569020e0100b00dc6e3c4c0cfmr1637817ybb.2.1707359981624; Wed, 07 Feb
2024 18:39:41 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Wed, 7 Feb 2024 18:39:41 -0800 (PST)
In-Reply-To: <e4d8b051-4150-468f-a8e5-ddc2edc93e9en@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=59.102.83.245; posting-account=SJ46pgoAAABuUDuHc5uDiXN30ATE-zi-
NNTP-Posting-Host: 59.102.83.245
References: <240e0ce5-e062-4fbf-81fa-39fa37764708n@googlegroups.com>
<e1bb2519-1bc1-4f77-a3e0-c790d0011a17n@googlegroups.com> <9f5b7899-ec98-4357-8abf-25007711b3b5n@googlegroups.com>
<3d58c3a5-b03f-417f-98b0-e4f4616d7c83n@googlegroups.com> <e4d8b051-4150-468f-a8e5-ddc2edc93e9en@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f8aca456-091a-4879-8861-f40c4b111936n@googlegroups.com>
Subject: Re: This isn't working
From: bill.sloman@ieee.org (Anthony William Sloman)
Injection-Date: Thu, 08 Feb 2024 02:39:42 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2724
 by: Anthony William Slom - Thu, 8 Feb 2024 02:39 UTC

On Thursday, February 8, 2024 at 5:47:43 AM UTC+11, Fred Bloggs wrote:
> On Wednesday, February 7, 2024 at 9:22:55 AM UTC-5, Anthony William Sloman wrote:
> > On Wednesday, February 7, 2024 at 8:04:11 PM UTC+11, rhor...@gmail.com wrote:
> > > On Tuesday, January 30, 2024 at 7:15:11 AM UTC-6, Anthony William Sloman wrote:

<snip>

> > The "Arduino" symbol is particularly opaque. The BC846PWD dual transistor is merely drawn in a thoroughly confusing way, Both bases and both emitters are tied together but you have drawn the part in a way that obscures these connections. Stacking the transistors one above the other would let you make this obvious, but you've slavishly copied the symbol from the data sheet and made life much more difficult for the reader than it needed to be.
>
> That's not a latch.

Why would you think it was? In fact the two complementary transistors involved steer the current from switch in one two different directions depending on the state of the circuit (which depends on the time since the last switch closure). There may be a latch function embedded in the circuit - as the OP claims - but I'm not interested enough to dig into that mess to try and find it.

--
Bill Sloman, Sydney

Re: This isn't working

<uq1o2g$1h0bk$1@solani.org>

  copy mid

https://news.novabbs.org/tech/article-flat.php?id=134708&group=sci.electronics.design#134708

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!newsfeed.endofthelinebbs.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: alien@comet.invalid (Jan Panteltje)
Newsgroups: sci.electronics.design
Subject: Re: This isn't working
Date: Thu, 08 Feb 2024 05:15:59 GMT
Message-ID: <uq1o2g$1h0bk$1@solani.org>
References: <240e0ce5-e062-4fbf-81fa-39fa37764708n@googlegroups.com> <e1bb2519-1bc1-4f77-a3e0-c790d0011a17n@googlegroups.com> <9f5b7899-ec98-4357-8abf-25007711b3b5n@googlegroups.com> <17984106-3770-41cd-adcd-39d24d961e3cn@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; ISO-8859-15
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 8 Feb 2024 05:16:00 -0000 (UTC)
Injection-Info: solani.org;
logging-data="1606004"; mail-complaints-to="abuse@news.solani.org"
User-Agent: NewsFleX-1.5.7.5 (Linux-5.15.32-v7l+)
Cancel-Lock: sha1:10KMG1oUsLuXBaU/6N8EvTFlU7M=
X-User-ID: eJwNysEBwCAIA8CVEEzAcUBk/xHaex+Mi9c3wY3BSHRQM2PUKKcOevJqVR6XftezxHKzWp/hfxQxYGEi3lA+YmkVtw==
X-Newsreader-location: NewsFleX-1.5.7.5 (c) 'LIGHTSPEED' off line news reader for the Linux platform
NewsFleX homepage: http://www.panteltje.nl/panteltje/newsflex/ and ftp download ftp://sunsite.unc.edu/pub/linux/system/news/readers/
 by: Jan Panteltje - Thu, 8 Feb 2024 05:15 UTC

On a sunny day (Wed, 7 Feb 2024 10:08:10 -0800 (PST)) it happened whit3rd
<whit3rd@gmail.com> wrote in
<17984106-3770-41cd-adcd-39d24d961e3cn@googlegroups.com>:

>On Wednesday, February 7, 2024 at 1:04:11 AM UTC-8, rhor...@gmail.c=
>om wrote:
>
>> Um, yeah, an On / Off switch is a pretty ubiquitous sort of control. Inde=
>ed, almost all implementations of switched rotary encoders employ the integ=
>rated switch in that way, the fact the encoders have momentary switches not=
>withstanding.
>
>> The design below seems to work pretty well, at least in the simulator. Do=
> you know of something better / simpler? Do you have any ideas for improvem=
>ent?
>>
>> http://siliconventures.net/images/Flashlight%20Switch%20Circuit.PNG
>
>Whoa, that's a lot. Couldn't you use something more HV-suitable as a swit=
>ch, like
>an SCR? Two transistors and it has momentary-ON solved, and if you crowba=
>r the
>SCR it turns off (yet another momentary switch can do that).
>To make a latch-like device, you can do the Eccles-Jordan thing with
>two identical transconductors cross-coupled, or the Schmitt trigger with em=
>itter coupling, or
>the SCR with one NPN and one PNP.
>
>To momentary switch, the SCR is really quite convenient, uses the load cur=
>rent to keep it
>active instead of steady power-supply drain.

I do not have the original post, but for a toggle you could use a CMOS D-flipflop
inverted Q output to the D input, switch with debounce capacitor between ground
to clock input, resistor of a few hundred k to the chip's + that is
powered from the input via a zener and resistor.
The output can then do something like this via for example an opto-coupler
or any other way f course.:
https://panteltje.nl/panteltje/cb/tx_power_switch2.jpg
Or just use a Microchip PIC.

Re: This isn't working

<19892fb3-0f9c-488e-8b97-77d84a23b30dn@googlegroups.com>

  copy mid

https://news.novabbs.org/tech/article-flat.php?id=134709&group=sci.electronics.design#134709

  copy link   Newsgroups: sci.electronics.design
X-Forwarded-Encrypted: i=1; AJvYcCUzbh+MnDWfMJZiXExReaeL8LK2nZAwoDnHrkSoDf6b98bC8HqsqDi/YDxN5satLEmt4NfRGRWmWRcTVx44yb+QHhrAXjRxsd9VWODdzhvNJWX+AjtiE0JPbRQ=
X-Received: by 2002:a05:622a:144d:b0:42c:394c:25ad with SMTP id v13-20020a05622a144d00b0042c394c25admr368320qtx.4.1707377216685;
Wed, 07 Feb 2024 23:26:56 -0800 (PST)
X-Forwarded-Encrypted: i=1; AJvYcCUbrigCRXDxItcH+NEsIMSc0MnKCCyr3yDmDzjYsUqE1uH2yoymLtd5RzwERpuFpRQzBn0FeX12c0sm7tU2ImFwsVDpS83x6Wf1TRHO7MxyU3KKajsRuQxM
X-Received: by 2002:a81:5291:0:b0:604:9b11:ff2 with SMTP id
g139-20020a815291000000b006049b110ff2mr680814ywb.6.1707377216400; Wed, 07 Feb
2024 23:26:56 -0800 (PST)
Path: i2pn2.org!i2pn.org!news.chmurka.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Wed, 7 Feb 2024 23:26:56 -0800 (PST)
In-Reply-To: <uq1o2g$1h0bk$1@solani.org>
Injection-Info: google-groups.googlegroups.com; posting-host=59.102.83.245; posting-account=SJ46pgoAAABuUDuHc5uDiXN30ATE-zi-
NNTP-Posting-Host: 59.102.83.245
References: <240e0ce5-e062-4fbf-81fa-39fa37764708n@googlegroups.com>
<e1bb2519-1bc1-4f77-a3e0-c790d0011a17n@googlegroups.com> <9f5b7899-ec98-4357-8abf-25007711b3b5n@googlegroups.com>
<17984106-3770-41cd-adcd-39d24d961e3cn@googlegroups.com> <uq1o2g$1h0bk$1@solani.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <19892fb3-0f9c-488e-8b97-77d84a23b30dn@googlegroups.com>
Subject: Re: This isn't working
From: bill.sloman@ieee.org (Anthony William Sloman)
Injection-Date: Thu, 08 Feb 2024 07:26:56 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 2856
 by: Anthony William Slom - Thu, 8 Feb 2024 07:26 UTC

On Thursday, February 8, 2024 at 4:16:07 PM UTC+11, Jan Panteltje wrote:
> On a sunny day (Wed, 7 Feb 2024 10:08:10 -0800 (PST)) it happened whit3rd <whi...@gmail.com> wrote in <17984106-3770-41cd...@googlegroups.com>:
> >On Wednesday, February 7, 2024 at 1:04:11 AM UTC-8, rhor...@gmail.com wrote:

<snip>

> I do not have the original post, but for a toggle you could use a CMOS D-flipflop
> inverted Q output to the D input, switch with debounce capacitor between ground
> to clock input, resistor of a few hundred k to the chip's + that is
> powered from the input via a zener and resistor.
> The output can then do something like this via for example an opto-coupler
> or any other way f course.:
> https://panteltje.nl/panteltje/cb/tx_power_switch2.jpg
> Or just use a Microchip PIC.

The power supply is a 19V to 25V battery and the OP didn't want the control to draw current when the lamp wasn't lit.

CMOS is limited to an 18V maximum rail voltage. I proposed throwing in a 9V lithium iron phosphate cell just to manage the on/off switching, but that didn't go down well.

--
Bill Sloman, Sydney

Re: This isn't working

<3518fa8e-c131-490c-8672-b10795f1ed49n@googlegroups.com>

  copy mid

https://news.novabbs.org/tech/article-flat.php?id=134755&group=sci.electronics.design#134755

  copy link   Newsgroups: sci.electronics.design
X-Received: by 2002:a0c:f84a:0:b0:68c:d531:f48c with SMTP id g10-20020a0cf84a000000b0068cd531f48cmr5609qvo.2.1707485778542;
Fri, 09 Feb 2024 05:36:18 -0800 (PST)
X-Received: by 2002:a25:7494:0:b0:dc6:ed4c:e92b with SMTP id
p142-20020a257494000000b00dc6ed4ce92bmr340635ybc.8.1707485778221; Fri, 09 Feb
2024 05:36:18 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!panix!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Fri, 9 Feb 2024 05:36:17 -0800 (PST)
In-Reply-To: <df7744b9-1137-40f9-99d3-91bcab4e1411n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=59.102.83.245; posting-account=SJ46pgoAAABuUDuHc5uDiXN30ATE-zi-
NNTP-Posting-Host: 59.102.83.245
References: <240e0ce5-e062-4fbf-81fa-39fa37764708n@googlegroups.com>
<e1bb2519-1bc1-4f77-a3e0-c790d0011a17n@googlegroups.com> <9f5b7899-ec98-4357-8abf-25007711b3b5n@googlegroups.com>
<3d58c3a5-b03f-417f-98b0-e4f4616d7c83n@googlegroups.com> <e4d8b051-4150-468f-a8e5-ddc2edc93e9en@googlegroups.com>
<f8aca456-091a-4879-8861-f40c4b111936n@googlegroups.com> <df7744b9-1137-40f9-99d3-91bcab4e1411n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3518fa8e-c131-490c-8672-b10795f1ed49n@googlegroups.com>
Subject: Re: This isn't working
From: bill.sloman@ieee.org (Anthony William Sloman)
Injection-Date: Fri, 09 Feb 2024 13:36:18 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3943
 by: Anthony William Slom - Fri, 9 Feb 2024 13:36 UTC

On Friday, February 9, 2024 at 10:59:02 PM UTC+11, Fred Bloggs wrote:
> On Wednesday, February 7, 2024 at 9:39:46 PM UTC-5, Anthony William Sloman wrote:
> > On Thursday, February 8, 2024 at 5:47:43 AM UTC+11, Fred Bloggs wrote:
> > > On Wednesday, February 7, 2024 at 9:22:55 AM UTC-5, Anthony William Sloman wrote:
> > > > On Wednesday, February 7, 2024 at 8:04:11 PM UTC+11, rhor....@gmail.com wrote:
> > > > > On Tuesday, January 30, 2024 at 7:15:11 AM UTC-6, Anthony William Sloman wrote:
> > <snip>
> > > > The "Arduino" symbol is particularly opaque. The BC846PWD dual transistor is merely drawn in a thoroughly confusing way, Both bases and both emitters are tied together but you have drawn the part in a way that obscures these connections. Stacking the transistors one above the other would let you make this obvious, but you've slavishly copied the symbol from the data sheet and made life much more difficult for the reader than it needed to be.
> > >
> > > That's not a latch.
> >
> > Why would you think it was? In fact the two complementary transistors involved steer the current from switch in one two different directions depending on the state of the circuit (which depends on the time since the last switch closure). There may be a latch function embedded in the circuit - as the OP claims - but I'm not interested enough to dig into that mess to try and find it.
>
> Okay, so turning a flashlight on and off is getting beyond you these days..

Ridiculously complicated scheme for doing it do exist to be simplified. There's not a lot of point in analysing such scheme, and the original poster doesn't seem to be persuaded that he ought to do it. Your claim that the "circuit isn't a latch" wasn't backed up by any kind of analysis.

The circuit diagram he posted was crawling with big capacitors and large resistors, most of which are likely to be unnecessary. It's a hard -to-comprehend mess, and he really should try to do better.

This is exactly the kind of "design" that needs to be ripped up and replaced by something better.

My suggestion was to use the momentary switch to toggle an explicit latch, but the off-shelf parts you'd buy in to do that won't survive a 19V to 25V supply voltage.

--
Bill Sloman, Sydney

Re: This isn't working

<4ca05d94-d5f7-446e-8acd-216703eda3d2n@googlegroups.com>

  copy mid

https://news.novabbs.org/tech/article-flat.php?id=134777&group=sci.electronics.design#134777

  copy link   Newsgroups: sci.electronics.design
X-Forwarded-Encrypted: i=1; AJvYcCV9o/JVM/89PFScBpvh/kJC1//ZyXDiT0JpxbPJAr/pu6TB0DLwZRIesBf8Sn54Nj2DVgu5UVqHtxixPLoWtkAJmsPE3xT6iiRMb4+h/Weckc74UuY44MR+d8U=
X-Received: by 2002:a05:6214:2466:b0:68c:6cbd:79d4 with SMTP id im6-20020a056214246600b0068c6cbd79d4mr9617qvb.11.1707509846385;
Fri, 09 Feb 2024 12:17:26 -0800 (PST)
X-Forwarded-Encrypted: i=1; AJvYcCWRLlMABL2jGFxCct2cW9ChSzbkZ+JyP4FPlo8uwg+IukOmd8HjGaP1drHyyDLkgVwJ57MVBrnonXSVOwWP//PCfClUw9zbTrCrSv5KgOmPb7X3ddiNC4Ge
X-Received: by 2002:a05:6902:723:b0:dbe:d0a9:2be3 with SMTP id
l3-20020a056902072300b00dbed0a92be3mr50518ybt.3.1707509846092; Fri, 09 Feb
2024 12:17:26 -0800 (PST)
Path: i2pn2.org!i2pn.org!newsfeed.endofthelinebbs.com!weretis.net!feeder6.news.weretis.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: sci.electronics.design
Date: Fri, 9 Feb 2024 12:17:25 -0800 (PST)
In-Reply-To: <17984106-3770-41cd-adcd-39d24d961e3cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=209.221.140.126; posting-account=vKQm_QoAAADOaDCYsqOFDAW8NJ8sFHoE
NNTP-Posting-Host: 209.221.140.126
References: <240e0ce5-e062-4fbf-81fa-39fa37764708n@googlegroups.com>
<e1bb2519-1bc1-4f77-a3e0-c790d0011a17n@googlegroups.com> <9f5b7899-ec98-4357-8abf-25007711b3b5n@googlegroups.com>
<17984106-3770-41cd-adcd-39d24d961e3cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4ca05d94-d5f7-446e-8acd-216703eda3d2n@googlegroups.com>
Subject: Re: This isn't working
From: whit3rd@gmail.com (whit3rd)
Injection-Date: Fri, 09 Feb 2024 20:17:26 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3035
 by: whit3rd - Fri, 9 Feb 2024 20:17 UTC

On Wednesday, February 7, 2024 at 10:08:15 AM UTC-8, whit3rd wrote:
> On Wednesday, February 7, 2024 at 1:04:11 AM UTC-8, rhor...@gmail..com wrote:
>
> > Um, yeah, an On / Off switch is a pretty ubiquitous sort of control. Indeed, almost all implementations of switched rotary encoders employ the integrated switch in that way, the fact the encoders have momentary switches notwithstanding.
> > The design below ...? Do you have any ideas for improvement?
> >
> > http://siliconventures.net/images/Flashlight%20Switch%20Circuit.PNG
> Whoa, that's a lot. Couldn't you use something more HV-suitable as a switch, like
> an SCR?

This is the SCR equivalent circuit, that takes high-side switching to put current into the
gate for turn-on of a low-side SCR. Just connect to the PNP base and the same
circuit does high-side turn on in response to a momentary low-side ground connection.

http://electronic-projects.50webs.com/transistor-circuit-substitute-for-scr..htm>

> To momentary switch, the SCR is really quite convenient, uses the load current to keep it
> active instead of steady power-supply drain.

Alas, while that solves turn-on of HV DC system, it isn't easy to turn off.
Gate turnoff is possible, but traditionally shunned (Sony televisions were notorious
a while because of that).

Re: This isn't working

<uqbcf3$149et$1@dont-email.me>

  copy mid

https://news.novabbs.org/tech/article-flat.php?id=134856&group=sci.electronics.design#134856

  copy link   Newsgroups: sci.electronics.design
Path: i2pn2.org!i2pn.org!news.furie.org.uk!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: erichpwagner@hotmail.com (piglet)
Newsgroups: sci.electronics.design
Subject: Re: This isn't working
Date: Sun, 11 Feb 2024 20:59:15 +0000
Organization: A noisesome patent Spinner
Lines: 52
Message-ID: <uqbcf3$149et$1@dont-email.me>
References: <240e0ce5-e062-4fbf-81fa-39fa37764708n@googlegroups.com>
<e1bb2519-1bc1-4f77-a3e0-c790d0011a17n@googlegroups.com>
<9f5b7899-ec98-4357-8abf-25007711b3b5n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 11 Feb 2024 20:59:15 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d79bc94cd9aa339a7681d087854c7696";
logging-data="1189341"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19RAhvnm6RIBsmCLm1/+xgi"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Q8N08ya621zykpM5jz+pv0J882g=
Content-Language: en-GB
In-Reply-To: <9f5b7899-ec98-4357-8abf-25007711b3b5n@googlegroups.com>
 by: piglet - Sun, 11 Feb 2024 20:59 UTC

On 07/02/2024 9:04 am, rhor...@gmail.com wrote:
> On Tuesday, January 30, 2024 at 7:15:11 AM UTC-6, Anthony William Sloman wrote:
>> This is much too late to be useful, but you do need to work exactly what you are trying to. The first thing that worries me is that you don't spell out how long the momentary switch closes the contact.
> At first blush, one might be inclined to ask, "How long does a finger press any button?" I think I know what you mean, however. Certainly most people pressing a button won't typically be able to reliably close a momentary switch and keep that contact for less than about 50 ms. It should be obvious that anyone who is not an idiot would experiment with closure times, and I am not an idiot. In the simulator, I emulated button closures as short as 1ms and as long as 10 seconds. The design to which I pointed, modified in order to work with the required voltages, cannot work. There may be some PFET transistors that high enough thresholds to allow them to work with voltages this high, but I know of none. Certainly I do not have any.
>
>> You then go on to say you want the same momentary switch to turn off the lamp if you press it when the lamp is on.
>
> Um, yeah, an On / Off switch is a pretty ubiquitous sort of control. Indeed, almost all implementations of switched rotary encoders employ the integrated switch in that way, the fact the encoders have momentary switches notwithstanding.
>
>> Life gets a lot simpler if you set up micropower latch to switch between two states - lamp on and lamp off.
>
> I am not entirely sure what you mean, here. I could use a separate SPST switch to power up the device, but that would use up more real estate on the back of the device, and real estate is quite limited. Not only that, but two separate controls for light power and intensity is a bit strange.
>
>> It's output can drive the transistor ( the FQP47P06 P-channel power MOSFET). If you have separate logic to treat an output from the momenetary contact as a latch toggling input - directing it to at the Set or Reset inputs to an RS latch - the design can be pretty straightforward.
>
> Yes, but this only works if the logic is energized when the device is shut down, or if the logic can be waked up with the momentary switch. The latter is what I have chosen to design using discrete components.
>
>> You can buy a CMOS S/R latch, but even 4000 series CMOS has a maximum voltage rating of 18V.
>
> Precisely. I might be able to beat the quiescent current draw using a clever power supply scheme and micropower logic, but this design uses less than 65 microamps, and that is pretty good, I think.
>
>> It isn't going to be as cheap or as simple as what you've tried, but it is designable.
>
> The design below seems to work pretty well, at least in the simulator. Do you know of something better / simpler? Do you have any ideas for improvement?
>
> http://siliconventures.net/images/Flashlight%20Switch%20Circuit.PNG
>
>
>

Your X1 complementary NPN/PNP voltage follower has the bases floating
when the button isn't pressed, they could pickup noise.

The button current is very low and may not be enough to make good
contact with time and corrosion, many precious metal contacts have some
minimum operating current.

The zener D4 will almost certainly be horribly leaky at those micro-amp
currents and not work the way you expect.

Here is one way of doing something similar, using a NPN/PNP latch
triggered by a short button press but reset on an extended button press.
The standby current is zero. The button current can be many milliamps to
tolerate dirty or worn contacts. I separated the latch from the PMOS
load switch but you might be able to combine and eliminate the PNP - I
wasn't sure if the load had a lot of capacitance etc.

<https://www.dropbox.com/scl/fi/bzpwmh1m6qbsw0u74ue02/SED_ON_OFF_LATCH.jpg?rlkey=b6ybeho26r0l7vd1kwk901wdf&raw=1>

piglet

Pages:12
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor