Sunteți pe pagina 1din 20

REMOTELY CONTROLLED ANDROID BASED

ELECTRONIC NOTICE BOARD


ABSTRACT:
Notice Board is primary thing in any institution / organization or public utility places
like bus stations, railway stations and parks. But sticking various notices day-to-day is a
difficult process. A separate person is reuired to take care of this notices display. !his
pro"ect deals about an advanced hi-tech wireless notice board.
!he main ob"ective of the pro"ect is to develop a wireless notice board that displays
notices when a message is sent from the user#s android application device. $emote operation
is achieved by any smart-phone/!ablet etc., with Android %&, upon a '() *'raphical (ser
)nterface+ based touch screen operation. ,hile the user sends the message from the android
application device, it is received and retrieved by the Bluetooth device at the display unit.
!he Bluetooth access password will only be known to the user. )t is then sent to the
microcontroller that further displays the notice sent from the user on to the electronic notice
board which is euipped with a -./0 123 display. )t uses a microcontroller from 456-
family.
!he power supply consists of a step down transformer 075/-08, which steps down the
voltage to -08 A2. !his is converted to 32 using a Bridge rectifier. !he ripples are removed
using a capacitive filter and it is then regulated to 968 using a voltage regulator :456 which
is reuired for the operation of the microcontroller and other components.
BLOCK DIAGRAM:
SOFTWARE REQUIREMENTS:
;iel compiler, 1anguage< =mbedded 2
%r >e? Assembly
Android Application.
HARDWARE REQUIREMENTS:
@icro controller unit *A!4A260+, B1(=!%%!>
3evice, 123 *-.?0+, $esistors, 2apacitors,
3iodes, !ransformer, $egulator
Serial Bluetooth Module
Quantity Pricing
!his module enables you to wireless transmit B receive serial data. )t is a drop in
replacement for wired serial connections allowing transparent two way data communication.
Cou can simply use it for serial port replacement to establish connection between @2( or
embedded pro"ect and D2 for data transfer.
Features
7.78 power operation
(A$! interface
-5 meters range
=asy to use
@inimum =?ternal 2omponents
&tatus 1=3s
Appl!at"#s
,ireless !elemetry
$emote 3ata 1ogging
$obotics
&ensor @onitoring
$emote Drogramming
Spe!$!at"#s
Bluetooth protocol v0.5
$ange -5 meters
Ereuency< 0.F 'hz )&@
@odulation< 'E&;
!ransmit power< FdBm
&ensitivity< 4FdBm
$ate< 0.-@bps*@a?+ /-.5kbps*Async+G -@bps*&ync+
Authentication B =ncryption
Dower &upply< 97.7 832 65mA
%perating !emperate< -052 to 966 2
3imensions< 0..A mm ? -7 mm ? 0.0 mm
@odes of operation
!hese modules have two modes< master and slave. Cou can set the module mode *master or
slave+ of the device by A! commands.
!he main function of Bluetooth serial module is replacing the serial port line, such as<
MCU t" MCU !"%%u#!at"#
!here are two @2(s want to communicate with each other. %ne connects to Bluetooth
master device while the other one connects to slave device. !heir connection can be built
once the pair is established. !his Bluetooth connection is euivalently liked to a serial port
line connection including $/3, !/3 signals. And they can use the Bluetooth serial module
to communicate with each other. 2ommunication between two of these Bluetooth modules
reuires at least two conditions< *-+ %ne module must be master and another module should
be slave. *0+ !he password must be same.
MCU t" &C'S%art &("#e C"%%u#!at"#
,hen @2( has Bluetooth salve module, it can communicate with Bluetooth adapter of
computers and smart phones. !hen there is a virtual communicable serial port line between
@2( and computer or smart phone. 3river is not reuired when using the module with D2
or &mart phone.
MCU t" Ot(er Sla)e *e)!e #ter$a!#+
!he other bluetooth devices in the market mostly are salve devices, such as Bluetooth printer,
Bluetooth 'D&. &o, we can use master module to make pair and communicate with them.
@odule Dinouts
Basic &chematic
&tatus 1=3 flashes at different rates to indicate different status like searching, config,
connected.
Dair 1=3 lights on continuously when matching and data connection is established
successfully.
2onfig Humper is put to make pinI7F high, then module enters A! command mode for
configuration. 1eave pinI7F floating and module is in normal working mode. Dower off the
module when making this change.
&tatus 1=3
&tatus 1=3 has three types of blinking status
,- C"#$+ M"*e .LED /l#0s "#!e a se!"#*-: ,hen the module is supplied power and
D)N7F*2%NE)' @%3=+ is input high level, &tatus 1=3 output ->z suare wave to make
the 1=3 flicker slowly once a second. )t indicates that the module is at the A! mode, and the
baud rate is 74F55G !his is 2onfiguration @ode.
1- U#pare* M"*e .LED /l#0s t2" t%es a se!"#*-: ,hen the module is supplied power
and D)N7F*2%NE)' @%3=+ is input low level or floating, &tatus 1=3 output 0>z suare
wave to make the 1=3 flicker uickly. )t indicates the module is at the pairable mode.
3- &are* M"*e .LED *"u/le $l!0er per se!"#*-: Dairing is finished and module can
communicate.
Dair 1=3
1=3 comes on once the module has paired with another bluetooth module or D2 or &mart
Dhone. !he pair 1=3 pin goes high when module is in pairing else the pin is at low level
when unpaired.
8arious types of )nterfacing
!he Bluetooth module works on 7.78 level only. H+( )"lta+e l0e 45 2ll per%a#e#tl6
*a%a+e t(e %"*ule7 s" please ta0e !are # us#+ t8
)f your application reuires to be operated at 68 then use a 1@---:-7.7 regulator to convert
the 68 level to 787 level as reuired by module. Also protect the $/3 pin against 68 !/3
signal by inserting -; resistor in series to module $/3 pin.
)f you wish to connect this module to D2#s &erial port which is at $&070 level, then you need
to add @A/070 circuit as shown.
@odule 3imensions
2onfig @ode
,hen "umper is put on config pin making it high during power on state the module enters A!
command mode for module configuration at baud rate of 74F55bps.
!hen you can use a software like !erminal to configure the module. Cou can download
!erminal from this product page download bo?.
>ere you can see we are entering various A! commands and getting response from module.
>ere you can see we are setting different configuration and module is responding with %;.
Ereuently used A! 2ommands
A! 2ommand structure< all command should end up with JKrKnL *>e?< 5?53 5?5A+ as the
terminator. Eor full A! command download D3E A!-2ommands.pdf from this page
download bo?.
Reset t(e %aster9sla)e r"le !"%%a#*:
A!9$%1=M5 ----&et the module to be slave mode. !he default mode is slave.
A!9$%1=M- ----&et the module to be master mode.
Set %e%"r6 !"%%a#*:
A!92@%3=M- &et the module to make pair with the other random Bluetooth module
*Not specified address+. !he default is this mode.
A!92@%3=M5 &et the module to make pair with the other Bluetooth module *specified
address+. )f set the module to make pair with random one first, then set the module to make
pair with the Bluetooth module has specified address. !hen the module will search the last
paired module until the module is found.
Reset t(e pass2"r* !"%%a#*
A!9D&,3M////
&et the module pair password. !he password must be F-bits.
Reset t(e /au* rate
A!9(A$!M NDaramO,NDaram0O,NDaram7O.
E:a%ple:
A!9(A$!MA.55,5,5 ----set the baud rate to be A.55N4-
Reset t(e Bluet""t( #a%e
A!9NA@=M/////
Steps t" set %"*ule t" MASTER
Dower on module in config mode, module comes into A! 2ommand $esponse &tatus.
%pen >yperterminal or other communications tool, set the baud rate to 74F55, 4 data bits, -
stop bit, no parity bit, no flow control
8ia !!1 serial port, send characters PA! 9 $%1= M - r nP,if successful, return P%; r nP,
where r n is carriage return.
$emove 2onfig "umper, re-power, then in @aster state, automatically search for slave
module and connect.
Brief A! commands to uery module parameters
A! responds %;.
A!9$=&=! responds %;.
A!98=$&)%NQ responds with the firmware version.
A!9%$'1 responds %; and restores default state.
A!9A33$Q responds with module address.
A!9NA@=Q responds with module name.
A!9NA@=name where name 05 or fewer characters. $esponds %;name. $etained across
power offs.
A!9$NA@=Q responds with remote paired moduleRs name.
A!9$%1=Q responds with 5Mslave, -Mmaster, 0Mslave-loop *loopback< receives master
device data and sends back to master+.
A!921A&&Q responds with device type *70 bit indicating device type and what is
supported+.
A!9D&,3Q responds with password.
A!9D&,3Mpassword sets module pairing password to password.
A!9(A$!M?,y,z where ? is F455, A.55, -A055, 74F55, 6:.55, --6055, 075F55, F.5455,
A0-.55, -740F55 for baud rate, where y is 5M- bit, -M0 bits stop bit, where z is 5Mnone,
-Modd, 0Meven parity+. 3eafult is A.55,5,5.
A!9(A$!Q responds with 9(A$!<baud,stop bits,parity.
A!9&!A!(&Q responds with the module status *9&!A!=<initialised, ready, pairable, paired,
inuiring, connecting, connected, disconnected+.
A!9DA)$M?,y sets the remote Bluetooth device address with which to pair where ? is the
address *eg -0<7F<6.<ab<cd<ef+ and y is the limited time of the connection in seconds.
)nterfacing with Andriod &mart Dhone - Blueterm App
Blue!erm *this is a free app for android and you can found it in the 'oogle Dlay market+
!erminal emulator for communicating with any serial device using a bluetooth serial adapter.
!he $E2%@@/&DD protocol emulates serial communications over bluetooth.
Eirst you must enable Bluetooth on your telephone. &earch the bluetooth device and pair with
it *the password is -07F+. !hen open Blue!erm and select the device.

Adding Bluetooth 3evice on D2
!he Bluetooth module runs the &DD *&erial Drotocol over Bluetooth+ protocol. &o any device
supporting &DD can connect to it. %n a D2 this looks like a virtual 2%@ port. ) show here the
steps for ,indows *running ,indows :+.
)t seems that Apple *iDhone, iDA3, etc+ does SnotS support &DD, so connecting with an
iDhone is not possible. Android works, or any D2 machine with Bluetooth 3ongle.
Erom the 3evice @anager, select TAdd a 3evice#<
!hen the new device should show up<
!he name of the device shows here for me Tblue-U, as ) have named it as such with A! config.
Cou might get default name.
&elect the device and press TNe?t#. )n the ne?t dialog select T=nter the device#s pairing code#<
!he default pairing code is -07F<
Dressing ne?t, and device drivers will be installed<
!hen the device is ready to use<
And the confirmation dialog shows up<
COM &"rt use* /6 De)!e
2hecking the properties on the newly added device shows that it supports &DD. And it shows
the virtual 2%@ port used<
(sing that 2%@ port shown for the &DD service, Cou can connect with any terminal program
on the host D2 to my remote bluetooth board.
Any 3ata transmitted to this 2%@ port appears at !/ out pin of bluetooth module and same
for received data.
U#/#*#+ a#* Tr"u/le S(""t#+
)n case there are issues with connecting to the module, it is necessary to unbind and re-bind
*connect+ to the module. )t happened to me sometimes )#m able to connect once, but then not
any more. )n that case the following steps help<
2lose any terminal program potentially connected to the Bluetooth virtual 2%@
port.
(npower the Bluetooth module so it is not visible any more to the D2.
$ight click on the device in the ,indows 3evice manager *or 3evices and Drinter
group+ and select T$emove 3evice#<
$e-power the module< the red 1=3 shall be blinking as not connected.
&earch for the device in the device manager *as above+, and connect again to the
device with a pairing pin.
2onnect to the module using the 2%@ port specified for the &DD service.
)f your D2 does not have bluetooth capability then you can easily add by using a commonly
available PBluetooth (&B 3ongleP like below

S-ar putea să vă placă și