Mobile Phone Bluetooth Control - Keywish Hummer-Bot-2.0 Instruction Manual

Table of Contents

Advertisement

analogWrite(INPUT2_PIN, 0);
analogWrite(INPUT3_PIN, val);//the speed value of motorA is val
analogWrite(INPUT4_PIN, 0);
}
else if (irKeyCode == back) {
analogWrite(INPUT1_PIN, 0);
analogWrite(INPUT2_PIN, val); //the speed value of motorA is val
analogWrite(INPUT3_PIN, val); //the speed value of motorA is val
analogWrite(INPUT4_PIN, 0);
}
} else {
analogWrite(INPUT1_PIN, 0);
analogWrite(INPUT2_PIN, 0); //the speed value of motorA is 0
analogWrite(INPUT3_PIN, 0);
analogWrite(INPUT4_PIN, 0); //the speed value of motorB is 0
}
}
The above is the infrared remote reference program, you can open it in the CD and download to the
development board, the instructions of remote control in shown in Fig.3.2.39.

3.2.6 Mobile Phone Bluetooth Control

3.2.6.1 Suite Introduction
Hummer-Bot supports Bluetooth mobile phone Bluetooth remote control function is JDY-16 BLE
(Bluetooth Low Energy).JDY-16 transparent transmission module is based on the Bluetooth 4.2 protocol
Fig.3.2.39. Infrared Remote Control Instructions
81

Advertisement

Table of Contents
loading

Table of Contents