Skip to content
Parallax Learn

Parallax Learn

  • Welcome
  • Tutorials
        • Tutorial Series head tag

          Tutorial Series
        • Tutorial Series

          The special, classroom-ready series pages are organized collections of tutorials for our most popular hardware and/or languages. The tutorials for each topic are conveniently accessible from a single page, shown in the order it is recommended that they be completed.
        • Robotics Series Head tag

          Robotics Series
        • Robotics Series

          • Artificial Intelligence
          • Cybersecurity: Radio Data tutorialCybersecurity
          • cyber:bot + Python
          • cyber:bot + MakeCode
          • Boe-Bot Tutorial SeriesBoe-Bot
          • Arduino Shield-Bot
          • ActivityBot with C TutorialsActivityBot + C
          • ActivityBot with BlocklyProp Tutorial SeriesActivityBot + BlocklyProp
          • Scribbler 3 Tutorial SeriesScribbler 3
        • Electronics & Programming Series Head tag

          Electronics & Programming Series
          • BS2 Board of Education Tutorial SeriesBS2 Board of Education
          • Propeller C-Language BasicsPropeller C Basics
          • FLiP Try-It Kit C Tutorial SeriesFLiP Try-It Kit + C
          • FLiP Try-It Kit BlocklyProp TutorialsFLiP Try-It Kit + BlocklyProp
          • Badge WX Tutorial SeriesBadge WX
          • Propeller BlocklyProp Basics and ProjectsPropeller BlocklyProp Basics
          • View All Tutorial Series »
        • Browse Tutorials
        • Browse Tutorials

          Individual tutorials sorted by robot or kit, and language.
        • By Robot or Kit
          • ActivityBot
          • SumoBot WX
          • Boe-Bot
          • Shield-Bot
          • cyber:bot
          • Badge WX
          • ELEV-8
          • ARLO
        • By Language
        • By Language

          • Propeller C
          • Arduino
          • BlocklyProp
          • PBASIC
          • Python
          • MakeCode
          • View All Tutorials »
  • Educators
  • Reference
  • Downloads
  • Home
  • All Courses
  • Servo Position Control with Python and micro:bit

Servo Position Control with Python and micro:bit

Battery Pack: Load, Connect, Test

Some motors can draw more current than a USB port is designed to supply to peripheral devices.  So, for motor control, we typically use a battery pack to supply the motor current.  In this activity, you will:

  • Load new AAA batteries into the battery holder.
  • Connect it to the Edge I/O Adapter compatible with BBC micro:bit.
  • Test the voltage to make sure the batteries still have enough charge.

Parts

(1) Standard servo – 3 V
(1) AAA cell battery pack
(2) New alkaline 1.5 V AAA batteries

Circuit

When a battery pack is plugged into the Edge I/O adapter, the voltage/current it can supply is available through the left bus strip’s (+) and (-) columns.

  • Connect the red P2 probe to the left bus strips (+) rail -in one of the sockets adjacent to the red, vertical line.
  • Connect the black P0 probe to the left bus strips (-) rail -in one of the sockets adjacent to the blue, vertical line.
  • Load 2 AAA batteries into the micro:bit battery pack and connect it to the JST connector on the Edge I/O Adapter for micro:bit as shown in the circuit drawing.

 

Make sure to remove the batteries from the battery pack when it’s not in use.  Otherwise, the circuit will drain the batteries.  

JST is an abbreviation for Japan Solderless Terminal, a standard established by JST Mfg. Co.  Small, white plastic connectors like the ones you see on the micro:bit and the Edge Adapter are commonly used inside products and appliances.  We don’t normally see them since they are on printed circuit boards (PCBs) that are built into the product.  The black fiberglass micro:bit and Edge I/O Adapter boards are examples of PCBs.

 

 


Printer-friendly version
Setup from Previous Tutorials
Prev
Script and Tests
Next

DISCUSSION FORUMS | PARALLAX INC. STORE

About | Terms of Use | Feedback: learn@parallax.com | Copyright©Parallax Inc. 2024

© 2025 Parallax Learn • Built with GeneratePress