SlideShare ist ein Scribd-Unternehmen logo
1 von 20
bodong.li@kaust.edu.sa
Product Description
A physical button that connects to
smart phones to enable functions on
the phone side.
Design Focus
Small
Fast response
Long battery life
The Button
Component Selection
Components Parts Remarks
Bluetooth LE TI CC2541 Cost-effective, MCU embedded
Battery CR1632 Small, ø16×3.2mm
3V, 140mAh (Marked power)
Buck convertor TI TPS62730 Enable BLE low power mode
Tactile Switch SKQYAAE010 SMD, Compact, High-speed
Antenna Puls W3008 Ceramic SMD, 1.7 dBi gain
LED LED RED 0402 Small forward voltage (1.8 V)
Passive components SMD 0402 Save PCB space
Design Breakdown
Power supply
Buck convertor
Power
management
3~2.2 V
Button
Sensing and Display
CC2541
Bluetooth
MCU (8051)
LED
2.1 V
Antenna
+
Matching
Network
Communication
GPIO write
TX
RX
GPIO read
Schematic
PCB
Layout
Top
Bottom
GND
PWR
4 layer PCB
Top side:
•CC2541
•TPS62730
•Switch
•Antenna
•Crystal
•LED
•Passive SMD
Bottom side:
•Battery
•Debug port
*Preliminary design,
refinement required
Mechanical Concept Design
20 mm
8mm
Peripheral
Smart phoneButton
Central device
scan
Establish connection
turn on key
press notification
advertise
read P0_0 ?
1
0
send notification
characteristic
change
N
Y
create event
GATT clientGATT server
Flash LED (P1_0)
System Flow Chart
Firmware Development
• The firmware of the button function is programed in the 8051 MCU of
CC2540, which is included in the mini Keyfob module (shown below) from TI
CC2540 mini development kit.
• Programming environment: IAR Embedded Workbench for 8051.
• The right Key and LED of the mini Keyfob module are enabled.
• The “SimpleBLEPeripheral” project provided by TI is used as a reference.
Code Implementation
2. Declare HandleKeys function
1. Enable “simplekeys” service and register Key event to be
processed in “SimpleBLEPeripheral_ProcessEvent” task
function
simpleBLEPeripheral.c
simpleBLEPeripheral.c
SimpleBLEPeripheral_Init
3. Process Key event in “simpleBLEPeripheral_ProcessOSALMsg”
simpleBLEPeripheral.c
S..Peripheral_ProcessEvent
S..Peripheral_ProcessOSALMsg
4. Response with enable/disable advertising1
by updating GAP
and send notification2
through GATT
simpleBLEPeripheral.c
S..Peripheral_ProcessEvent
S..Peripheral_ProcessOSALMsg
S..Peripheral_HandleKeys
Code Location
…
1
2
Software Development
• The debugging and testing is performed on an Iphone 5.
• Programming environment: Xcode 5.
• An App is developed with button connection, button test, and flappy bird
game functions.
• Bluetooth communication is handled by BLE Controller object, when BLE
notification is sent to the Iphone, the updated key information is passed to
BLE Connection View Controller through delegation.
BLE Connection View Flappy Bird View
• BLE Connection View includes BLE
initialization view and button test
view.
• Source Code of CC2540 Keyfob
IOS demo and Spritybird app are
used as references.
App Flow AppDelegate
object
AppDelegate
object
BLE Connection
View Controller
object
BLE Connection
View Controller
object
Flappy Bird
View Controller
object
Flappy Bird
View Controller
object
BLE Controller
object
BLE Controller
object
Flappy Bird
View Controller
View
Flappy Bird
View Controller
View
BLE Connection
View Controller
View
BLE Connection
View Controller
View
UIButtonUIButton
Scene
object
Scene
object
BirdNodeBirdNode
SKSprite
Node
SKSprite
Node
UILabelUILabel
UISwitchUISwitch
UIImageUIImage
Button Connection Interface
BLE Button
Start scanning
Key status
indicator
Connection status
indicator
Button Connection Interface handles the Bluetooth scanning and connection
status indication.
Button Test Interface
Real time updated data
Minimum time interval
between clicks/touches
Maximum frequency
(mean of 5)
Screen touch dataBLE button click data
Button Test Interface implements a function to get the button clicking time
interval for studying the usability of the BLE button as well as providing data for
power consumption test.
Button Characterization
• The power consumption of the BLE button is
characterized using a 34410A high precision
multimeter and an external power supply.
• The firmware is modified to control one key
and one LED only. As there are other
peripheral devices connected on the Keyfob
such as buzzer, accelerometer which
introduce leakage current to the module, the
measured power consumption only reflects
the relative power performance of the BLE key
press application.
• In the following test, the multimeter is
configured with 0.6 ms sample interval time,
50000 current data of the button performing
different tasks within 30 seconds is recorded
and analyzed.
Test Result Connection interval: 100 ms
Slave latency: 0, RF power: 0 dB
Clicking Frequency Comparison
Calculated
Ieffective
1.17 mA
1.30 mA
2
The button can reach a clicking frequency of 7 Hz, close to 9 Hz
maximum frequency of the screen touching.
Conclusion
• For simple BLE applications, using embedded MCU reduces circuit complexity.
In this case, battery size becomes the major constrain for the further
miniaturization of the device. 16 mm diameter CR1632 could be an option
when the power consumption is properly managed.
• For more complicated system on button cell sized board, 6/8 layers PCB
design needs to be considered.
• By using the plastic button, ceramic chip antenna can be placed on the top
side of the board, which saves the overall board space.
• CC2541 Low power mode saves additional 20% energy.
• Red LED using as a indicator, powered directly by the MCU, avoiding
additional transistors.
• In data transmission mode, the effective current consumption of the BLE with
button function is above 1 mA.
• The BLE button can be used for action intense applications.
References
CC2541-TPS62730EM Reference Design
CC2541 Programming Guide
CC2541 Mini Development Kit Sample Code
https://github.com/kirualex/SprityBird (Sprity Bird Source Code)
http://processors.wiki.ti.com/index.php/Category:KeyFobDemo (Keyfob Source Code)
Software used
Circuit and PCB design: Diptrace Freeware Edition
Firmware development: IAR Embedded Workbench
Software development: Xcode 5.1.1
Mechanical concept design: SketchUp
http://youtu.be/aoQFClP3_eY
A Demo can be found in the link below.
Time Line*
CC2540 received
Design
completed
July 14
July 16
July 27
July 9
Order placed for
CC2540 MINI DK
Firmware
completed
July 19
Apple developer
license received
July 23
Software
completed
Characterization
&Demo
July 30
* Completed during spare time
Thank you!

Weitere ähnliche Inhalte

Was ist angesagt?

8051 MICROCONTROLLER ARCHITECTURE.pptx
 8051 MICROCONTROLLER ARCHITECTURE.pptx 8051 MICROCONTROLLER ARCHITECTURE.pptx
8051 MICROCONTROLLER ARCHITECTURE.pptxMemonaMemon1
 
Bluetooth - Comprehensive Presentation
Bluetooth - Comprehensive PresentationBluetooth - Comprehensive Presentation
Bluetooth - Comprehensive PresentationMuhammed Afsal Villan
 
Schedule and Contention based MAC protocols
Schedule and Contention based MAC protocolsSchedule and Contention based MAC protocols
Schedule and Contention based MAC protocolsDarwin Nesakumar
 
A casa espírita
A casa espírita A casa espírita
A casa espírita telmacorte
 
A cabana guia de estudo. 2
A cabana   guia de estudo. 2A cabana   guia de estudo. 2
A cabana guia de estudo. 2jair seixas
 
O consolador prometido
O consolador prometidoO consolador prometido
O consolador prometidoClaudio Macedo
 
Embedded Systems using Microwave oven
Embedded Systems using  Microwave ovenEmbedded Systems using  Microwave oven
Embedded Systems using Microwave ovenBOOMIKAD
 
EC8702 adhoc and wireless sensor networks iv ece
EC8702 adhoc and wireless sensor networks iv eceEC8702 adhoc and wireless sensor networks iv ece
EC8702 adhoc and wireless sensor networks iv eceGOWTHAMMS6
 
BEM AVENTURADOS OS QUE SOFREM PERSEGUIÇÃO POR AMOR A JUSTIÇA
BEM AVENTURADOS OS QUE SOFREM PERSEGUIÇÃO POR AMOR A JUSTIÇABEM AVENTURADOS OS QUE SOFREM PERSEGUIÇÃO POR AMOR A JUSTIÇA
BEM AVENTURADOS OS QUE SOFREM PERSEGUIÇÃO POR AMOR A JUSTIÇASergio Menezes
 
39 mecanismos da cura espiritual
39 mecanismos da cura espiritual39 mecanismos da cura espiritual
39 mecanismos da cura espiritualAntonio SSantos
 
Architecture of 8086
Architecture of 8086Architecture of 8086
Architecture of 8086Nikhil Kumar
 
Santo e profano
Santo e profanoSanto e profano
Santo e profanodyhorrano
 
Livro dos espiritos - questoes 803 a 805 - igualdade natural e desigualdade d...
Livro dos espiritos - questoes 803 a 805 - igualdade natural e desigualdade d...Livro dos espiritos - questoes 803 a 805 - igualdade natural e desigualdade d...
Livro dos espiritos - questoes 803 a 805 - igualdade natural e desigualdade d...Antonio Braga
 
Addressing modes of 8085
Addressing modes of 8085Addressing modes of 8085
Addressing modes of 8085Gaurav Solanki
 
23. serial and parallel data communication
23. serial and parallel data communication23. serial and parallel data communication
23. serial and parallel data communicationsandip das
 
Methods for Achieving RTL to Gate Power Consistency
Methods for Achieving RTL to Gate Power ConsistencyMethods for Achieving RTL to Gate Power Consistency
Methods for Achieving RTL to Gate Power ConsistencyAnsys
 

Was ist angesagt? (20)

Axi
AxiAxi
Axi
 
8051 MICROCONTROLLER ARCHITECTURE.pptx
 8051 MICROCONTROLLER ARCHITECTURE.pptx 8051 MICROCONTROLLER ARCHITECTURE.pptx
8051 MICROCONTROLLER ARCHITECTURE.pptx
 
Bluetooth - Comprehensive Presentation
Bluetooth - Comprehensive PresentationBluetooth - Comprehensive Presentation
Bluetooth - Comprehensive Presentation
 
Schedule and Contention based MAC protocols
Schedule and Contention based MAC protocolsSchedule and Contention based MAC protocols
Schedule and Contention based MAC protocols
 
A casa espírita
A casa espírita A casa espírita
A casa espírita
 
A cabana guia de estudo. 2
A cabana   guia de estudo. 2A cabana   guia de estudo. 2
A cabana guia de estudo. 2
 
I2C
I2CI2C
I2C
 
O consolador prometido
O consolador prometidoO consolador prometido
O consolador prometido
 
Embedded Systems using Microwave oven
Embedded Systems using  Microwave ovenEmbedded Systems using  Microwave oven
Embedded Systems using Microwave oven
 
EC8702 adhoc and wireless sensor networks iv ece
EC8702 adhoc and wireless sensor networks iv eceEC8702 adhoc and wireless sensor networks iv ece
EC8702 adhoc and wireless sensor networks iv ece
 
BEM AVENTURADOS OS QUE SOFREM PERSEGUIÇÃO POR AMOR A JUSTIÇA
BEM AVENTURADOS OS QUE SOFREM PERSEGUIÇÃO POR AMOR A JUSTIÇABEM AVENTURADOS OS QUE SOFREM PERSEGUIÇÃO POR AMOR A JUSTIÇA
BEM AVENTURADOS OS QUE SOFREM PERSEGUIÇÃO POR AMOR A JUSTIÇA
 
It2402 mobile communication unit2
It2402 mobile communication unit2It2402 mobile communication unit2
It2402 mobile communication unit2
 
39 mecanismos da cura espiritual
39 mecanismos da cura espiritual39 mecanismos da cura espiritual
39 mecanismos da cura espiritual
 
Architecture of 8086
Architecture of 8086Architecture of 8086
Architecture of 8086
 
Santo e profano
Santo e profanoSanto e profano
Santo e profano
 
Livro dos espiritos - questoes 803 a 805 - igualdade natural e desigualdade d...
Livro dos espiritos - questoes 803 a 805 - igualdade natural e desigualdade d...Livro dos espiritos - questoes 803 a 805 - igualdade natural e desigualdade d...
Livro dos espiritos - questoes 803 a 805 - igualdade natural e desigualdade d...
 
PCIe
PCIePCIe
PCIe
 
Addressing modes of 8085
Addressing modes of 8085Addressing modes of 8085
Addressing modes of 8085
 
23. serial and parallel data communication
23. serial and parallel data communication23. serial and parallel data communication
23. serial and parallel data communication
 
Methods for Achieving RTL to Gate Power Consistency
Methods for Achieving RTL to Gate Power ConsistencyMethods for Achieving RTL to Gate Power Consistency
Methods for Achieving RTL to Gate Power Consistency
 

Andere mochten auch

HTC Bluetooth Low Energy and the TI SensorTag
HTC Bluetooth Low Energy and the TI SensorTagHTC Bluetooth Low Energy and the TI SensorTag
HTC Bluetooth Low Energy and the TI SensorTagLance Nanek
 
Aeroscout Aami
Aeroscout AamiAeroscout Aami
Aeroscout AamiMarc
 
Aeroscout 2008 Architecture
Aeroscout 2008 ArchitectureAeroscout 2008 Architecture
Aeroscout 2008 ArchitectureMarc
 
Aeroscout Random2
Aeroscout Random2Aeroscout Random2
Aeroscout Random2Marc
 
Aeroscout Temp
Aeroscout TempAeroscout Temp
Aeroscout TempMarc
 
Stanley Security Solutions
Stanley Security SolutionsStanley Security Solutions
Stanley Security Solutionsdavearys
 
Aeroscout Healthcare
Aeroscout HealthcareAeroscout Healthcare
Aeroscout HealthcareMarc
 
Smart Button Overview
Smart Button OverviewSmart Button Overview
Smart Button Overviewguest78316a
 
Future of things @peoplepeople #webbdagarna
Future of things  @peoplepeople #webbdagarnaFuture of things  @peoplepeople #webbdagarna
Future of things @peoplepeople #webbdagarnaPEOPLE PEOPLE
 
Projeto bel11
Projeto bel11Projeto bel11
Projeto bel1163outubro
 
Smart Button Build Loyal Relationships
Smart Button   Build Loyal RelationshipsSmart Button   Build Loyal Relationships
Smart Button Build Loyal Relationshipstrevore2000
 
Smart Button Background
Smart Button BackgroundSmart Button Background
Smart Button Backgroundtrevore2000
 
Siren button - Phone based Emergency Alert System
Siren button - Phone based Emergency Alert SystemSiren button - Phone based Emergency Alert System
Siren button - Phone based Emergency Alert SystemVasudev Jagarlamudi
 
BEM, vos CSS sous vitamines !
BEM, vos CSS sous vitamines !BEM, vos CSS sous vitamines !
BEM, vos CSS sous vitamines !Thomas ZILLIOX
 
Monbaby - sleep sensor in a smart button
Monbaby - sleep sensor in a smart buttonMonbaby - sleep sensor in a smart button
Monbaby - sleep sensor in a smart buttonArturas Vaitaitis
 
#CES2015 HUBREPORT : UNVEILED + DAY1
#CES2015 HUBREPORT : UNVEILED + DAY1#CES2015 HUBREPORT : UNVEILED + DAY1
#CES2015 HUBREPORT : UNVEILED + DAY1HUB INSTITUTE
 
Objets connectés:panorama international des initiatives bancaires - INBanque ...
Objets connectés:panorama international des initiatives bancaires - INBanque ...Objets connectés:panorama international des initiatives bancaires - INBanque ...
Objets connectés:panorama international des initiatives bancaires - INBanque ...YVON MOYSAN
 
Unified Visibility Solutions
Unified Visibility SolutionsUnified Visibility Solutions
Unified Visibility SolutionsAndreas Schütte
 

Andere mochten auch (18)

HTC Bluetooth Low Energy and the TI SensorTag
HTC Bluetooth Low Energy and the TI SensorTagHTC Bluetooth Low Energy and the TI SensorTag
HTC Bluetooth Low Energy and the TI SensorTag
 
Aeroscout Aami
Aeroscout AamiAeroscout Aami
Aeroscout Aami
 
Aeroscout 2008 Architecture
Aeroscout 2008 ArchitectureAeroscout 2008 Architecture
Aeroscout 2008 Architecture
 
Aeroscout Random2
Aeroscout Random2Aeroscout Random2
Aeroscout Random2
 
Aeroscout Temp
Aeroscout TempAeroscout Temp
Aeroscout Temp
 
Stanley Security Solutions
Stanley Security SolutionsStanley Security Solutions
Stanley Security Solutions
 
Aeroscout Healthcare
Aeroscout HealthcareAeroscout Healthcare
Aeroscout Healthcare
 
Smart Button Overview
Smart Button OverviewSmart Button Overview
Smart Button Overview
 
Future of things @peoplepeople #webbdagarna
Future of things  @peoplepeople #webbdagarnaFuture of things  @peoplepeople #webbdagarna
Future of things @peoplepeople #webbdagarna
 
Projeto bel11
Projeto bel11Projeto bel11
Projeto bel11
 
Smart Button Build Loyal Relationships
Smart Button   Build Loyal RelationshipsSmart Button   Build Loyal Relationships
Smart Button Build Loyal Relationships
 
Smart Button Background
Smart Button BackgroundSmart Button Background
Smart Button Background
 
Siren button - Phone based Emergency Alert System
Siren button - Phone based Emergency Alert SystemSiren button - Phone based Emergency Alert System
Siren button - Phone based Emergency Alert System
 
BEM, vos CSS sous vitamines !
BEM, vos CSS sous vitamines !BEM, vos CSS sous vitamines !
BEM, vos CSS sous vitamines !
 
Monbaby - sleep sensor in a smart button
Monbaby - sleep sensor in a smart buttonMonbaby - sleep sensor in a smart button
Monbaby - sleep sensor in a smart button
 
#CES2015 HUBREPORT : UNVEILED + DAY1
#CES2015 HUBREPORT : UNVEILED + DAY1#CES2015 HUBREPORT : UNVEILED + DAY1
#CES2015 HUBREPORT : UNVEILED + DAY1
 
Objets connectés:panorama international des initiatives bancaires - INBanque ...
Objets connectés:panorama international des initiatives bancaires - INBanque ...Objets connectés:panorama international des initiatives bancaires - INBanque ...
Objets connectés:panorama international des initiatives bancaires - INBanque ...
 
Unified Visibility Solutions
Unified Visibility SolutionsUnified Visibility Solutions
Unified Visibility Solutions
 

Ähnlich wie Control smart devices with a small Bluetooth button

Development Of An Internet Controlled Surveillance Mobile Robot Part1
Development Of An Internet Controlled Surveillance Mobile Robot Part1Development Of An Internet Controlled Surveillance Mobile Robot Part1
Development Of An Internet Controlled Surveillance Mobile Robot Part1mimi
 
Home Appliances Controlling using Android Mobile via Bluetooth
Home Appliances Controlling using Android Mobile via BluetoothHome Appliances Controlling using Android Mobile via Bluetooth
Home Appliances Controlling using Android Mobile via BluetoothMOKTARI MOSTOFA
 
Home automation control system using dtmf technology
Home automation control system using dtmf technologyHome automation control system using dtmf technology
Home automation control system using dtmf technologyGovind Ekshinge
 
Android Operated Wireless Robot Using 8051 MCU
Android Operated Wireless Robot Using 8051 MCUAndroid Operated Wireless Robot Using 8051 MCU
Android Operated Wireless Robot Using 8051 MCUKamal Pradhan
 
Embedded system 8051 Microcontroller
Embedded system 8051 MicrocontrollerEmbedded system 8051 Microcontroller
Embedded system 8051 Microcontrollerankitsharmaj
 
Light Scenario Hotel Solution 2022May25.pdf
Light Scenario Hotel Solution 2022May25.pdfLight Scenario Hotel Solution 2022May25.pdf
Light Scenario Hotel Solution 2022May25.pdfWong Maura
 
Gesture based vehicle movements control and alerting system docu
Gesture based vehicle movements control and alerting system docuGesture based vehicle movements control and alerting system docu
Gesture based vehicle movements control and alerting system docuVignan Munna
 
Report (Electromagnetic Password Door Lock System)
Report (Electromagnetic Password Door Lock System)Report (Electromagnetic Password Door Lock System)
Report (Electromagnetic Password Door Lock System)Siang Wei Lee
 
Building and selecting hardware for connected devices, use case - BLE devices
Building and selecting hardware for connected devices, use case - BLE devicesBuilding and selecting hardware for connected devices, use case - BLE devices
Building and selecting hardware for connected devices, use case - BLE devicesPavel Stessin
 
electronic voting machine by rfid
electronic voting machine by rfidelectronic voting machine by rfid
electronic voting machine by rfidSaurabh Uniyal
 
Secured voting machine with touch screen & smart card
Secured voting machine with touch screen & smart cardSecured voting machine with touch screen & smart card
Secured voting machine with touch screen & smart cardAlbert Jose
 
Pavel stessin - building and selecting hardware for connected devices
Pavel stessin - building and selecting hardware for connected devicesPavel stessin - building and selecting hardware for connected devices
Pavel stessin - building and selecting hardware for connected devicesYael Malki
 
Industrial monitoring and control system using android application
Industrial monitoring and control system using android applicationIndustrial monitoring and control system using android application
Industrial monitoring and control system using android applicationAvinash Vemula
 
summer training report (2)
summer training report (2)summer training report (2)
summer training report (2)Kavya Gupta
 

Ähnlich wie Control smart devices with a small Bluetooth button (20)

Stone i tech
Stone i techStone i tech
Stone i tech
 
Development Of An Internet Controlled Surveillance Mobile Robot Part1
Development Of An Internet Controlled Surveillance Mobile Robot Part1Development Of An Internet Controlled Surveillance Mobile Robot Part1
Development Of An Internet Controlled Surveillance Mobile Robot Part1
 
Home Appliances Controlling using Android Mobile via Bluetooth
Home Appliances Controlling using Android Mobile via BluetoothHome Appliances Controlling using Android Mobile via Bluetooth
Home Appliances Controlling using Android Mobile via Bluetooth
 
Home automation control system using dtmf technology
Home automation control system using dtmf technologyHome automation control system using dtmf technology
Home automation control system using dtmf technology
 
Android Operated Wireless Robot Using 8051 MCU
Android Operated Wireless Robot Using 8051 MCUAndroid Operated Wireless Robot Using 8051 MCU
Android Operated Wireless Robot Using 8051 MCU
 
Embedded system 8051 Microcontroller
Embedded system 8051 MicrocontrollerEmbedded system 8051 Microcontroller
Embedded system 8051 Microcontroller
 
Light Scenario Hotel Solution 2022May25.pdf
Light Scenario Hotel Solution 2022May25.pdfLight Scenario Hotel Solution 2022May25.pdf
Light Scenario Hotel Solution 2022May25.pdf
 
Smart home
Smart homeSmart home
Smart home
 
Smart home copy
Smart home   copySmart home   copy
Smart home copy
 
Smart home
Smart homeSmart home
Smart home
 
Gesture based vehicle movements control and alerting system docu
Gesture based vehicle movements control and alerting system docuGesture based vehicle movements control and alerting system docu
Gesture based vehicle movements control and alerting system docu
 
Report (Electromagnetic Password Door Lock System)
Report (Electromagnetic Password Door Lock System)Report (Electromagnetic Password Door Lock System)
Report (Electromagnetic Password Door Lock System)
 
Building and selecting hardware for connected devices, use case - BLE devices
Building and selecting hardware for connected devices, use case - BLE devicesBuilding and selecting hardware for connected devices, use case - BLE devices
Building and selecting hardware for connected devices, use case - BLE devices
 
electronic voting machine by rfid
electronic voting machine by rfidelectronic voting machine by rfid
electronic voting machine by rfid
 
SURVEILLANCE ROBOT
SURVEILLANCE ROBOTSURVEILLANCE ROBOT
SURVEILLANCE ROBOT
 
Secured voting machine with touch screen & smart card
Secured voting machine with touch screen & smart cardSecured voting machine with touch screen & smart card
Secured voting machine with touch screen & smart card
 
Pavel stessin - building and selecting hardware for connected devices
Pavel stessin - building and selecting hardware for connected devicesPavel stessin - building and selecting hardware for connected devices
Pavel stessin - building and selecting hardware for connected devices
 
Industrial monitoring and control system using android application
Industrial monitoring and control system using android applicationIndustrial monitoring and control system using android application
Industrial monitoring and control system using android application
 
Home automation
Home automationHome automation
Home automation
 
summer training report (2)
summer training report (2)summer training report (2)
summer training report (2)
 

Kürzlich hochgeladen

Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 

Kürzlich hochgeladen (20)

Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 

Control smart devices with a small Bluetooth button

  • 1. bodong.li@kaust.edu.sa Product Description A physical button that connects to smart phones to enable functions on the phone side. Design Focus Small Fast response Long battery life The Button
  • 2. Component Selection Components Parts Remarks Bluetooth LE TI CC2541 Cost-effective, MCU embedded Battery CR1632 Small, ø16×3.2mm 3V, 140mAh (Marked power) Buck convertor TI TPS62730 Enable BLE low power mode Tactile Switch SKQYAAE010 SMD, Compact, High-speed Antenna Puls W3008 Ceramic SMD, 1.7 dBi gain LED LED RED 0402 Small forward voltage (1.8 V) Passive components SMD 0402 Save PCB space
  • 3. Design Breakdown Power supply Buck convertor Power management 3~2.2 V Button Sensing and Display CC2541 Bluetooth MCU (8051) LED 2.1 V Antenna + Matching Network Communication GPIO write TX RX GPIO read
  • 5. PCB Layout Top Bottom GND PWR 4 layer PCB Top side: •CC2541 •TPS62730 •Switch •Antenna •Crystal •LED •Passive SMD Bottom side: •Battery •Debug port *Preliminary design, refinement required
  • 7. Peripheral Smart phoneButton Central device scan Establish connection turn on key press notification advertise read P0_0 ? 1 0 send notification characteristic change N Y create event GATT clientGATT server Flash LED (P1_0) System Flow Chart
  • 8. Firmware Development • The firmware of the button function is programed in the 8051 MCU of CC2540, which is included in the mini Keyfob module (shown below) from TI CC2540 mini development kit. • Programming environment: IAR Embedded Workbench for 8051. • The right Key and LED of the mini Keyfob module are enabled. • The “SimpleBLEPeripheral” project provided by TI is used as a reference.
  • 9. Code Implementation 2. Declare HandleKeys function 1. Enable “simplekeys” service and register Key event to be processed in “SimpleBLEPeripheral_ProcessEvent” task function simpleBLEPeripheral.c simpleBLEPeripheral.c SimpleBLEPeripheral_Init 3. Process Key event in “simpleBLEPeripheral_ProcessOSALMsg” simpleBLEPeripheral.c S..Peripheral_ProcessEvent S..Peripheral_ProcessOSALMsg 4. Response with enable/disable advertising1 by updating GAP and send notification2 through GATT simpleBLEPeripheral.c S..Peripheral_ProcessEvent S..Peripheral_ProcessOSALMsg S..Peripheral_HandleKeys Code Location … 1 2
  • 10. Software Development • The debugging and testing is performed on an Iphone 5. • Programming environment: Xcode 5. • An App is developed with button connection, button test, and flappy bird game functions. • Bluetooth communication is handled by BLE Controller object, when BLE notification is sent to the Iphone, the updated key information is passed to BLE Connection View Controller through delegation. BLE Connection View Flappy Bird View • BLE Connection View includes BLE initialization view and button test view. • Source Code of CC2540 Keyfob IOS demo and Spritybird app are used as references.
  • 11. App Flow AppDelegate object AppDelegate object BLE Connection View Controller object BLE Connection View Controller object Flappy Bird View Controller object Flappy Bird View Controller object BLE Controller object BLE Controller object Flappy Bird View Controller View Flappy Bird View Controller View BLE Connection View Controller View BLE Connection View Controller View UIButtonUIButton Scene object Scene object BirdNodeBirdNode SKSprite Node SKSprite Node UILabelUILabel UISwitchUISwitch UIImageUIImage
  • 12. Button Connection Interface BLE Button Start scanning Key status indicator Connection status indicator Button Connection Interface handles the Bluetooth scanning and connection status indication.
  • 13. Button Test Interface Real time updated data Minimum time interval between clicks/touches Maximum frequency (mean of 5) Screen touch dataBLE button click data Button Test Interface implements a function to get the button clicking time interval for studying the usability of the BLE button as well as providing data for power consumption test.
  • 14. Button Characterization • The power consumption of the BLE button is characterized using a 34410A high precision multimeter and an external power supply. • The firmware is modified to control one key and one LED only. As there are other peripheral devices connected on the Keyfob such as buzzer, accelerometer which introduce leakage current to the module, the measured power consumption only reflects the relative power performance of the BLE key press application. • In the following test, the multimeter is configured with 0.6 ms sample interval time, 50000 current data of the button performing different tasks within 30 seconds is recorded and analyzed.
  • 15. Test Result Connection interval: 100 ms Slave latency: 0, RF power: 0 dB
  • 16. Clicking Frequency Comparison Calculated Ieffective 1.17 mA 1.30 mA 2 The button can reach a clicking frequency of 7 Hz, close to 9 Hz maximum frequency of the screen touching.
  • 17. Conclusion • For simple BLE applications, using embedded MCU reduces circuit complexity. In this case, battery size becomes the major constrain for the further miniaturization of the device. 16 mm diameter CR1632 could be an option when the power consumption is properly managed. • For more complicated system on button cell sized board, 6/8 layers PCB design needs to be considered. • By using the plastic button, ceramic chip antenna can be placed on the top side of the board, which saves the overall board space. • CC2541 Low power mode saves additional 20% energy. • Red LED using as a indicator, powered directly by the MCU, avoiding additional transistors. • In data transmission mode, the effective current consumption of the BLE with button function is above 1 mA. • The BLE button can be used for action intense applications.
  • 18. References CC2541-TPS62730EM Reference Design CC2541 Programming Guide CC2541 Mini Development Kit Sample Code https://github.com/kirualex/SprityBird (Sprity Bird Source Code) http://processors.wiki.ti.com/index.php/Category:KeyFobDemo (Keyfob Source Code) Software used Circuit and PCB design: Diptrace Freeware Edition Firmware development: IAR Embedded Workbench Software development: Xcode 5.1.1 Mechanical concept design: SketchUp http://youtu.be/aoQFClP3_eY A Demo can be found in the link below.
  • 19. Time Line* CC2540 received Design completed July 14 July 16 July 27 July 9 Order placed for CC2540 MINI DK Firmware completed July 19 Apple developer license received July 23 Software completed Characterization &Demo July 30 * Completed during spare time