This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
digispark:tutorials:ble [2014/11/08 13:41] digistump created |
digispark:tutorials:ble [2016/06/09 12:03] (current) |
||
---|---|---|---|
Line 2: | Line 2: | ||
=====Product Description:===== | =====Product Description:===== | ||
- | [[https://s3.amazonaws.com/digispark/images/m/ble.jpg|{{https://s3.amazonaws.com/digispark/images/t/ble.jpg}}]] | + | [[https://s3.amazonaws.com/digispark/images/m/ble1.jpg|{{https://s3.amazonaws.com/digispark/images/t/ble1.jpg}}]] |
- | [[https://s3.amazonaws.com/digispark/images/m/ble.jpg|{{https://s3.amazonaws.com/digispark/images/t/ble.jpg}}]] | + | [[https://s3.amazonaws.com/digispark/images/m/ble4.jpg|{{https://s3.amazonaws.com/digispark/images/t/ble4.jpg}}]] |
Line 32: | Line 32: | ||
=====Assembly:===== | =====Assembly:===== | ||
- | Empty kit bag (or if using a raw PCB, aquire parts) and verify contents. | + | Empty kit bag (or if using a raw PCB, acquire parts) and verify contents. |
- | [[https://s3.amazonaws.com/digispark/images/m/ble.jpg|{{https://s3.amazonaws.com/digispark/images/t/ble.jpg}}]] | + | [[https://s3.amazonaws.com/digispark/images/m/ble1.jpg|{{https://s3.amazonaws.com/digispark/images/t/ble1.jpg}}]] |
Insert 6 pin right angle socket into top of PCB - insert it into the set of 6 holes that say "BLE BT4" below them - this is the second set from the right edge of the board. Solder socket pins on the bottom of the board | Insert 6 pin right angle socket into top of PCB - insert it into the set of 6 holes that say "BLE BT4" below them - this is the second set from the right edge of the board. Solder socket pins on the bottom of the board | ||
- | [[https://s3.amazonaws.com/digispark/images/m/ble.jpg|{{https://s3.amazonaws.com/digispark/images/t/ble.jpg}}]] | + | [[https://s3.amazonaws.com/digispark/images/m/ble2.jpg|{{https://s3.amazonaws.com/digispark/images/t/ble2.jpg}}]] |
Cut two lengths of male headers each 9 pins long and one 3 pins long. Insert into corresponding positions (on the bottom of the board) and solder each pin on the top. | Cut two lengths of male headers each 9 pins long and one 3 pins long. Insert into corresponding positions (on the bottom of the board) and solder each pin on the top. | ||
Line 46: | Line 46: | ||
**Note:** If you are using stackable headers, use them here instead of the standard male headers. | **Note:** If you are using stackable headers, use them here instead of the standard male headers. | ||
- | [[https://s3.amazonaws.com/digispark/images/m/ble.jpg|{{https://s3.amazonaws.com/digispark/images/t/ble.jpg}}]] | + | [[https://s3.amazonaws.com/digispark/images/m/ble3.jpg|{{https://s3.amazonaws.com/digispark/images/t/ble3.jpg}}]] |
Insert the HM-10 BLE breakout module into the 6 pin socket as shown. | Insert the HM-10 BLE breakout module into the 6 pin socket as shown. | ||
- | [[https://s3.amazonaws.com/digispark/images/m/ble.jpg|{{https://s3.amazonaws.com/digispark/images/t/ble.jpg}}]] | ||
- | + | [[https://s3.amazonaws.com/digispark/images/m/ble4.jpg|{{https://s3.amazonaws.com/digispark/images/t/ble4.jpg}}]] | |
- | [[https://s3.amazonaws.com/digispark/images/m/ble.jpg|{{https://s3.amazonaws.com/digispark/images/t/ble.jpg}}]] | + | |
=====Programming:===== | =====Programming:===== | ||
+ | For advanced AT commands (for changing name, etc) see the datasheet for the HM-10 module that is used on this shield: {{:digispark:tutorials:bluetooth40_en.pdf|}} | ||
+ | |||
+ | For ANCS (Apple Notification Center Service) instructions see here (Note: Please use the forums for all ANCS support - we cannot support it directly as we do not have experience with it): [[digispark:tutorials:hm10ancs|digispark:tutorials:hm10ancs]] | ||
+ | |||
+ | **Mobile app examples for Android and iOS (iOS development requires iOS dev setup or jailbroken phone)(phonegap/cordova based):** | ||
+ | (these can be edited with only a working knowledge of Javascript and HTML - see phonegap.com for more about how it all works) | ||
+ | |||
+ | https://github.com/digistump/Digispark_Cordova_BLEShieldEcho | ||
+ | |||
+ | https://github.com/digistump/Digispark_Cordova_BLEShieldRobot | ||
+ | |||
+ | Mobile Robot App for iOS - in ObjC - by Miirek: https://github.com/Miirek/BLEBot | ||
**Example changing DigiLED over BLE** | **Example changing DigiLED over BLE** | ||
+ | |||
+ | <del>**//Example has a bug. parseInt(); not included in Digispark loader.//**</del>- Fixed in Digistump IDE Release 1.0+ | ||
<code> | <code> | ||
Line 99: | Line 111: | ||
// look for the newline. That's the end of your | // look for the newline. That's the end of your | ||
// sentence: | // sentence: | ||
- | // if (mySerial.read() == '\n') { | ||
if (Serial.read() == '\n') { | if (Serial.read() == '\n') { | ||
// sends confirmation | // sends confirmation |