element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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
Experts, Learning and Guidance
  • Technologies
  • More
Experts, Learning and Guidance
Ask an Expert Forum Using a 12V lipo to power LED strip and Attiny 85
  • Blog
  • Forum
  • Documents
  • Leaderboard
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Experts, Learning and Guidance to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 7 replies
  • Answers 2 answers
  • Subscribers 280 subscribers
  • Views 2653 views
  • Users 0 members are here
  • lighting
  • led_lighting_strips
  • led
  • led_lighting
  • lighting_strips
  • microcontroller
  • attiny
  • attiny85
  • arduino
Related
See a helpful answer?

Be sure to click 'more' and select 'suggest as answer'!

If you're the thread creator, be sure to click 'more' then 'Verify as Answer'!

Using a 12V lipo to power LED strip and Attiny 85

Former Member
Former Member over 10 years ago

Hi, I'm trying to reproduce this tutorial, https://learn.adafruit.com/rgb-led-strips/usage, but power it off an 12V 5Ah battery and use an Attiny 85 instead of an arduino uno.

I have it all working, but I'm running the Attiny 85 microcontroller off a separate 4.5V battery pack, which isn't ideal.

 

The range of voltage for the Attiny 85 required is 2.7-5.5V... 12V would fry the thing. How can I lower the voltage to get it down to this required range, and still have the LEDs using the full 12V?

Would a simple resistor connecting the +12V to the VCC of the ATTINY work?

 

 

Or would I need something like this 5V regulator: 5v Regulator

 

 

Thanks,

 

Matthew

  • Sign in to reply
  • Cancel
  • shabaz
    0 shabaz over 10 years ago

    Correct, you need a 5V regulator.

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

    Yes, something like that would work, or a low cost buck converter would be more efficient

     

    Sent from my iPhone

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • turfgnome
    0 turfgnome over 10 years ago

    how about this,

     

    L7805C-V - STMICROELECTRONICS L7805C-V - IC, LINEAR VOLTAGE REGULATOR 5V TO-220-3 | Newark element14 US

     

    I personally have used these pulled out of old power supplies I found in the shop for projects.

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

    Yup

     

    That will work

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to Robert Peter Oakes

    Thanks for suggesting the buck converter! Looks like it could be cheaper than using a bunch of mosfets (like I already did). But still very helpful when I make more light controllers!

    This example looks like it would be perfect: Simple Buck LED Driver with PWM Input

     

    Except I'll be using N-channel mosfets, since that's what I already have... and they're within the ranges the author says are important (min 2A drain current, drain source 30V, gate threshold lower than 4V (logic gate).  ... it looks like the Gate, drain and source are all in the same spots between the two of them according to their data sheets, so I think it would be ok to just swap them..... right?

    Pchannel

    NTD2955T4G ON SEMICONDUCTOR Transistors - MOSFET | 10N9570 | Newark element14 Canada

    Nchannel

    FQP30N06L FAIRCHILD SEMICONDUCTOR Transistors - MOSFET | 20C4477 | Newark element14 Canada

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelkellett
    0 michaelkellett over 10 years ago in reply to Former Member

    The circuit will only work with a P channel MOSFET.

    An N channel MOSFET needs the gate to go more positive than the source to to switch on and that isn't going to happen. But because it will be the wrong way round in the circuit it will conduct all the time if you make its source more positive than it's drain.

    Find  a buck regulator that doesn't need a MOSFET at all (there are lots) - how much current do you need at 5V ?

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Robert Peter Oakes
    0 Robert Peter Oakes over 10 years ago in reply to michaelkellett

    As Open Collector NPN transistor replacements, the N Channel MOSFET will work providing it meets certain critera, that being the GS voltage is low enough for logic control

    for example

    http://canada.newark.com/fairchild-semiconductor/fqp30n06l/n-channel-mosfet-60v-32a-to-220/dp/Search?catalogId=15003&langId=1&storeId=10196&gs=true&st=logic%20level%20n%20channel%20mosfet

     

    this is the results of a Newark search for "logic level n channel mosfet", try it on your local site, this one is my Canadian pricing

     

    these will easily drive your power LEDs and wont need heat sinks and has a similar circuit to the instructables site. The cange I would make is not power the FETS and LEDS through the Arduino but take the 12V direct to the LED strip and the return direct from the source pins which will be common back to the power adapter, take a separate feed to the arduino that does not involve the current for the LEDS

     

    here is a video where I cover off using MOSFETS like this  Driving BIG loads with your micro controller - no isolation

     

    The buck converter I was referring to was to derive the 5V you mentioned, not for driving the LEDs, if your supply is actually 5V and you need to derive a 12V for the LEDs then you will need a boost converter that would look very much like the buck converter you showed

     

    this is the kind of BUCK converter i was referring to Mini DC/DC Step-Down (Buck) Converter - 5V @ 1A output [TSR12450] ID: 1065 - $14.95 : Adafruit Industries, Unique & fun …

     

    Hope this helps

     

    Peter

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify 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