element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino
  • Products
  • More
Arduino
Arduino Forum Power arduino using lm338k
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 16 replies
  • Answers 10 answers
  • Subscribers 394 subscribers
  • Views 2194 views
  • Users 0 members are here
  • power supply
  • lm338k
  • arduino
Related

Power arduino using lm338k

idanre1
idanre1 over 8 years ago

Hi

I have a transformer 13.8v DC.

I also have arduino nano. According to the spec, arduino can be powered from 7-12v.

 

I thought using http://www.ti.com/lit/ds/symlink/lm338.pdf in-order to step down the voltage to around 12v.

I have used the default scheme as mentioned in the datasheet

image

 

R1 is 1Kohm, R2 is 1Mohm.

image

image

  • When Vout is un-connected to arduino - If I sample Vout using a multi-meter I get 12.19v which is great!
  • When I connect Vout to arduino's Vin port - the voltage drops down and continuously changes between 8.5v and 9.2v.
  • I want to mention the circuit is not getting hot, not the arduino and not the regulator

 

If I understand lm338k functionality, it supposed to provide a stable voltage even with load connected.

 

Even though ~9v is valid for powering arduino, I don't understand the phenomena.

 

Someone have an idea what I am doing wrong?

How can I continue the debug?

 

Wall-Wart photo:

I don't know why it says 7.5V, it actually outputs 13.75v when I test it with multimeter.

image

 

Measurement

I have just received The specified item was not found.

It has an osciliscope of up to 12v (Good enough for this task)

 

I put the measurment on Vout of the circuit above.

I have catched a trigger (8v fall edge) when I put higher load (I provde a pulse for enabling a DC motor driver) in parallel to the arduino.

image

You can see the voltage it pushed from 9.5v to 6.5v during the DC activation (Higher load is attached)

When aduino is reaching towards 6.9v it then power down and the motor stops.

The signal comming back to 9.5v is because both arduino and DC motor are offline since the arduino cannot contorl over the DC anymore...

 

Vout on the circuit is connected to Vin of arduino.

I then put big capacitor between the 5v voltage reference of the arduino (Regulated power supply) and GND.

This keeps ardunio on 5v during this hickup.

 

Thanks!

Idan

  • Sign in to reply
  • Cancel

Top Replies

  • jw0752
    jw0752 over 8 years ago +4 suggested
    Hi Idan, You might consider using a regular 7809 regulator to bring the voltage down to 9 volts. You will not have to bother with resistors or adjustments. The Arduino has its own regulator to take the…
  • Robert Peter Oakes
    Robert Peter Oakes over 8 years ago in reply to gecoz +3 suggested
    While this is correct regarding the remediation of the external regulator. Thus is not the primary reason for the posters symptoms. It is bease the transformer is actually only a 7.5v one and the higher…
  • gecoz
    gecoz over 8 years ago in reply to idanre1 +2 verified
    Hi Idan, The behaviour of Vout with your original set up, I'm not sure if the choice of the values for R1 and R2 @ Vout=12V were correct. From the formula, setting R1 to 100K you get I1=12uA, as you correctly…
  • Robert Peter Oakes
    0 Robert Peter Oakes over 8 years ago

    What is the rating of the "Transformer" (Its mA or amp rating )?, can you take a picture of the label and post it here ?

     

    you call it a transformer but is it really a "Wall Wart". ie a power brick you plug into the wall ?

     

    Provide a schematic showing all the connections you making, also is anything getting warm when you are powering the arduino ?

     

    Peter

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • gecoz
    0 gecoz over 8 years ago

    Hi Idan,

     

    I think the problem you are experiencing could be due to the little headroom you are giving to the LM338. For the regulation to be effective, the datasheet advises (pag.10, par 7.4.2) for a minimum 3-V headroom Vin-Vout, otherwise the device may drop out and Vout will be Vin minus drop out voltage. In your case, the headroom is only 1.8V, so you'd  get Vout = 12.19 - 3 = 9.19V, which is consistent with your reading.

     

    You might want to recalculate R1 and R2, using the formula on pag.11 of the datasheet, this time for a Vout of 9V, and verify the voltage will remain within the specifications given on the datasheet after you plug the Arduino in.

     

    Fabio.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • jw0752
    0 jw0752 over 8 years ago

    Hi Idan,

     

    You might consider using a regular 7809 regulator to bring the voltage down to 9 volts. You will not have to bother with resistors or adjustments. The Arduino has its own regulator to take the voltage down to the voltage needed by the processor and by bringing the voltage down externally you take some stress off the internal regulator.

     

    John

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • idanre1
    0 idanre1 over 8 years ago in reply to Robert Peter Oakes

    Hi Peter

    You made some important points, I have updated the post with additional info.

     

    Thanks!

    Idan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • idanre1
    0 idanre1 over 8 years ago in reply to jw0752

    Hi John

    This is an excelent solution.

    I will order one image

     

    Regards

    Idan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • idanre1
    0 idanre1 over 8 years ago

    Hi

    I have made some expirements acording to gecoz suggestions.

     

    First I want to mention no matter what values I choose, In case no load is connected I always see ~12V on the output.

    Probably you need to load the circuit in-order to see its real behavior.

     

    Acording to the datasheet, as Fabio suggested:

    image

    I need to see about 1.25V in Vref.

    I see about 1.2-1.9V depends on other values of R1.

    If I choose R1 as 100Kohm I get i1=1.2/100000=0.012mA

    If I choose R2 as 1Mohm I get V(R2)=12v

     

    I have chosen other values below:

    R1 = 1K

    R2 = 10K

    And I see about 9V feeding the arduino.

     

    This still falls into 3V of Vout-Vin but I don't see flactuations anymore. Just steady 9V.

     

    I guess the lm338k having trouble keeping 1.2v over 1Mohm instead of 1Kohm. Maybe that is why I see less steady voltage using original values.

     

    Idan

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • gecoz
    0 gecoz over 8 years ago in reply to idanre1

    Hi Idan,

     

    The behaviour of Vout with your original set up, I'm not sure if the choice of the values for R1 and R2 @ Vout=12V were correct. From the formula, setting R1 to 100K you get I1=12uA, as you correctly stated. But when calculating R2, you need to remember that the current flowing through R2 is I1 plus Iadj, and the typical value for Iadj is 45uA (again, the datasheet is the source). Now, the voltage V2 across R2 is the difference between the choosen Vout and the voltage across R1, which is Vref:

     

    V2=Vout−Vreƒ =12V−1.25V=10.75V

     

    which gives for R2 the value of:

     

    R2=V2I2 =10.75V57uA ≈189Kohm

     

    Choosing 1Mohm for R2 might have caused the instability of the Vref you have seen (not able to settle on about 1.25V).

     

    I'm pleased to see that with your new values, calculated @ Vout=9V (giving the LM338 the needed minimum headroom of 3V), the regulation works as expected. image

     

    Fabio.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 8 years ago in reply to idanre1

    A thing to mention here is that the "transformer " is 7.5v when under load. When you measure with a multimeter it only has about a 10Mohm load and so the output goes quite high fooling you into thinking it is marked wrong. What you have is an UN-REGULATED supply.

     

    Therefor you don't need any regulator to use it with the ardiino.  As soon as you connect it he volts will drop to the nominal 7.5 and all will be good.

     

    Hope this clarifies things for you

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 8 years ago in reply to gecoz

    While this is correct regarding the remediation of the external regulator. Thus is not the primary reason for the posters symptoms. It is bease the transformer is actually only a 7.5v one and the higher volts is simply because it is unregulated and to all intents open circuit when reading the 13v value. As soon as the load is connected it drops to its correct voltage

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 8 years ago in reply to idanre1

    See my other response. You don't even need a regulator external to the arduino

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube