HC-05 Wireless Bluetooth Transceiver Modul
Bluetooth: Bluetooth Spezifikation v2.0+EDR
Frequenz: 2.4GHz ISM Band
Modulation: GFSK(Gaussian Frequency Shift Keying)
Emissionsleistung: ?4dBm, Class 2
Empfindlichkeit: ?-84dBm bei 0.1% BER
Geschwindigkeit: Asynchron: 2.1Mbps(Max) / 160 kbps, Synchron: 1Mbps/1Mbps
Sicherheit: Beglaubigung und Verschlüsselung
Profil: Bluetooth Serial Port
Stromversorgung: +3.3VDC 50mA
Arbeitstemperatur: -20 ~ +75 Celsius
#include <SoftwareSerial.h> SoftwareSerial mySerial(10, 11); // RX, TX void setup() { // Open serial communications and wait for port to open: Serial.begin(9600); while (!Serial) { ; // wait for serial port to connect. Needed for Leonardo only } Serial.println( "Ready!" ); // set the data rate for the SoftwareSerial port // for HC-05 use 38400 when poerwing with KEY/STATE set to HIGH on power on mySerial.begin(9600); } void loop() // run over and over { if (mySerial.available()) Serial.write(mySerial.read()); if (Serial.available()) mySerial.write(Serial.read()); } |