Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #510343 > unrolled thread
| Started by | RichD <r_delaney2001@yahoo.com> |
|---|---|
| First post | 2018-07-07 18:26 -0700 |
| Last post | 2018-07-19 07:53 -0700 |
| Articles | 20 on this page of 43 — 14 participants |
Back to article view | Back to sci.electronics.design
low cost challenge RichD <r_delaney2001@yahoo.com> - 2018-07-07 18:26 -0700
Re: low cost challenge bitrex <user@example.net> - 2018-07-07 22:07 -0400
Re: low cost challenge bitrex <user@example.net> - 2018-07-07 22:15 -0400
Re: low cost challenge krw@notreal.com - 2018-07-07 22:17 -0400
Re: low cost challenge Jeff Liebermann <jeffl@cruzio.com> - 2018-07-07 22:43 -0700
Re: low cost challenge bitrex <user@example.net> - 2018-07-08 02:11 -0400
Re: low cost challenge bitrex <user@example.net> - 2018-07-08 02:30 -0400
Re: low cost challenge Jeff Liebermann <jeffl@cruzio.com> - 2018-07-08 11:39 -0700
Re: low cost challenge bitrex <user@example.net> - 2018-07-08 17:12 -0400
Re: low cost challenge krw@notreal.com - 2018-07-08 18:46 -0400
Re: low cost challenge Jeff Liebermann <jeffl@cruzio.com> - 2018-07-09 00:49 -0700
Re: low cost challenge krw@notreal.com - 2018-07-09 23:04 -0400
Re: low cost challenge piglet <erichpwagner@hotmail.com> - 2018-07-09 09:40 +0100
Re: low cost challenge tabbypurr@gmail.com - 2018-07-08 00:39 -0700
Re: low cost challenge bitrex <user@example.net> - 2018-07-08 09:27 -0400
Re: low cost challenge tabbypurr@gmail.com - 2018-07-09 00:43 -0700
Re: low cost challenge Clive Arthur <cliveta@nowaytoday.co.uk> - 2018-07-08 15:39 +0100
Re: low cost challenge Cursitor Doom <curd@notformail.com> - 2018-07-08 14:51 +0000
Re: low cost challenge bitrex <user@example.net> - 2018-07-08 11:01 -0400
Re: low cost challenge Cursitor Doom <curd@notformail.com> - 2018-07-08 15:49 +0000
Re: low cost challenge bitrex <user@example.net> - 2018-07-08 11:52 -0400
Re: low cost challenge Cursitor Doom <curd@notformail.com> - 2018-07-08 17:36 +0000
Re: low cost challenge bitrex <user@example.net> - 2018-07-08 13:56 -0400
Re: low cost challenge Jeff Liebermann <jeffl@cruzio.com> - 2018-07-08 12:20 -0700
Re: low cost challenge Tom Gardner <spamjunk@blueyonder.co.uk> - 2018-07-08 21:00 +0100
Re: low cost challenge Jeff Liebermann <jeffl@cruzio.com> - 2018-07-08 14:13 -0700
Re: low cost challenge Jeff Liebermann <jeffl@cruzio.com> - 2018-07-08 10:53 -0700
Re: low cost challenge Jeff Liebermann <jeffl@cruzio.com> - 2018-07-08 13:43 -0700
Re: low cost challenge Clive Arthur <cliveta@nowaytoday.co.uk> - 2018-07-09 09:03 +0100
Re: low cost challenge Winfield Hill <hill@rowland.harvard.edu> - 2018-07-08 09:26 -0700
Re: low cost challenge bitrex <user@example.net> - 2018-07-08 14:14 -0400
Re: low cost challenge Jeff Liebermann <jeffl@cruzio.com> - 2018-07-08 12:10 -0700
Re: low cost challenge "Tim Williams" <tiwill@seventransistorlabs.com> - 2018-07-09 00:08 -0500
Re: low cost challenge bitrex <user@example.net> - 2018-07-09 01:39 -0400
Re: low cost challenge bitrex <user@example.net> - 2018-07-09 15:06 -0400
Re: low cost challenge bitrex <user@example.net> - 2018-07-09 15:08 -0400
Re: low cost challenge Jeff Liebermann <jeffl@cruzio.com> - 2018-07-09 17:01 -0700
Re: low cost challenge bitrex <user@example.net> - 2018-07-09 20:24 -0400
Re: low cost challenge speff <spehro@gmail.com> - 2018-07-10 11:34 -0700
Re: low cost challenge John Larkin <jjlarkin@highlandtechnology.com> - 2018-07-10 21:47 -0700
Re: low cost challenge speff <spehro@gmail.com> - 2018-07-17 13:30 -0700
Re: low cost challenge John Larkin <jjlarkin@highland_snip_technology.com> - 2018-07-17 13:59 -0700
Re: low cost challenge speff <spehro@gmail.com> - 2018-07-19 07:53 -0700
Page 1 of 3 [1] 2 3 Next page →
| From | RichD <r_delaney2001@yahoo.com> |
|---|---|
| Date | 2018-07-07 18:26 -0700 |
| Subject | low cost challenge |
| Message-ID | <5ec7c62a-c296-4e4c-9450-de5e6f4f62e4@googlegroups.com> |
I have a bike light, with a single push button momentary switch. It toggles from off to high beam to low beam to strobe, then off. I figure the design spec is purely manufacturing cost; no performance, precision, etc. What's the solution? Notice that it has 4 states, which implies some kind of memory. IC, or discrete parts? Considering device and assembly costs. And an oscillator, and lamp driver. Powered by two AA batteries. -- Rich
[toc] | [next] | [standalone]
| From | bitrex <user@example.net> |
|---|---|
| Date | 2018-07-07 22:07 -0400 |
| Message-ID | <jle0D.199188$pg3.84285@fx29.iad> |
| In reply to | #510343 |
On 07/07/2018 09:26 PM, RichD wrote: > I have a bike light, with a single push button momentary > switch. It toggles from off to high beam to low beam to > strobe, then off. > > I figure the design spec is purely manufacturing cost; > no performance, precision, etc. > > What's the solution? Notice that it has 4 states, which > implies some kind of memory. IC, or discrete parts? > Considering device and assembly costs. And an oscillator, > and lamp driver. > > Powered by two AA batteries. > > > -- > Rich > The cheapest solution that would produce an actual decent performance lamp would be an ASIC produced in quantities of ten million. In smaller quantities but still in the thousands there are some one time programmable logic mixed-signal ICs that can probably pull it off for like 20 cents each in that quantity barring that cheapest would probably be a 25-50 cent 8 pin microcontroller, every component/function you mention could be done with e.g. an 8 pin AVR 8 bit uP with almost no external components. a couple capacitors and diode for a charge pump and an LED, maybe, and the button.
[toc] | [prev] | [next] | [standalone]
| From | bitrex <user@example.net> |
|---|---|
| Date | 2018-07-07 22:15 -0400 |
| Message-ID | <Wse0D.133889$Kp4.111416@fx43.iad> |
| In reply to | #510349 |
On 07/07/2018 10:07 PM, bitrex wrote: > On 07/07/2018 09:26 PM, RichD wrote: >> I have a bike light, with a single push button momentary >> switch. It toggles from off to high beam to low beam to >> strobe, then off. >> >> I figure the design spec is purely manufacturing cost; >> no performance, precision, etc. >> >> What's the solution? Notice that it has 4 states, which >> implies some kind of memory. IC, or discrete parts? >> Considering device and assembly costs. And an oscillator, >> and lamp driver. >> >> Powered by two AA batteries. >> >> >> -- >> Rich >> > The cheapest solution that would produce an actual decent performance > lamp would be an ASIC produced in quantities of ten million. > > In smaller quantities but still in the thousands there are some one time > programmable logic mixed-signal ICs that can probably pull it off for > like 20 cents each in that quantity > > barring that cheapest would probably be a 25-50 cent 8 pin > microcontroller, every component/function you mention could be done with > e.g. an 8 pin AVR 8 bit uP with almost no external components. a couple > capacitors and diode for a charge pump and an LED, maybe, and the button. > > Don't forget design time as a cost factor. With the uP solution I could have a working prototype of the design coded, uploaded, and up and running on a breadboard in about 20 minutes
[toc] | [prev] | [next] | [standalone]
| From | krw@notreal.com |
|---|---|
| Date | 2018-07-07 22:17 -0400 |
| Message-ID | <pss2kdheb0kpf4uf5h5b6g89oj3cmevjs3@4ax.com> |
| In reply to | #510343 |
On Sat, 7 Jul 2018 18:26:43 -0700 (PDT), RichD <r_delaney2001@yahoo.com> wrote: >I have a bike light, with a single push button momentary >switch. It toggles from off to high beam to low beam to >strobe, then off. > >I figure the design spec is purely manufacturing cost; >no performance, precision, etc. > >What's the solution? Notice that it has 4 states, which >implies some kind of memory. IC, or discrete parts? >Considering device and assembly costs. And an oscillator, >and lamp driver. > >Powered by two AA batteries. How many? Ten or ten million units per year? If on the ten side, a PIC. If on the ten million side, maybe an ASIC but how sure are you of your market?
[toc] | [prev] | [next] | [standalone]
| From | Jeff Liebermann <jeffl@cruzio.com> |
|---|---|
| Date | 2018-07-07 22:43 -0700 |
| Message-ID | <7083kd9sfm8v9ui9kgc0sf9ek26jpbepam@4ax.com> |
| In reply to | #510343 |
On Sat, 7 Jul 2018 18:26:43 -0700 (PDT), RichD <r_delaney2001@yahoo.com> wrote: >I have a bike light, with a single push button momentary >switch. It toggles from off to high beam to low beam to >strobe, then off. > >I figure the design spec is purely manufacturing cost; >no performance, precision, etc. > >What's the solution? Notice that it has 4 states, which >implies some kind of memory. IC, or discrete parts? >Considering device and assembly costs. And an oscillator, >and lamp driver. > >Powered by two AA batteries. What you probably have is a 1 watt LED "flashlight" with an AMC7135 linear current source and a PIC controller to provide PWM (pulse width modulation) for brightness and flashing control. The minimum for a light is one AMC7135 per LED, and a simple on/off switch in series with the batteries. A little better is one AMC7135 per LED, and some kind of PIC or Arduino controller operated by a push button. Since the PIC or Arduino is programmable, you can make the flashlight do weird things: <https://www.sparkfun.com/news/1196> <https://www.kickstarter.com/projects/christian-carlberg/hexbright-an-open-source-light> (Note: Hexbright is closed but you can roll your own). This board controls 4 LED's. <http://www.dankung.com/Gcontent/4groups-amc71358-flashlight-circuit-board-anti-reverse_2142> More on the AMC7135: <https://www.google.com/search?tbm=isch&q=AMC7135> More info under Candle Power Forums: <https://www.candlepowerforums.com/vb/forum.php> and Budget Light Forums: <http://budgetlightforum.com/forum> When you are able to deliver a clear description of what you are planning to design, perhaps I can offer some better suggestions. -- Jeff Liebermann jeffl@cruzio.com 150 Felker St #D http://www.LearnByDestroying.com Santa Cruz CA 95060 http://802.11junk.com Skype: JeffLiebermann AE6KS 831-336-2558
[toc] | [prev] | [next] | [standalone]
| From | bitrex <user@example.net> |
|---|---|
| Date | 2018-07-08 02:11 -0400 |
| Message-ID | <CWh0D.211175$pK.203725@fx13.iad> |
| In reply to | #510363 |
On 07/08/2018 01:43 AM, Jeff Liebermann wrote: > On Sat, 7 Jul 2018 18:26:43 -0700 (PDT), RichD > <r_delaney2001@yahoo.com> wrote: > >> I have a bike light, with a single push button momentary >> switch. It toggles from off to high beam to low beam to >> strobe, then off. >> >> I figure the design spec is purely manufacturing cost; >> no performance, precision, etc. >> >> What's the solution? Notice that it has 4 states, which >> implies some kind of memory. IC, or discrete parts? >> Considering device and assembly costs. And an oscillator, >> and lamp driver. >> >> Powered by two AA batteries. > > What you probably have is a 1 watt LED "flashlight" with an AMC7135 > linear current source and a PIC controller to provide PWM (pulse width > modulation) for brightness and flashing control. The minimum for a > light is one AMC7135 per LED, and a simple on/off switch in series > with the batteries. A little better is one AMC7135 per LED, and some > kind of PIC or Arduino controller operated by a push button. Since > the PIC or Arduino is programmable, you can make the flashlight do > weird things: > <https://www.sparkfun.com/news/1196> > <https://www.kickstarter.com/projects/christian-carlberg/hexbright-an-open-source-light> > (Note: Hexbright is closed but you can roll your own). > > This board controls 4 LED's. > <http://www.dankung.com/Gcontent/4groups-amc71358-flashlight-circuit-board-anti-reverse_2142> > > More on the AMC7135: > <https://www.google.com/search?tbm=isch&q=AMC7135> > > More info under Candle Power Forums: > <https://www.candlepowerforums.com/vb/forum.php> > and Budget Light Forums: > <http://budgetlightforum.com/forum> > > When you are able to deliver a clear description of what you are > planning to design, perhaps I can offer some better suggestions. > Use an 8 pin AVR 8 bit with a multichannel differential ADC along with a low input voltage boost converter with a shutdown pin like the TPS6120. The AVR can high-side current sense its own input supply current with just a sense resistor in the supply bus cuz the ADC input channels can operate up to 0.6 volts over the supply voltage. It can also measure its own supply voltage. With that info you can just hang LEDs off the PWM output pins and drive them "constant voltage" (with high frequency PWM) using one free PWM channel to modulate the shutdown pin to regulate power into the IC. The TPS6120 will operate down to 0.5 volts on its supply input; drain those AAs for everything they have. You could implement some algorithm to match the circuit impedance to the battery impedance to reduce output power gracefully as the batteries are depleted.
[toc] | [prev] | [next] | [standalone]
| From | bitrex <user@example.net> |
|---|---|
| Date | 2018-07-08 02:30 -0400 |
| Message-ID | <Sbi0D.194389$%s2.116779@fx18.iad> |
| In reply to | #510365 |
On 07/08/2018 02:11 AM, bitrex wrote: > On 07/08/2018 01:43 AM, Jeff Liebermann wrote: >> On Sat, 7 Jul 2018 18:26:43 -0700 (PDT), RichD >> <r_delaney2001@yahoo.com> wrote: >> >>> I have a bike light, with a single push button momentary >>> switch. It toggles from off to high beam to low beam to >>> strobe, then off. >>> >>> I figure the design spec is purely manufacturing cost; >>> no performance, precision, etc. >>> >>> What's the solution? Notice that it has 4 states, which >>> implies some kind of memory. IC, or discrete parts? >>> Considering device and assembly costs. And an oscillator, >>> and lamp driver. >>> >>> Powered by two AA batteries. >> >> What you probably have is a 1 watt LED "flashlight" with an AMC7135 >> linear current source and a PIC controller to provide PWM (pulse width >> modulation) for brightness and flashing control. The minimum for a >> light is one AMC7135 per LED, and a simple on/off switch in series >> with the batteries. A little better is one AMC7135 per LED, and some >> kind of PIC or Arduino controller operated by a push button. Since >> the PIC or Arduino is programmable, you can make the flashlight do >> weird things: >> <https://www.sparkfun.com/news/1196> >> <https://www.kickstarter.com/projects/christian-carlberg/hexbright-an-open-source-light> >> >> (Note: Hexbright is closed but you can roll your own). >> >> This board controls 4 LED's. >> <http://www.dankung.com/Gcontent/4groups-amc71358-flashlight-circuit-board-anti-reverse_2142> >> >> >> More on the AMC7135: >> <https://www.google.com/search?tbm=isch&q=AMC7135> >> >> More info under Candle Power Forums: >> <https://www.candlepowerforums.com/vb/forum.php> >> and Budget Light Forums: >> <http://budgetlightforum.com/forum> >> >> When you are able to deliver a clear description of what you are >> planning to design, perhaps I can offer some better suggestions. >> > > > Use an 8 pin AVR 8 bit with a multichannel differential ADC along with a > low input voltage boost converter with a shutdown pin like the TPS6120. > The AVR can high-side current sense its own input supply current with > just a sense resistor in the supply bus cuz the ADC input channels can > operate up to 0.6 volts over the supply voltage. It can also measure its > own supply voltage. > > With that info you can just hang LEDs off the PWM output pins and drive > them "constant voltage" (with high frequency PWM) using one free PWM > channel to modulate the shutdown pin to regulate power into the IC. The > TPS6120 will operate down to 0.5 volts on its supply input; drain those > AAs for everything they have. > > You could implement some algorithm to match the circuit impedance to the > battery impedance to reduce output power gracefully as the batteries are > depleted. Even the boost converter might be redundant, might be able to get away with just an inductor, didoe, FET, and another pin. Nowadays 50 cent uPs often have so much onboard hardware, ADCs, band gaps, dead-time generators, temperature sensors, PWM channels, etc. that in non-critical applications using any other ICs at all should be given the Muntz side-eye.
[toc] | [prev] | [next] | [standalone]
| From | Jeff Liebermann <jeffl@cruzio.com> |
|---|---|
| Date | 2018-07-08 11:39 -0700 |
| Message-ID | <p2k4kdler01p0vu10gcq3hcv3leo414irc@4ax.com> |
| In reply to | #510367 |
On Sun, 8 Jul 2018 02:30:09 -0400, bitrex <user@example.net> wrote: >> Use an 8 pin AVR 8 bit with a multichannel differential ADC along with a >> low input voltage boost converter with a shutdown pin like the TPS6120. >> The AVR can high-side current sense its own input supply current with >> just a sense resistor in the supply bus cuz the ADC input channels can >> operate up to 0.6 volts over the supply voltage. It can also measure its >> own supply voltage. >> >> With that info you can just hang LEDs off the PWM output pins and drive >> them "constant voltage" (with high frequency PWM) using one free PWM >> channel to modulate the shutdown pin to regulate power into the IC. The >> TPS6120 will operate down to 0.5 volts on its supply input; drain those >> AAs for everything they have. >> >> You could implement some algorithm to match the circuit impedance to the >> battery impedance to reduce output power gracefully as the batteries are >> depleted. > >Even the boost converter might be redundant, might be able to get away >with just an inductor, didoe, FET, and another pin. Nowadays 50 cent uPs >often have so much onboard hardware, ADCs, band gaps, dead-time >generators, temperature sensors, PWM channels, etc. that in non-critical >applications using any other ICs at all should be given the Muntz side-eye. I'm not familiar with such devices and can't comment on whether your design scheme will work. However, I did notice a few things that might cause problems. Reducing the output power gracefully by matching impedances isn't efficient and sounds like an analog scheme. Flashlights use PWM (pulse width modulation) to adjust the brightness. Because the pass device is either on or off, but never in between, power dissipation is reduced and battery life is improved. Incidentally, battery life and SoC (state of charge) are important considerations as it would not do to have the battery die in the middle of a nightime bicycle ride. With todays high power LED's, it is possible to design a headlight that is too bright. Besides blinding oncoming traffic, such a light also has a rather short battery life. However, that's todays fashion (driven by the equation more lumens = more sales), and is unlikely to disappear. Higher power LED's implies higher currents and more heat. Keeping the LED's from overheating is a major problem. Your suggest of combining as many functions in the controller is a good one, but is limited by the power dissipation of the controller chip. A low end 1 watt headlight would draw about 270ma from a LiIon cell, which I suspect is more than a controller chip can handle. A series pass FET would probably be required. Higher power lights, that use more than one LED, are often series connected to minimize connector and device current handling requirements. A boost converter would be necessary to run these, but it's cheaper to just add an extra LiIon cell for 2 series LED's. Design of the optics is far more important (and more difficult) than the design of the electronics. The last thing you want is a small bright hot spot directly in front and nothing to the sides or in the distance. I've done some tinkering using ImageJ2 software for displaying how uniform the beam footprint appears on the ground. <http://www.learnbydestroying.com/jeffl/pics/bicycles/Front-Light-False-Color/index.html> If you look at the original B&W photos, the beam pattern looks fairly even. However, add some pseudo color and the variations are much more obvious. -- Jeff Liebermann jeffl@cruzio.com 150 Felker St #D http://www.LearnByDestroying.com Santa Cruz CA 95060 http://802.11junk.com Skype: JeffLiebermann AE6KS 831-336-2558
[toc] | [prev] | [next] | [standalone]
| From | bitrex <user@example.net> |
|---|---|
| Date | 2018-07-08 17:12 -0400 |
| Message-ID | <J6v0D.404816$br4.247668@fx34.iad> |
| In reply to | #510398 |
On 07/08/2018 02:39 PM, Jeff Liebermann wrote: > On Sun, 8 Jul 2018 02:30:09 -0400, bitrex <user@example.net> wrote: >>> Use an 8 pin AVR 8 bit with a multichannel differential ADC along with a >>> low input voltage boost converter with a shutdown pin like the TPS6120. >>> The AVR can high-side current sense its own input supply current with >>> just a sense resistor in the supply bus cuz the ADC input channels can >>> operate up to 0.6 volts over the supply voltage. It can also measure its >>> own supply voltage. >>> >>> With that info you can just hang LEDs off the PWM output pins and drive >>> them "constant voltage" (with high frequency PWM) using one free PWM >>> channel to modulate the shutdown pin to regulate power into the IC. The >>> TPS6120 will operate down to 0.5 volts on its supply input; drain those >>> AAs for everything they have. >>> >>> You could implement some algorithm to match the circuit impedance to the >>> battery impedance to reduce output power gracefully as the batteries are >>> depleted. >> >> Even the boost converter might be redundant, might be able to get away >> with just an inductor, didoe, FET, and another pin. Nowadays 50 cent uPs >> often have so much onboard hardware, ADCs, band gaps, dead-time >> generators, temperature sensors, PWM channels, etc. that in non-critical >> applications using any other ICs at all should be given the Muntz side-eye. > > I'm not familiar with such devices and can't comment on whether your > design scheme will work. However, I did notice a few things that > might cause problems. > > Reducing the output power gracefully by matching impedances isn't > efficient and sounds like an analog scheme. Flashlights use PWM > (pulse width modulation) to adjust the brightness. Because the pass > device is either on or off, but never in between, power dissipation is > reduced and battery life is improved. Incidentally, battery life and > SoC (state of charge) are important considerations as it would not do > to have the battery die in the middle of a nightime bicycle ride. You just power the uP from say 2 AAs -> boost -> 3.3 volts -> high side current sense -> Vcc input - > LEDs hung directly off the uP port pins which have hardware PWM. You know the uP supply voltage, total supply current draw (the bulk of which is being pushed right into the LEDs) the LED equivalent average DC voltages, and possibly even the die temperature. You can do a lot with those pieces of information continually updated in software and you only need 1 external resistor to get it It's the equivalent of an analog feedback loop control scheme but everything is done with PWM/in software, there are no DC control voltages anywhere. > With todays high power LED's, it is possible to design a headlight > that is too bright. Besides blinding oncoming traffic, such a light > also has a rather short battery life. However, that's todays fashion > (driven by the equation more lumens = more sales), and is unlikely to > disappear. Higher power LED's implies higher currents and more heat. > Keeping the LED's from overheating is a major problem. > > Your suggest of combining as many functions in the controller is a > good one, but is limited by the power dissipation of the controller > chip. A low end 1 watt headlight would draw about 270ma from a LiIon > cell, which I suspect is more than a controller chip can handle. A > series pass FET would probably be required. The e.g. TPS6120 mentioned before can do 300 mA at 3.3V output with Vin at 2.4 volts @ around 93% efficiency, and the 8 pin AVRs 40 mA per pin, limited by probably about 1/2 watt dissipation for a DIP package. It can provide that current when it's up and running, but cold and dark LEDs are like a dead short and it'll fall down into say three of them as a load or something. Either the converter or LEDs have to be ramped up but that can also be done via PWMing the shutdown pin. The shutdown pin's response is pretty fast, 10s of uS, maybe. > Higher power lights, that use more than one LED, are often series > connected to minimize connector and device current handling > requirements. A boost converter would be necessary to run these, but > it's cheaper to just add an extra LiIon cell for 2 series LED's. Ya but the OP said he only had AA batts to use! > Design of the optics is far more important (and more difficult) than > the design of the electronics. The last thing you want is a small > bright hot spot directly in front and nothing to the sides or in the > distance. I've done some tinkering using ImageJ2 software for > displaying how uniform the beam footprint appears on the ground. > <http://www.learnbydestroying.com/jeffl/pics/bicycles/Front-Light-False-Color/index.html> > If you look at the original B&W photos, the beam pattern looks fairly > even. However, add some pseudo color and the variations are much more > obvious. > > Optics not my forte there another guy here who does dat
[toc] | [prev] | [next] | [standalone]
| From | krw@notreal.com |
|---|---|
| Date | 2018-07-08 18:46 -0400 |
| Message-ID | <0l45kdp7sir1ddehn1r0gds79tgchqs2a9@4ax.com> |
| In reply to | #510398 |
On Sun, 08 Jul 2018 11:39:11 -0700, Jeff Liebermann <jeffl@cruzio.com> wrote: >On Sun, 8 Jul 2018 02:30:09 -0400, bitrex <user@example.net> wrote: >>> Use an 8 pin AVR 8 bit with a multichannel differential ADC along with a >>> low input voltage boost converter with a shutdown pin like the TPS6120. >>> The AVR can high-side current sense its own input supply current with >>> just a sense resistor in the supply bus cuz the ADC input channels can >>> operate up to 0.6 volts over the supply voltage. It can also measure its >>> own supply voltage. >>> >>> With that info you can just hang LEDs off the PWM output pins and drive >>> them "constant voltage" (with high frequency PWM) using one free PWM >>> channel to modulate the shutdown pin to regulate power into the IC. The >>> TPS6120 will operate down to 0.5 volts on its supply input; drain those >>> AAs for everything they have. >>> >>> You could implement some algorithm to match the circuit impedance to the >>> battery impedance to reduce output power gracefully as the batteries are >>> depleted. >> >>Even the boost converter might be redundant, might be able to get away >>with just an inductor, didoe, FET, and another pin. Nowadays 50 cent uPs >>often have so much onboard hardware, ADCs, band gaps, dead-time >>generators, temperature sensors, PWM channels, etc. that in non-critical >>applications using any other ICs at all should be given the Muntz side-eye. > >I'm not familiar with such devices and can't comment on whether your >design scheme will work. However, I did notice a few things that >might cause problems. Microchip makes PICs that are designed to be SMPS controllers. The program sets up the connections between the comparators, DACs, ADCs, and PWMs, then the hardware controller works independently of the CPU. The CPU is out of the loop. Neat widgets. > >Reducing the output power gracefully by matching impedances isn't >efficient and sounds like an analog scheme. Flashlights use PWM >(pulse width modulation) to adjust the brightness. Because the pass >device is either on or off, but never in between, power dissipation is >reduced and battery life is improved. Incidentally, battery life and >SoC (state of charge) are important considerations as it would not do >to have the battery die in the middle of a nightime bicycle ride. How does it manage the battery life if it doesn't know how long the "ride" is? >With todays high power LED's, it is possible to design a headlight >that is too bright. Besides blinding oncoming traffic, such a light >also has a rather short battery life. However, that's todays fashion >(driven by the equation more lumens = more sales), and is unlikely to >disappear. Higher power LED's implies higher currents and more heat. >Keeping the LED's from overheating is a major problem. It's also hell on efficiency. >Your suggest of combining as many functions in the controller is a >good one, but is limited by the power dissipation of the controller >chip. A low end 1 watt headlight would draw about 270ma from a LiIon >cell, which I suspect is more than a controller chip can handle. A >series pass FET would probably be required. Huh? There are 5A, and above, synchronous switching supply chips on the market. >Higher power lights, that use more than one LED, are often series >connected to minimize connector and device current handling >requirements. A boost converter would be necessary to run these, but >it's cheaper to just add an extra LiIon cell for 2 series LED's. But series LiIons complicate charging. It's a lot easier to parallel them, and deal with the boost, if necessary. >Design of the optics is far more important (and more difficult) than >the design of the electronics. The last thing you want is a small >bright hot spot directly in front and nothing to the sides or in the >distance. I've done some tinkering using ImageJ2 software for >displaying how uniform the beam footprint appears on the ground. ><http://www.learnbydestroying.com/jeffl/pics/bicycles/Front-Light-False-Color/index.html> >If you look at the original B&W photos, the beam pattern looks fairly >even. However, add some pseudo color and the variations are much more >obvious.
[toc] | [prev] | [next] | [standalone]
| From | Jeff Liebermann <jeffl@cruzio.com> |
|---|---|
| Date | 2018-07-09 00:49 -0700 |
| Message-ID | <uq06kdpneoofsbqvg4u9vtkcn5veou7u56@4ax.com> |
| In reply to | #510413 |
On Sun, 08 Jul 2018 18:46:15 -0400, krw@notreal.com wrote: >Microchip makes PICs that are designed to be SMPS controllers. The >program sets up the connections between the comparators, DACs, ADCs, >and PWMs, then the hardware controller works independently of the CPU. >The CPU is out of the loop. Neat widgets. Nice. That would work for the flashlight. The problem is that there are 145 switching power supply regulators listed: <http://www.microchip.com/ParamChartSearch/chart.aspx?branchID=9005&mid=10&lang=en> It's going to take me a while find something appropriate. I also see a problem. Most flashlights use one or more 7135 linear regulator to provide a current source for driving one or more LED's. The big benefit here is that a linear regulator doesn't need an inductor. The cost of the 7135 ($0.12) and a PIC or Arduino controller (about $0.50) is probably much less than using one of the MicroChip PIC's (about $1.00) plus whatever an inductor costs. Incidentally, some flashlight driver boards do have inductors and are used in boost mode for driving a series string on LED's from a single LiIon (or alkaline) cell or in buck mode for running a single LED from a 12V source: <https://www.google.com/search?tbm=isch&q=li-ion+flashlight+driver+board> >>Reducing the output power gracefully by matching impedances isn't >>efficient and sounds like an analog scheme. Flashlights use PWM >>(pulse width modulation) to adjust the brightness. Because the pass >>device is either on or off, but never in between, power dissipation is >>reduced and battery life is improved. Incidentally, battery life and >>SoC (state of charge) are important considerations as it would not do >>to have the battery die in the middle of a nightime bicycle ride. > >How does it manage the battery life if it doesn't know how long the >"ride" is? I didn't say "manage". There are too few features that could be turned off by the BMS (battery management system) to significantly affect the battery life. It's not like a smartphone that can turn things off, kill background apps, reduce brightness, decrease sampling rates, etc to save power. Some of the better bicycle lights and a few LED flashlights have SoC indicators. Something like this: <https://www.ebay.com/itm/322602335822> Most are just bar graphs which simply display the LiIon battery voltage along with some kind of number to represent percent of full charge remaining. >>Your suggest of combining as many functions in the controller is a >>good one, but is limited by the power dissipation of the controller >>chip. A low end 1 watt headlight would draw about 270ma from a LiIon >>cell, which I suspect is more than a controller chip can handle. A >>series pass FET would probably be required. > >Huh? There are 5A, and above, synchronous switching supply chips on >the market. More complexity. I'm all for it, and it sure sounds like a good way to do it, but I'm not sure I could cram it onto the COB (chip on board) with heat sink "star" found in most flashlights. >But series LiIons complicate charging. It's a lot easier to parallel >them, and deal with the boost, if necessary. Nope. There are plenty of LiIon battery packs sold for flashlight power that don't do any balance charging. Usually, they're the external battery packs used by the really high power bicycle lights. They might have a BMS board inside, like on laptop power supplies, which do not equalize the voltage across each of the cells, but merely protect the cells against over/under voltage, over current load, over current charging, and short circuit protection as used in LiIon power tools and laptop batteries.. Something like this for 2 cells: <https://www.ebay.com/itm/263804341929> Almost 1AM. Time to get off the computah. -- Jeff Liebermann jeffl@cruzio.com 150 Felker St #D http://www.LearnByDestroying.com Santa Cruz CA 95060 http://802.11junk.com Skype: JeffLiebermann AE6KS 831-336-2558
[toc] | [prev] | [next] | [standalone]
| From | krw@notreal.com |
|---|---|
| Date | 2018-07-09 23:04 -0400 |
| Message-ID | <dr78kdl34rm9ih8d5tu2a2lbl3oarv2prc@4ax.com> |
| In reply to | #510434 |
On Mon, 09 Jul 2018 00:49:53 -0700, Jeff Liebermann <jeffl@cruzio.com> wrote: >On Sun, 08 Jul 2018 18:46:15 -0400, krw@notreal.com wrote: > >>Microchip makes PICs that are designed to be SMPS controllers. The >>program sets up the connections between the comparators, DACs, ADCs, >>and PWMs, then the hardware controller works independently of the CPU. >>The CPU is out of the loop. Neat widgets. > >Nice. That would work for the flashlight. The problem is that there >are 145 switching power supply regulators listed: ><http://www.microchip.com/ParamChartSearch/chart.aspx?branchID=9005&mid=10&lang=en> >It's going to take me a while find something appropriate. They're not listed as SMPS controllers, rather as PICs. If you're interested, I'll get the numbers tomorrow. >I also see >a problem. Most flashlights use one or more 7135 linear regulator to >provide a current source for driving one or more LED's. The big >benefit here is that a linear regulator doesn't need an inductor. At the cost of some serious waste power (wasted capacity and heat). Also, the minimum useful battery voltage has to be above the forward drop of the LED(s). ...some pretty big design compromises, IMO. Inductors aren't expensive. >The >cost of the 7135 ($0.12) and a PIC or Arduino controller (about $0.50) >is probably much less than using one of the MicroChip PIC's (about >$1.00) plus whatever an inductor costs. You're paying *WAY* too much for PICs. What's your production run? One? > >Incidentally, some flashlight driver boards do have inductors and are >used in boost mode for driving a series string on LED's from a single >LiIon (or alkaline) cell or in buck mode for running a single LED from >a 12V source: ><https://www.google.com/search?tbm=isch&q=li-ion+flashlight+driver+board> Why a 12V source? Seems like a waste to boost voltage then buck current. Do it all at once. > >>>Reducing the output power gracefully by matching impedances isn't >>>efficient and sounds like an analog scheme. Flashlights use PWM >>>(pulse width modulation) to adjust the brightness. Because the pass >>>device is either on or off, but never in between, power dissipation is >>>reduced and battery life is improved. Incidentally, battery life and >>>SoC (state of charge) are important considerations as it would not do >>>to have the battery die in the middle of a nightime bicycle ride. >> >>How does it manage the battery life if it doesn't know how long the >>"ride" is? > >I didn't say "manage". There are too few features that could be >turned off by the BMS (battery management system) to significantly >affect the battery life. It's not like a smartphone that can turn >things off, kill background apps, reduce brightness, decrease sampling >rates, etc to save power. Brightness. Better somewhat dimmer for an entire ride than dark for part. > Some of the better bicycle lights and a few >LED flashlights have SoC indicators. Something like this: ><https://www.ebay.com/itm/322602335822> >Most are just bar graphs which simply display the LiIon battery >voltage along with some kind of number to represent percent of full >charge remaining. Gas gauge. Integrate current. The PIC should be able to handle that, too. > >>>Your suggest of combining as many functions in the controller is a >>>good one, but is limited by the power dissipation of the controller >>>chip. A low end 1 watt headlight would draw about 270ma from a LiIon >>>cell, which I suspect is more than a controller chip can handle. A >>>series pass FET would probably be required. >> >>Huh? There are 5A, and above, synchronous switching supply chips on >>the market. > >More complexity. I'm all for it, and it sure sounds like a good way >to do it, but I'm not sure I could cram it onto the COB (chip on >board) with heat sink "star" found in most flashlights. https://www.youtube.com/watch?v=1G8XQA9QFS0 >>But series LiIons complicate charging. It's a lot easier to parallel >>them, and deal with the boost, if necessary. > >Nope. There are plenty of LiIon battery packs sold for flashlight >power that don't do any balance charging. Usually, they're the >external battery packs used by the really high power bicycle lights. >They might have a BMS board inside, like on laptop power supplies, >which do not equalize the voltage across each of the cells, but merely >protect the cells against over/under voltage, over current load, over >current charging, and short circuit protection as used in LiIon power >tools and laptop batteries.. Something like this for 2 cells: ><https://www.ebay.com/itm/263804341929> Not a good idea without some serious management. > >Almost 1AM. Time to get off the computah.
[toc] | [prev] | [next] | [standalone]
| From | piglet <erichpwagner@hotmail.com> |
|---|---|
| Date | 2018-07-09 09:40 +0100 |
| Message-ID | <phv719$6bq$1@dont-email.me> |
| In reply to | #510367 |
On 08/07/2018 07:30, bitrex wrote: > On 07/08/2018 02:11 AM, bitrex wrote: >> On 07/08/2018 01:43 AM, Jeff Liebermann wrote: >>> On Sat, 7 Jul 2018 18:26:43 -0700 (PDT), RichD >>> <r_delaney2001@yahoo.com> wrote: >>> >>>> I have a bike light, with a single push button momentary >>>> switch. It toggles from off to high beam to low beam to >>>> strobe, then off. >>>> >>>> I figure the design spec is purely manufacturing cost; >>>> no performance, precision, etc. >>>> >>>> What's the solution? Notice that it has 4 states, which >>>> implies some kind of memory. IC, or discrete parts? >>>> Considering device and assembly costs. And an oscillator, >>>> and lamp driver. >>>> >>>> Powered by two AA batteries. >>> >>> What you probably have is a 1 watt LED "flashlight" with an AMC7135 >>> linear current source and a PIC controller to provide PWM (pulse width >>> modulation) for brightness and flashing control. The minimum for a >>> light is one AMC7135 per LED, and a simple on/off switch in series >>> with the batteries. A little better is one AMC7135 per LED, and some >>> kind of PIC or Arduino controller operated by a push button. Since >>> the PIC or Arduino is programmable, you can make the flashlight do >>> weird things: >>> <https://www.sparkfun.com/news/1196> >>> <https://www.kickstarter.com/projects/christian-carlberg/hexbright-an-open-source-light> >>> >>> (Note: Hexbright is closed but you can roll your own). >>> >>> This board controls 4 LED's. >>> <http://www.dankung.com/Gcontent/4groups-amc71358-flashlight-circuit-board-anti-reverse_2142> >>> >>> >>> More on the AMC7135: >>> <https://www.google.com/search?tbm=isch&q=AMC7135> >>> >>> More info under Candle Power Forums: >>> <https://www.candlepowerforums.com/vb/forum.php> >>> and Budget Light Forums: >>> <http://budgetlightforum.com/forum> >>> >>> When you are able to deliver a clear description of what you are >>> planning to design, perhaps I can offer some better suggestions. >>> >> >> >> Use an 8 pin AVR 8 bit with a multichannel differential ADC along with >> a low input voltage boost converter with a shutdown pin like the >> TPS6120. The AVR can high-side current sense its own input supply >> current with just a sense resistor in the supply bus cuz the ADC input >> channels can operate up to 0.6 volts over the supply voltage. It can >> also measure its own supply voltage. >> >> With that info you can just hang LEDs off the PWM output pins and >> drive them "constant voltage" (with high frequency PWM) using one free >> PWM channel to modulate the shutdown pin to regulate power into the >> IC. The TPS6120 will operate down to 0.5 volts on its supply input; >> drain those AAs for everything they have. >> >> You could implement some algorithm to match the circuit impedance to >> the battery impedance to reduce output power gracefully as the >> batteries are depleted. > > Even the boost converter might be redundant, might be able to get away > with just an inductor, didoe, FET, and another pin. Nowadays 50 cent uPs > often have so much onboard hardware, ADCs, band gaps, dead-time > generators, temperature sensors, PWM channels, etc. that in non-critical > applications using any other ICs at all should be given the Muntz side-eye. Yeah - don't need no fancy schmancy boost converter chip with current regulation to within 1% just to light a frigg'n LED Get the cheapest 6pin sot23 microcontroller AVR Tiny or PIC10F or similar add a high current switch transistor, inductor and if can afford it a supply bypass capacitor too. 4 parts (excluding LED and button) Transistor charges inductor during ON time, LEDs connected across inductor, light during the OFF time flyback. Regulate peak current by timing the ON time. Most LEDs can tolerate 5V reverse bias so the 3V reverse bias seen during inductor charging on time is not a problem. If micro can measure its supply voltage then it can vary on time to compensate for ageing cells but that is gilding. Many users would accept light dropping as cells fade. Cheap and cheerful. piglet
[toc] | [prev] | [next] | [standalone]
| From | tabbypurr@gmail.com |
|---|---|
| Date | 2018-07-08 00:39 -0700 |
| Message-ID | <520343f7-f80c-46fa-89b0-8cd228f3faff@googlegroups.com> |
| In reply to | #510343 |
On Sunday, 8 July 2018 02:26:47 UTC+1, RichD wrote: > I have a bike light, with a single push button momentary > switch. It toggles from off to high beam to low beam to > strobe, then off. > > I figure the design spec is purely manufacturing cost; > no performance, precision, etc. > > What's the solution? Notice that it has 4 states, which > implies some kind of memory. IC, or discrete parts? > Considering device and assembly costs. And an oscillator, > and lamp driver. > > Powered by two AA batteries. Some people like to make life difficult. All those functions need are an oscillator with it's output current limited. high: osc stuck on medium: hf oscillation blink: lf oscillation NT
[toc] | [prev] | [next] | [standalone]
| From | bitrex <user@example.net> |
|---|---|
| Date | 2018-07-08 09:27 -0400 |
| Message-ID | <Nio0D.283168$np1.173322@fx06.iad> |
| In reply to | #510372 |
On 07/08/2018 03:39 AM, tabbypurr@gmail.com wrote: > On Sunday, 8 July 2018 02:26:47 UTC+1, RichD wrote: >> I have a bike light, with a single push button momentary >> switch. It toggles from off to high beam to low beam to >> strobe, then off. >> >> I figure the design spec is purely manufacturing cost; >> no performance, precision, etc. >> >> What's the solution? Notice that it has 4 states, which >> implies some kind of memory. IC, or discrete parts? >> Considering device and assembly costs. And an oscillator, >> and lamp driver. >> >> Powered by two AA batteries. > > Some people like to make life difficult. All those functions need are an oscillator with it's output current limited. > high: osc stuck on > medium: hf oscillation > blink: lf oscillation > > > NT > It sounds simple because you haven't answered any of the more difficult questions about that proposed topology i.e. what kind of oscillator do you use, how do you power it, how do you current limit it, how do you adjust its frequency in a cyclical way in response to a sequence of button presses vis a vis the spec. Like, the devil is in the details, man. I guess we're assuming he wants to use a white LED as the "lamp" the OP doesn't specify. But you can't run a white LED at any significant power directly off 2 AA batteries in series.
[toc] | [prev] | [next] | [standalone]
| From | tabbypurr@gmail.com |
|---|---|
| Date | 2018-07-09 00:43 -0700 |
| Message-ID | <5c10f3ba-c90e-4dc4-bc03-eaa8e59f647b@googlegroups.com> |
| In reply to | #510375 |
On Sunday, 8 July 2018 14:27:14 UTC+1, bitrex wrote: > On 07/08/2018 03:39 AM, tabbypurr wrote: > > On Sunday, 8 July 2018 02:26:47 UTC+1, RichD wrote: > >> I have a bike light, with a single push button momentary > >> switch. It toggles from off to high beam to low beam to > >> strobe, then off. > >> > >> I figure the design spec is purely manufacturing cost; > >> no performance, precision, etc. > >> > >> What's the solution? Notice that it has 4 states, which > >> implies some kind of memory. IC, or discrete parts? > >> Considering device and assembly costs. And an oscillator, > >> and lamp driver. > >> > >> Powered by two AA batteries. > > > > Some people like to make life difficult. All those functions need are an oscillator with it's output current limited. > > high: osc stuck on > > medium: hf oscillation > > blink: lf oscillation > > > > > > NT > > > > It sounds simple because you haven't answered any of the more difficult > questions about that proposed topology i.e. what kind of oscillator do > you use, how do you power it, how do you current limit it, how do you > adjust its frequency in a cyclical way in response to a sequence of > button presses vis a vis the spec. Like, the devil is in the details, man. > > I guess we're assuming he wants to use a white LED as the "lamp" the OP > doesn't specify. But you can't run a white LED at any significant power > directly off 2 AA batteries in series. you're almost funny. NT
[toc] | [prev] | [next] | [standalone]
| From | Clive Arthur <cliveta@nowaytoday.co.uk> |
|---|---|
| Date | 2018-07-08 15:39 +0100 |
| Message-ID | <pht7ma$ohj$1@dont-email.me> |
| In reply to | #510343 |
On 08/07/2018 02:26, RichD wrote: > I have a bike light, with a single push button momentary > switch. It toggles from off to high beam to low beam to > strobe, then off. > > I figure the design spec is purely manufacturing cost; > no performance, precision, etc. > > What's the solution? Notice that it has 4 states, which > implies some kind of memory. IC, or discrete parts? > Considering device and assembly costs. And an oscillator, > and lamp driver. > > Powered by two AA batteries. > > > -- > Rich > I have three of these, all bought at different times, though they don't have a flashing mode, just full and half beam. (They're German and I believe flashing is deprecated there.) They also have a low battery warning LED. They use 4 AA NiMH cells and all have a single 8 pin SOP with a few passives. The three SOPs have different markings, none of which Google. I would guess that the switch doesn't control the power, just changes state - one of which is sleep mode - so the memory is volatile, possibly RAM or just a register or just a couple of bits. Cheers -- Clive
[toc] | [prev] | [next] | [standalone]
| From | Cursitor Doom <curd@notformail.com> |
|---|---|
| Date | 2018-07-08 14:51 +0000 |
| Message-ID | <pht8ed$leo$6@dont-email.me> |
| In reply to | #510376 |
On Sun, 08 Jul 2018 15:39:02 +0100, Clive Arthur wrote: > I have three of these, all bought at different times, though they don't > have a flashing mode, just full and half beam. (They're German and I > believe flashing is deprecated there.) It's actually the norm at this time of year. The Germans have never been shy about getting their kit off and letting it all hang out. AIUI, it's not an arrestable offence in Germany to get your tackle out in public like it is in the UK. -- This message may be freely reproduced without limit or charge only via the Usenet protocol. Reproduction in whole or part through other protocols, whether for profit or not, is conditional upon a charge of GBP10.00 per reproduction. Publication in this manner via non-Usenet protocols constitutes acceptance of this condition.
[toc] | [prev] | [next] | [standalone]
| From | bitrex <user@example.net> |
|---|---|
| Date | 2018-07-08 11:01 -0400 |
| Message-ID | <AHp0D.283169$np1.254885@fx06.iad> |
| In reply to | #510378 |
On 07/08/2018 10:51 AM, Cursitor Doom wrote: > On Sun, 08 Jul 2018 15:39:02 +0100, Clive Arthur wrote: > >> I have three of these, all bought at different times, though they don't >> have a flashing mode, just full and half beam. (They're German and I >> believe flashing is deprecated there.) > > It's actually the norm at this time of year. The Germans have never been > shy about getting their kit off and letting it all hang out. AIUI, it's > not an arrestable offence in Germany to get your tackle out in public > like it is in the UK. > Americans on average are unhealthily prude-ish but the Germans and Japanese it's just like wtf is wrong with them, government-sanctioned swingers clubs and selling little girl's panties in vending machines and shit, damn. And no, they was like that before the modern Left showed up, sorry.
[toc] | [prev] | [next] | [standalone]
| From | Cursitor Doom <curd@notformail.com> |
|---|---|
| Date | 2018-07-08 15:49 +0000 |
| Message-ID | <phtbqh$leo$11@dont-email.me> |
| In reply to | #510379 |
On Sun, 08 Jul 2018 11:01:51 -0400, bitrex wrote: > Americans on average are unhealthily prude-ish but the Germans and > Japanese it's just like wtf is wrong with them, government-sanctioned > swingers clubs and selling little girl's panties in vending machines and > shit, damn. > > And no, they was like that before the modern Left showed up, sorry. If anyone can translate the above for me, I'd be very grateful; thanks. -- This message may be freely reproduced without limit or charge only via the Usenet protocol. Reproduction in whole or part through other protocols, whether for profit or not, is conditional upon a charge of GBP10.00 per reproduction. Publication in this manner via non-Usenet protocols constitutes acceptance of this condition.
[toc] | [prev] | [next] | [standalone]
Page 1 of 3 [1] 2 3 Next page →
Back to top | Article view | sci.electronics.design
csiph-web