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 Do I need a level shifter or is there an easier way?
  • 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 3 replies
  • Answers 1 answer
  • Subscribers 392 subscribers
  • Views 532 views
  • Users 0 members are here
  • logic
  • 5.5v
  • scales
  • esp8266
  • arduino
  • 3.3v
Related

Do I need a level shifter or is there an easier way?

Former Member
Former Member over 10 years ago

I'm trying to get an ESP8266 WiFi module working with my Arduino. However, Arduino's output 5v and the ESP8266 needs 3.3v for it's logic. I've heard some people say that the 5v logic scale and the 3.3v logic scale are interchangeable and doesn't matter but others say it could fry your module. So I decided to try to play it safe and ask you guys.

 

So, how can I convert the Arduino's 5v down to 3.3v without lowering amperes because the ESP8266 draws >200mA? Also, I'd prefer not to buy a Level shifter, but if it is necessary by all means I'll get one.

 

Thanks in advance! image

  • Sign in to reply
  • Cancel

Top Replies

  • mcb1
    mcb1 over 10 years ago in reply to Former Member +1 verified
    jacob_pickens Jacob Well done your maths and values are spot on for OUTPUT voltage dividers to stop the ESP8266 being destroyed. The datasheets say they are 5v tolerant, but that doesn't mean you should…
Parents
  • mcb1
    0 mcb1 over 10 years ago

    jacob_pickens

    You can use a resistor divider on the Arduino outputs.

    Voltage divider - Wikipedia, the free encyclopedia

    https://learn.sparkfun.com/tutorials/voltage-dividers

     

    The inputs will detect the 3v3 as a high.

     

    Many Arduino have the ability to run at 3v3, and I use these which can be either 5v or 3v3.

    Buy Seeeduino V3.0 (Atmega 328P) [ARD128D2P] | Seeedstudio

     

    You will need to becareful how you power the ESP8266 as many of the 3v3 regulators on Arduino boards will not provide sufficient current.

     

     

    Mark

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

    mcb1

     

    I did actually look into voltage dividers. I did all the math was able to find the right resistor combination (A 1k and a 560) for this project. The math said that with the voltage divider Vout would be 3.2v. (I used this formula: Vout = Vin * (R1/(R1+R2))) Then I looked into the formula for amperes from voltages and found this: Amps = Volts / Resistance (ohms). This said that my 3.2 volts was only 0.003 amps. Which I believe is basically 3mA. And I doubt that would work. image So am I doing this right? Or did I mix something up?

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

    mcb1

     

    I did actually look into voltage dividers. I did all the math was able to find the right resistor combination (A 1k and a 560) for this project. The math said that with the voltage divider Vout would be 3.2v. (I used this formula: Vout = Vin * (R1/(R1+R2))) Then I looked into the formula for amperes from voltages and found this: Amps = Volts / Resistance (ohms). This said that my 3.2 volts was only 0.003 amps. Which I believe is basically 3mA. And I doubt that would work. image So am I doing this right? Or did I mix something up?

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

    jacob_pickens

    Jacob

     

    Well done your maths and values are spot on for OUTPUT voltage dividers to stop the ESP8266 being destroyed.

    The datasheets say they are 5v tolerant, but that doesn't mean you should design based on that.

     


    A voltage divider will NOT work if you want to supply power to the ESP8266
    Find a 3v3 regulator that supplies 200mA.

     

    This has some maths but is a better explanation of the effects http://www.pdx.edu/nanogroup/sites/www.pdx.edu.nanogroup/files/2013_Input_output_impedance_9.pdf

     

     

    There is a really quick way with voltage dividers.

    2 equal value resistors give you half the voltage (assuming little current is drawn).

    You can also apply ratios or percentage as well. .. ie 2/3 of total resistance at the top results in 2/3rd's of the voltage being dropped across the top resistor.

     

    Generally with a micro controller a 10k to 47k will safely pull up a pin. Once you get higher than that the chances of stray signals increases.

    Arduino have 100M input resistance http://arduino.cc/en/Tutorial/DigitalPins

     

    The other general rule to ALWAYS keep in mind.

    Never apply a voltage to any pin that is greater than the supply voltage of that device. (unless it is specially designed for it)

     

     

    Good luck looking forward to waht you produce/blog about.

     

    Mark

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