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
CodeBug
  • Learn
  • Learning Center
  • STEM Academy
  • CodeBug
  • More
  • Cancel
CodeBug
Blog CodeBug Current Consumption Observations with the ADALM1000
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join CodeBug to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: shabaz
  • Date Created: 17 Oct 2015 3:50 AM Date Created
  • Views 762 views
  • Likes 2 likes
  • Comments 0 comments
  • codebug
  • education
  • smu
  • adalm1000
  • resources_for_educators
  • analog_devices
Related
Recommended

CodeBug Current Consumption Observations with the ADALM1000

shabaz
shabaz
17 Oct 2015

Thanks to spannerspencer and the team at Element14 I was provided with a free CodeBug. It is a very simple but awfully cute little board that makes a great present for 8-year olds and up. I have already purchased

and given away several of these.

 

Looking at the board, there really isn't a lot to it. There is a microcontroller, a 5x5 array of red LEDs, a couple of push-buttons, the USB connector and six holes of which two can be used to power the

CodeBug if you don't want to use the USB supply.

On the underside there are a couple more bits of functionality but they are not of interest for the purpose of this blog post.

image

 

It is designed to be easy to get into. It comes with a printed sheet but basically this is all there is to it:

 

1. Go to www.codebug.co.uk/gettingstarted

2. Watch the video!

3. Click on "Create"

4. Drag and drop stuff to create your computer program

5. Click on the Play icon to see it run in your web browser!

6. Click on Download and it gets saved to your PC

7. Hold down the left button on the CodeBug, plug it in, and release the button

8. Drag and drop the downloaded file into the CodeBug USB storage device that will have appeared

9. Press the right button on CodeBug to run the program

10. You can disconnect and reconnect the CodeBug to the USB supply and it will run the program again

 

 

The 5x5 LED matrix is multiplexed, in order to make it appear as if multiple LEDs can be lit at the same time. This effect is used to show shapes and characters on

the matrix. It can be used to scroll characters.

 

I wrote my first program on the CodeBug. It basically just scrolls the characters '1234' on the 5x5 LED matrix:

image

I was curious how much current this thing consumed. The easiest way is to connect up a multimeter. But, multimeters do not show rapid fluctuations in current.

Another way would be to use an oscilloscope and connect up a 5V supply in series with a small resistor, and measure the voltage across the resistor with the oscilloscope. Since Current = Voltage/Resistance, the trace on the oscilloscope would represent current.

Any oscilloscope could be used for this.

 

Instead I busted out the ADALM1000 ADALM1000 . It is a cheap USB tool can be used as a mini power source and current measurement device. For this purpose it is like a power supply and oscilloscope all-in-one.

image

 

I set it to supply 5V, and connected the two wires to the CodeBug's round holes marked PWR and GND (I didn't plug the USB into the CodeBug).

There is a getting started guide to the ADALM1000 here.

 

Once it was all hooked up, I saw this output when the '1234' message scrolled by. Click on it to examine it closer:

image

The top half of it just shows that the voltage was set to a fixed 5V supply (the ADALM1000 can also do fancy stuff like sine-waves, but I just wanted a fixed 5V supply to the CodeBug).

The bottom half shows time on the x-axis, and the yellow dashed stuff is the current consumption over time. It is dashed because the 5x5 LED array is multiplexed and it flashes rapidly (multiple times a second).

(Zoomed in):

image

 

It can be seen that the current peaked close to 0.07A (which is 70mA) while scrolling the '1234' message. It can also be seen that the entire message took just over two seconds to scroll.

 

On the right side of the diagram, circled in blue, is the same information represented in a different way. Here the x-axis is current. It can be seen by the bright parts of the spread line the amount of current consumed for the most amount of time.

The fainter parts of the spread show the current consumed for the least amounts of time. It is like an aggregated view.

 

The ADALM1000 is great for observing current consumption! Although I only used it with the CodeBug, it has many other uses. You can use it to check out the behaviour of components when subjected to voltages. It is like a portable lab.

For more information and ideas, see the ADALM1000 getting started guide mentioned earlier.

  • Sign in to reply
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