Olimex Support Forum

Others => UEXT => Topic started by: Falanyum on January 15, 2013, 08:49:11 PM

Title: Can I use MOD-BT with OLIMEXINO-328?
Post by: Falanyum on January 15, 2013, 08:49:11 PM
Hello,

Last month I bought a OLIMEXINO-328 and it was perfectly fit our needs. And we also want to update our project with bluetooth so we buy MOD-BT

Our order arrive today and we can't found any examples mod-bt with olimexino (and or arduino).

Is this two devices are compatible. Can we use it ?

Best regards.

Title: Re: Can I use MOD-BT with OLIMEXINO-328?
Post by: Falanyum on January 23, 2013, 05:50:22 AM
Bump.

Hello anybody ?

Title: Re: Can I use MOD-BT with OLIMEXINO-328?
Post by: veseo on January 23, 2013, 11:46:25 PM
Yes you can, but you need appropriate driver. The Bluetooth module use the USART (Serial) port for communication with the ATmega328 microcontroller, on the Olimex product page there is the User Guide from Philips.

You may search over the web for someone that used the BGB203 Bluetooth transciever or build the protocol by your self.

Regards,
Dario.
Title: Re: Can I use MOD-BT with OLIMEXINO-328?
Post by: Falanyum on January 30, 2013, 05:57:07 PM
Thank you so much.

it was better than nothing.

Also I had a question.

My project run on 5v olimexino, to run this MOD-BT shall I have to change olimexino running voltage.

Regards...
Title: Re: Can I use MOD-BT with OLIMEXINO-328?
Post by: LubOlimex on January 31, 2013, 02:18:28 PM
Hey Falanyum,

UEXT modules are meant to work at 3.3V.

Best regards,
Lub/OLIMEX
Title: Re: Can I use MOD-BT with OLIMEXINO-328?
Post by: Falanyum on January 31, 2013, 09:35:22 PM
UEXT connection was unsuccessfull.

After talking with local distributor, there where other options (software serial plust digital inputs for rx tx)

and I stil not get any blimp this thing.

Another question,

When I was try to use extrernal connection (like this)

(http://1.bp.blogspot.com/-RV-zqvDhfJA/TdGANJuG9TI/AAAAAAAAAGY/xA1yUwe0-hE/s400/bluetooth.gif)

Can I use board 3.3v ?

Also

Except UEXT with 5v. This mod-bt does not show any led output in any combination.

Is this thing gonna bad ?
Title: Re: Can I use MOD-BT with OLIMEXINO-328?
Post by: Falanyum on February 13, 2013, 12:12:25 AM
Follwing try out also not responding.

#include <SoftwareSerial.h> //Software Serial Port
#define RxD 0
#define TxD 1
SoftwareSerial blueToothSerial(RxD,TxD);
void setup()
{
  Serial.begin(57600);
  pinMode(RxD, INPUT);
  pinMode(TxD, OUTPUT);
   setupBlueToothConnection();
}
void loop()
{
  char recvChar;
  while(1){
    if(blueToothSerial.available()){//check if there's any  data sent from the remote bluetooth shield
      recvChar = blueToothSerial.read();
      Serial.print(recvChar);
    }
    if(Serial.available()){//check if there's any data sent from the local serial terminal, you can add the other  applications here
      recvChar = Serial.read();
      blueToothSerial.print(recvChar);
    }
  }
}
void setupBlueToothConnection()
{
    blueToothSerial.begin(57600);
    blueToothSerial.print("+++\r\n");
    blueToothSerial.print("+++\r\n");
    blueToothSerial.print("+++\r\n");
    blueToothSerial.print("AT+BTURT=57600,8,0,1,0\r\n");
    blueToothSerial.print("AT+BTLNM=\"ModBT\"\r\n");
    blueToothSerial.print("AT+BTAUT=1,0\r\n");
    blueToothSerial.print("AT+BTSEC=0\r\n");
    blueToothSerial.print("AT+BTSDP=1\r\n");
    blueToothSerial.print("AT+BTFLS\r\n");

    blueToothSerial.print("AT+BTCLT=1\r\n");
    delay(2000); // This delay is required.
    blueToothSerial.flush();
}


I got 2 of this mod-bt and none of them working. Probably I fry both of them.

Is there any way to check this devices to still alive ?