42
HC-06 Bluetooth module datasheet and configuration with Arduino | https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/[9/25/2018 4:04:44 PM] Menu By Stan | May 25, 2014 42 Bots Hobby robotics and electronics with Arduino and Raspberry Pi HC-06 Bluetooth module datasheet and confguration with Arduino In a previous pos I shared my notes on how to connect an Arduino to an Android phone using the the popular and cheap HC-06 Bluetooth module. In that example I used the Bluetooth module with its default settings. That works fne, but some applications may require changing the communication speed (Baud rate), the pairing code, the module name etc. For example, I am trying to set-up a way to program my Arduino Uno and Arduino Pro Mini wirelessly, over Bluetooth. This requires changing the baud rate of the module from the default 9600 to 115200, or 57600, to match the default sketch upload speed for these Arduino boards . Also, if things are not working, you may want to resore the settings back their defaults and sart troubleshooting from there. There are multiple versions of the module foating around, with diferent frmware and breakout boards, but the general functionality should match the HC-06 Bluetooth module datasheet. Step 1: Hook up the HC-06 Bluetooth module to the Arduino Connect the HC-06 Ground (GND) pin to ground (duh!). Connect the HC-06 VCC pin to 5v. Connect the HC-06 TX/TXD pin to Arduino digital pin 4. Connect the HC-06 RX/RXD pin to Arduino digital pin 2. It is recommended to use a level shifter, voltage regulator (or a voltage divider, like in my set-up below) to protect the Bluetooth module RX pin. It is designed for 3.3v operation, while the Arduino digital pins work on 5 volts. You do not need the LED on the Arduino pin 13 that I have on my set-up below.

HC-06 Bluetooth module datasheet and configuration with ... · HC-06 Bluetooth module datasheet and configuration with Arduino | 9/25

  • Upload
    others

  • View
    79

  • Download
    2

Embed Size (px)

Citation preview

  • HC-06 Bluetooth module datasheet and configuration with Arduino |

    https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/[9/25/2018 4:04:44 PM]

    Menu

    By Stan | May 25, 2014

    42 Bots Hobby robotics and electronics with Arduino and Raspberry Pi

    HC-06 Bluetooth module datasheet and confgurationwith Arduino

    In a previous pos I shared my notes on how to connect an Arduino to an Android phone using the the popular

    and cheap HC-06 Bluetooth module. In that example I used the Bluetooth module with its default settings.

    That works fne, but some applications may require changing the communication speed (Baud rate), the pairing

    code, the module name etc. For example, I am trying to set-up a way to program my Arduino Uno and Arduino

    Pro Mini wirelessly, over Bluetooth. This requires changing the baud rate of the module from the default 9600

    to 115200, or 57600, to match the default sketch upload speed for these Arduino boards.

    Also, if things are not working, you may want to resore the settings back their defaults and sart

    troubleshooting from there.

    There are multiple versions of the module foating around, with diferent frmware and breakout boards, but the

    general functionality should match the HC-06 Bluetooth module datasheet.

    Step 1: Hook up the HC-06 Bluetooth module to the Arduino

    Connect the HC-06 Ground (GND) pin to ground (duh!).

    Connect the HC-06 VCC pin to 5v.

    Connect the HC-06 TX/TXD pin to Arduino digital pin 4.

    Connect the HC-06 RX/RXD pin to Arduino digital pin 2.

    It is recommended to use a level shifter, voltage regulator (or a voltage divider, like in my set-up below) to

    protect the Bluetooth module RX pin. It is designed for 3.3v operation, while the Arduino digital pins work on 5

    volts. You do not need the LED on the Arduino pin 13 that I have on my set-up below.

    https://42bots.com/author/spd42/https://42bots.com/http://42bots.com/tutorials/how-to-connect-arduino-uno-to-android-phone-via-bluetooth/

  • HC-06 Bluetooth module datasheet and configuration with Arduino |

    https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/[9/25/2018 4:04:44 PM]

    Step 2: Upload the Arduino HC-06 confguration sketch

    The Arduino sketch below will allow you to confgure your HC-06 module using the Arduino IDE serial monitor.

    The Arduino will act as a middleman between the Bluetooth module and your computer. It will communicate

    with your PC over the built in serial connection through the USB cable, and with the HC-06 Bluetooth module

    over pins 4 and 2, using the Software Serial library.

    The Software Serial library comes pre-insalled with the lates version of the Arduino IDE. It has been

    developed to allow setting up serial communication on (almos any) digital pin of the Arduino, using software to

    replicate Arduino’s native serial support. See the SoftwareSerial library page for more details on its features

    and limitations.

    #include SoftwareSerial mySerial(4, 2); // RX, TX

    String command = ""; // Stores response of the HC-06 Bluetooth device

    void setup() { // Open serial communications: Serial.begin(9600); Serial.println("Type AT commands!"); // The HC-06 defaults to 9600 according to the datasheet. mySerial.begin(9600);

    http://arduino.cc/en/Reference/SoftwareSerial

  • HC-06 Bluetooth module datasheet and configuration with Arduino |

    https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/[9/25/2018 4:04:44 PM]

    }

    void loop() { // Read device output if available. if (mySerial.available()) { while(mySerial.available()) { // While there is more to be read, keep reading. command += (char)mySerial.read(); } Serial.println(command); command = ""; // No repeats } // Read user input if available. if (Serial.available()){ delay(10); // The delay is necessary to get this working! mySerial.write(Serial.read()); }}

    Credit: The code above is based on this article by user Ecno92

    Step 3: HC-06 Bluetooth module confguration using AT commands

    The HC-06 confgurations options are covered in section 9 of the module’s datasheet.

    The default settings are:

    Name / ID: linvorBaud rate: 9600Pairing code / password: 1234No parity check

    Tesing communication with the module:

    1. Open the Arduino Serial monitor. make sure you have selected the correct port and Baud rate of 9600

    2. You should see the text: Type AT commands! . If not, something is wrong and you need to re-checkyour set-up

    3. Type AT in the Arduino IDE Serial monitor input feld and press the Send button. You should seethe response: OK. Now you are ready to change the module’s settings!

    4. Type AT+VERSION without spaces in the Arduino IDE Serial monitor input feld and pressthe Send button. You should get a response that will have the module name and version, like:

    OKlinvorV1.85. One of the more useful attributes is the Bluetooth baud rate. You can set that by sending a command like

    AT+BAUD4, where the las number (4 in this case) is defning the rate as follows:

    AT+BAUD1———1200

    AT+BAUD2———2400

  • HC-06 Bluetooth module datasheet and configuration with Arduino |

    https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/[9/25/2018 4:04:44 PM]

    AT+BAUD3———4800

    AT+BAUD4———9600 (Default)

    AT+BAUD5———19200

    AT+BAUD6———38400

    AT+BAUD7———57600

    AT+BAUD8———115200

    AT+BAUD9———230400

    AT+BAUDA———460800

    AT+BAUDB———921600

    AT+BAUDC———1382400

    If you enter AT+BAUD4 you should receive a response OK9600. Do not set a rate above 115200, as youwill not be able to communicate with the module through your Arduino at that speed.

    Refer to section 9 of the module’s datasheet for all other available confguration options. In the video below I

    change the Baud rate of the Bluetooth module from 9600 to 115200.

    JY-MCU HC-06 Bluetooth Module configuration with Arduino Uno

    Shop Related Products

    https://www.youtube.com/watch?v=3UgsmRMWrRw

  • HC-06 Bluetooth module datasheet and configuration with Arduino |

    https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/[9/25/2018 4:04:44 PM]

    ← Arduino program / sketch upload speeds Soldering tutorials, tips and tricks →

    Category: Tutorials Tags: bluetooth , HC-06

    37 thoughts on “HC-06 Bluetooth module datasheet and confguration with Arduino”

    Hi san, I have an issue with my arduino and bluetooth module

    Im using blueterm(android) to send text to the arduino and I want to precess it, but when I debug with the serial

    monitor , it shows only garbage character, always shows □□□

    I set the serial with 9600 baud rate for the bluetooth and the same for usb serial

    Do you have any idea how solve this

    Reply ↓

    Did you also pick 9600 as the baud rate in the Arduino serial monitor window? If yes. likely the Bluetooth

    module is confgured to run on a diferent baud rate than 9600. That is the only think that I can think of.

    Reply ↓

    Pingback: Bluetooth Communication for the Half-Byte Console (or how to make your HC-06 work) | ye old Half

    Byte blog

    hello, the Type at commands! shows up but when I send AT nothing happens. please could you help

    Reply ↓

    Ads by Amazon

    rafeJune 4, 2014

    Stan June 5, 2014

    Pos author

    OllieAugus 18, 2014

    https://42bots.com/resources/arduino-program-sketch-upload-speeds/https://42bots.com/resources/arduino-program-sketch-upload-speeds/https://42bots.com/resources/soldering-tutorials-tips-and-tricks/https://42bots.com/resources/soldering-tutorials-tips-and-tricks/https://42bots.com/#twitterhttps://42bots.com/#facebookhttps://42bots.com/#google_plushttps://42bots.com/#pinteresthttps://42bots.com/#reddithttps://www.addtoany.com/share#url=https%3A%2F%2F42bots.com%2Ftutorials%2Fhc-06-bluetooth-module-datasheet-and-configuration-with-arduino%2F&title=HC-06%20Bluetooth%20module%20datasheet%20and%20configuration%20with%20Arduinohttps://42bots.com/topic/tutorials/https://42bots.com/tag/bluetooth/https://42bots.com/tag/hc-06/https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=7268#respondhttps://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=7367#respondhttp://halfbyteblog.wordpress.com/2014/06/19/bluetooth-communication-for-the-half-byte-console-or-how-to-make-your-hc-06-work/http://halfbyteblog.wordpress.com/2014/06/19/bluetooth-communication-for-the-half-byte-console-or-how-to-make-your-hc-06-work/https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=17084#respondhttps://www.amazon.com/adprefshttp://42bots.com/

  • HC-06 Bluetooth module datasheet and configuration with Arduino |

    https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/[9/25/2018 4:04:44 PM]

    I am getting the same absent response. I went through and tried changing “baud” in the script and no response

    from any one of them?

    Reply ↓

    hi!!

    i connected jy-mcu with arduino uno using softwareSerial, also i connected lcd with arduino uno. Both LCD and

    JY-MCU is working fne. But i saw a voltage fuctuation on LCD screen. i measure the voltage at lcd, voltage

    fuctuation is between 4.5v to 3.9 v. also when i removed the JY-MCU no fuctuation appear on lcd.

    kindly sugges how to solve this issue..?

    Reply ↓

    I would like to receive more details about communication between two arduinos using jc-06 bluetooth

    thank you

    tzafrir

    Reply ↓

    thanks for this. initially i did not get the ‘OK’ response but upon removing some other devices from the 5V feed

    and changing the line endings setting in serial monitor it worked.

    Reply ↓

    Hi, looks like, that your voltage divider might have a problem. The resisor with the 20K label on the photo has a

    black ring in the middle (not an orange, as expected). So with such a small value the devider works with nearly

    5 V, which seems to be OK. Please check again.

    JulianApril 25, 2015

    BijendraSinghAugus 20, 2014

    tzafrir shlomoOctober 5, 2014

    willOctober 11, 2014

    hartwigNovember 16, 2014

    https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=135733#respondhttps://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=18337#respondhttps://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=30045#respondhttps://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=33348#respondhttp://techneesh.com/

  • HC-06 Bluetooth module datasheet and configuration with Arduino |

    https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/[9/25/2018 4:04:44 PM]

    Reply ↓

    r 20k is 1% with fve color rings : red black black red +tolerance brown=1%

    http://www.digikey.com/en/resources/conversion-calculators/conversion-calculator-resisor-color-code-5-band

    Reply ↓

    Hello, Im trying to control an Elevator using an Arduino UNO and HC-06 Bluetooth module .

    When Im sending data from the Android Mobile App I noticed that their is fuctuation.

    My Code is:

    void loop(){

    if(Serial.available()>0){

    while(Serial.available()>0){

    sate = Serial.read();}

    }

    if(sate == ‘1’){

    F1 = HIGH;

    F2 = LOW;

    F3 = LOW;

    F4 = LOW;

    }

    else if (sate == ‘2’){

    F2 = HIGH;

    F1 = LOW;

    F3 = LOW;

    F4 = LOW;

    }

    else if (sate == ‘3’){

    F3 = HIGH;

    F1 = LOW;

    F2 = LOW;

    F4 = LOW;

    }

    else if (sate == ‘4’){

    lemireDecember 13, 2014

    MusafaNovember 24, 2014

    https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=60570#respondhttp://www.digikey.com/en/resources/conversion-calculators/conversion-calculator-resistor-color-code-5-bandhttps://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=86785#respond

  • HC-06 Bluetooth module datasheet and configuration with Arduino |

    https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/[9/25/2018 4:04:44 PM]

    F4 = HIGH;

    F1 = LOW;

    F2 = LOW;

    F3 = LOW;

    }

    Serial.println(F2);

    }

    F2 should be HIGH if and only if I send number (2) from the mobile to arduino;

    However,what is happening with me is that if I send number 3 or number 4 , F2 will be HIGH for a small time

    then will turns LOW(Zero).

    I wants F2 to be HIGH only if I send number 2 from mobile to the arduino.

    Can anyone helps !

    Thanks in advance.

    Reply ↓

    I would check your value of sate and work from there….

    Reply ↓

    When I type AT in the serial monitor, I don’t get OK back, so something is wrong. How do I set the Jy-MCU

    back to factory settings, so I can sart over?

    Thanks………..Antonio

    Reply ↓

    what micro control unit? Check this link mos AT functions are not supported in versions

  • HC-06 Bluetooth module datasheet and configuration with Arduino |

    https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/[9/25/2018 4:04:44 PM]

    Did you solve your problem? i got suck on the same problem too , please help

    Reply ↓

    Hey,

    I guess you did not manage to convert your HC-06 into a wireless programmer?

    However if you did, what technique did you use to enable the res, to complete the programming sequence?

    With a HC-05 I have seen that you tap a wire from pin 32 on the BT module, and use the command

    AT+POLAR=1,0.

    With my HC-06 the frmware version 1.5 doesn’t support this command, i am assuming that v1.8 doesn’t either.

    Any help here would be greatly appreciated.

    Regards

    Dave

    http://wiki.pinguino.cc/index.php/SPP_Bluetooth_Modules#HC-06.2FLinvor_v1.4.2Fv1.5_frmware_versions

    http://makezine.com/projects/diy-arduino-bluetooth-programming-shield/

    Reply ↓

    Hi D9ve, I got it working, but with some intermittent issues. I was on a Windows 7 machine at the time and

    used the Arduino 1.5.6 Beta IDE. Essentially the approach was as follows:

    Confgure the HC-o6 module to communicate on the correct baud rate, depending on the Arduino variant

    you are programming. I used an Arduino Pro Mini as a tes subject.

    Connect the HC-06 to the Arduino using the SoftwareSerial library

    I uploaded a sketch (via a USB cable) on the Arduino that lisens for a “resart” command (I used “R”) via

    the Serial over Bluetooth set-up.

    When a “resart” command is received via the Serial over Bluetooth connection, the Arduino pulls a digital

    pin (I used 2) low. The digital pin triggers a Monosable Multivibrator Circuit using a 555 timer, that pulls

    akmaMay 18, 2016

    D9veDecember 22, 2014

    StanDDecember 26, 2014

    https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=180187#respondhttp://wiki.pinguino.cc/index.php/SPP_Bluetooth_Modules#HC-06.2FLinvor_v1.4.2Fv1.5_firmware_versionshttp://makezine.com/projects/diy-arduino-bluetooth-programming-shield/https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=93903#respondhttp://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/http://42bots.com/tutorials/arduino-uno-and-the-jy-mcu-bluetooth-module-with-softwareserial/http://42bots.com/electronics-fundamentals/555-timer-monostable-multivibrator-circuit/http://na/

  • HC-06 Bluetooth module datasheet and configuration with Arduino |

    https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/[9/25/2018 4:04:44 PM]

    the Arduino reset pin down. The resart process then kisks of the bootloader. The 555 timer circuit might

    be an overkill, but the Monosable Multivibrator guarantees that the Arduino reset pin will be held low for

    sufcient time. BTW: using the Watchdog timer to resart the Arduino does not seem to trigger the

    Bootloader, so it was a dead end for me.

    After sending the “resart” command I upload the new sketch over the com port where the Bluetooth

    connection is esablished.

    This generally worked. Occasionally, I would get out of sync errors. Often I got an error at the end of the upload

    (can’t remember the specifc code), but the sketch had actually been loaded successfully. I did not try very

    large programs to tes if the size of the fle matters. I moved on to other projects, life got in the way…Overall, I

    think the HC-05 module might be easier to use. The easies is probably the Bluetoth module by Adafruit

    (Bluefruit EZ-Link) that has a DTR / reset pin in the breakout board and automatically selects the correct

    communication speed.

    Reply ↓

    Hi, i have a quesion and i hope you guys can help me with this. how does the arduino actually know actually

    know which data it is going to send or receive? in which part of the code does it do that? i want to make two

    arduinos one having a HC05 as a maser sending data over to a HC06 slave on two diferent laptops. I hope

    you can answer me.

    Reply ↓

    Hello, I’ve got a vexing issue. I followed the method above to modify the Baud rate of my HC-06, and since I’m

    curious I’ve tried to set a baud rate greater than 115200bps (more precisely I’ve tried 230400bps). The problem

    is that today I can’t communicate anymore with my HC-06 since my Arduino UNO is apparently not able to

    Serial.write correctly with a baud rate of 230400bps.

    Now, I jus have the feeling to be sucked out of my fat without the keys…

    Have you got any workaround to send a new ATCommand “AT+BAUD4” to my HC-06?

    Reply ↓

    Hi Jerome, you might have some luck using a terminal program directly (without going through the Arduino

    IDE). I never had to do that, so unfortunately can’t provide much help here.

    learning kidJanuary 21, 2015

    JeromeMMarch 20, 2015

    Stan March 22, 2015

    Pos author

    https://www.adafruit.com/products/1588https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=96149#respondhttps://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=107949#respondhttps://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=125507#respondhttp://42bots.com/

  • HC-06 Bluetooth module datasheet and configuration with Arduino |

    https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/[9/25/2018 4:04:44 PM]

    Reply ↓

    Thank you Stan, I’ll try as soon as I get my serial plug. For the moment, I jus bought a new HC-06.

    Reply ↓

    How can I get the signal srength on the HC-06 Bluetooth nodule if possible give seps please I have been

    trying

    Reply ↓

    Pingback: On Bluetooth, Arduino and Android - A.Quarter.To.Seven

    HI when i key in “AT”, it give me the response of below

    O

    K

    Reply ↓

    what softwares are needed to do it?

    Reply ↓

    I’m hoping that someone can help me to get the HC-06 up and running. It appears the problem is that the HC-

    06

    remains disconnected, however It is paired. The led on the HC-06 keeps fashing. The voltage to the RXD on

    the Hc-06 is .96 volts. The TX pin from the Arduino is connected to the 4.7 k resisor divider, the voltage at this

    resisor is 1.4 volts. When the jumper from the TX is the voltage measures 4.8 volts. I’m not sure what’s

    bringing the voltage to 0.91 volts at the 4.7K/10K divider. Is 3.3 volts the minimal voltage that is required at the

    JeromeMMarch 24, 2015

    WalterApril 19, 2015

    KJOctober 9, 2015

    malikaOctober 16, 2015

    TomDecember 28, 2015

    https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=126656#respondhttps://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=127427#respondhttps://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=133983#respondhttp://www.stefanocottafavi.com/on-bluetooth-arduino-and-android/https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=164977#respondhttps://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=166315#respond

  • HC-06 Bluetooth module datasheet and configuration with Arduino |

    https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/[9/25/2018 4:04:44 PM]

    RX of the HC-06?

    Reply ↓

    Tom, you may have a faulty module (happened to me once). I was able to connect to the module and issue AT

    commands, paired successfully, but could not connect. Wased a lot of time troubleshooting with no luck. Do

    you have a spare, you can tes your set-up with?

    Reply ↓

    Yes, I have 3 HC-06 and tried them all with the same results. Remain disconnected and unable to send AT

    commands. Any other ideas??

    Thanks

    Reply ↓

    Why are you using 5v as vcc when in datasheet is said that you have to use 3.3v?

    Reply ↓

    The version of the module I have is mounted on a board with a 3.3v voltage regulator (like almos all I have

    seen), so it is safe to power the module with 5v. The communication lines though are sill 3.3v and there is no

    built in level adjusment, so if you are using a 5v Arduino, you need to do that yourself.

    Reply ↓

    hi i have a problem

    i have followed your tutorial and i can only see “Type AT Commands! on the serial monitor but i cannot receive

    Stan December 28, 2015

    Pos author

    TomJanuary 4, 2016

    joseMarch 25, 2016

    Stan March 26, 2016

    Pos author

    FarrukhMarch 28, 2016

    https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=170651#respondhttps://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=170675#respondhttps://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=171137#respondhttps://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=175014#respondhttps://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=175125#respondhttp://42bots.com/http://42bots.com/

  • HC-06 Bluetooth module datasheet and configuration with Arduino |

    https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/[9/25/2018 4:04:44 PM]

    any response from the Bluetooth module

    can you please sugges

    i have checked the rx voltage by applying the voltage divider and i can read voltage 3.25 max and it range from

    2.8 to 3.25

    do you think this could be the fault?

    Reply ↓

    Hello,

    I am trying to do an automatic BT uploader for the UNO, but ran into a snag. I based it on the Makezine article:

    http://makezine.com/projects/diy-arduino-bluetooth-programming-shield/

    I am controlling AT mode with the Uno through pin 34, and using pin 32 low output to reset the Uno per the

    insructable circuit. The snag is when the polar=1,0 command is active, then there is also a low pulse on pin 32

    when re-entering AT mode by bringing pin 34 high again. This is causing the Uno to reset. According to several

    sources pin 32 should only go low when a BT connection is made, but it is also occurring when entering AT

    mode and also when powering on the HC-05. This makes it impossible to run the sketch because its resetting

    the Uno.

    Do you have any ideas for how to fx this? The pin 32 low pulse is 1-2 ms then it is consant high 3.3V again.

    Thanks

    Reply ↓

    Hello Friends! Already I tried everything but I can not!

    I received the message “Type AT commands” but when I type the command, do not receive return; If anyone

    can help me, thank you

    Reply ↓

    Pingback: HC-06 and AT-09 BLE module with the Arduino | smartmecard

    Hello,

    perigalacticonMay 26, 2016

    Daniel FernandesSeptember 10, 2016

    MannyMay 6, 2017

    https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=175258#respondhttp://makezine.com/projects/diy-arduino-bluetooth-programming-shield/https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=180878#respondhttps://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=189135#respondhttps://smartmecard.wordpress.com/2017/03/04/using-the-at-09-ble-module-with-the-arduino/

  • HC-06 Bluetooth module datasheet and configuration with Arduino |

    https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/[9/25/2018 4:04:44 PM]

    I have followed your insructions with success!

    For my case, within the Arduino IDE serial monitor, I simply had to choose “No line ending” and I managed to

    upgrade the baud rate to 115200.

    Thank you very much for your very helpful pos:-)

    Manny

    Reply ↓

    Problem of entering AT command mode

    I connected my new HC-06(4 terminal points) to the Arduino UNO exactly as the diagram shown above and

    successfully uploaded the sketch. However, I didn’t get a response after entering “AT” via the serial monitor. I

    tried diferent baud rate and “no line ending, new line, both NL & CR” but none of them worked. I checked the

    connection numerous times and could not fnd a mismatch. The only thing I found is that my HC-06 does not

    have a “key” but replaced by a “EN”. Is this the culprit of my failure?

    Remark: I believe my HC-06 is physically sound as it could communicate quite well with my mobile phone via

    “Bluetooth Terminal” yeserday.

    Thanks.

    Reply ↓

    Pingback: Problem mit hc-06 bluetooth modul? – HKTXT

    Leave a Reply

    Your email address will not be published. Required felds are marked *

    Comment

    Name *

    Sam WongJanuary 25, 2018

    https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=208942#respondhttps://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/?replytocom=240934#respondhttp://www.hktxt.me/problem-mit-hc-06-bluetooth-modul.htm

  • HC-06 Bluetooth module datasheet and configuration with Arduino |

    https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/[9/25/2018 4:04:44 PM]

    Email *

    Website

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Recent Comments

    Carrot on ESP8266 example: Wi-Fi Access point, satic IP, web-server and remote GPIO control

    Jude on ESP8266 example: Wi-Fi Access point, satic IP, web-server and remote GPIO control

    Problem mit hc-06 bluetooth modul? – HKTXT on HC-06 Bluetooth module datasheet and confguration with Arduino

    t on Access your Raspberry Pi Terminal and Graphical Desktop remotely using SSH and VNC

    RogerRabbit on Arduino Joysick Module Example

    Shop Related Products

    Ads by Amazon

    https://akismet.com/privacy/https://42bots.com/tutorials/esp8266-example-wi-fi-access-point-web-server-static-ip-remote-control/#comment-272302https://42bots.com/tutorials/esp8266-example-wi-fi-access-point-web-server-static-ip-remote-control/#comment-270882http://www.hktxt.me/problem-mit-hc-06-bluetooth-modul.htmhttps://42bots.com/tutorials/access-raspberry-pi-terminal-and-desktop-remotely-with-ssh-and-vnc/#comment-267444https://42bots.com/tutorials/arduino-joystick-module-example/#comment-267084https://www.amazon.com/adprefs

  • HC-06 Bluetooth module datasheet and configuration with Arduino |

    https://42bots.com/tutorials/hc-06-bluetooth-module-datasheet-and-configuration-with-arduino/[9/25/2018 4:04:44 PM]

    Copyright 2013 Privacy Policy

    Iconic One Theme | Powered by Wordpress

    Recent Poss

    A circuit to use 2 single cell li-po / li-on batteries in series and charge them in parallel

    ESP8266 example: Wi-Fi Access point, satic IP, web-server and remote GPIO control

    ESP8266 Wi-Fi tutorial and examples using the Arduino IDE

    How to program the ESP8266 WiFi Modules with the Arduino IDE (Part 2 of 2)

    How to program the ESP8266 WiFi Modules with the Arduino IDE (Part 1 of 2)

    Categories

    3D Printing (1)

    ATTiny (5)

    Character LCD Display (2)

    Competitions (13)

    Electronics Fundamentals (3)

    ESP8266 (4)

    Line Following (4)

    Obsacle Avoidance (6)

    Raspberry Pi (2)

    Resources (15)

    Robotic Gripper (1)

    Showcase (19)

    Tutorials (29)

    Optimization WordPress Plugins & Solutions by W3 EDGE

    http://42bots.com/privacy-policy-for-42bots-com/http://themonic.com/iconic-one/http://wordpress.org/https://42bots.com/resources/a-circuit-to-use-2-single-cell-li-po-li-on-batteries-in-series-and-charge-them-in-parallel/https://42bots.com/tutorials/esp8266-example-wi-fi-access-point-web-server-static-ip-remote-control/https://42bots.com/tutorials/esp8266-wifi-tutorial-arduino-ide/https://42bots.com/tutorials/how-to-program-esp8266-wifi-modules-with-the-arduino-ide-part-2-of-2/https://42bots.com/tutorials/how-to-program-esp8266-wifi-modules-with-the-arduino-ide/https://42bots.com/topic/3d-printing/https://42bots.com/topic/attiny/https://42bots.com/topic/character-lcd-display/https://42bots.com/topic/competitions/https://42bots.com/topic/electronics-fundamentals/https://42bots.com/topic/esp8266/https://42bots.com/topic/line-following/https://42bots.com/topic/arduino-obstacle-avoidance/https://42bots.com/topic/raspberry-pi/https://42bots.com/topic/resources/https://42bots.com/topic/robotic-gripper/https://42bots.com/topic/showcase/https://42bots.com/topic/tutorials/https://www.w3-edge.com/products/

  • Guangzhou HC Information Technology Co., Ltd.

    www.wavesen.com Phone: 020-84083341 Fax: 020-84332079 QQ:1043073574 Address: Room 527, No.13, Jiangong Road, Tianhe software park, Tianhe district, Guangzhou Post: 510660 Technology consultant: [email protected] Business consultant:[email protected] Complaint and suggestion: [email protected]

    Guangzhou HC Information Technology Co., Ltd.

    Product Data Sheet

    Module Data Sheet Rev 1

    1.0 2.0 2.1 2.2

    2006/6/18 2006/9/6 2010/4/22 2011/4/6

    DRAWN BY :

    Ling Xin

    MODEL : HC-06

    CHECKED BY :

    Eric Huang

    Description:: BC04 has external 8M Flash and EDR module HC-06 is industrial, and compatible with civil HC-04

    APPD. BY:

    Simon Mok

    REV: 2.0

    Page :

    Former version introduction

    HC-06 is the higher version of LV_BC_2.0. Linvor is the former of wavesen.

  • Guangzhou HC Information Technology Co., Ltd.

    www.wavesen.com Phone: 020-84083341 Fax: 020-84332079 QQ:1043073574 Address: Room 527, No.13, Jiangong Road, Tianhe software park, Tianhe district, Guangzhou Post: 510660 Technology consultant: [email protected] Business consultant:[email protected] Complaint and suggestion: [email protected]

    Contents

    1. Product’s picture

    2. Feature

    3. Pins description

    4. The parameters and mode of product

    5. Block diagram

    6. Debugging device

    7. Characteristic of test

    8. Test diagram

    9. AT command set

  • Guangzhou HC Information Technology Co., Ltd.

    www.wavesen.com Phone: 020-84083341 Fax: 020-84332079 QQ:1043073574 Address: Room 527, No.13, Jiangong Road, Tianhe software park, Tianhe district, Guangzhou Post: 510660 Technology consultant: [email protected] Business consultant:[email protected] Complaint and suggestion: [email protected]

    1. Product’s picture

    Figure 1 A Bluetooth module

  • Guangzhou HC Information Technology Co., Ltd.

    www.wavesen.com Phone: 020-84083341 Fax: 020-84332079 QQ:1043073574 Address: Room 527, No.13, Jiangong Road, Tianhe software park, Tianhe district, Guangzhou Post: 510660 Technology consultant: [email protected] Business consultant:[email protected] Complaint and suggestion: [email protected]

    Figure 2. A Bluetooth module size

    Figure 3 50 pieces chips in an anti-static blister package.

  • Guangzhou HC Information Technology Co., Ltd.

    www.wavesen.com Phone: 020-84083341 Fax: 020-84332079 QQ:1043073574 Address: Room 527, No.13, Jiangong Road, Tianhe software park, Tianhe district, Guangzhou Post: 510660 Technology consultant: [email protected] Business consultant:[email protected] Complaint and suggestion: [email protected]

    2. Feature

    Wireless transceiver

    Sensitivity (Bit error rate) can reach -80dBm.

    The change range of output’s power: -4 - +6dBm.

    Function description (perfect Bluetooth solution)

    Has an EDR module; and the change range of modulation depth: 2Mbps - 3Mbps.

    Has a build-in 2.4GHz antenna; user needn’t test antenna.

    Has the external 8Mbit FLASH

    Can work at the low voltage (3.1V~4.2V). The current in pairing is in the range of 30~40mA.

    The current in communication is 8mA.

    Standard HCI Port (UART or USB)

    USB Protocol: Full Speed USB1.1, Compliant With 2.0

    This module can be used in the SMD.

    It’s made through RoHS process.

    The board PIN is half hole size.

    Has a 2.4GHz digital wireless transceiver.

    Bases at CSR BC04 Bluetooth technology.

    Has the function of adaptive frequency hopping.

    Small (27mm×13mm×2mm)

    Peripherals circuit is simple.

    It’s at the Bluetooth class 2 power level.

    Storage temperature range: -40 ℃ - 85℃,work temperature range: -25 ℃ - +75℃

    Any wave inter Interference: 2.4MHz,the power of emitting: 3 dBm.

    Bit error rate: 0. Only the signal decays at the transmission link, bit error may be produced. For

    example, when RS232 or TTL is being processed, some signals may decay.

    Low power consumption

    Has high-performance wireless transceiver system

    Low Cost

  • Guangzhou HC Information Technology Co., Ltd.

    www.wavesen.com Phone: 020-84083341 Fax: 020-84332079 QQ:1043073574 Address: Room 527, No.13, Jiangong Road, Tianhe software park, Tianhe district, Guangzhou Post: 510660 Technology consultant: [email protected] Business consultant:[email protected] Complaint and suggestion: [email protected]

    Application fields:

    Bluetooth Car Handsfree Device

    Bluetooth GPS

    Bluetooth PCMCIA , USB Dongle

    Bluetooth Data Transfer Software

    CSR

    3.PINs description

    Figure 3 PIN configuration

    The PINs at this block diagram is as same as the physical one. PIN Name PIN # Pad type Description Note

    GND 13 21 22 VSS Ground pot

    1V8 14 VDD Integrated 1.8V (+) supply with On-chip linear regulator output

    within 1.7-1.9V

    VCC 12 3.3V AIO0 9 Bi-Directional Programmable input/output line

    AIO1 10 Bi-Directional Programmable input/output line

  • Guangzhou HC Information Technology Co., Ltd.

    www.wavesen.com Phone: 020-84083341 Fax: 020-84332079 QQ:1043073574 Address: Room 527, No.13, Jiangong Road, Tianhe software park, Tianhe district, Guangzhou Post: 510660 Technology consultant: [email protected] Business consultant:[email protected] Complaint and suggestion: [email protected]

    PIO0 23 Bi-Directional

    RX EN Programmable input/output line, control output for LNA(if fitted)

    PIO1 24 Bi-Directional

    TX EN Programmable input/output line, control output for PA(if fitted)

    PIO2 25 Bi-Directional Programmable input/output line PIO3 26 Bi-Directional Programmable input/output line PIO4 27 Bi-Directional Programmable input/output line PIO5 28 Bi-Directional Programmable input/output line PIO6 29 Bi-Directional Programmable input/output line CLK_REQ PIO7 30 Bi-Directional Programmable input/output line CLK_OUT PIO8 31 Bi-Directional Programmable input/output line PIO9 32 Bi-Directional Programmable input/output line

    PIO10 33 Bi-Directional Programmable input/output line PIO11 34 Bi-Directional Programmable input/output line

    RESETB 11 CMOS Input with

    weak intemal pull-down

    UART_RTS 4 CMOS output,

    tri-stable with weak internal pull-up

    UART request to send, active low

    UART_CTS 3 CMOS input with

    weak internal pull-down

    UART clear to send, active low

    UART_RX 2 CMOS input with

    weak internal pull-down

    UART Data input

    UART_TX 1

    CMOS output, Tri-stable with weak internal

    pull-up

    UART Data output

    SPI_MOSI 17 CMOS input with

    weak internal pull-down

    Serial peripheral interface data input

    SPI_CSB 16 CMOS input with

    weak internal Chip select for serial peripheral

    interface, active low

  • Guangzhou HC Information Technology Co., Ltd.

    www.wavesen.com Phone: 020-84083341 Fax: 020-84332079 QQ:1043073574 Address: Room 527, No.13, Jiangong Road, Tianhe software park, Tianhe district, Guangzhou Post: 510660 Technology consultant: [email protected] Business consultant:[email protected] Complaint and suggestion: [email protected]

    pull-up

    SPI_CLK 19 CMOS input with

    weak internal pull-down

    Serial peripheral interface clock

    SPI_MISO 18 CMOS input with

    weak internal pull-down

    Serial peripheral interface data Output

    USB_- 15 Bi-Directional

    USB_+ 20 Bi-Directional

    1.8V 14 1.8V external power supply input

    Default : 1.8V

    internal power supply.

    PCM_CLK 5 Bi-Directional

    PCM_OUT 6 CMOS output

    PCM_IN 7 CMOS Input

    PCM_SYNC 8 Bi-Directional

  • Guangzhou HC Information Technology Co., Ltd.

    www.wavesen.com Phone: 020-84083341 Fax: 020-84332079 QQ:1043073574 Address: Room 527, No.13, Jiangong Road, Tianhe software park, Tianhe district, Guangzhou Post: 510660 Technology consultant: [email protected] Business consultant:[email protected] Complaint and suggestion: [email protected]

    4. The parameters and mode of product

    If you want more information, please visit www.wavesen.com.

  • Guangzhou HC Information Technology Co., Ltd.

    www.wavesen.com Phone: 020-84083341 Fax: 020-84332079 QQ:1043073574 Address: Room 527, No.13, Jiangong Road, Tianhe software park, Tianhe district, Guangzhou Post: 510660 Technology consultant: [email protected] Business consultant:[email protected] Complaint and suggestion: [email protected]

  • Guangzhou HC Information Technology Co., Ltd.

    www.wavesen.com Phone: 020-84083341 Fax: 020-84332079 QQ:1043073574 Address: Room 527, No.13, Jiangong Road, Tianhe software park, Tianhe district, Guangzhou Post: 510660 Technology consultant: [email protected] Business consultant:[email protected] Complaint and suggestion: [email protected]

    5. Block diagram

    Figure 5 Block diagram 1

    Figure 5 Block diagram 2

  • Guangzhou HC Information Technology Co., Ltd.

    www.wavesen.com Phone: 020-84083341 Fax: 020-84332079 QQ:1043073574 Address: Room 527, No.13, Jiangong Road, Tianhe software park, Tianhe district, Guangzhou Post: 510660 Technology consultant: [email protected] Business consultant:[email protected] Complaint and suggestion: [email protected]

    HC-04/06 master device has a function of remembering the last paired slave device. As a master device, it will search the last paired salve device until the connection is built. But if the WAKEUP bottom is pressed, HC-04/06 will lose the memory and research the new slave device.

    6. Debugging device

    6.1 Device

    PC, hardware, 3G,3G Frequency Counter (SP3386), 3.15V DC power supply, Shielding,Bluetooth

    Test box. 6.2 Software

    7. Characteristic of test Test Condition 25℃ RH 65%

    Min Typ Max Unit 1. Carrier Freq. ( ISM Band ) 2.4 2.4835 MHz 2. RF O/P Power -6 2 4 dBm 3. Step size of Power control 2 8 dB 4. Freq. Offset ( Typical Carrier freq.) -75 75 KHz 5. Carrier Freq. drift ( Hopping on, drift rate/50uS ) -20 20 KHz 1 slot packet -25 25 KHz 3 slot packet -40 -40 KHz 6. Average Freq. Deviations ( Hopping off, modulation ) 140 175 KHz Freq. Deviation 115 KHz

    Ratio of Freq. Deviation 0.8 7 . Receive Sensitivity @< 0.1% BER( Bit error rate )-83 dBm

  • Guangzhou HC Information Technology Co., Ltd.

    www.wavesen.com Phone: 020-84083341 Fax: 020-84332079 QQ:1043073574 Address: Room 527, No.13, Jiangong Road, Tianhe software park, Tianhe district, Guangzhou Post: 510660 Technology consultant: [email protected] Business consultant:[email protected] Complaint and suggestion: [email protected]

    8. Test diagram

    UUT Interface circuit

    3GHz Ferq. Counter

    RF O/P

    SPI

    LPT1

    COM 1

    RS232

    CH C

    Fig 1. Programming and Freq. Alignment

    Shielding Box

    Computer

    UUT

    Bluetooth test set Computer

    Fig 2 RF parameter Test Procedure

    RF Port

    RF I/P

    GPIB

    COM 1

    RS232

    SPI

    LP1

    Shielding Box

  • Guangzhou HC Information Technology Co., Ltd.

    www.wavesen.com Phone: 020-84083341 Fax: 020-84332079 QQ:1043073574 Address: Room 527, No.13, Jiangong Road, Tianhe software park, Tianhe district, Guangzhou Post: 510660 Technology consultant: [email protected] Business consultant:[email protected] Complaint and suggestion: [email protected]

  • Guangzhou HC Information Technology Co., Ltd.

    www.wavesen.com Phone: 020-84083341 Fax: 020-84332079 QQ:1043073574 Address: Room 527, No.13, Jiangong Road, Tianhe software park, Tianhe district, Guangzhou Post: 510660 Technology consultant: [email protected] Business consultant:[email protected] Complaint and suggestion: [email protected]

    9.AT command set The way to the AT command mode: supply power to the module, it will enter to the AT mode if it

    needn’t pair. The interval of command is about 1 second. Default parameter: Baud rate:9600N81, ID: linvor, Password:1234

    1. Test communication Send: AT (please send it every second) Back: OK 2. Reset the Bluetooth serial baud rate Send: AT+BAUD1 Back: OK1200 Send: AT+BAUD2 Back: OK2400 …… 1---------1200 2---------2400 3---------4800 4---------9600 (Default) 5---------19200 6---------38400 7---------57600 8---------115200 9---------230400 A---------460800 B---------921600 C---------1382400

    PC can’t support the baud rate lager than 115200. The solution is: make the MCU have higher baud rate (lager than 115200) through programming, and reset the baud rate to low level through the AT command.

    The baud rate reset by the AT command can be kept for the next time even though the power is cut off. 3. Reset the Bluetooth name Send: AT+NAMEname Back: OKname

  • Guangzhou HC Information Technology Co., Ltd.

    www.wavesen.com Phone: 020-84083341 Fax: 020-84332079 QQ:1043073574 Address: Room 527, No.13, Jiangong Road, Tianhe software park, Tianhe district, Guangzhou Post: 510660 Technology consultant: [email protected] Business consultant:[email protected] Complaint and suggestion: [email protected]

    Parameter name: Name needed to be set (20 characters limited) Example: Send: AT+NAMEbill_gates Back: OKname Now, the Bluetooth name is reset to be “bill_gates”

    The parameter can be kept even though the power is cut off. User can see the new Bluetooth name in PDA refresh service. (Note: The name is limited in 20 characters.)

    4. change the Bluetooth pair password Send: AT+PINxxxx Back:OKsetpin

    Parameter xxxx: The pair password needed to be set, is a 4-bits number. This command can be used in the master and slave module. At some occasions, the master module may be asked to enter the password when the master module tries to connect the slave module (adapter or cell-phone). Only if the password is entered, the successful connection can be built. At the other occasions, the pair can be finish automatically if the master module can search the proper slave module and the password is correct. Besides the paired slave module, the master can connect the other devices who have slave module, such as Bluetooth digital camera, Bluetooth GPS, Bluetooth serial printer etc. Example: Send: AT+PIN8888 Back: OKsetpin Then the password is changed to be 8888, while the default is 1234. This parameter can be kept even though the power is cut off. 5. No parity check ( The version, higher than V1.5, can use this command ) Send: AT+PN (This is the default value) Back: OK NONE 6. Set odd parity check ( The version, higher than V1.5, can use this command ) Send: AT+PO Back: OK ODD 7. Set even parity check( The version, higher than V1.5, can use this command ) Send: AT+PE Back: OK EVEN

  • Guangzhou HC Information Technology Co., Ltd.

    www.wavesen.com Phone: 020-84083341 Fax: 020-84332079 QQ:1043073574 Address: Room 527, No.13, Jiangong Road, Tianhe software park, Tianhe district, Guangzhou Post: 510660 Technology consultant: [email protected] Business consultant:[email protected] Complaint and suggestion: [email protected]

    8. Get the AT version Send: AT+VERSION Back: LinvorV1.n

  • Arduino program / sketch upload speeds |

    http://42bots.com/resources/arduino-program-sketch-upload-speeds/[9/25/2018 4:07:43 PM]

    Menu

    By Stan | May 24, 2014

    42 Bots Hobby robotics and electronics with Arduino and Raspberry Pi

    Arduino program / sketch upload speeds

    I am working on circuit that will allow me to program my Arduino boards (I have an Arduino Uno and a couple of

    Arduino Pro Minis) over a wireless Bluetooth connection. I am planning to use my cheap and easy to fnd HC-

    06 Bluetooth module for this. One of the frs thing to fgure out is the baud rate that the Arduino IDE uses,

    when uploading the sketches to the various Arduino boards. I need to make sure that my HC-06 Bluetooth

    module is confgured to communicate at the same rate, so the avrdude says happy.

    I bit of research online revealed the following:

    On the computer side the baud rate is specifed in the Arduino IDE confguration fles, and more

    specifcally in boards.txt.

    On the micro-controller side, the baud rate is coded in the specifc bootloader, used by the board.

    A looked through the boards.txt fle and here is what I found:

    Board IC Upload Speed

    Arduino Yun ATmega32u4 57600

    Arduino Uno ATmega328p 115200

    Arduino Duemilanove ATmega328 57600

    Arduino Duemilanove ATmega168 19200

    Arduino Nano ATmega328p 57600

    Arduino Nano ATmega168 19200

    Arduino Mega ATmega2560 115200

    Arduino Mega ATmega1280 57600

    Arduino Leonardo ATmega32u4 57600

    https://42bots.com/author/spd42/https://42bots.com/

  • Arduino program / sketch upload speeds |

    http://42bots.com/resources/arduino-program-sketch-upload-speeds/[9/25/2018 4:07:43 PM]

    ← Free Arduino reference guide HC-06 Bluetooth module datasheet and confguration

    with Arduino →

    Arduino Micro ATmega32u4 57600

    Arduino Esplora ATmega32u4 57600

    Arduino Mini ATmega328p 115200

    Arduino Mini ATmega168 19200

    Arduino Pro Mini (5V, 16 MHz) ATmega328p 57600

    Arduino Pro or Pro Mini (3.3V, 8 MHz) ATmega328p 57600

    Arduino BT ATmega328p 19200

    Arduino BT ATmega168 19200

    Arduino NG ATmega168 19200

    Arduino NG ATmega8 19200

    Arduino Robot ATmega32u4 57600

    LilyPad Arduino ATmega328p 57600

    LilyPad Arduino ATmega168 19200

    It seems that I need to use 115200 for my Uno and 57600 for the Arduino Pro Mini.

    Category: Resources Tags: bluetooth , programming

    Leave a Reply

    Your email address will not be published. Required felds are marked *

    Comment

    https://42bots.com/resources/free-arduino-reference-guide/https://42bots.com/resources/free-arduino-reference-guide/http://42bots.com/#twitterhttp://42bots.com/#facebookhttp://42bots.com/#google_plushttp://42bots.com/#pinteresthttp://42bots.com/#reddithttps://www.addtoany.com/share#url=https%3A%2F%2F42bots.com%2Fresources%2Farduino-program-sketch-upload-speeds%2F&title=Arduino%20program%20%2F%20sketch%20upload%20speedshttps://42bots.com/topic/resources/https://42bots.com/tag/bluetooth/https://42bots.com/tag/programming/

  • Arduino program / sketch upload speeds |

    http://42bots.com/resources/arduino-program-sketch-upload-speeds/[9/25/2018 4:07:43 PM]

    Name *

    Email *

    Website

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Shop Related Products

    Ads by Amazon

    MyProteinFuel Your AmbitionMore information › TRG AD

    https://akismet.com/privacy/https://www.amazon.com/adprefshttps://hal900025.redintelligence.net/c/p7xavh2asuvp072https://hal900025.redintelligence.net/c/p7xavh2asuvp072https://hal900025.redintelligence.net/c/p7xavh2asuvp072https://hal900025.redintelligence.net/c/p7xavh2asuvp072https://www.reachgroup.com/https://www.reachgroup.com/

  • Arduino program / sketch upload speeds |

    http://42bots.com/resources/arduino-program-sketch-upload-speeds/[9/25/2018 4:07:43 PM]

    Copyright 2013 Privacy Policy

    Recent Comments

    Carrot on ESP8266 example: Wi-Fi Access point, satic IP, web-server and remote GPIO control

    Jude on ESP8266 example: Wi-Fi Access point, satic IP, web-server and remote GPIO control

    Problem mit hc-06 bluetooth modul? – HKTXT on HC-06 Bluetooth module datasheet and confguration with Arduino

    t on Access your Raspberry Pi Terminal and Graphical Desktop remotely using SSH and VNC

    RogerRabbit on Arduino Joysick Module Example

    Recent Poss

    A circuit to use 2 single cell li-po / li-on batteries in series and charge them in parallel

    ESP8266 example: Wi-Fi Access point, satic IP, web-server and remote GPIO control

    ESP8266 Wi-Fi tutorial and examples using the Arduino IDE

    How to program the ESP8266 WiFi Modules with the Arduino IDE (Part 2 of 2)

    How to program the ESP8266 WiFi Modules with the Arduino IDE (Part 1 of 2)

    Categories

    3D Printing (1)

    ATTiny (5)

    Character LCD Display (2)

    Competitions (13)

    Electronics Fundamentals (3)

    ESP8266 (4)

    Line Following (4)

    Obsacle Avoidance (6)

    Raspberry Pi (2)

    Resources (15)

    Robotic Gripper (1)

    Showcase (19)

    Tutorials (29)

    http://42bots.com/privacy-policy-for-42bots-com/https://42bots.com/tutorials/esp8266-example-wi-fi-access-point-web-server-static-ip-remote-control/#comment-272302https://42bots.com/tutorials/esp8266-example-wi-fi-access-point-web-server-static-ip-remote-control/#comment-270882http://www.hktxt.me/problem-mit-hc-06-bluetooth-modul.htmhttps://42bots.com/tutorials/access-raspberry-pi-terminal-and-desktop-remotely-with-ssh-and-vnc/#comment-267444https://42bots.com/tutorials/arduino-joystick-module-example/#comment-267084https://42bots.com/resources/a-circuit-to-use-2-single-cell-li-po-li-on-batteries-in-series-and-charge-them-in-parallel/https://42bots.com/tutorials/esp8266-example-wi-fi-access-point-web-server-static-ip-remote-control/https://42bots.com/tutorials/esp8266-wifi-tutorial-arduino-ide/https://42bots.com/tutorials/how-to-program-esp8266-wifi-modules-with-the-arduino-ide-part-2-of-2/https://42bots.com/tutorials/how-to-program-esp8266-wifi-modules-with-the-arduino-ide/https://42bots.com/topic/3d-printing/https://42bots.com/topic/attiny/https://42bots.com/topic/character-lcd-display/https://42bots.com/topic/competitions/https://42bots.com/topic/electronics-fundamentals/https://42bots.com/topic/esp8266/https://42bots.com/topic/line-following/https://42bots.com/topic/arduino-obstacle-avoidance/https://42bots.com/topic/raspberry-pi/https://42bots.com/topic/resources/https://42bots.com/topic/robotic-gripper/https://42bots.com/topic/showcase/https://42bots.com/topic/tutorials/

  • Arduino program / sketch upload speeds |

    http://42bots.com/resources/arduino-program-sketch-upload-speeds/[9/25/2018 4:07:43 PM]

    Iconic One Theme | Powered by Wordpress

    Optimization WordPress Plugins & Solutions by W3 EDGE

    http://themonic.com/iconic-one/http://wordpress.org/https://www.w3-edge.com/products/

  • Ecno92: JY-MCU "linvor" AT Commands (change name of linvor)

    http://ecno92.blogspot.com/2012/11/jy-mcu-linvor-at-commands-change-name.html[9/25/2018 4:09:02 PM]

    Ecno92

    Thursday, 15 November 2012

    JY-MCU "linvor" AT Commands (change name of linvor)Today I found out how to change the name of my "linvor" serial Bluetooth module to my desiredname.It's quite easy, however due the different baud rates you nee to experiment a little with them inorder to get a good connection. So experiment with setting the baud rate in the Arduino code.

    I connected the RX pin of linvor to pin 2 and the TX pin of linvor to pin 3 of the Arduino.Then I changed the default SoftwareSerialexample of the Arduino IDE a little. Now theSerial.begin(rate); is set to 9600: Serial.begin(9600); which is the baud rate of the linvor.

    /* Software serial multple serial test Receives from the hardware serial, sends to software serial. Receives from software serial, sends to hardware serial. The circuit: * RX is digital pin 2 (connect to TX of other device) * TX is digital pin 3 (connect to RX of other device) created back in the mists of time modified 9 Apr 2012 by Tom Igoe based on Mikal Hart's example This example code is in the public domain. */#include

    SoftwareSerial mySerial(2, 3); // 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("Goodnight moon!");

    // set the data rate for the SoftwareSerial port mySerial.begin(9600); mySerial.println("Hello, world?");}

    void loop() // run over and over{ if (mySerial.available()) Serial.write(mySerial.read()); if (Serial.available()) mySerial.write(Serial.read());}

    Open your serial monitor and if everyting is correctly set up you should see: "Goodnight moon!"If you receive weird symbols your baud rate is wrong.

    ► 2016 (1)

    ► 2015 (1)

    ► 2014 (4)

    ▼ 2012 (6)▼ November (4)

    Install Arduino Uno drivers on Windows 8

    JY-MCU "linvor" AT Commands (changename of linvor...

    Free available tutorials relatedprogramming and c...

    Windows 8 Gestures and Keyboardshortcuts

    ► October (2)

    Blog Archive

    Ecno92

    View my complete profile

    About Me

    Plus Créer un blog ConnexionCe site utilise des cookies provenant de Google pour fournir ses services et analyser le trafic. Votre adresse IPet votre user-agent, ainsi que des statistiques relatives aux performances et à la sécurité, sont transmis àGoogle afin d'assurer un service de qualité, de générer des statistiques d'utilisation, et de détecter et derésoudre les problèmes d'abus.

    EN SAVOIR PLUS OK

    http://ecno92.blogspot.com/javascript:void(0)javascript:void(0)http://ecno92.blogspot.com/2016/javascript:void(0)javascript:void(0)http://ecno92.blogspot.com/2015/javascript:void(0)javascript:void(0)http://ecno92.blogspot.com/2014/javascript:void(0)javascript:void(0)http://ecno92.blogspot.com/2012/javascript:void(0)javascript:void(0)http://ecno92.blogspot.com/2012/11/http://ecno92.blogspot.com/2012/11/install-arduino-uno-drivers-on-windows-8.htmlhttp://ecno92.blogspot.com/2012/11/free-available-tutorials-related.htmlhttp://ecno92.blogspot.com/2012/11/free-available-tutorials-related.htmlhttp://ecno92.blogspot.com/2012/11/windows-8-gestures-and-keyboard.htmlhttp://ecno92.blogspot.com/2012/11/windows-8-gestures-and-keyboard.htmljavascript:void(0)javascript:void(0)http://ecno92.blogspot.com/2012/10/https://www.blogger.com/profile/10113917554816669163https://www.blogger.com/profile/10113917554816669163https://www.blogger.com/profile/10113917554816669163https://www.blogger.com/https://www.blogger.com/https://www.blogger.com/home#createhttps://www.blogger.com/https://www.blogger.com/go/blogspot-cookies

  • Ecno92: JY-MCU "linvor" AT Commands (change name of linvor)

    http://ecno92.blogspot.com/2012/11/jy-mcu-linvor-at-commands-change-name.html[9/25/2018 4:09:02 PM]

    Posted by Ecno92 at 17:58

    Labels: arduino, AT, bluetooth, BT, change name, JY-MCU

    After that send: "AT". It should send OK back.Now you're able to configure the linvor. Send one command at a time.

    List of available ATcommands:Command Description Options Respon

    se

    AT+VERSION Returns the software versionof the module

    OKlinvorV1.x

    AT+BAUDx Sets the baud rate of themodule The command AT+BAUD8sets the baud rate to 115200

    1 >> 1200 2 >> 2400 3 >> 4800 4 >> 9600 (Default) 5 >> 19200 6 >> 38400 7 >> 57600 8 >> 115200 9 >> 230400

    OK115200

    AT+NAMEOpenPilot

    Sets the name of the module Any name can be specified up to20 characters

    OKsetname

    AT+PINxxxx Sets the pairing password ofthe device

    Any 4 digit number can be used,the default pincode is 1234

    OKsetPIN

    AT+PN Sets the parity of the module AT+PN >> No parity check OKNone

    source:http://wiki.openpilot.org/display/Doc/Serial+Bluetooth+Telemetry

    Replies

    Reply

    Replies

    14 comments:

    Steve Spence 28 October 2013 at 15:46

    I have two modules (linvor 1.8), each connected to it's own arduino. I'm not able to get onearduino to send data to the other, but works with a wire on same pins.

    Reply

    Ecno92 30 October 2013 at 11:41

    For communication between two arduino's you need a host and a slave module sinceone has to pair with the other.

    If I'm correct most linvoir modules are slave. Which allows you to pair with for instanceyour phone by searching the module and filling in the pair code.For a connection between Arduino's you need another version of the linvoir which isthe master/host. Then you can say to the master module "I want to you to connect withmy other linvoir module with pair code xxxx".

    If i'm correctly DX.com is selling this master/host module too. I have no experiencewith it, but I'm quite sure this is the kind of module you need together with your otherlinvoir module to set up the connection.

    Good luck with your project!

    SUNNY MARELLA 7 May 2014 at 16:37

    Hi!I've got a problem.I found that I get the exact text in english alphabets only when I use acombination of Serial-9600 and myserial-57600. But,when I type "AT", I receive back the symbol"ÿ". I wonder where I am going wrong.Could you please give your views?Thanks.

    Reply

    Ecno92 7 May 2014 at 18:07

    Hi Sunny,

    It's quite some time ago since I posted this. Since then I haven't experimentedanymore with microcontrollers and serial communication. If I'm right this is a baud rate

    https://www.blogger.com/profile/10113917554816669163https://www.blogger.com/profile/10113917554816669163http://ecno92.blogspot.com/search/label/arduinohttp://ecno92.blogspot.com/search/label/AThttp://ecno92.blogspot.com/search/label/bluetoothhttp://ecno92.blogspot.com/search/label/BThttp://ecno92.blogspot.com/search/label/change%20namehttp://ecno92.blogspot.com/search/label/JY-MCUhttps://www.blogger.com/share-post.g?blogID=7729011382643845166&postID=8188816470563344571&target=emailhttps://www.blogger.com/share-post.g?blogID=7729011382643845166&postID=8188816470563344571&target=bloghttps://www.blogger.com/share-post.g?blogID=7729011382643845166&postID=8188816470563344571&target=twitterhttps://www.blogger.com/share-post.g?blogID=7729011382643845166&postID=8188816470563344571&target=facebookhttps://www.blogger.com/share-post.g?blogID=7729011382643845166&postID=8188816470563344571&target=pinterestjavascript:;javascript:;javascript:;https://www.blogger.com/profile/17495516851959991808http://ecno92.blogspot.com/2012/11/jy-mcu-linvor-at-commands-change-name.html?showComment=1382971619558#c6176455479320410992javascript:;https://www.blogger.com/profile/10113917554816669163http://ecno92.blogspot.com/2012/11/jy-mcu-linvor-at-commands-change-name.html?showComment=1383129676207#c3090686473426863281https://www.blogger.com/profile/09010037185898200345http://ecno92.blogspot.com/2012/11/jy-mcu-linvor-at-commands-change-name.html?showComment=1399473454734#c4926807613464037009javascript:;https://www.blogger.com/profile/10113917554816669163http://ecno92.blogspot.com/2012/11/jy-mcu-linvor-at-commands-change-name.html?showComment=1399478871523#c6817010396653518126

  • Ecno92: JY-MCU "linvor" AT Commands (change name of linvor)

    http://ecno92.blogspot.com/2012/11/jy-mcu-linvor-at-commands-change-name.html[9/25/2018 4:09:02 PM]

    Reply

    Replies

    Reply

    Replies

    Reply

    Replies

    Reply

    mismatch. Try to change the bound rate in a tool like Putty and see if this helps.

    Let me know if you find the solution. Maybe it can help others. :)

    Dennis Lotz 28 July 2014 at 15:38

    I have some problem with the serial monitor and the at commands. When I open serial monitor itsays: "Goodnight moon!". But when I send "AT" or any other at command there is no response atall. It seems like the serial monitor isnt capable of sending anything. Did you experience anysimilar issues?

    Reply

    Dennis Lotz 28 July 2014 at 18:18

    Managed to solve it. I made the error to connect the bluetooth module to pin 0 + 1 onmy ArduinoUno. But those pins are also connected to the USB. I connected the btmodule to pin 10 + 11, changed them as well in my code and it works :)

    PS: I want to thank you for the nice Tutorial

    Gianni Gallo 2 November 2014 at 16:57

    good evening I am writing because I have a problem with the connection to the bluetooth module HC-06 The module is paired but will not connect I have followed your tutorial but I keep getting the error notice "error 507 unable to connect. Is thedevice turned On? "I am giving you some information about the devices used: Rev3 arduino Bluetooth module JY-MCU HC-06 Smartphone Huawei Y300 The software used to implement the application is App Inventor 2 Java development kit 7u25 Settings smartphones Bluetooth Module HC-06 paired I can tell you that if I use the app "Amarino combined with Amarino plugin bundle The operation is perfect I tested two other modules HC-06 with negative results I make AT command test is OKI'm hoping for help from the network

    Reply

    Ecno92 3 November 2014 at 15:55

    I'm not familiar with your setup. When I google your error this seems a App Inventorrelated issue. To check this you could try to connect to the bluetooth module from theterminal of your smartphone.

    Gianni Gallo 6 November 2014 at 10:48

    Sorry in my post I did not give a 'complete information I'm doing a project to control LED RGB smartphone via bluetooth and Arduino Uno From research I came to the conclusion that it is a problem of protocols or settings, bluetooth factof Huawei Y300 works with EDR protocol and the Bluetooth module HC_06 works with protocol"RFCOMM Protocol TDI" You could be of help if you can tell me the properties of your bluetooth module so I can makecomparisons. More than a month I am trying to solve the problemTKS Gianni Gallo

    Reply

    Ecno92 6 November 2014 at 16:21

    I dindn't go in depth that much. So I can't tell you more about the protocols. I've usedvarious android devices in the past which worked well with this module like the HTCdesire and the Samsung Galaxy Tab 10.1. You could try another device to find out ifthat makes a difference.

    javascript:;javascript:;javascript:;javascript:;javascript:;javascript:;javascript:;https://www.blogger.com/profile/01882758634466267555http://ecno92.blogspot.com/2012/11/jy-mcu-linvor-at-commands-change-name.html?showComment=1406554691262#c7232947271385312237javascript:;https://www.blogger.com/profile/01882758634466267555http://ecno92.blogspot.com/2012/11/jy-mcu-linvor-at-commands-change-name.html?showComment=1406564299080#c6386247896189626300https://www.blogger.com/profile/08313182495818181071http://ecno92.blogspot.com/2012/11/jy-mcu-linvor-at-commands-change-name.html?showComment=1414943831651#c4255658697861270301javascript:;https://www.blogger.com/profile/10113917554816669163http://ecno92.blogspot.com/2012/11/jy-mcu-linvor-at-commands-change-name.html?showComment=1415026509140#c8781456271546131362https://www.blogger.com/profile/08313182495818181071http://ecno92.blogspot.com/2012/11/jy-mcu-linvor-at-commands-change-name.html?showComment=1415267296776#c861713761262264835javascript:;https://www.blogger.com/profile/10113917554816669163http://ecno92.blogspot.com/2012/11/jy-mcu-linvor-at-commands-change-name.html?showComment=1415287307585#c6174536873674468488

  • Ecno92: JY-MCU "linvor" AT Commands (change name of linvor)

    http://ecno92.blogspot.com/2012/11/jy-mcu-linvor-at-commands-change-name.html[9/25/2018 4:09:02 PM]

    Newer Post Older PostHome

    Subscribe to: Post Comments (Atom)

    Replies

    Reply

    Add comment

    Comment as: Google Account

    Unknown 6 October 2015 at 23:03

    Reply

    This comment has been removed by the author.

    Reinald Nijboer 6 October 2015 at 23:05

    Hi, can someone please help me? everything entered in the serial monitor is printed in putty; so that works fine

    but all the AT commands (AT+VERSION etc) doesn't work..

    am i doing something wrong?

    Reply

    Ecno92 8 October 2015 at 16:20

    Are you sure that you can communicate correctly to the device? If Putty displays yourcommands it does not mean that they are actually received by the device properly.

    I think you have to check if you paired correctly with the device and check your puttysettings if you are actually talking with the correct baud rate etc.

    If I remember it correct I can remember that BAUD rate 115200 worked well for me.

    Muhammad Akmaluddin 19 May 2016 at 06:22

    Did you solve your problem? i got the same problem , help me

    Simple theme. Powered by Blogger.

    http://ecno92.blogspot.com/2012/11/install-arduino-uno-drivers-on-windows-8.htmlhttp://ecno92.blogspot.com/2012/11/free-available-tutorials-related.htmlhttp://ecno92.blogspot.com/http://ecno92.blogspot.com/feeds/8188816470563344571/comments/defaultjavascript:;javascript:;javascript:;https://www.blogger.com/comment-iframe.g?blogID=7729011382643845166&postID=8188816470563344571&blogspotRpcToken=491625https://www.blogger.com/profile/13686770981563209238http://ecno92.blogspot.com/2012/11/jy-mcu-linvor-at-commands-change-name.html?showComment=1444165417029#c2547021399849151884javascript:;https://www.blogger.com/profile/13686770981563209238http://ecno92.blogspot.com/2012/11/jy-mcu-linvor-at-commands-change-name.html?showComment=1444165536595#c2423004023749675037javascript:;https://www.blogger.com/profile/10113917554816669163http://ecno92.blogspot.com/2012/11/jy-mcu-linvor-at-commands-change-name.html?showComment=1444314033784#c4966699762612757592https://www.blogger.com/profile/10671432924235207050http://ecno92.blogspot.com/2012/11/jy-mcu-linvor-at-commands-change-name.html?showComment=1463631720781#c437273566893398525https://www.blogger.com/

    42bots.comHC-06 Bluetooth module datasheet and configuration with Arduino |Arduino program / sketch upload speeds |

    silabs.org.uaMicrosoft Word - HC-06 datasheet 201104201104 revised.doc

    blogspot.comEcno92: JY-MCU "linvor" AT Commands (change name of linvor)

    JhdGlvbi13aXRoLWFyZHVpbm8vAA==: select1: []

    1STVdyUnc/ZmVhdHVyZT1vZW1iZWQA: button0: button1: button1_(1):

    JhdGlvbi13aXRoLWFyZHVpbm8vAA==: form1: comment: author: email: url: submit:

    JhdGlvbi13aXRoLWFyZHVpbm8vAA==: form0: s: input5:

    1za2V0Y2gtdXBsb2FkLXNwZWVkcy8A: select1: []

    1za2V0Y2gtdXBsb2FkLXNwZWVkcy8A: form1: comment: author: email: url: submit:

    1za2V0Y2gtdXBsb2FkLXNwZWVkcy8A: form0: s: input5:

    1lPSZycGN0b2tlbj0yODkyMTE4NAA=: form0: q:

    JwY1Rva2VuPTQ5MTYyNSZicGxpPTEA: commentForm: commentBody: identityMenu: [GOOGLE]postCommentSubmit: postCommentPreview: