On Wednesday, February 1, 2023 at 6:05:38 AM UTC-8, Ricky wrote:
> On Wednesday, February 1, 2023 at 4:45:13 AM UTC-4, whit3rd wrote:
> > On Tuesday, January 31, 2023 at 11:29:28 PM UTC-8, Ricky wrote:
> > > On Wednesday, February 1, 2023 at 1:19:09 AM UTC-4, whit3rd wrote:
> > > > On Tuesday, January 31, 2023 at 2:46:30 AM UTC-8, John Walliker wrote:
> >
> > > > > >
http://siliconventures.net/images/Flashlight%20Switch.PNG
> > > > > >
> > > > > > I don't know if there is a better solution than the opto-coupler, but it is definitely a quick and easy solution to interface with the Arduino.
> > > >
> > > > > Won't the phototransistor get unhappy with reverse bias?
> > > > I'm not seeing any way C1 can pull down the phototransistor emitter; the DC bias doesn't work with
> > > > the connections as shown.
> > > I don't follow. The only thing the phototransistor can do is pull down the gate of X2 when activated. That will let the Arduino turn off the power source. Because the phototransistor is bipolar, it won't be able to pull up on the X2 gate to turn on the power source. I'm not sure how C1 limits anything. It provides the current to drive the X2 gate (over driving R3 for a moment) until the circuit can switch. It also debounces the push button.
> > If the C1 capacitor starts at 25V bias, when does it ever drop to lower voltage? How much
> > lower? Do you expect to pull down that emitter on the optoisolator through the load, with reverse-breakdown
> > of the base-emitter?
> When the power controller is off, the cap is charged to the incoming voltage. When the controller is on, the gate of X1 is pulled low by X2 and the cap is discharged to ground through X2.
>
> This is essentially the same circuit as one made with a pair of inverters in a loop, forming a bistable device.
AHA, I see it now. I was thinking this was a flip-flop of the usual type, two PMOS or two NMOS,
rather than one of each. I didn't see all the arrows.