Home

ARPI600 User Manual

image

Contents

1. 11 Selecting the option ZIBGEE ROUTER END DEVICE AT under Function Set 3 Set the read Networking parameters ID 234 DH 0 DL 0 4 Click the button to download the configured parameters into the XBee A module 11 ARPI600 User Manual Waveshare 3 5 Configuring XBee B module 1 2 3 4 5 Configure XBee B module according to the processes described in the Section 3 1 and the Section However there is something different In configuring XBee B you should select the option ZIBGEE COORDINATOR AT under the pull down menu Function Set Modem BEE Function Set Version AB 24 E ZIGBEE COORDINATOR AT 1020 o k Figure 12 Selecting the option ZIBGEE COORDINATOR AT under Function Set Set the read Networking parameters ID 234 DH 0 ODL ffff Click the button to download the configured parameters into the XBee B module In order to implement a simple P2P network please configure XBee A and XBee B according to the processes described above Start two X CTU tools and select different COM interfaces in the option PC Settings to control Group A and Group B respectively Input the data to be transmitted in the X CTU Terminal of XBee A then you can find that the inputted data will be sent to XBee B automatically and displayed in the X CTU Terminal of XBee B In the X CTU data in blue is the data to be sent and data in red is the received data 12
2. ARPI600 User Manual Waveshare ARPI600 User Manual Overview Arduino is a massive ecosystem if there s a way for the Raspberry Pi GPIO interface to adapt to Arduino pinouts it is possible to use the Pi together with vast Arduino shields and hardware software resources The ARPI600 is just intended for this What s more the ARPI600 also support XBee modules make it easy to add wireless feature to your great project Features Compatible with Arduino UNO Leonardo easy to connect with various Arduino shields XBee connector for connecting various XBee modules Sensor interface for connecting various sensors Onboard USB TO UART for serial port debugging also can be configured as XBee USB adapter Onboard ADC 10 bit 38KSPS 11 channels 6 channels for Arduino interface 5 channels for sensors Onboard RTC ARPI600 User Manual What s on the ARPI600 0 Fs OS P fo PiPInPIOO W w DIO O Q Figure 1 Onboard device Arduino connector for connecting Arduino shields ICSP interface Arduino ICSP XBee connector for connecting XBee communication modules Sensor interface for connecting sensors Raspberry Pi connector for connecting Raspberry Pi USB TO UART TLC1543 AD converter PCF8563 RTC CP2102 32 768KHz crystal for RTC Power indicator XBee state LED XBee and Arduino interface RESET button XBee EASYLINK button RTC battery holder for CR1220 button battery TLC1543 reference
3. ARPI600 User Manual Waveshare QB x cTU COM12 28 PL Settings Range Test Terminal Wodem Configuration Line Status Ssserk Clase 4S s2emble Clear Hide LTS DTR Iw RTS I Breakl Com Port Packet Hex 4ABCEFG1 23456 41 42 43 45 46 47 31 32 33 34 35 36 COMT2 3600 8 H 1 FLOW MONE Fx 6 bytes Figure 13 Data transmission and receive 6 Figure 13 shows the normal operating state of XBee module 4 Howto perform wireless transmission with XBee Before performing the wireless transmission with XBee please make sure the wireless network built by two XBee modules is work properly For more information about how to build the wireless network please refer to Section 3 4 1 Configuring the module 1 Set the jumpers on ARPI600 Here we should use two Raspberry Pi boards Raspberry Pi A and Raspberry Pi B of which Raspberry Pi A is used for transmitting data and Raspberry Pi B is used for receiving data Connect Raspberry Pi A to the serial port of XBee A and Raspberry Pi B toXBee B respectively And then set the jumpers on ARPI600 as Figure 14 shows Connect XB_RX to P_TX Connect XB_TX to P_RX 13 ARPI600 User Manual Waveshare Figure 14 Setting jumpers on ARPI600 2 Testing the serial port Copy the file program Xbee getdata to the Raspberry Pi B and enter the folder getdata Then execute the code sudo serialTest The relative data will be displayed as followed Figure 15 Displaying t
4. EF to 5V which means the AD conversion reference voltage is 5V connecting to 5V is a default setting Connect REF to 3V3 which means the AD conversion reference voltage is 3 3V Notices REF can only be connected to one reference voltage at a time Figure 18 Setting AD reference voltage 3 Copy the file program AD_TLC1543 in to Raspbian Then enter the folder AD_TLC1543 and execute the following code under the terminal sudo tlc1543 4 Terminal will display relative AD conversion value By default the displayed 15 ARPI600 User Manual Waveshare 5 conversion value is come from Pin ADO on TLC1543 Pin T_AO on ARPI600 Connect the jumpers T_AO to AO then the Pin AO on Arduino interface can sever as an AD conversion pin as shows Figure 19 connecting Pin T_AO to Pin AO 6 2 Configuring as other AD pins 1 2 If you want to display the conversion value from other AD pins on TLC1543 please enter the terminal and edit the file tlc1543 c Sudo nano tlc1543 c Find out the following line re ADCSelChannel 0 Modify the 0 in the line into the number corresponding to other AD pin For example modify to 1 for testing the conversion value from Pin AD1 Pin T_A1 and modify to 2 for testing the conversion value from Pin AD2 Pin T_A2 and so on until to 10 for testing the conversion value from Pin AD10 T_A10 After completing the operation described above press the keys ctr
5. e C CO0OM27 SEIT 9600 Flow Control NONE Data Bits Parity otop Host Setup User Com Ports Network Interface Figure 6 X CTU setting Configure the XBee module The default setting of XBee is as followed Baud 9600 Data Bite 8 Parity NONE Stop 1 3 3 Testing the connection between PC and XBee 1 2 3 4 Connect XBee A to ARPI600 A and XBee B to ARPI600 B respectively Set the jumpers on ARPI600 to start up the serial debugging function for the XBee as Figure 7 shows Connect XB_RX to CP_RX Connect CP_TX to XB_TX Figure 7 Jumpers setting for serial debugging function between the Pi and the XBee Power up Raspberry Pi board For more detailed information please refer to the step 2 of Section 1 How to enable serial debugging function Click the button to check whether the connection between the ARPI600 and the XBee is established successfully ARPI600 User Manual Waveshare CT 8 al x About PC Settings Range Test Terminal Modem Configuration Com Port Setup Select Com Port CP210x USB to UART Bridge C COM27 Baud 6000s Flow Control NONE 7 Host Setup User Com Ports Network Interface 1 Figure 8 Testing the connection between the board and the XBee 5 For a successful connection you can see the dialog box as Figure 9 shows Com test Query Modem Communication with modem 0K Modem type B 24 5 Modem f
6. e keys ctrl x and select the option Y to save the modification Input the code And modify the following lines Spawn a getty on Raspberry Pi serial line T0 23 respawn sbin getty L ttyAMAO 115200 vt100 into Spawn a getty on Raspberry Pi serial line T0 23 respawn sbin getty L ttyAMAO 115200 vt100 Press the keys ctrl x and select the option Y to save the modification Input the code After completing the modifications described above and restarting the Raspberry Pi board the serial debugging function is started up In this mode you cannot enter the terminal of the Pi via the serial port any more but can control the serial output by the software If you want to reset the serial port to the serial debugging output please restore the factory settings and restart the Raspberry Pi Therefore it is recommended to backup the Raspbian before making any modification Install relative libraries Copy the library file software wiringPi tar gz into Raspberry Pi you can perform it by a U disk and enter the terminal of Raspberry Pi to input the following code cd wiringPi chmod 777 build build After installing the library input the following code pio ARPI600 User Manual Waveshare Now you can check whether the installation is successful 2 3 Serial data display 1 The Raspbian system is set to serial debugging output by default so you should configure the jumpers on the ARPI600 in order to start up the se
7. e pins of Raspberry Pi board is as Table 2 shows 18 ARPI600 User Manual Waveshare APRI600 IO of Raspberry Pi B Table 2 The relationship between the pins AO A5 and the pins of Raspberry Pi board b When the pins AO A5 are connected to 3 they will sever as ADC pins 4 You can also connect the pin A4 to P_SCL and the pin A5 to P_SDA as Figure 22 shows to making them sever as 12C control pins of Raspberry Pi board However in default settings the pins A4 and P_SCL are disconnected and so do the pins A5 and P_SDA Notices Users can modify the settings of these jumpers as required In this operation welding is required Any changes under no guidance from Waveshare will be considered as a waiver of warranty Figure 22 Setting the pins A4 and A5 as 12C control pins 5 ARPI600 provides sensor interfaces 4P Figure 23 shows the jumper settings for sensor interface 4P Figure 23 Sensor interface 4P In which The pins on A are connected to the ADC pins A6 A10 of TLC1543 The pins on D are connected to the IO control pins PO P4 of Raspberry Pi board Users can apply different sensors via the sensor interface 19
8. he message getdata Run the code for transmitting data on Raspberry Pi A Then copy program Xbee send into the Raspbian and enter the folder send to execute the following code sudo serialTest You will see the following message displayed in the PuTTY of Raspberry Pi B Figure 16 Message received by Raspberry Pi B 5 RTC clock 1 Set the jumpers on RTC JMP of the ARPI600 2 Open the LXTerminal on the desktop of Raspbian and input the code i2cdetect y 1 3 Then you will see the device address of PCF8563 connected to Raspberry Pi Here the device address of PCF8563 is 51 which means the PCF8563 is identified by Raspberry Pi 14 ARPI600 User Manual Waveshare a ee Figure 17 The device address of PCF8563 connected to Raspberry Pi 4 Enter LXTerminal and input modprobei2c dev echo pcf8563 0x51 gt sys class i2c adapter i2c 1 new_device Read out the time of the connected RTC based on 12C LXTerminal will display the time clocked by PCF8563 which may be different from the Raspbian 5 Enter LXTerminal and input Write the time of the Raspbian into PCF8563 Synchronize the time of Raspbian to PCF8563 Synchronize the time of Raspbian with hardware RCT 6 AD conversion ARPI600 on board chip TLC1543 6 1 Configuring Pin AO as Pin AD 1 Please make sure you have installed relative libraries refer to the Section 2 2 Installing relative libraries 2 Set the jumpers to select reference voltage Connect R
9. ipherals by Raspberry Pi ccccecseccscceccecseceeceeceecseceeeeeeseeseeseeees 7 2 1 System Serial port configuration ccceccsecceeceeceeecseesecenceeeceeceeceseeeeeaseeeeeneeees 7 2 2 install relative libraries enoras ET 7 2 3 S Eo eeg Eo A E A E A 8 3 Building a wireless network with two XBee MOAUIES ceeceeceecseceecsececcecesecseeseeees 8 3 1 Pa ACI ONS vcecatanncyaucsaniucascaciescrentovbecnecdetanscanteaietpetensssssaaaaeaniaanteneeessessauanimeanes 8 3 2 PIS EAMES KC GOO ea E 8 3 3 Testing the connection between PC and XBe C ccsecsececceceececeecseeeeeeeeeeeeeees 9 3 4 Configuring XBee A MOCUIE cccecceecsecceeceeceeeeeccseceeeeseeseeeeeeeeeseeseeeeeeeeeees 10 3 5 Configuring XBee B MOGUIC yoccsdacacsescneaaczcassadtesdevsesasascnveasnearaaeeravanseenensesaan ues 12 4 Howto perform wireless transmission With XBee cccsecceecsecceecseeeceseeeeeeeceeeeeees 13 4 1 Configuring the Module casscriteterenivenealedessanionereseiaenrsandes contiiedasevecetesiuaarvatouete 13 REC CIOU aeaa E E 14 AD conversion ARPI600 on board chip TLC1543 0 0 eee ecceeceeeeeeeeceeenseneeneeeceeeeess 15 6 1 Configuring Pin AO to Pin AD sisdeccsceenssanonseecasdiassdecesmnsaaneseteasdidededtaiiatarennsvaaadie 15 6 2 Configuring as other AD PINS cccecceeccecceeceecceeceeceeeeneeseeeeeeeesseeseeeeeeeeeeees 16 DWAR CS SSC OI erener enini NE NAA EEN aE a EE 16 ARPI600 User Manual Wavesha
10. irmware version 1020 Figure 9 Successful connection 3 4 Configuring XBee A module 1 Select the option Modem Configurationi and click the button to read out the current parameters of XBee 10 ARPI600 User Manual Waveshare BU X CTU COM9 PL Settings Range Test Terminal Modem Configuration Modem Parameters and Firmware Parameter View Read write Restore Clear Screen Clamasllese en Always update firmware Show Defaults VETSIOMNG Modem BEE Function Set Version MB24 ZIGBEE COORDINATOR AT 1020 H a Networking ee E CH Operating Channel E B 23410 PAN ID B 0 OH Destination Address High B 0 OL Destination Address Low E My 16 bit Network Address SH Serial Number High B SL Serial Number Low GB 0 BH Broadcast Radius B FFE SC Scan Channels B 2 50 Scan Duration FF Mw Node Join Time D NI Node Identifier 0 00 Device Type Identifier B SC NT Node Discovery Timeout l D FF AR Aggregation Route Broadcast Time AS RF Interacing i B 4 PL Power Level BO PM Power Mode AS Seral Interfacing Change networking settings COMS 960068 N 1 FLOW NONE WB24 B Wer1220 Figure 10 Reading out current parameters 2 Select the option ZIBGEE ROUTER END DEVICE AT under the pull down menu Function Set Modem BEE Function Set Version XB 24 B ZIGBEE ROUTER VEND DEVICE 4T 1220 Figure
11. l x and select the option Y to save the modification Execute the following code under the terminal sudo tlc1543 Now the modification is in effect 7 Interface description 1 The default relationship between Arduino digital control pins and Raspberry Pi lOs is shown in Table 1 16 ARPI600 User Manual Waveshare 2 3 ey ee po a e Table 1 The relationship between Arduino digital control pins and Raspberry Pi IOs The jumper pins D11 D12 and D13 on the module are used for configuring the ARPI600 And these pins should be shorted by the OO resistances as Figure 20 shows Figure 20 Configuring the jumpers D11 D12 and D13 In factory settings the jumpers are set as followed Connect SCK to D13 Connect MISO to D12 Connect MOSI to D11 The following settings are connecting pins D11 D12 and D13 to the general IO control pins of Raspberry Pi board Connect D13 to P26 Connect D12 to IO_SD Connect D11 to IO_SC Notices Users can modify the settings of these jumpers as required In this operation welding is required Any changes under no guidance from Waveshare will be considered as a waiver of warranty The pins A0 A5 of ARPI600 can also be configured as IO pins or ADC pins 17 ARPI600 User Manual Waveshare Figure 21 configuring Pins AO A5 a When the pins AO A5 are connected to 1 they will sever as IO control pins The relationship between the pins AO A5 and th
12. n ARPI600 User Manual Waveshare 5 tS Pul TT Configuration x Category Specify the destination you want to connect to Seral line Speed Features Connection type l Window C Raw a Appearance P Behan Load save or delete a stored session Translation Saved Sessions Selection a Colours Defaut Settings E Connection i a Data Proxy Telnet Close window on exit C Aways Never Only on clean ext Figure 3 PuTTY settings Then you will see a window popped up as Figure 4 shows If there is nothing shown in the window please press the key Return Carriage then you can see the information displayed as Figure 4 shows COM2T PulTT Raspbian GNU Linux T raspberrypi tt yAMaAd raspberryp1 login Figure 4 Connecting PuTTY to Raspberry Pi board In this window you should input following information User name pi Password raspberry Then you can enter the serial terminal ARPI600 User Manual Waveshare 2 How to control peripherals by Raspberry Pi 2 1 System serial port configuration 1 2 3 2 2 1 2 Enter the terminal of Raspberry Pi and input Then you should modify the following lines wc_otg lom_enable 0 console ttyAMA0 115200 kgdboc ttyAMA0 115200 console tty1 root dev mmcblk0p2 rootfstype ext4 elevator deadline rootwait into dwc_otg lopm_enable 0 console tty1 root dev mmcblkOp2 rootfstype ext4 elevator deadline rootwait Press th
13. re 1 How to enable serial debugging function 1 2 3 4 Please install a USB to UART driver cp2102 driver before applying Raspberry Pi board After the installation please open Device Manager to check whether the PC can identify the USB to UART driver After connecting ARPI600 to Raspberry Pi board you should power up the Raspberry Pi board and then connect ARPI600 to the USB port on your PC It is not recommended to connect ARPI600 to the USB port on PC before powering up Raspberry Pi board or for power supply since the power supply capability of the USB port on PC is not powerful enough to support Raspberry Pi board and ARPI600 expansion board at a same time The Raspbian system is set to serial debugging output by default so you should configure the jumpers on the ARPI600 in order to start up the serial debugging function for PC Connect CP_RX to P_TX Connect CP_TX to P_RX Figure 2 Starting up serial debugging function Start software putty exe and configure the following parameters marked with red boxes shown in Figure 3 Parameter descriptions Serial line it is used to select corresponding serial port In this example the serial port is COM3 please configure this option based on the actual situation The serial port in used can be check by Device Manager Speed it is used to set the Baud rate 115200 Connection type this option should be set to Serial And then click the button Ope
14. rial debugging function for PC Connect CP_RX to P_TX Connect CP_TX to P_RX 2 Start the PuTTY serial debugging software to configure following parameters Serial line it is used to select corresponding serial port Speed it is used to set the Baud rate 9600 Notices the parameter Speed in here is set to 9600 differently from the configuration shown in Figure 3 Connection type this option should be set to Serial 3 Copy the file program Xbee send into the Raspbian and enter the folder send then execute the following code sudo make sudo serialTest The terminal will display the data as Figure 5 shows CONZT PulTT l Hi I m Xbee Figure 5 Data displayed in the terminal 3 Building a wireless network with two XBee modules 3 1 Preparations 1 Two XBee modules 2 Two ARPI600 modules 3 Twp Raspberry Pi boards In this document we will divided the device above into two groups Group A and Group B of which Group A contains XBee A Raspberry Pi board A and ARPI600 A and Group B contains XBee B Raspberry Pi board B and ARPI600 B 3 2 Installing X CTU tool 1 Double click the file software X CTU V5 2 8 6 exe on your PC to start installing ARPI600 User Manual Waveshare 2 X CTU tool After a successful installation you can open the X CTU tool as Figure 6 shows Te Te About PC Settings Range Test Terminal Modem Configuration Com Port Setup select Com Port aOR Bridg
15. voltage configuration jumper RTC jumper UART jumper E when connecting P_RX and CP_TX P_TX and CP_RX respectively USB TO UART is connected to Raspberry Pi serial port E when connecting XB_RX and CP_TX XB_TX and CP_RX respectively USB TO UART is connected to XBee serial port ARPI600 User Manual Waveshare a when connecting XB_RX and P_TX XB_TX and P_RX respectively Raspberry Pi serial port is connected to XBee serial port Arduino AD selection jumper E short 2 and 3 Arduino AO A5 as AD input E short 1 and 2 Arduino AO A5 as digital control Arduino 12C selection jumper E short the jumper Arduino A4 A5 as 12C control the A4 A5 of Arduino AD selection jumper should be opened Arduino SPI selection jumper E short 1 and 2 Arduino D11 D13 as SPI control default E short 2 and 3 Arduino D11 D13 as digital control ARPI600 User Manual Waveshare Content ARPIGOO User IV eile sracrnaste secaivarasaattuicoss aasinstnnsnes tieaehataudaresivaaieadiedemnseaste ioe wirele Mobnespan eutssautupasconchduaeeanns 1 OO SNOW a enseecstpnasacecaneccuinetseacacdueannsedsuas commonnadeasedsanoaihaaeusdnavatunenysansetsesaentoensdeaes 1 Pe CUS S aesa E seater sencsvearaurscecdssmeneyansaseeiniensaeuendsmensancnanednssesensnsesepieranetenaseaeeenetrs 1 Whats Oly CSAP OOO pasndiaroiie n ee geceeaneeneareee asec 2 1 Howto start up serial debugging FUNCTION ccccceccesceeeceeeeceeceeeeeeeeceeeeseeeeeeseeeees 5 2 Howto control per

Download Pdf Manuals

image

Related Search

Related Contents

MANUAL DPE_Manual_DB1.qxd  Kenwood JE720  USER MANUAL S203TA-D S203RC-D  取扱説明書 - kaercher  APC MX28B-2400 Network Router User Manual    Sony VAIO VPCSB31FX    Philips HTS5520 51 User Guide Manual Pdf  Traffic C.indd  

Copyright © All rights reserved.
Failed to retrieve file