element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • 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
Personal Blogs
  • Members
  • More
Personal Blogs
Douglas Wong's Blog BBC micro:bit Power Supply Analysis
  • Blogs
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
Author: dougw
Date Created: 29 Nov 2016 1:49 AM
Views: 345
Likes: 12
Comments: 5
  • bbc micro:bit
  • big ideas
Related
Recommended

BBC micro:bit Power Supply Analysis

dougw
dougw
29 Nov 2016

This blog investigates how the BBC micro:bit power supply circuitry works.

I have been trying to interface the micro:bit with different peripherals and planned to run it off a 4.2 volt lithium-polymer battery, however it was not clear if it is safe to run it off a Li-Po battery. The manual only says it can run off 2 AAA batteries, which might supply a little over 3 volts.

The technical documentation for the device is still very sparse and for the types of things I am doing there are no examples, which means I need to do some reverse engineering and trial-and-error tests.

The module only has 5 chips on it - a compass chip, an accelerometer, a regulator and 2 ARM Cortex M0 MCUs.

I started by arbitrarily labeling all the components and numbering all the test points as shown in the picture below.

Next I used a DVM to run continuity checks to see which pins were connected. I pretty much mapped out the whole schematic, but my purpose here is mainly to discuss the power supply aspects. The schematic below shows what I found for power circuitry.

I then examined the data sheet for both MCUs to see how they are powered.

Both MCUs have internal voltage regulators:

the NXP/Kinetis MCU has a USB interface and its regulator can handle 5 volt USB power, so it is connected directly to the USB power.

The 3.3 V output of this regulator only seems to connect to the NXP MCU and this MCU does not seem to get power from any other source. If the module is run from battery power, the voltage on the NXP regulator output is 0.9 V, possibly leaking over on some pins connected to the other MCU. This is not enough to run the NXP MCU (minimum running voltage is 1.71 V)

The Nordic MCU has a maximum power input voltage of 3.9 volts, implying it cannot run directly from the USB 5 volts, so the USB 5 Volts is regulated down to 3.3 Volts for the Nordic MCU. It can run from either the regulator voltage or the external battery connector. These two lines are diode or-ed so they don't fight each other before feeding the Nordic MCU. I called this voltage node VCCIO in the schematic. It is also connected to the micro:bit card edge connector (3V) and the corresponding banana jack. Note when driven by the battery, there is no regulation on this voltage so it will sag as the battery gets depleted.

Next I took some measurements:

The diodes used only have a 0.1 V drop at these current levels, so the VCCIO voltage is about 3.2 V when running from USB.

Conclusions

The absolute maximum voltage you can apply to the battery connector is 4.0 volts without damaging the Nordic MCU, so if I want to connect my 4.2 volt battery there, I would need to run it though a diode that drops the voltage at least 0.2 volts.

I could connect my 4.2 volt battery safely to the USB connector, but this will apply power to both MCUs and the power indicator LED, which will deplete the battery faster. Also I am not sure in what state the NXP MCU will put the Nordic MCU if I do this.

It would be nice if real schematics were published for the module so other people don't need to rely on my potentially incorrect reverse engineering assumptions when trying to interface other electronics.

Keypad

Similarly the I2C interface I'm trying to connect to a keypad is turning into a big exercise. It looks like the compass and accelerometer use the same I2C bus, but they are not playing well together. It is not clear how it is set up on the micro:bit and the Python documentation on I2C is extremely sketchy. Looking at the signals with a scope definitely shows these I2C devices mess each other up. At times like this I feel a need for a scope that can "read" I2C.

The saga continues....

 

Relevant links

 

micro:bit roadtests

https://www.element14.com/community/roadTests/1477/l/We%E2%80%99re-giving-away-5-BBC-micro:bits!

https://www.element14.com/community/community/stem-academy/microbit/blog/2016/06/20/bbc-microbit-challenge-submit-your-ideas

BBC micro:bit - Big Idea Challenge


micro:bit reference links:

BBC micro:bit home page: https://www.microbit.co.uk/

micro:bit coding page: https://www.microbit.co.uk/create-code

micro:bit MicroPython: https://microbit-micropython.readthedocs.io/en/latest/

micro:bit IoT: http://bluetooth-mdw.blogspot.ca/p/bbc-microbit.html

micro:bit Bluetooth: https://codethemicrobit.com/reference/bluetooth/bluetooth-pairing

micro:bit power consumption: http://www.reuk.co.uk/wordpress/microbit-power-consumption/

micro:bit breadboard: https://www.element14.com/community/roadTestReviews/2180/l/we-re-giving-away-5-bbc-microbits-review

 

android & ios apps:

https://play.google.com/store/apps/details?id=com.samsung.microbit&hl=en

https://www.microbit.co.uk/mobile

http://www.samsung.com/uk/microbit/

https://evothings.com/evothings-and-the-bbc-microbit/


micro:bit Projects:

10 micro:bit projects: https://www.element14.com/community/community/stem-academy/microbit/blog/2016/05/26/10-bbc-microbit-projects-in-ten-days

9 micro:bit projects: http://www.itpro.co.uk/desktop-hardware/26289/nine-top-bbc-micro-bit-projects

8 micro:bit projects: http://www.pcadvisor.co.uk/feature/pc-components/8-things-you-can-do-with-bbc-microbit-3639112/

7 micro:bit projects: http://www.bbc.com/news/technology-35824446

6 micro:bit projects: https://www.codeclubprojects.org/en-GB/microbit/

 

Anonymous

Top Comments

  • jc2048
    jc2048 over 3 years ago in reply to Workshopshed +4

    These are the curves for an NSR0320MW2T1G Schottky barrier diode (which will be something like what's on the board)

     

     

    If you extend the 25C curve down, you can see it's around 0.1V at a current of something…

  • Workshopshed
    Workshopshed over 3 years ago +2

    What kind of diodes only have a 0.1v drop? Do they have other restrictions?

  • DAB
    DAB over 5 years ago +1

    Very good post Douglas.

     

    I liked your detailed description of your approach and your analysis of the device to plan your testing.

     

    DAB

Parents
  • Workshopshed
    Workshopshed over 3 years ago

    What kind of diodes only have a 0.1v drop? Do they have other restrictions?

    • Cancel
    • Up +2 Down
    • Reply
    • More
    • Cancel
Comment
  • Workshopshed
    Workshopshed over 3 years ago

    What kind of diodes only have a 0.1v drop? Do they have other restrictions?

    • Cancel
    • Up +2 Down
    • Reply
    • More
    • Cancel
Children
  • jc2048
    jc2048 over 3 years ago in reply to Workshopshed

    These are the curves for an NSR0320MW2T1G Schottky barrier diode (which will be something like what's on the board)

     

     

    If you extend the 25C curve down, you can see it's around 0.1V at a current of something like 100uA. If Doug had measured with the processor running fast and the I/O loaded up, it would quickly move up to the 0.2-0.3V area.

    • Cancel
    • Up +4 Down
    • Reply
    • More
    • Cancel
Element14

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 © 2022 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube