Skip to main content

LM317 circuit

The LM317 is a very useful device for producing specific voltages for your layout.
 
You can buy it as a 3 pin device and by adding a few capacitors and two resistors you can set the output voltage to between 1.25 volts below the incoming supply voltage and 1.25 volts higher than ground.

The ratio of the resistors determine the output voltage based on the following formula.

 V out = 1.25V x { 1 + R2 / R1 }

The Output voltage is also affected to a small extent by the current flow in the adjust line.
Resistors are normally 5% tolerance so producing an exact fixed voltage can be problematic. It's for this  reason that one of the resistors is normally made a variable one to enable fine tuning.

You can make these yourself on a piece of strip-board,  but given the costs involved it is much cheaper to obtain them as a  built module.



I bought some warm white LED's which theoretically operate in the 3.0 Volt to 3.2 Volt range. Using the LM317 module I could set the voltage to 2.9 Volts to achieve a very pleasing almost gaslight effect. 

A word of CAUTION.  I used my Bench Supply with current limiting to establish the desired voltage on the LED. I then adjusted the LM317 module to provide the required output voltage before connecting things up on the layout.

Andy R







Comments

Popular posts from this blog

Train sequence / timetable using Arduino

                              Following discussions in a MERG Zoom meeting about potential projects for the Cumbria virtual area group I have started this blog to share my ideas for building a train sequence / timetable system based on an Arduino UNO. The trigger for this project was Andy Robb's article in the MERG journal (June 2020 edition). In it Andy describes using an UNO with a OLED display to produce an electronic station display board.  Having tried out Andy's version I started thinking about expanding the idea and have come up the following list of possibilities: 1. Replace my card index train sequence with an electronic version. 2. Have the train sequence synchronised with the on platform displays. 3. Display an analogue clock on the station display and have it display the train times. 4. Store the position reached in the sequence so that it starts where it left off on power up.  To mak...

Sunday's West of Scotland Area Group Zoom meeting

 Another very well attended Zoom meeting with 34 participants. Davy showed us the commercially available automatic train stopping unit available at £12.53 from Brimar and compared it with the almost identical PMP 15 kit from the MERG Kitlocker at  only £2.65.  With these kind of savings, MERG membership is worth every penny. Chic Thomson treated us to a very entertaining presentation on simulation software for Electronics. INKSCAPE  is a free open  source drawing package. There are many Arduino Simulators available but Arduino Simulator 1.5.1 is an excellent open source offering.  For those interested in PICs simulators are available within the JAL compiler (Just Another Language) and MPLAB Sim is available within MPLAB but seldom advertised. Electronics Workshop 5.1 is a program no longer being developed but a useful tool for investigating any electrical or electronic circuit. Apparently you can Google it but there are a few insecure sites so be careful. F...

3D Printing Presentation

Sunday's Zoom meeting had our largest audience so far with 19 members attending from various parts of the country. Alan Geekie gave us an excellent and well received presentation on 3D printing that included FDM (Fused Deposition Modeling) and SLA (Stereolithography apparatus) types He first showed how we can source "things to print" using sites like Thingiverse. His own filament printer was the Prusa i3 Mk 3S which is available either as a kit (£699) or pre-assembled (£899) and features a self leveling bed. It also benefited from an additional multi material upgrade kit and he demonstrated the start up sequence of leveling, homing, clearing remaining filament from the hot end and then beginning the print.  The process of slicing where a 3d object drawing file (.stl) is broken up into the x,y,z drawing coordinates for each individual layer was also explained. Alan then moved on to resin printers using another Prusa model, the SL1 and its associated curing and washing mach...