Difference between revisions of "Microbit-Servo-Driver"

From SB-Components Wiki

Line 52: Line 52:
 
* Now create a new project by clicking on the "New project" tab and enter the name of your project.
 
* Now create a new project by clicking on the "New project" tab and enter the name of your project.
  
<img src="https://github.com/sbcshop/RFID-Expansion-For-Microbit/raw/main/images/makecode_microbit.PNG" width="500" height="500" />
+
<img src="https://github.com/sbcshop/RFID-Expansion-For-Microbit/raw/main/images/makecode_microbit.PNG" width="700" height="700" />
  
 
* A user needs to add an extension for Servo driver via clicking on the tab Advanced >> Extensions and enter the mentioned URL below in the search box.
 
* A user needs to add an extension for Servo driver via clicking on the tab Advanced >> Extensions and enter the mentioned URL below in the search box.
 
https://github.com/sbcshop/pxt-servo-microbit
 
https://github.com/sbcshop/pxt-servo-microbit
  
<img src="https://cdn.shopify.com/s/files/1/1217/2104/files/add_ext1.png" height="500" width="500" />
+
<img src="https://cdn.shopify.com/s/files/1/1217/2104/files/add_ext1.png" height="700" width="700" />
  
 
== Resources ==
 
== Resources ==

Revision as of 08:57, 24 June 2021

Micro:Bit Servo Driver

16 Channel Servo Driver for micro:bit is a motor driver from which one can control up to 16 motors simultaneously. If you're building a robot with a lot of moving parts, or if you need to monitor a lot of servo motors with PWM yields, the microcontroller's limited PWM yields will be a big problem. The most important thing you can do to solve this problem is to obtain a 16-Channel 12-Bit PWM/Servo Driver.

Features

  • Adjustable frequency PWM up to about 1.6 KHz
  • Up to 16-Channel servo/PWM outputs, 12-bit resolution for each channel (4096 scales)
  • 3 pin connectors in groups of 4 so you can plug in 16 servos at once
  • This board/chip uses an I2C 7-bit address
  • Expansion Headers for easy connections
  • I2C controlled and external power supply connector
  • Compatible with Micro:bit and Micro:bit V2

Specifications

  • External Power supply: 5V OR 6V (Via power supply connector)
  • Servo voltage: 5V
  • Logic voltage: 3.3V
  • Driver: PCA9685
  • Control interface: I2C

Pinout

PIN Micro:bit Pins
VCC Power (5V/6V) (Via External source)
GND Ground
SDA P20
SCL P19

Programming

Drag and Drop

  • Before starting, you need these components :
    • Servo driver x 1
    • Micro:Bit x 1
    • Servo Motor x 1
    • External Supply (6-12V) x 1
  • Connect micro:bit on stackable connector of Servo driver board as shown below.
  • Now create a new project by clicking on the "New project" tab and enter the name of your project.

  • A user needs to add an extension for Servo driver via clicking on the tab Advanced >> Extensions and enter the mentioned URL below in the search box.

https://github.com/sbcshop/pxt-servo-microbit

Resources