Can I use MOD-BT with OLIMEXINO-328?

Started by Falanyum, January 15, 2013, 08:49:11 PM

Previous topic - Next topic

Falanyum

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.



veseo

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.
Have a look at Souliss [url="//www.souliss.net"]www.souliss.net[/url] for Internet of Things and Home Automation, working to be compatible with Olimex modules.

Falanyum

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...

LubOlimex

Hey Falanyum,

UEXT modules are meant to work at 3.3V.

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex

Falanyum

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)



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 ?

Falanyum

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 ?