Bluetooth remote control
description
Transcript of Bluetooth remote control
![Page 1: Bluetooth remote control](https://reader035.fdocuments.us/reader035/viewer/2022081604/56816769550346895ddc5119/html5/thumbnails/1.jpg)
Bluetooth remote controlMathieu Stephan, EPFL
![Page 2: Bluetooth remote control](https://reader035.fdocuments.us/reader035/viewer/2022081604/56816769550346895ddc5119/html5/thumbnails/2.jpg)
Why?Create a complete product
Remotely control your music player
Get information about the tracks being played
Get calls / listen to the music on your remote control
Provide advanced functionalities using the USB port
Provide a platform with free tools
LCD screen
Buttons
USB
Audio
BT
![Page 3: Bluetooth remote control](https://reader035.fdocuments.us/reader035/viewer/2022081604/56816769550346895ddc5119/html5/thumbnails/3.jpg)
/!\ INFORMATION /!\
This project is made from scratch
![Page 4: Bluetooth remote control](https://reader035.fdocuments.us/reader035/viewer/2022081604/56816769550346895ddc5119/html5/thumbnails/4.jpg)
General idea
Microcontroller
LCD screen
Bluetooth Audio CODECBluetooth
USB
Analog
Buttons
?
![Page 5: Bluetooth remote control](https://reader035.fdocuments.us/reader035/viewer/2022081604/56816769550346895ddc5119/html5/thumbnails/5.jpg)
Components’ choiceAT90USB1287: 8Mhz, 128kb flash memory, embedded
USB bootloader, free compiler (WinAVR)
LMX9838: Bluetooth to UART converter with embedded antenna, Serial Port Profile
Winbond W681310: cheap audio codec supported by the LMX9838
Nokia Color LCD: cheap 130*130 pixels screen interfaced using SPI bus
![Page 6: Bluetooth remote control](https://reader035.fdocuments.us/reader035/viewer/2022081604/56816769550346895ddc5119/html5/thumbnails/6.jpg)
Interfacing the components
AT90USB1287
LCD screen
LMX9838 W68310Bluetooth
USB
UART
SPI
PCM Analog
Buttons
![Page 7: Bluetooth remote control](https://reader035.fdocuments.us/reader035/viewer/2022081604/56816769550346895ddc5119/html5/thumbnails/7.jpg)
Bluetooth point of view
BT Dongle
2.4 Ghz USB
Remote control
UART
Windows drivers
Serial port
Bluetooth application
Winamp
![Page 8: Bluetooth remote control](https://reader035.fdocuments.us/reader035/viewer/2022081604/56816769550346895ddc5119/html5/thumbnails/8.jpg)
How to use the remote
OK
Switch between menu / player
mode
Increase / Decrease volume
UP
DOWN
LEFT RIGHT
![Page 9: Bluetooth remote control](https://reader035.fdocuments.us/reader035/viewer/2022081604/56816769550346895ddc5119/html5/thumbnails/9.jpg)
PowerLithium Ion battery (charged when USB is plugged)
LCD screen with power save modes (partial display…)
PWM on the LCD backlight (to vary its intensity)
LMX9838 with 3 different power save modes
Sleep / Wake up on the AT90USB1287
W681310 enable pin
![Page 10: Bluetooth remote control](https://reader035.fdocuments.us/reader035/viewer/2022081604/56816769550346895ddc5119/html5/thumbnails/10.jpg)
PowerPower save mode : 17
mWBacklight off, headset not plugged, no BT link :
94 mWBacklight off, headset plugged, no BT link :
95 mWBacklight on, no BT link : 277
mWBacklight off, BT data link :
118 mWBacklight on, BT data link :
307 mWBacklight off, data & audio link :
177 mWBacklight on, data & audio link : 347
mW
![Page 11: Bluetooth remote control](https://reader035.fdocuments.us/reader035/viewer/2022081604/56816769550346895ddc5119/html5/thumbnails/11.jpg)
Autonomy (with the 620mAh bat)Power save mode : 135 hBacklight off, headset not plugged, no BT link :
25 hBacklight off, headset plugged, no BT link :
24 hBacklight on, no BT link : 8 hBacklight off, BT data link :
20 hBacklight on, BT data link :
7 hBacklight off, data & audio link :
13 hBacklight on, data & audio link : 6.5 h
![Page 12: Bluetooth remote control](https://reader035.fdocuments.us/reader035/viewer/2022081604/56816769550346895ddc5119/html5/thumbnails/12.jpg)
Work done (1/4) – System design
Printed circuit boards produced
![Page 13: Bluetooth remote control](https://reader035.fdocuments.us/reader035/viewer/2022081604/56816769550346895ddc5119/html5/thumbnails/13.jpg)
Work done (2/4) – FirmwareLCD screen interfacingBluetooth module interfacingGraphic library: pixel control, text, pictures, scrolling…Actions needed at first boot: BT profile, audio config...Protocol implementation for dialog with the media playerUSB: implementation of a HID devicePower handling: power save modes, battery voltage
sensing
![Page 14: Bluetooth remote control](https://reader035.fdocuments.us/reader035/viewer/2022081604/56816769550346895ddc5119/html5/thumbnails/14.jpg)
Work done (3/4) – plugin Communicates with the remote control using
a serial port over bluetoothDecode the requests, send the appropriate
answers (titles, playing status…)
![Page 15: Bluetooth remote control](https://reader035.fdocuments.us/reader035/viewer/2022081604/56816769550346895ddc5119/html5/thumbnails/15.jpg)
Work done (4/4) – the boxDesigned using SolidworksProduced using EPFL CNC machines
![Page 16: Bluetooth remote control](https://reader035.fdocuments.us/reader035/viewer/2022081604/56816769550346895ddc5119/html5/thumbnails/16.jpg)
Communication overview
Remote
Bluetooth link
Get init
Titles to display
Init done
What’s up?
Nothing / title changed…
User scrolling….
What’s after/before title X?
[Titles displayed]
![Page 17: Bluetooth remote control](https://reader035.fdocuments.us/reader035/viewer/2022081604/56816769550346895ddc5119/html5/thumbnails/17.jpg)
What has been done/improvements
Goal has been achieved (as you can have tested)
Printed circuit board can be reduced
Graphic library can be improved
Packaging can be better
![Page 18: Bluetooth remote control](https://reader035.fdocuments.us/reader035/viewer/2022081604/56816769550346895ddc5119/html5/thumbnails/18.jpg)
Evolution
Everything: open platform, free tools, expansion port, Bluetooth and USB interfaces!
![Page 19: Bluetooth remote control](https://reader035.fdocuments.us/reader035/viewer/2022081604/56816769550346895ddc5119/html5/thumbnails/19.jpg)
Any questions?
Thanks
![Page 20: Bluetooth remote control](https://reader035.fdocuments.us/reader035/viewer/2022081604/56816769550346895ddc5119/html5/thumbnails/20.jpg)
Work left to do (prev pres)Final prototype with power elements
Audio Codec interfacing
Winamp plugin creation
Plugin’s messages parsing on the AT90USB
Benchmarks: speed / autonomy
Create a packaging