r/ArduinoHelp • • Sep 25 '26

Circuit diagram for flashing IR-LED

Hello everybody,
I study surveying and for my bachelor thesis I want to try some geodetic transformations using IR-LED Markers with known coordinates on the floor. For that I need the IR-LED to flash, so I can transmit an binary ID to a camera. Sadly, I’m very bad at electrical engeneering, wich is why I asked ChatGPT for a circuit diagram. But the LEDs I’ll be using are very expensive. Maybe some of you can help me with that problem and check the diagram for errors / give me some useful advice, because I dont want to destroy the LEDs.
I would be very grateful for your advice and help! Thank you!

1 Upvotes

6 comments sorted by

View all comments

1

u/drmpf Sep 26 '26 edited Sep 26 '26

If you are going to use high power leds, I suggust you use a current source set to the current you want. See https://www.ti.com/lit/ds/symlink/lm317.pdf
8.3.3 Precision Current-Limiter Circuit

This one https://www.digikey.com/en/products/detail/richtek-usa-inc/RT9065GE/16376691
has an enable pin you can easily control from you micro and has a .5V drop out and 0.8V ADJ refernce and 500mA output. The low dropout and smaller ADJ ref voltage means you can minimize the chip dissipation by reducing the input out head room. Input volts needs to be greater than (0.5 + 0.8) x 0.35A + Led Vf (3.2) = 3.66V
If using a 5V input the chip needs to dissipate ~ (5V - 2.9Vf - 0.8Adj) * 0.35A =0.455W
which it too much for this chip. You need on with better dissipation
The https://www.digikey.com/en/products/detail/microchip-technology/MCP1825-ADJE-AT/1636122
looks like a better choice. You can add a heat sink if needed. That one has over temp protection built in.

P.S. The reason you should use a current source is a) the Leds have a range of initial Vf and b) the Vf changes with temp as the Led heats up.
Using a current source instead of a fixed resistor lets you stay at the required drive current over varying conditions.