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
Test Instrumentation
  • Challenges & Projects
  • Project14
  • Test Instrumentation
  • More
  • Cancel
Test Instrumentation
Blog Micro:bit VI Curve Tracer Implementation
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Test Instrumentation to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: ralphjy
  • Date Created: 21 Nov 2018 11:44 PM Date Created
  • Views 2063 views
  • Likes 6 likes
  • Comments 6 comments
  • advanced micro:bit projects
  • microbit
  • micro bit
  • advanced_microbit_projects
  • test instrumentation
  • project 14
  • diytestinstruch
Related
Recommended

Micro:bit VI Curve Tracer Implementation

ralphjy
ralphjy
21 Nov 2018
image

Test Instrumentation

Enter Your Electronics & Design Project for a chance to win a Grand Prize for Originality, a Tool Set, and a $100 Shopping Cart!

Back to The Project14 homepage image

Project14 Home
Monthly Themes
Monthly Theme Poll

 

Since I'm late to the party, I'm just going to do a quick proof of concept implementation rather than a fully developed tool.  I'll continue to develop the tool to fit future requirements.

 

Hardware:

I decided to make the tool modular to make it more flexible.  The first module will incorporate the Micro:bit and the display shield.  The second module will include the I2C DAC and programmable current sink.  The modular approach allows me to add other functionality later.

 

The first step was to print a case to house the Micro:bit and display.

 

Case:

image

 

The second step was to provide the interface for the second module.  The second module needs the I2C pins to program the DAC and an Analog pin to read the current sink voltage plus power pins.

 

Micro:bit pinFunction
19SCL I2C clock
20SDA I2C data
0Analog In 0
3V33.3V power
GNDGround

 

Unfortunately, the LCD shield that I'm using only provides the breakout of the pins that the shield uses so I needed to solder wires directly to the shield connector pins.

image

 

For now, I've decided to implement the second module on a breadboard so I won't print a case for it yet.

 

Software:

As I was searching for the right software development environment to use, I came across a great tutorial by Adafruit on programming the Micro:bit using the Arduino IDE: https://learn.adafruit.com/use-micro-bit-with-arduino/overview.

 

Since I am very familiar with the Arduino IDE, this allowed me to get the software working quickly.  I used the SPI library and and a Waveshare library for a compatible Arduino LCD shield.  After adjusting the pins and fixing the screen orientation I was able to use the library functions without additional modification.  I used the Wire library for the I2C and since the Board Manager maps the Micro:bit default pins; I didn't need to specify them.

 

Here is the code for my example program: Microbit_VI_Monitor.ino:

 

 

 

Hardware setup:

image

 

 

Video of Curve Trace:  Linear trace of current through a fixed resistor

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

 

Summary:

I basically just verified that I could get the hardware and software interface working for a Micro:bit Curve Tracer.  It still needs some work to get it functioning as I'd like.  I would like to add remote logging via Bluetooth in addition to just using the LCD display for output.  Remote control via Bluetooth would be nice also.  I need to add some configuration code to allow scaling for different voltage and current values.  I also need to add calibration values to allow running with different power sources (I am using the 3.3V supply as my DAC and ADC references and the supply value changes with power source - i.e. USB vs battery).  And I need to package the second module.  But all that will have to wait for another day....

  • Sign in to reply

Top Comments

  • Jan Cumps
    Jan Cumps over 6 years ago in reply to dougw +3
    dougw wrote: That tip on using the arduino IDE could be very useful .... yes! I have tried to use the Mbed project in various IDEs by using the online Mbed editor’s export functionality. That has kept…
  • three-phase
    three-phase over 6 years ago +3
    Good useful project. That would be great to connect up to an insulation tester output to automatically record a polarisation index curve. Monitoring the curve of a 4 wire AC impedance or 4 wire DC resistance…
  • dougw
    dougw over 6 years ago +2
    That tip on using the arduino IDE could be very useful ....
Parents
  • genebren
    genebren over 6 years ago

    Cool little project.  I am surprised that you did not chose to show a diode or transistor junction.

    Good luck on your updates.

    Gene

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • genebren
    genebren over 6 years ago

    Cool little project.  I am surprised that you did not chose to show a diode or transistor junction.

    Good luck on your updates.

    Gene

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
  • ralphjy
    ralphjy over 6 years ago in reply to genebren

    Thanks, I agree that I should have traced something more interesting.  My first real use will be to characterize some various solar cells (50-500mA) that I have accumulated.  I really need to update the program to scale the display based on the expected measurement range.  Probably won't get around to that for a couple of weeks, but I'll post the results and try some diodes and transistors as well.

    Ralph

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