I have a small project, I want to control the robot through Bluetooth. But now, I don’t know how can I use Bluetooth and communicating it to arduino board.
It should be easy to connect the BT module with the Arduino / Ardubot:
BT Ardubot
RX-I TX (Digital 1)
TX-O RX (Digital 0)
VCC 5V
GND GND
To communicate with the PC you can use the normal Serial commands from Arduino. On PC side you will need a BT dongle with SPP protocol (Serial). You will need to open a virtual COM port to connect to the BT module.
make sure to configure the BT module for the baud rate you want to use. You can do this using a terminal program (ie teraterm) by sending the ‘$$$’ configuration sequence and using the AT command set of the Roving Networks BT module. You can only enter config mode within 60 seconds of poweron/resent.
It’s pretty simple. You don’t need to configure it if you use hardware serial; just accept that it is 115,200. I put a female pin block on mine so it plugs into FTDI on a Pro Mini or Fio. I got a Fio thinking I would use it for xBee and it doesn’t work with the 900 MHz Pro xBees and I got the BT Mate before deciding the xBees make more sense for the projcet, so these are castoffs that will begoing into my next toy…
The trick is the pairing from the PC. Tell it to search for the device and when it finds it you select the option to enter the code for pairing and use 1234. Pay attention to what COM port it creates. Any BT dongle on the PC works; SPP requires nothing special; it is a service supported by software. I do prefer a USB dongle to built in BT support though. Every now and then the paring gets in an odd state andi t is hard to straighten it out with a built in. With the dongle, just unplug and plug it back it in.
Are you wanting to control from a computer running windows or something else?
Are you wanting to use a terminal program (sends text to your arduino) to control it or a console or GUI program (if so what programming language and development environment/software are you using)?
Do you have a start on your arduino code you can post? (I don’t know the ardiuno libraries but I’m sure others can be very helpful)
You can use the cellbots sourcecode for your need. There is the cellbots.pde sketch you will need to adapt to your robot. The cellbots app can be found in the Android market. Later on, you can write your own programs in Java or Python.
I think Python for Android is likely to be the easiest platform to develop a Bluetooth application. I personally only have experience with PyS60 which is Python for Symbian Operating System on a Nokia smartphone. Check out my robot (by clicking my name) for more details on that, I’ve included source code.
Are you looking for code to make an autonomous robot? I think you just need to learn how to program, my friend. Start with getting a led to blink and expand from there. There is even a LED on that Arduino board you can use --it is connected to pin 13. You may want to wait on this whole Bluetooth/ mobile thing for a little while.