Arduino Bluetooth

This past Friday, Ben hosted our third “Hackathon” event where we get together and write Android applications.  In this case, however, we also had some Arduino code to write since the application we were creating did two way communications between an Android phone and Arduino with BLUESMIRF bluetooth module.
Tips:
  1. Make sure to reverse the TX and RX pin connections when connecting the Arduino to the BLUESMIRF module
  2. Watch out for sample Arduino Mega code online– the plain Jane ATMEGA128 or 328 based boards only have one serial port (Serial), whereas the Mega boards have multiple ports (Serial1,Serial2).
Here is a collection of handy links:
  • Arduino Bluetooth Tutorial:

    http://www.arduino.cc/playground/Learning/Tutorial01

  • Interrupts:

    http://www.arduino.cc/en/Reference/AttachInterrupt

  • Arduino Serial available():

    http://arduino.cc/en/Serial/Available

  • Serial read():

    http://arduino.cc/en/Serial/Read

  • Serial println():

    http://arduino.cc/en/Serial/Println

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>