bluetooth controlled robot/car

23
(ATmega8 Serial Communication via Bluetooth) Bluetooth Controlled Car The National Institute of Engineering Stack Project

Upload: varun-gupta

Post on 07-May-2015

4.516 views

Category:

Education


37 download

DESCRIPTION

Bluetooth Controlled Robot built using ATmega8 Micro-controller and HC-05 Bluetooth Module.

TRANSCRIPT

Page 1: Bluetooth Controlled Robot/Car

(ATmega8 Serial Communication via Bluetooth)

Bluetooth Controlled Car

The National Institute of Engineering

Stack Project

Page 2: Bluetooth Controlled Robot/Car

The project aims at

designing a Robot which

can be controlled

using Bluetooth

AIM

Page 3: Bluetooth Controlled Robot/Car

Bluetooth controlled car is a robot which is built using Atmega8 Microcontroller in

which serial communication is done via Bluetooth

and programming is done in embedded C

language.

Introduction:

Page 4: Bluetooth Controlled Robot/Car
Page 5: Bluetooth Controlled Robot/Car

ATMEGA-8 Microcontroll

er

HC-05 Blueto

oth modul

e

L293D Motor Driver

Android

phone /

Laptop

Building Blocks:

Page 6: Bluetooth Controlled Robot/Car

High performance and low power microcontroller

RISC Architecture

Up to 16MIPS throughput 16MHz

1 KB RAM and 512 Bytes EEPROM

Programmable Serial USART

Programmer friendly

ATmega8 Microcontroller

Page 7: Bluetooth Controlled Robot/Car

Pin Configuration

Page 8: Bluetooth Controlled Robot/Car

RF based Wireless Technology

What is Bluetooth?

Page 9: Bluetooth Controlled Robot/Car

HC-05 is an embedded Bluetooth serial communication moduleIt has two work modes• order-response work mode • automatic connection work mode

HC-05 Bluetooth Module

Page 10: Bluetooth Controlled Robot/Car

Command Response Parameter

AT OK None

AT+RESET OK None

AT+VERSION? 

+VERSION: <Parameter> OK

Parameter: Version number

AT+ORGL OK None

List of AT Commands

Page 11: Bluetooth Controlled Robot/Car

AT+PSWD=<Param>

OK  

AT+ PSWD? 

+ PSWD : <Param>OK 

” Param: passkeyDefault: “1234

AT+UART=<Param1>,<Param2>,<Param3>

OK Param1-baud rate Usually 9600Param2-stop bitParam3- parity bit

   

Page 12: Bluetooth Controlled Robot/Car

•Common Specifications of HC-05:•Radio Chip : CSR BC417•Memory : External 8Mbit Flash•Output Power : : -4 to +6 dbm class 2•Sensitivity : -80dbm Typical•Bit Rate : EDR, up to 3Mbps•Interface : UART•Antenna : Built-in•Dimension : 27W x 13H mm•Voltage : 3.1 to 4.2 VDC•Current : 40mA max

Important Specs Of HC-05

Page 13: Bluetooth Controlled Robot/Car

Full duplex Asynchronous or Synchronous Operation

Master or slave synchronous operation

Framing Error Detection

Multi-processor communication Mode

Double speed Asynchronous Communication Mode.

USART PROTOCOL

Page 14: Bluetooth Controlled Robot/Car

RXC TXC UDRE FE DOR PE U2X MPCM

R R/W R R R R R/W R/W0 0 1 0 0 0 0 0

Register A : UCSRA

Register B: UCSRB

RXCIE

TXCIE UDRIE

RXEN TXEN UCSZ2

RXB8 TXB8

R/W R/W R/W R/W R/W R/W R R/W 0 0 0 0 0 0 0 0

Our Value : UCSRA -OXOO

Our Value : USCRA - 0X18

Page 15: Bluetooth Controlled Robot/Car

URSEL

UMSEL

UPM1 UPM0 USBS USCZ1 UCSZO

UCPOL

R/W R/W R/W R/W R/W R/W R/W R/W

Register C:USCRC

1 0 0 0 0 1 1 0

URSEL

- - - UBRR-11

UBRR-10

UBRR-9

UBRR-8

UBRR-7

UBRR-6

UBRR-5

UBRR4

UBRR-3

UBRR-2 UBRR-1 UBRR-0

UBRRHUBRRL:

0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Our Value: UCSRC – 0x86

Our Value: UBRRH, UBRRL - 75

Page 16: Bluetooth Controlled Robot/Car

Development Of PCB

Page 17: Bluetooth Controlled Robot/Car

PUSH-PULL four Channel Driver with Diodes

Suitable for use in switching applications at frequencies up to 5KHz

Page 18: Bluetooth Controlled Robot/Car
Page 19: Bluetooth Controlled Robot/Car

Android

Is an operating

system based on Linux Kerenel

It is designed primarily for touch screen

mobile devices like smart

phones and tablet

computers

User interface of android is

based on Direct

Manipulation

Internal hardware such

as accelerometers, gyroscopes and pr

oximity sensors  are used by some

applications to respond to

additional user actions

Page 20: Bluetooth Controlled Robot/Car

Bluetooth RC Controller App

Page 21: Bluetooth Controlled Robot/Car

Can be used in examining mini tunnel and can also be used in rescuing.

Concept can be used to control Home switch circuits using Relay circuit

APPLICATIONS

Page 22: Bluetooth Controlled Robot/Car
Page 23: Bluetooth Controlled Robot/Car