BTSmartFan Servo/DC motor controlled using Bluetooth

Dependencies:   Servo mbed-dev

Fork of BTSmartFan_WIZwiki-W7500 by justin kim

Prerequisite

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.

  • WIZwiki-W7500 from WIZnet (Platform board)
  • Arduino Motor Shield
  • Easy Module Shield(Not mandatory)
  • HC-05 bluetooth module
  • Servo motor(DM-S0300D)
  • DC motor(5V)
  • DC jack
  • 5V DC Power Supply

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


Software

BlueTerm (Application)

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

Pins setting

main.cpp

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

Baud rate

main.cpp

    pc.baud(115200);
    //bt.baud(115200);
    bt.baud(9600);

History

revision a mistake. default tip

2017-04-13, by stkim92 [Thu, 13 Apr 2017 01:55:15 +0000] rev 4

revision a mistake.


Added WIZwiki-W7500ECHO

2017-04-13, by stkim92 [Thu, 13 Apr 2017 01:53:31 +0000] rev 3

Added WIZwiki-W7500ECHO


change a mbed-src to mbed-dev

2017-04-13, by stkim92 [Thu, 13 Apr 2017 00:03:51 +0000] rev 2

change a mbed-src to mbed-dev


test;

2017-04-12, by stkim92 [Wed, 12 Apr 2017 04:34:03 +0000] rev 1

test;


first release

2015-06-29, by justinkim [Mon, 29 Jun 2015 01:27:03 +0000] rev 0

first release