Bluetooth in Arduino
Bluetooth in Arduino
OUTLINE
Introduction
Definitions
Bluetooth Versions
Wireless Class
Code
Arduino-Bluetooth
BlueGiga Transceiver Used On Arduino
BlueGiga Hardware
Homework Questions
BLUETOOTH INTRODUCTION
http://en.wikipedia.org/wiki/Bluetooth
Rochester Institute of Technology
Microelectronic Engineering
DEFINITIONS
WIRELESS MICROSYSTEMS
Capacitor Sensor
Bluetooth
Transceiver
2.5” x 3” BT-Arduino
Wireless Platform
Breadboard
5” x 8” Breadboard
2mm x 3mm
Rochester Institute of Technology
Microelectronic Engineering
1” x 1” PCB Custom CMOS & MEMS
© October 28, 2011 Dr. Lynn Fuller, Professor Page 5
Bluetooth Basics
BLUETOOTH
The actual range for each power class may vary depending upon
environmental factors where the Bluetooth device is used.
•If you wish to communicate over the 100m range, you will need a
class 1 Bluetooth device at both ends.
•If you wish to communicate over the 10m range, you can have a
class 1 or class 2 device at both ends.
At any given time, data can be transferred between the master and
one other device (except for the little-used broadcast mode). The
master chooses which slave device to address; typically, it switches
rapidly from one device to another in a round-robin fashion. Since
it is the master that chooses which slave to address, whereas a slave
is (in theory) supposed to listen in each receive slot, being a master
is a lighter burden than being a slave. Being a master of seven
slaves is possible; being a slave of more than one master is difficult.
The specification is vague as to required behavior in scatter nets.
MICROSYSTEM
Battery
Power USB Power
Management
Conditioning
Energy Harvester
MEMS other
Signal
Communication
. .
. µP . USB, WiFi
. .
. . CAN (other)
Wireless
ARDUINO BLUETOOTH
Microcontroller ATmega328
Operating Voltage 5V
Input Voltage (limits) 1.2-5.5V
Digital I/O Pins 14
(of which 6 provide PWM output)
Analog Input Pins 6
DC Current per I/O Pin 40 mA
DC Current for 3.3V Pin 50 mA
Flash Memory 32 KB (ATmega328)
of which 0.5 KB used by bootloader
BT-Arduino Development Board SRAM 2 KB (ATmega328)
2” x 2 ¾” EEPROM 1 KB (ATmega328)
~$100 Clock Speed 16 MHz
Rochester Institute of Technology
Microelectronic Engineering
Used on ArduinoBT
Development Board
Arduino Bootloader (reconfigurable)
Baud Rate Set at 115200
Device Name Set to: ARDUINOBT
Access Code Set to: 12345
void setup() {
pinMode(LED,OUTPUT); // declare the LED and BT RESET pins as output
pinMode(RESET,OUTPUT);
Serial.begin(115200);// connect to the serial port
digitalWrite(RESET, HIGH);
delay(10);
digitalWrite(RESET, LOW);
delay(2000);
void loop() {
digitalWrite(LED, HIGH);
delay(100);
digitalWrite(LED, LOW);
Serial.println("goodjob!");
Rochester Institute of Technology
delay(1000);
Microelectronic Engineering
}
© October 28, 2011 Dr. Lynn Fuller, Professor Page 15
Bluetooth Basics
BATTERIES
BATTERIES
Batteries in series doubles the voltage but maintains the same capacity
Batteries in parallel doubles the capacity but maintains the same
voltage
REFERENCES
1. None
2. None