How-To configure and use an Iteaduino BT

How-To configure and use an Iteaduino BT

There are many ways to have an Arduino connected: Ethernet, Infra-Red, Wifi, ZigBee, Bluetooth… This post is about an Arduino card that comes with an embedded bluetooth module: the Iteaduino BT.

I chose the Iteaduino BT because it has many advantages over other Arduino solutions:

  • Its price is reasonable ($38.80), lower that Wifi, Ethernet or ZigBee.
  • It does not require to load any library so it takes 0Kb on the 32Kb and leaves plenty of bytes for your program.
  • It uses a standard serial port so it is very easy to use.
  • It does not use any digital nor analog I/O so you can put any shield on top of it.
  • You can use a wide range external input from 7~23V DC (External 7V, 9V, 12V, 24V or USB 5V).
  • It has extra pins out for anything you need (I use them to connect to a digital camera).
  • So far it’s been 100% compatible with official Arduino.

But…

The documentation is poor, badly written, and sometimes even false.

And if you do not know anything about its HC-05 module, configuring it seems to be impossible.

Many persons were stuck as I first was:

So here are some tips that will help you if you are lost.

Iteaduino BT has 3 main components

They are:

  • The Atmel ATMega328P: it is the microcontroller on which your Arduino program will run.
  • The HC-05: it is the bluetooth module that allow you to connect to the Iteaduino BT wirelessly.
  • The USB port: it is the port that you can plug on you computer to upload your programs.

Iteaduino BT has 3 working modes

The 3 modes are:

  • Atmel ATMega328P talking via USB:
    Use this mode to upload your Arduino program to the board. The board will work just like a regular Arduino Uno board.

    • Remove all the jumpers.
    • Set the switch on position DAT, just in case.
    • Connect the USB port to your computer.
    • Upload your program or open a serial terminal.
  • Bluetooth HC-05 configuration mode:
    Use this mode to check or change the bluetooth configuration: PIN password, baud rate, slave/master mode, etc.
    Arduino Blink demo program
    • Verify that the Arduino program uploaded to the Atmel ATMega328P makes no Serial.begin() at all. (Or it will not work. I recommend to upload Blink Example program to be sure. Remember that you have to switch back to “ATMega328P talking via USB” mode to do so.)
    • Set the jumper on position B
    • set the switch on position CMD
    • Connect the USB port to your computer.
    • Open a serial terminal to USB.
    • See next paragraph to see how “AT” commands work.
  • Atmel ATMega328P talking via Bluetooth:
    This mode should be the reason why you bought this board in the first place. It allows your Arduino program to communicate via bluetooth.
    Any Serial.read() or Serial.print() will now be sent through bluetooth.
    NB: It is not possible to upload a program via bluetooth so you have to change the CMD switch and the jumpers every time you want to upload an updated program.

    • Set the jumper on position A
    • Set the switch on position DAT, just in case.
    • Connect to the HC-05 from any bluetooth device.

Here is a graphic recap:

Using Iteaduino BT

Using Iteaduino BT

How-To configure the HC-05 Bluetooth Module

AT commands to configure HC-05 moduleOnce you understood all the previous steps, configure the HC-05 bluetooth module is pretty easy.
This can be achieve via a serial terminal an “AT” commands. (You can use the Arduino IDE serial monitor, under menu “Tool / Serial Monitor”, or just press ⇧⌘M.)
You will find everything in this document: HC-03/05 Embedded Bluetooth Serial Communication Module
AT command set
.
Set the speed to 38400 and the new line to “Both NL & CR”.


Here are the most important “AT” commands:

Command Function
AT Does nothing but answers “OK”. It is a good test to know if you are in CMD mode.
AT+VERSION? Gives you the HC-05 version.
AT+ORGL Restores the default paramaters:
1.Device type: 0
2.Inquire code: 0x009e8b33
3.Module work mode: Slave Mode
4.Connection mode: Connect to the Bluetooth device specified
5.Serial parameter: Baud rate: 38400 bits/s; Stop bit: 1 bit; Parity bit: None.
6.Passkey: “1234”
7.Device name: “H-C-2010-06-01”

I use it very often.
AT+NAME? Returns the bluetooth device name.
AT+NAME=MyName Set the name to MyName
AT+ROLE? Returns the role.
AT+ROLE=role-number Set the role number to role-number.
Possible values :
0---- Slave role
1---- Master role
2---- Slave-Loop role
Default: 0
AT+PSWD? Returns the bluetooth 4 digits passcode
AT+PSWD=passcode Set the 4 digits bluetooth passcode to passcode
AT+UART? Returns baud rate, parity bit and stop bit.
AT+UART=rate,stop-bit,parity-bit Sets baud rate, parity bit and stop bit.
The value (Decimal) should be one of the following:
4800
9600
19200
38400
57600
115200
23400
460800
921600
1382400
Param2:stop bit:
0----1 bit
1----2 bits
Param3: parity bit
AT+UART?
+UART=rate,stop-bit,parity-bit OK
0----None
1----Odd parity
2----Even parity
Default: 9600, 0, 0

Now you are ready to use the Iteaduino BT board. Have Fun!

So far Iteaduino BT has been a tremendous board and I highly recommend it.

Arduino Duemilanove w/ ATmega328NB: The board used for this test was an Iteaduino BT version 1.0.
In order to use it with the Arduino IDE you have to select “Arduino Duemilanove w/ ATmega328” under the “Tool / Board” menu.

Tags

Like this Article? Share it!

About the Author

Author Gravatar
Benjamin Bellamy

Paris, Beirut, NYC & Agen // e-commerce, social media, open-source & geek // follow me on twitter: @benjaminbellamy.

Related Posts

11 Comments

  1. bonjour, en fait j ai Iteaduino BT v1.0 (with ATMega328P) alors je voulais savoir quelle type de carte a utiliser ??
    et une autre question j ai pas bien compris la configuration de bleutooth et j aimraai bien que se sera des commandes direct a inserer si possible de faire ca par ce que j ai essaye les commandes et sa marche pas ???

    merci
    bien cordialement

  2. Bonjour,
    Je ne comprends malheureusement pas votre question.
    Que souhaitez-vous faire ?

  3. bonjour
    mon probleme qui j ‘arrive pas a faire marche les bleutooth de mon Iteaduino BT v1.0 (avec ATMEGA328P)
    voila ce que j ai fais

    Utilisez ce mode pour télécharger votre programme à la carte Arduino. Le conseil fonctionne exactement comme une carte Arduino Uno régulière.
    • Retirer tous les cavaliers.( j ai retirer tous les cavaliers ) et j’ai fixé la tension a 5V
    • j ai réglé le commutateur en mode DAT
    • j’ai Connecté le port USB de mon ordinateur.
    • Téléchargez votre programme arduino et j’ai choisi la carte Arduino Duemilanove w / ATmega328
    j ai charger le fichier Blink
    j ai lancer
    le resultat la D13 s’alume en rouge
    l’etape 2

    Réglez le cavalier sur la position B
    réglez le commutateur sur la position CMD
    Connectez le port USB de votre ordinateur.
    Ouvrez un terminal série sur USB.
    et j ai saisi les commandes suivantes
    AT Ne fait rien, j ai aucune reponse .
    AT VERSION +? // j ai aucune reponse .
    AT + ORGL // p reponse .

    NOM +? // pas de reponse
    NOM + = GHILAS
    RÔLE +?
    RÔLE + = 1
    AT + PSWD?
    AT + PSWD = 1234
    AT + UART?
    AT + UART =

  4. bonjour j ‘ai acheté Iteaduino BT v1.0 (with ATMega328P)
    voila ce que j’ ai fais :

    • Retirer tous les cavaliers.( j ai retirer tous les cavaliers ) et j’ai fixé la tension a 5V
    • Réglez le commutateur sur la position DAT ,( j ai réglé en mode DAT )
    • Connectez le port USB de votre ordinateur.
    • Téléchargez votre programme ou ouvrir un terminal série. ( ici j’ai choisi la carte Arduino Duemilanove w / ATmega328
    j ‘ai charger le fichier Blink
    le resultat : la D13 s’allume en rouge
    j ai continu le mode 2 et 3 comme suit:

    Réglez le cavalier sur la position B
    réglez le commutateur sur la position CMD
    Connectez le port USB de votre ordinateur.
    Ouvrez un terminal série sur USB.les commandes que j ‘ai envoyé sont:
    AT // pas de reponse
    CMD.
    AT VERSION +? /// pas de reponse
    AT + ORGL // pas de reponse

    NOM +? // pas de reponse
    À NOM + = ghilas
    À RÔLE +? // Retourne rien
    RÔLE + = 1 .
    AT + PSWD? // pas de reponse
    AT + PSWD = 1234
    AT + UART? //pas de reponse
    AT + UART = 9600, 0, 0

    j ai passé au mode 3
    Réglez le cavalier sur la position A
    Réglez le commutateur sur la position DAT ,
    et j ai charge le code suivant : que j ai fais moi meme

    void setup()
    {
    Serial.begin(38400);
    Serial.println(“Ticketing”);
    }
    void loop() {
    if (Serial.available() > 0){
    Serial.write(Serial.read());
    }}
    apres j ai creer un nouveau fichier
    et j ai copie et coler le code suivant :

    le resultat :
    j affiche sur le terminal serie : Ticketing et les LED TX ET RX s’allume
    c tout alors je detecte pas de bleutooth et j ‘ai pas de reponses sur les commandes envoyées

    merci de me repondre

    bien cordialement

  5. bonjour
    en fait je fais les 3 modes
    alors a la fin dans le terminal serie il afficher
    xy xy

    alors a ce que vous peuvez m aide

    merci

  6. hello
    I’m actually 3 modes
    then in the end it display terminal series
    xy
     
    can you help me

    thank you

  7. hey there, i try to configure the HC-05 Bluetooth Module…
    i followed all your steps.. but when enter command AT there is no respond..

    need your help figure it out..
    tq

  8. The HC-05 bluetooth module seems to respond randomly sometimes. When it get stubborn and refuses to respond I reboot as many times as necessary and make several trial with the jumper on different positions.

  9. I spent more than a month of testing and I can not!! , Ensure that you can demonstrate vedeo???
    thank you

  10. for the version 1.1 of the board use the jumpers in position A to communicate to the bluetooth module.

  11. Hi guys,
    I am tryind to connect to the bluetooth on the iteaduino 1.0 BT. I can configure the bluetooth, send AT commands, with the jumpers on the A + CMD but when i put the jumpers on B+DAT my android smartphone don t see the bluetooth on the iteaduino. I can upload a sketch with no jumpers + DAT.

    What should i do? i don t figure it out why my android can t see the bluetooth….

    pls help me:)