Skip to content

Commit 7505057

Browse files
authored
Update README.md
1 parent acbede8 commit 7505057

File tree

1 file changed

+81
-1
lines changed

1 file changed

+81
-1
lines changed

README.md

Lines changed: 81 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ For HC 05 , HC 06 & HM 10
1616
This app makes you control your Arduino projects like RC car or any IOT applications using your mobile phone thru bluetooth.
1717

1818
All the files (apk, circuit, program, codes) are all provided) :)
19+
https://github.com/engrpanda/Arduino-Bluetooth-Controller/tree/master/ARDUINO%20PROGRAM
20+
https://github.com/engrpanda/Arduino-Bluetooth-Controller/tree/master/SCHEMATIC%20FRITZING%20DIAGRAM
21+
https://play.google.com/store/apps/details?id=com.ArduBT.panda&hl=en
1922

2023
# Compatible with android 4.4.4 (API 19) to android 9(API 28).
2124
# Compatible from Bluetooth 2.0 to Bluetooth 5.0.
@@ -33,7 +36,8 @@ You can choose from Switch ON/OFF mode, Gamepad mode, Voice Recognition mode. (w
3336
![menu](https://github.com/engrpanda/Arduino-Bluetooth-Controller/blob/master/APP%20SAMPLE%20PIC/2.jpg)
3437

3538

36-
#NOTE: Important. Before uploading to arduino disconnect first any connection in PIN D0 & D1 (TX,RX).
39+
# NOTE: Important.
40+
Before uploading to arduino disconnect first any connection in PIN D0 & D1 (TX,RX).
3741

3842
#
3943
# 1.) SWITCH ON/OFF MODE
@@ -132,3 +136,79 @@ This mode use google tts & speech recognition. Make sure the device has it. This
132136

133137
![voice](https://github.com/engrpanda/Arduino-Bluetooth-Controller/blob/master/APP%20SAMPLE%20PIC/5.jpg)
134138
![voice](https://github.com/engrpanda/Arduino-Bluetooth-Controller/blob/master/APP%20SAMPLE%20PIC/6.jpg)
139+
140+
141+
142+
143+
144+
145+
146+
#
147+
# OTHERS AT COMMANDS
148+
CHANGE THE SSID, PIN of the BT MODULE for hc05/06
149+
TEST
150+
Communications test
151+
“AT”
152+
153+
CHANGE SSID
154+
Sets the modules
155+
name
156+
“AT+NAMEPanda“
157+
158+
CHANGE PIN
159+
Set the PIN to 1234
160+
“AT+PIN1234”
161+
162+
163+
BT TX - D2
164+
BT RX - D3
165+
166+
// Basic Bluetooth sketch HC-06_01
167+
// Connect the Hc-06 module and communicate using the serial monitor
168+
//
169+
// The HC-06 defaults to AT mode when first powered on.
170+
// The default baud rate is 9600
171+
// The Hc-06 requires all AT commands to be in uppercase. NL+CR should not be added to the command string
172+
// Use no line ending in serial monitor
173+
/*Command Reply Comment
174+
The HC-06 zs-040 expects commands to be in upper case and does not require carriage return and new line (\r\n) characters.
175+
Open the serial monitor and select a baud rate of 9600 and ensure “No line ending” is selected from the drop down list at the bottom of the window.
176+
Enter “AT” (no quotes) into the top text box and hit Send. If the HC-06 likes you it will say OK. AT is a basic communications test command that allows you to check the HC-06 is connected and communicating.
177+
178+
AT OK Communications test
179+
AT+VERSION OKlinvorV1.8 Firmware version.
180+
AT+NAMEPanda OKsetname Sets the modules name to “Panda”
181+
AT+PIN1234 OKsetPIN Set the PIN to 1234
182+
*/
183+
184+
#include <SoftwareSerial.h>
185+
SoftwareSerial BTserial(2, 3); // BT_TX | BT_RX
186+
// Connect the HC-06 TX to the Arduino RX on pin 2.
187+
// Connect the HC-06 RX to the Arduino TX on pin 3.
188+
189+
190+
void setup()
191+
{
192+
Serial.begin(9600);
193+
Serial.println("Enter AT commands:");
194+
195+
// HC-06 default serial speed is 9600
196+
BTserial.begin(9600);
197+
}
198+
199+
void loop()
200+
{
201+
202+
// Keep reading from HC-06 and send to Arduino Serial Monitor
203+
if (BTserial.available())
204+
{
205+
Serial.write(BTserial.read());
206+
}
207+
208+
// Keep reading from Arduino Serial Monitor and send to HC-06
209+
if (Serial.available())
210+
{
211+
BTserial.write(Serial.read());
212+
}
213+
214+
}

0 commit comments

Comments
 (0)