Author Topic: Red flashlight circuit for astronomy.  (Read 1594 times)

0 Members and 1 Guest are viewing this topic.

Offline andrejsstrumfsTopic starter

  • Contributor
  • Posts: 15
  • Country: lv
Red flashlight circuit for astronomy.
« on: April 25, 2026, 12:49:30 pm »
Hi! Can someone please sanity check this circuit? This is a red flashlight for astronomy, using single cell lipo and 1W red led with analog dimming. Q1 is to disconnect battery from load while charging, Q2 is to disconnect battery when discharged to 3V. Instead of driving U3 with pwm directly, I use R9, C5, R11 to inject current to feedback pin, because presumably driving leds with pwm is not good for preserving night vision.

Andrejs
 

Offline Peabody

  • Super Contributor
  • ***
  • Posts: 2781
  • Country: us
Re: Red flashlight circuit for astronomy.
« Reply #1 on: April 25, 2026, 03:08:42 pm »
I haven't checked the math on the Q2 cutoff circuit, but I think you need some hysteresis there to deal with the threshold voltage and make sure it doesn't flutter.  That would be provided by a resistor from the drain of Q2 back to the ref input of the 431.  I found a video that shows this in some detail:



I don't know about the LED circuit.
 

Offline andrejsstrumfsTopic starter

  • Contributor
  • Posts: 15
  • Country: lv
Re: Red flashlight circuit for astronomy.
« Reply #2 on: April 25, 2026, 07:56:48 pm »
Thanks! That's a great suggestion

Andrejs
 

Offline LaserSteve

  • Super Contributor
  • ***
  • Posts: 1604
  • Country: us
Re: Red flashlight circuit for astronomy.
« Reply #3 on: April 25, 2026, 08:56:38 pm »
If the green led is on during normal operation I'd make it very dim or another color.
"I calculated the stored energy, and it is enough to play the Dance / DJ Extended edition of "Baby Shark" in all 100 headsets for the production floor team simultaneously over 100,000 Times."

Well, I had to explain it to my boss, somehow.  He's an Accountant,  not a PHB.
 

Offline andrejsstrumfsTopic starter

  • Contributor
  • Posts: 15
  • Country: lv
Re: Red flashlight circuit for astronomy.
« Reply #4 on: April 26, 2026, 01:24:24 pm »
Both leds are active only when charging, but thanks anyways :)

Andrejs
 

Offline Peabody

  • Super Contributor
  • ***
  • Posts: 2781
  • Country: us
Re: Red flashlight circuit for astronomy.
« Reply #5 on: April 26, 2026, 02:32:35 pm »
Depending on the power source used for charging, you may need to populate 5.1K resistors on the CC lines on the USB-C connector.

Can you explain how your dimming circuit works, and why you use it?  It's a constant current driver, which monitors the voltage across Rsense.  So are you just raising the voltage there to reduce the output current?  And why do you think this is better for night vision than using PWM on the EN pin?

 

Offline andrejsstrumfsTopic starter

  • Contributor
  • Posts: 15
  • Country: lv
Re: Red flashlight circuit for astronomy.
« Reply #6 on: April 26, 2026, 04:36:03 pm »
Thanks, that's good idea, will add the resistors.
About the dimming circuit - you are right. This method is actually recommended in datasheets in many other led drivers, for example MIC3287, MIC2287 and others, so I think it should work also with this one. And for the night vision, some people say they do not feel any difference, others say they feel it. My reasoning is that pwm makes the led flash at full brightness, and even if your brain thinks the light is dim, the rhodopsin in the eye gets spent anyways. And since this is just a hobby project, then why not :)
 
The following users thanked this post: tooki

Online tooki

  • Super Contributor
  • ***
  • Posts: 16021
  • Country: ch
Re: Red flashlight circuit for astronomy.
« Reply #7 on: April 26, 2026, 05:10:45 pm »
Hi! Can someone please sanity check this circuit? This is a red flashlight for astronomy, using single cell lipo and 1W red led with analog dimming. Q1 is to disconnect battery from load while charging, Q2 is to disconnect battery when discharged to 3V. Instead of driving U3 with pwm directly, I use R9, C5, R11 to inject current to feedback pin, because presumably driving leds with pwm is not good for preserving night vision.
Why would PWM matter? The averaged light level and wavelength are what matter. (Well, and the PWM frequency, if you do PWM.) Our eyes have a minimum response time. A high PWM frequency physically cannot be detected. (3kHz and up. None of the annoying 100-1000Hz bullshit so many people think is sufficient.)
 

Offline andrejsstrumfsTopic starter

  • Contributor
  • Posts: 15
  • Country: lv
Re: Red flashlight circuit for astronomy.
« Reply #8 on: April 26, 2026, 06:40:23 pm »
Well, more likely than not you are right, and I didn't find any sources confirming that this is a problem at all(not that I tried very hard). But as I said, this is a hobby project, I do not care for part count and price and I wanted to try if dimming will work that way, so.. :)
 
The following users thanked this post: tooki

Offline Solder_Junkie

  • Frequent Contributor
  • **
  • Posts: 675
  • Country: gb
Re: Red flashlight circuit for astronomy.
« Reply #9 on: April 27, 2026, 06:29:56 am »
You are over thinking, when visiting an observatory we were all given an LED torch... it was very basic but more than adequate and comprised a silicon rubber moulding with a coin cell battery and a red LED. When you squeezed the case the wires of the LED touched the battery.

OK, that "throw away" torch was as basic as it comes, but the point I am making is that you don't need anything complicated. A 2 x AAA size battery holder in a small project box with a switch, a series resistor, a red LED and maybe a variable resistor is all you need.
 

Offline donlisms

  • Frequent Contributor
  • **
  • Posts: 346
  • Country: us
Re: Red flashlight circuit for astronomy.
« Reply #10 on: April 30, 2026, 07:02:10 am »
I've spent quite a bit of time under dark skies.  Somewhere in this thread I saw a reference to a 1W led, which is way more than you'd want under normal circumstances, but I suppose there are cases where you could use a lot of light, as long as it's not directly in your eyes.

Just because it's red doesn't mean you can have as much as you want.  My favorite red flashlight is indeed very simple, and the thing that makes it valuable is the trimmer pot that lets me keep it as low as possible.  It serves as the off switch also, so I can slowly and carefully dial from "off" to "dim"  without going too far, and ruining the dark adaption I worked on for half an hour.

In other words, the usability is the most important thing.  How you get there doesn't matter much.

The chemical reaction in your eyes, to lose dark adaption, happens very (very) quickly.  I would be nervous about PWM, unless I tested it, or someone else tested it carefully.  Nothing worse than looking back in the eyepiece and no longer seeing the nebula because of this cloud of insensitivity in your eyes covering it all up!
 

Offline andrejsstrumfsTopic starter

  • Contributor
  • Posts: 15
  • Country: lv
Re: Red flashlight circuit for astronomy.
« Reply #11 on: April 30, 2026, 03:33:56 pm »
I also wanted focusable light, so you can illuminate larger area or only read your starmap, large dimmer and switch controls so it is usable with gloves and since it is a headlight - adjustable angle.
Dimmer and switch button is the left wheel. Right is just a screw to tighten it down when you adjust the angle.

Andrejs
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

-->