In stock, ships same business day if ordered before 2PM
Delivered by Tue, 24th of Dec
Quantity Discounts:
Recommended Essentials:
$27.78
$13.10
The MonkMakes Servo for micro:bit board provides a really easy way to attach up to three servomotors to a BBC micro:bit. The board requires a power supply or battery pack to provide 5 or 6V to the servomotors. It includes a voltage regulator that will supply 3V back to the micro:bit, so that you don’t have to power it separately.
If you have one of our Servo Kit for micro:bit products, then you will find more information about that here. This is where you will also finds a getting started guide for this board.
Connections
The picture below shows a typical setup using the Servo for micro:bit board.
The following connections have been made:
Block Code
To check that everything is working, this Blocks code project will get you started. Flash it onto your Servo for micro:bit and the servo arms should all start waggling in a random manner. You can see a video of this in action here.
The servo write pin block allows you to set the angle of the servomotor’s arm between 0 and 180 degrees. Note that servomotors, will not usually travel a full 180 degrees so you may find the actual range is more like 10 to 170 degrees.
MicroPython
The following MicroPython example will move the servo one way or another when you press the A and B buttons.
from microbit import *
def set_servo_angle(pin, angle):
duty = 26 + (angle * 102) / 180
pin.write_analog(duty)
angle = 90
set_servo_angle(pin2, angle)
while True:
if button_a.was_pressed() and angle >= 10:
angle -= 10
set_servo_angle(pin2, angle)
if button_b.was_pressed() and angle <= 170:
angle += 10
set_servo_angle(pin2, angle)
if button_a.is_pressed() and button_b.is_pressed():
display.scroll(str(angle))
Exact shipping can be calculated on the view cart page (no login required).
Products that weigh more than 0.5 KG may cost more than what's shown (for example, test equipment, machines, >500mL liquids, etc).
We deliver Australia-wide with these options (depends on the final destination - you can get a quote on the view cart page):
Non-metro addresses in WA, NT, SA & TAS can take 2+ days in addition to the above information.
Some batteries (such as LiPo) can't be shipped by Air. During checkout, Express Post and International Methods will not be an option if you have that type of battery in your shopping cart.
International Orders - the following rates are for New Zealand and will vary for other countries:
If you order lots of gear, the postage amount will increase based on the weight of your order.
Our physical address (here's a PDF which includes other key business details):
Unit 18, 132 Garden Grove Parade
Adamstown
NSW, 2289
Australia
Take a look at our customer service page if you have other questions such as "do we do purchase orders" (yes!) or "are prices GST inclusive" (yes they are!). We're here to help - get in touch with us to talk shop.
Have a product question? We're here to help!
Makers love reviews as much as you do, please follow this link to review the products you have purchased.
Product Comments