08
May

  
Now start up your favorite ser­ial ter­mi­nal (I use Putty), con­nect to the COM port, run the sketch and see the result: 

/* Created by Dan D.
http://blog.dugheanu.com*/
void setup()
 {
 Serial3.begin(9600); //we are going to setup the BT serial baud to 9600
 }

void loop()
 {
 if (Serial3.available() >0){ // check if no incoming data

 Serial3.write("test");} //output string

}

9 Responses to “JY MCUBT_BOARD V1.02 Bluetooth Module review/tutorial”

  • Its easy to use putty for this code. Its one fea­ture makes it easy to imple­ment that is that it can fit in any ser­ial interface.

  • Adeii

    I’m inter­ested in sim­i­lar project, but I have to make java (j2me) app to con­trol ter­mi­nal server already installed in dig­i­tal dis­play device with ser­ial port.
    Is it prob­lem to replace ser­ial port with JY-MCU BT_BOARD v1.02 and just pair mobile with it?

    • zoomer

      @Adeii, as long as you can estab­lish the ser­ial con­nec­tion and setup the 5V cor­rectly (care­ful not to burn the mod­ule with higher volt­age) I don’t see any rea­son why this could not be done with Java

  • guy at a unie doing cw

    THIS CODE DOES NOT RUN, WHY???
    YOU HAVENT REALLY EXPLAINED MUCH
    I GET THE ERROR ‘searial3’ was not declared in this scope

    • admin

      the code basi­cally has 3 lines (exclud­ing the void’s), all of wich are com­mented — and it should work just fine.

      Your com­ment says “Sear­ial 3″, wich could be a typo, please check.

  • Rizwan

    Hi

    I have one question.I have got the same board and it is being detected via my lap­top blue­tooth as mapped to COM14 but I am unable to con­nect via putty.I have just pow­ered up the board . Do I need to con­nect it first with micro­con­troller ser­ial pins and write ser­ial port code first or it will reply to my AT com­mands with­out that ?

    • admin

      Hi Rizwan,

      well, if you man­aged to get it paired suc­ces­fully on COM14, chances are you can’t get it work­ing with putty because of the dif­fer­ent ser­ial rate settings.

      It really does not mat­ter wich BAUDS you use, just make sure that your com­puter and the Jy-MCU both use the same (9600 is usu­ally my weapon of choice, but almost any of the most com­mons set­tings will do. just don’t go over 56K as my blue­tooth don­gle doesn’t seem to sup­port any­thing over this set­ting — I using a don­gle that I bought almost 10 years ago for some nokia phone back then :)

      let me know if you encounter any more dif­fi­cul­ties, maybe I could help you to get it working

  • I Have to ask one ques­tion, can it be paired with android? If yes, how to pair it with android phone?

    • admin

      Hi Rahul,
      I’m quite sure it can. Don’t really know how, how­ever, since I don’t own any Android device.

Add reply

  • Search:
  • Pages

  • Sudoku

    5
    6
    1
    8
    7
    3
    9
    8
    5
    3
    4
    1
    9
    2
    8
    5
    4
    5
    6
    9
    2
    6
    3
    4
    2
    1
    1
    2
    8
    9
    5
    7
    6
    4
    5
    Widget par Bastien Caudan

Secured for spam by MLW and Associates, LLP's Super CAPTCHASecured by Super-CAPTCHA Developed by Goldsboro Web Development..