Configure Bluetooth modules - demianbadin/Ghettostation GitHub Wiki
Configuration
- Get Arduino IDE (http://arduino.cc/en/Main/Software#toc2)
- You will need a RS232 to TTL converter like this: (https://www.banggood.com/es/USB-to-RS232-TTL-Serial-FTDI-Chipset-FT232-Computer-Converter-Cable-p-80871.html)
Configure MASTER Bluetooth module
- Connect RS232 to TTL converter to the Bluetooth module: Tx->Rx / Rx<-Tx / Vcc / Gnd
- Open Arduino IDE -> Serial monitor; 9600 bauds
- Test an "AT" command. You will see a "OK" as response.
- Send the following commands:
- AT+NAME=tracker
- AT+UART=57600,0,0
- AT+PSWD=000000
- AT+ROLE=1
- AT+CMODE=1
Configure SLAVE Bluetooth module
- Connect RS232 to TTL converter to the Bluetooth module: Tx->Rx / Rx<-Tx / Vcc / Gnd
- Open Arduino IDE -> Serial monitor; 9600 bauds
- Test an "AT" command. You will see a "OK" as response.
- Send the following commands:
- AT+NAME=radio
- AT+UART=57600,0,0
- AT+PSWD=000000
- AT+ROLE=0
NOTE: You can change Master Slave role between tracker and radio. NOTE2: In some firmwares the AT commands can vary. For example:
- AT+NAMEradio
- AT+BAUD7
- AT+PIN000000
- AT+ROLE0