BTSmartFan Servo/DC motor controlled using Bluetooth

Dependencies:   Servo mbed-dev

Fork of BTSmartFan_WIZwiki-W7500 by justin kim


This example is to control a servo motor and DC motor using bluetooth.

To implement this function, you need a Platform board, Easy Module Shield V1, Bluetooth module, DC jack, 5V DC Power Supply.

Below are what we used.

Hardware Configuration

WIZwiki-W7500 Pin map

pin map

Arduino Motor Shield + DC motor(5V) + DC jack + 5V DC Power Supply

pin map

Easy Module Shield(Not mandatory) + HC-05 bluetooth module + Servo motor(DM-S0300D)

pin map


BlueTerm (Application)

download a BlueTerm App to send a command message to bluetooth module with smart phone.

Pins setting


Serial pc(USBTX, USBRX);
Serial bt(PA_14, PA_13);
Servo myservo(D14);
PwmOut Motor(D3);
DigitalOut direction(D12);

Baud rate


Download repository: zip gz

Files at revision 4:fc863bb15b24

Name Size Actions
Servo.lib 53 Revisions Annotate
main.cpp 2908 Revisions Annotate
mbed-dev.lib 65 Revisions Annotate