background image

RN4870/71 PICtail™/PICtail Plus 

Daughter Board User’s Guide

DS500025

47A-page 4

6

 2016 Microchip T

echnolo

gy Inc.

B.2

RN4870 PICtail SCHEMATIC

Figure B-1

 shows the schematic for the RN4870 PICtail™/PICtail Plus Daughter board.

FIGURE B-1:

RN4870 PICtail SCHEMATIC

t

RST

4

GP7/TxLED

5

GP6/RxLED

6

GP5

7

GP4

8

GP3

9

GP2

14

GP1/USB-CFG

15

GP0/SSPND

16

CTS

13

RTS

11

RX

12

TX

10

VDD

1

VS

S

20

OSC1

2

OSC2

3

D+

19

D-

18

VUSB

17

RST

GP7/T

G

G

xLED

GP6/R

G

G

xLED

R

R

GP5

G

G

GP4

GP3

GP2

GP1/U

G

G

SB-CFG

GP0/

G

G

SSPND

CTS
RTS

RX

TX

VDD

VS

S

OSC1

OSC2

D+

D-

VUSB

MCP2200

U10

GND

1

VIN

3

VOUT

2

MCP1700/3.3V

U2

4.7k

R29

1uF

10V

0402

C8

1uF

10V

0402

C10

1uF

10V

C27

1uF

16V

C17

1uF

16V

C28

12pF

50V

C19

12pF

50V

C21

0.1uF

16V

0603

C20

0.1uF

16V

C23

0.1uF

16V

0603

C24

123

4

JP5

1

2
3

4

JP7

11

2

JP6

11
2

JP8

1

1 2

JP12

1

1 2

JP13

1

2

3
4

5

6
7

8

JP10

1

1

2

3

4

5

6

HDR-2.54  Male  2x3

J1

1

1 2
3 4
5 6
7 8

J2

1

1 2
3 4
5 6
7 8

J3

1

1 2
3 4
5 6
7 8

J10

1
2
3
4
5
6

J4

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

J8

BLUE

LED1

BAT
USB_3V3
PIC_3V3

VBAT

GND

BAT

USB_5V

GND

GND

GND

USB_3V3

P20

P36
P32
P33
P34

P07
RST_N

P31

PIC_3V3

GND

GND

P22
P24

HCI_TXD
HCI_RXD

P10
P23
P27
P11
P00

GND

D-
D+

USB_3V3

GND

GND

D+
D-

GND

USB_3V3

GND

GND

USB_3V3

GND

GND

CTS
RTS
RX
TX

GP0
GP1
GP2

GP0
GP1
GP2
GP3
GP4
GP5
GP6
GP7

P00
P36
HCI_TXD
HCI_RXD

RTS
CTS
TX
RX

VBAT

3V3_I2C

nRST

VBAT
P31
P32
P33
P34

GND

GND

GND

GND

GND

VBAT

VBAT

VBAT

GND

GND

GND

VB

AT

GND

RST_N

P13
P12

3V3_I2C

3V3_I2C

GND

3V3_I2C

GND

GND

PushLow
PushHigh

VBAT

PushHigh

PushLow

GND

VBAT

2
3

1

4
5
6

TACT  DPST

SW6

P20

nRST

GND

USB_5V

GND

GND

P00

P10

P36

P20

P24

RST_N

VBAT

P22

VDD_IO

ULPC_O

P23

BK_O

P27

P11
P12
P13

P07

HCI_RXD
HCI_TXD

P31
P32
P33
P34
P35

P02

RB2/SS1/AN2

1

RF2/U1RX_E

2

RF6/SCK1

3

RF3/U1TX_E

4

RF7/SDI1_E

5

RG2/SCL1

6

RD0/RF8/SDO1_E

7

RG3/SDA1

8

GND

9

GND

10

RB0/AN0

11

RB1/AN1

12

RB3/AN3

13

RB4/AN4

14

GND

15

GND

16

RE9/INT2

17

RE8/INT1

18

RD14/U1CTS_E

19

RD15/U1RTS_E

20

3.3V

21

3.3V

22

5V

23

5V

24

9V

25

9V

26

RG0

27

RF0

28

RG1

29

RF1

30

J9

P31

P34

P33

P32

GND

P22

P24

P27

P36

P10

RST_N

GND

PIC_3V3

HCI_TXD

HCI_RXD

P35

P02

P20

P11

P00

P07

P23

GND

GND

11
2

3

4
5

6

7

8
9

HDR-2.54  Male  1x9

CN1

11

2

3

4

5

6

7

8

9

HDR-2.54  Male  1x9

CN3

1

1 2 3 4 5 6 7 8 9

HDR-2.54  Male  1x9

CN2

P02
P07
P35
P34
P33
P32
P31
HCI_TXD
HCI_RXD

VBAT
VDD_IO

P22
ULPC_O
P23
BK_O
P27

P1

1

P1

2

P1

3

P0

0

P1

0

P3

6

P2

0

P2

4

RS

T_

N

330R

R2

330R

R26

330R

R27

330R

R28

RED

LED6

USB_3V3

Coin  Cell  Battery  CR2032

Power  Source  Option

PICTAIL  Interface

Module  Test  Interface

USB  to  UART  Converter

USB  UART

USB  GPIO

RESET  Button

I2C  Interface

I2C  Power

I/O  for  I2C  Reset

Serial  Flash  Interface

J4

P31

P32

P33

P34

P31

P32

P33

P34

J4

SPI_NCS

SPI_MISO

SPI_MOSI

SPI_SCLK

P20

ON

OFF

P20

ON

OFF

MODE

Test  Mode

APP  Mode

Configuration

Power  Switch  Test  Button

Test  Buttons

Connect  to  GPIO  from  JP7
manually  for  Button  Test

(Push  Low)

LED  for  I/O  Test

VBAT/Ground  Test  Connector

1

2

DIP  1  SPST

SW7

2.2k

R10

10k

R20

2.2k

R11

2.2k

R13

47uF

16V

C12

SW1

SW2

SW3

SW4

SW5

SW8

300R

FB2

300R

FB1

4.7k

R8

4.7k

R25

470R

R21

1k

R24

1

3

12MHz

X1

Coin  Cell
USB_3V3
PIC_3V3

USB  RESET

RN4870  MODULE

1

2

3

4

5

6

7

8

9

10

HDR-2.54  Female  2x5

CN4

YELLOW

LED2

YELLOW

LED3

YELLOW

LED4

YELLOW

LED5

ID

4

VBUS

1

GND

5

D-

2

D+

3

0

USB2.0 Micro-B Female

P1

GND

1

GND

2

GND

3

VBAT

4

P2_2

5

VDD_IO

6

VDD_IO

7

ULPC_O

8

P2_3

9

BK_O

10

P1_1

12

P1_0

16

P3_6/RTS

17

P2_0/MODE

18

P2_4

19

NC

20

RST

21

UART_RX

22

UART_TX

23

P3_1

24

P3_2

25

P3_3

26

P3_4

27

P3_5

28

P0_7

29

P0_2

30

GND

31

GND

32

GND

33

P2_7/TX_IND

11

P1_2/SCL

13

P1_3/SDA

14

P0_0/CTS

15

RN4870

FP2

JR1

JR2

JR3

JR4

CR2032

1

2

SK1

Содержание RN4870

Страница 1: ...2016 Microchip Technology Inc DS50002547A RN4870 71 PICtail PICtail Plus Daughter Board User s Guide...

Страница 2: ...eceived ISO TS 16949 2009 certification for its worldwide headquarters design and wafer fabrication facilities in Chandler and Tempe Arizona Gresham Oregon and design centers in California and India T...

Страница 3: ...opment evaluation tool complies with EU RoHS2 Directive 2011 65 EU This development evaluation tool when incorporating wireless and radio telecom functionality is in compliance with the essential requ...

Страница 4: ...RN4870 71 PICtail PICtail Plus Daughter Board User s Guide DS50002547A page 4 2016 Microchip Technology Inc NOTES...

Страница 5: ...g ASCII Commands 21 3 4 Connecting to the RN4870 71 Using SmartDiscover App 22 3 5 Creating Custom GATT Services 24 3 6 Accessing GATT Service Using UART Commands and SmartDiscover App 25 3 7 Reading...

Страница 6: ...il Schematic 49 B 5 RN4871 PICtail BOM 50 B 6 RN4870 Sensor Board Schematic 52 B 7 RN4870 Sensor Board BOM 52 Appendix C Bluetooth Low Energy Primer C 1 GAP Roles Peripheral and Central 53 C 2 GATT Se...

Страница 7: ...the Sensor board Chapter 3 Quick Start Guide This chapter describes how to connect the RN4870 71 PICtail PICtail Plus Daughter board to the Host PC via USB and connecting and communicating with a sma...

Страница 8: ...T Appendix A Updating PICtail Firmware This appendix shows the steps to update the firmware on the RN4870 71PICtail PICtail Plus Daughter board Appendix B Schematics and BOM This appendix shows the sc...

Страница 9: ...dialog button Click OK A tab Click the Power tab N Rnnnn A number in verilog format where N is the total number of digits R is the radix and n is a digit 4 b0010 2 hF1 Text in angle brackets A key on...

Страница 10: ...releases and archived software General Technical Support Frequently Asked Questions FAQs technical support requests online discussion groups Microchip consultant program member listing Business of Mi...

Страница 11: ...ical Support Customers should contact their distributor representative or field application engineer FAE for support Local sales offices are also available to help customers A listing of sales offices...

Страница 12: ...RN4870 71 PICtail PICtail Plus Daughter Board User s Guide DS50002547A page 12 2016 Microchip Technology Inc NOTES...

Страница 13: ...are available on Apple AppStore and Google Play Store and include SmartDiscover SmartData BLESensorApp For more information on the RN487x commands and specifications refer to the Blue tooth 4 2 Low E...

Страница 14: ...tail Plus Daughter board has the following features Fully certified Bluetooth Low Energy 4 2 RF module 2 dBm maximum TX power On Board Dual In Line Package DIP switch block to set operating modes PICt...

Страница 15: ...il PICtail Plus Daughter Board RN4871 PICtail PICtail Plus Daughter Board Sensor Board 2 2 RN4870 PICtail PICtail PLUS DAUGHTER BOARD Figure 2 1 shows the interfaces of the RN4870 PICtail PICtail Plus...

Страница 16: ...USB host LED6 14 SPI Serial Flash Interface J4 15 UART connections J3 RTS CTS jumpers must be closed when hardware flow control is enabled on module 16 Status indicator LED LED1 for blink rate descri...

Страница 17: ...than the full size RN4870 module For the specific pinouts of the RN4870 and the RN4871 modules refer to the Bluetooth 4 2 Low Energy Module Data Sheet DS50002489 Although the module sizes are differen...

Страница 18: ...r the RN4870 PICtail PICtail Plus Daughter board to demonstrate digital and analog IO capabilities over Bluetooth Low Energy connections In order to use the Sensor board with the RN4870 it must be con...

Страница 19: ...ng the Sensor board The files can be downloaded from the www microchip com RN4870 product page 3 2 CONNECTING THE RN4870 71 PICtail PICtail PLUS DAUGHTER BOARD TO A HOST PC To connect the RN4870 71 PI...

Страница 20: ...ATOR 4 Enter Command mode by sending the command escape sequence Press ing the dollar sign three times puts the RN4870 71 into Command mode and CMD prompt is displayed When interacting directly with t...

Страница 21: ...ing Bluetooth SmartDiscover App The SmartDiscover App is available for iOS devices on Apple AppStore Check the Google Play Store for Android version To enable built in services and connect to the RN48...

Страница 22: ...this example the Bluetooth is set to BLE C071 e Verify that the services field is set to C0 refer to Figure 3 5 FIGURE 3 5 CONFIRM NEW SETTINGS IN COMMAND MODE 3 4 CONNECTING TO THE RN4870 71 USING S...

Страница 23: ...evice name is BLE C071 as shown in Figure 3 7 5 Click the RN4870 71 device from the list to initiate a connection 6 Ensure that the connection is established The GATT service view is illustrated in Fi...

Страница 24: ...he product web page at www microchip com RN4870 1 Connect the RN4870 PICtail to the host PC USB port a Using Terminal Emulator open the COM port to the RN4870 71 module b Type to enter Command mode c...

Страница 25: ...F636869702D524E34383730 with three characteristics identified by low order bytes C501 C502 and C503 from the 128 bit UUID A 16 bit handle is assigned to each characteristic Handles are used to referen...

Страница 26: ...RN4870 71 PICtail PICtail Plus Daughter board configured with the private GATT as shown in Section 3 5 Creating Custom GATT Services In this example the device BLE C071 is used Follow the steps in Fi...

Страница 27: ...ess peripheral IO on the Sensor board connected to the RN4870 PICtail as illustrated in Figure 3 13 1 Connect the Sensor board to the RN4870 PICtail as shown in Figure 1 1 2 Set Factory Default to def...

Страница 28: ...2016 Microchip Technology Inc FIGURE 3 13 RN4870 PINS USED BY SENSOR BOARD INTERFACE 4 After the IO ports are configured and the module is rebooted perform the com mands shown in Figure 3 14 to read...

Страница 29: ...s The critical function of associating GATT characteristic with a peripheral is performed by the RN4870 scripting capability The RN4870 can be configured manually by following the instructions in Sect...

Страница 30: ...4 1 RN4870 MODULE SETTINGS CONFIGURATION 4 3 SENSOR BOARD GATT SERVICE The data from the RN4870 peripheral IO are stored in the characteristics of a custom GATT service accessed by the Sensor Board B...

Страница 31: ...SENSOR BOARD GATT SERVICE DECLARED IN RN4870 Figure 4 2 illustrates that a custom GATT service has been created in the RN4870 module A 16 bit handle is assigned to each characteristic where each char...

Страница 32: ...is displayed in Section D 1 3 Sensor Board Script It can be copied to the clipboard and pasted in UART using TeraTerm Similarly the PC Utility can load it into RN4870 To load the Sensor board script m...

Страница 33: ...URE 4 4 COMPLETED SENSOR BOARD SCRIPT f Enter command R 1 to reboot the RN4870 module After the reboot the Sensor board is ready to use The script event handlers can be seen on the TeraTerm display as...

Страница 34: ...igure 4 5 FIGURE 4 6 BLESENSORAPP ICON The BLESensorApp requires the Sensor board to be configured as described in Section 4 2 4 4 1 Ensure that the Sensor board is attached to the RN4870 PICtail as s...

Страница 35: ...e BLESensorApp where the App updates the Graphical User Interface GUI BLE data can also be transferred from the BLESensorApp to the RN4870 module and later processed by the script to write a received...

Страница 36: ...of the extracted folder include the RN4870 71 Provision Utility executable the RN4870 71 Provision Utility Help files and the example configuration XML files This utility requires the MCP2200 USB UAR...

Страница 37: ...ision options for the RN4870 module are provided Choose the RN4870_Sensors_Demo_1 xml XML file from the Provision File drop down menu as shown in Figure 4 10 FIGURE 4 10 CONFIGURATION UTILITY SELECT X...

Страница 38: ...G MODULE 10 After the provisioning process is completed an information dialog window pops up to inform about the successful provisioning of the RN4870 module Refer to Figure 4 12 FIGURE 4 12 CONFIGURA...

Страница 39: ...T The PICtail interface can also be used to access the UART and the GPIOs on the RN4870 71 module 5 2 USING BM7X CONFIGURATION LIBRARY WITH PICtail BOARD The RN4870 71 PICtail plugs into the Explorer...

Страница 40: ...put port available on the Explorer Development board FIGURE 5 1 EXPLORER 16 DEVELOPMENT BOARD WITH RN4870 PICtail PLUS FIGURE 5 2 EXPLORER 16 DEVELOPMENT BOARD WITH RN4870 PICtail PLUS Note On the Exp...

Страница 41: ...RN4870 71 configuration by inserting break points into the work space or by optionally using the debug UART port 2 Download and install the BtChat_V1 0 3 apk file on the Android device from the BM7x...

Страница 42: ...RN4870 71 PICtail PICtail Plus Daughter Board User s Guide DS50002547A page 42 2016 Microchip Technology Inc NOTES...

Страница 43: ...ing steps 1 Download the firmware zip file from the product web page and extract the con tents The zip file contains the isupdate exe utility and a folder including the firmware images 2 Connect the P...

Страница 44: ...ick the Disconnect button to close the COM port The port disconnect mes sage is displayed as indicated in Figure A 2 FIGURE A 2 DISCONNECT ISUPDATE COM FROM MODULE 9 Set SW7 to the 1 position for Appl...

Страница 45: ...Appendix B Schematics and BOM B 1 INTRODUCTION This appendix provides the schematics and the Bill of Materials BOM for the RN487x PICtail PICtail Plus Daughter board RN4870 PICtail Schematic RN4870 P...

Страница 46: ...P31 P32 P33 P34 P35 P02 RB2 SS1 AN2 1 RF2 U1RX_E 2 RF6 SCK1 3 RF3 U1TX_E 4 RF7 SDI1_E 5 RG2 SCL1 6 RD0 RF8 SDO1_E 7 RG3 SDA1 8 GND 9 GND 10 RB0 AN0 11 RB1 AN1 12 RB3 AN3 13 RB4 AN4 14 GND 15 GND 16 R...

Страница 47: ...103 08 L D 3 J2 J3 J10 CON HDR 2 54 Male 2x4 Gold 5 84MH TH VERT Samtec TSW 104 08 L D 1 J4 CON HDR 2 54 Male 1x6 Gold 5 84MH TH VERT FCI 68001 106HLF 1 J8 CON HDR 2 54 Male 2x14 Gold 5 84MH TH R A Su...

Страница 48: ...SW6 SWITCH TACTILE PUSH ON OFF 6 PIN ROKI ELECTRONICS CO LTD PS07 22L PF 1 SW7 SWITCH DIP 1 SPST 24V 25 mA 418117270901 SMD Wurth Electronics Inc 4 18117E 11 1 X1 CRYSTAL 12MHz 8 pF SMD NX3225SA NDK N...

Страница 49: ...16 17 18 19 20 21 22 23 24 25 26 27 28 HDR 2 54 Male 2x14 JP14 BLUE LED1 P0_0 11 RST 10 P2_7 15 GND 13 GND 2 P1_2 3 UART_TX 8 P1_6 6 P2_0 16 UART_RX 7 P1_7 5 P1_3 4 P3_6 9 BT_RF 1 VBAT 14 P0_2 12 51...

Страница 50: ...1R 10 1 J1 CON HDR 2 54 Male 2x3 Gold 5 84MH TH VERT Samtec TSW 103 08 L D 4 J2 J3 J10 J14 CON HDR 2 54 Male 2x4 Gold 5 84MH TH VERT Samtec TSW 104 08 L D 2 J11 J13 CON HDR 2 54 Male 1x5 Tin 5 84MH TH...

Страница 51: ...M RT C K Components RS 282G05A3 SM RT 1 SW6 SWITCH TACTILE PUSH ON OFF 6 PIN ROKI ELECTRONICS CO LTD PS07 22L PF 1 SW7 SWITCH DIP 1 SPST 24V 25 mA 418117270901 SMD Wurth Electronics Inc 418117270901 1...

Страница 52: ...3386P 1 203TLF 1 R2 RES TKF 12k 1 1 10W SMD 0603 Yageo RC0603FR 0712KL 1 R3 RES TKF 100R 1 1 10W SMD 0603 Panasonic ERJ 3EKF1000V 1 S1 SENSOR PHOTOCELL 27 60KOHM Advanced Photonix Inc PDV P8104 1 SW1...

Страница 53: ...service On the other hand devices that acquire data from their peer are called Client Each service and its characteristics can be identified by their Universally Unique Iden tifier UUID The UUID can b...

Страница 54: ...be performed using RN4870 CHR and CUR commands Notifications and Indications are unsolicited updates sent from the GATT server to the GATT client The GATT client must enable the Notification and Indic...

Страница 55: ...GATT service RN4870 Module Settings RN4870 Sensor Board GATT Service Sensor Board Script D 1 1 RN4870 Module Settings WP WC PZ S RN4870 SR 4040 SS 80 SW 01 00 SW 02 00 SW 03 00 SW 04 09 R 1 D 1 2 RN4...

Страница 56: ...SM 2 0000 SM 1 0002 0078 FUNC1 FUNC1 1 1 PM1 PM2 DISCON SM 1 0000 SM 2 0000 SM 3 0000 R 1 CONN SM 1 0000 SM 2 0000 SM 3 001A TMR1 IA Z IA FF CD00FE14AD11CF40063F11E5BE3E0002A5D5C51B000C000D SM 2 000F...

Страница 57: ...7 5980 5118 China Xian Tel 86 29 8833 7252 Fax 86 29 8833 7256 ASIA PACIFIC China Xiamen Tel 86 592 2388138 Fax 86 592 2388130 China Zhuhai Tel 86 756 3210040 Fax 86 756 3210049 India Bangalore Tel 91...

Страница 58: ...Mouser Electronics Authorized Distributor Click to View Pricing Inventory Delivery Lifecycle Information Microchip RN 4870 SNSR RN 4871 PICTAIL...

Отзывы: