Metawatch Arduino Скачать руководство пользователя страница 1

MetaWatch Teardown and Arduino Hookup 

a

learn.sparkfun.com tutorial

Available online at: 

http://sfe.io/t113

Contents

Introduction
Use Tips
Teardown
Connecting Arduino (Hardware)
Connecting Arduino (Firmware)
Resources and Going Further

Introduction

The MetaWatch is a new open-source entry into the latest "Smart Watch" craze. It's a digital watch
with a microprocessor and Bluetooth controller built in. It can interface with your smartphone to
display stuff like weather forecasts, emails alerts, meeting notifications, or what music is playing
(oh, and the time and date too).

SparkFun has a Developer's Kit of the MetaWatch i

black

 and 

white

, which includes the watch, a

programmer/charging clip, and a license to use TI's 

Code Composer Studio

.

Page 1 of 17

Содержание Arduino

Страница 1: ... source entry into the latest Smart Watch craze It s a digital watch with a microprocessor and Bluetooth controller built in It can interface with your smartphone to display stuff like weather forecasts emails alerts meeting notifications or what music is playing oh and the time and date too SparkFun has a Developer s Kit of the MetaWatch inblack and white which includes the watch a programmer cha...

Страница 2: ... some basics of the MetaWatch Then we ll tear it down and look at its guts Then we ll put it back together and try to control it with what else an Arduino Required Materials The Arduino portion of this tutorial will combine an Arduino board with a Bluetooth module The Arduino Board can be any Arduino compatible board RedBoard Uno Pro Mini etc The BlueSMiRF Silver is used to serve as a bluetooth in...

Страница 3: ...atch down or connecting an Arduino to it we d recommend you check out what it can do when interfaced to your phone There are apps available for both Android and iOS phones Play with it Get a feel for how it functions Notice how there are four Idle mode pages you can cycle through Check it all out Playing with the watch might spawn a new project idea Whether you want to write your own phone app cus...

Страница 4: ...nt side of the MetaWatch this ll be what you use to upload and debug a program For more more info on using the Developer Clip as a JTAG interface check out the JTAG Reflashing documentation Button Labels and Gestures The watch has six buttons labeled A F A is the top right button at two o clock and they increment clockwise around the watch Page 4 of 17 ...

Страница 5: ...klight seconds display invert display etc D Show info display Shows charge level firmware version bluetooth address and other stats E Music display phone dependant F Backlight On top of that you canreset the watch by holding down the middle buttons B and E down for a few seconds Alternatively holding F does the same thing Teardown Page 5 of 17 ...

Страница 6: ...resent in most screwdriver sets The first set of screws flatheads are on the four corners of the back of the watch Loosening those screws and removing the back reveals the watch s power source a 20mm 3 7V Li Ion coin cell battery a smaller version of this The other big visible circular component is a vibration motor You can also see four spring connectors for the JTAG interface Page 6 of 17 ...

Страница 7: ...e tied to the watch frame by four small Phillips screws Loosening those screws allows you to gently remove the entire LCD PCB assembly from the frame you may have to pry it up with the flathead Examining the Guts Page 7 of 17 ...

Страница 8: ...er is printed there It s a Sharp LS013B4DN01 Looks like it s got a simple SPI like interface Neat You can gently lift the display off the main PCB The display and PCB are connected together using a zebra connector so they just have to be lined up and pressed together to interface The PCB is very thin 0 6mm Page 8 of 17 ...

Страница 9: ...KXTF9 to the right of the MSP430 is a Kionix accelerometer The blue ish reflective chip above the MSP430 is a CC2560 Bluetooth controller Those are the most heavy lifting ICs on the watch There s also a chip antenna top left backlight LED top middle and light sensor top right We also notice an unpopulated IC package intriging Let s flip it over Page 9 of 17 ...

Страница 10: ... Microchip Serial EEPROM maybe some voltage regulator circuitry and a wealth of test points Meh And that s about it The watch is really easy to take apart and put back together and it still works It seems very hackable and it shows off a few chips which may be useful for other projects Page 10 of 17 ...

Страница 11: ...ng run part of the watch s allure is it s connected to a phone which is connected to the Internet but it s a fun exercise in controlling a cool consumer product looking device with an Arduino Connecting Bluetooth You ll need a Bluetooth module to interface between the Arduino and MetaWatch The MetaWatch s CC2560 Bluetooth module is a dual mode so it supports serial port profile SPP as well as Blue...

Страница 12: ...l Monitor debugging Connecting the BlueSMiRF to the Arduino is about as simple as it gets four wires Two wires for power 5V and GND and two wires are for the two serial lines Note If pins 10 and 11 don t work for your project you can swap those pins to any SoftwareSerial enabled pin You ll need to change a couple values in the library if you do so Connecting Arduino Firmware Download the SFE_MetaW...

Страница 13: ...u set the btBaudRate variable near the top of the sketch to the baud rate of your BlueSMiRF 115200 is the module s default Then set the metaWatchAddress variable to the 12 digit HEX address of your watch press button D bottom left the address is the xxxx xxxx xxxx formatted number at the bottom After uploading the code open up the serial monitor set at 9600 bps When the code first starts you can e...

Страница 14: ...sendt then HHMMSS vibrating v and controlling the backlight l for off L for on For more information on what s going on check out the comments in the code There are a few parts of the code to highlight Include the Library and Create a Watch Variable These two pieces of code are required Include the library near the top of your sketch Then sometime before setup create an SFE_MetaWatch instance we ca...

Страница 15: ...r backlight and the display You can also read from the watch s light sensor accelerometer and battery gauge And of course since it is a watch you can set the real time clock s RTC hours minutes seconds and date variables Here are a few handy functions to interface with the watch Set the RTC The setTime year month date day hours minutes seconds function should be used to set the watch s clock Each ...

Страница 16: ... Widgets updated Those four lines for example will get your watch to draw four clock full page clock widgets on four different pages Vibrate You can control the watch s vibration motor using thevibrate timeOn timeOff numCycles function timeOn determines how many milliseconds the watch vibrates timeOff determines how many milliseconds to not vibrate and numCycles tells the watch how many times to r...

Страница 17: ... make one of your own the OpenSegment might be all you need to control a 4 digit 7 segment display Serial 7 Segment Hookup Guide The S7S is a smaller version of the OpenSegment Connecting Arduino to Processing Instead of using the clunky Serial Monitor interface you could create a nice GUI to interface with your Arduino from Processing learn sparkfun com CC BY SA 3 0 SparkFun Electronics Niwot Col...

Отзывы: