Presentation is loading. Please wait.

Presentation is loading. Please wait.

BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. BAE Systems C2C SWAT Project – WF32 Shield.

Similar presentations


Presentation on theme: "BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. BAE Systems C2C SWAT Project – WF32 Shield."— Presentation transcript:

1 BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. BAE Systems C2C SWAT Project – WF32 Shield V2.0 Only Tutorial 2, Digital Compass V2 Sep 2015

2 BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. Tutorial 2, Digital Compass describes how to correctly setup the Digital Compass to your unit, including how to establish a connection to the SWAT Controller. This section is not compulsory, however, if you wish to complete it, please purchase the LSM303DLHC 3D Compass and Accelerometer Carrier with Voltage Regulator. 2 Scope

3 BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. Tutorial 2 > Set Up Insert the SD Card into your computer and open the SD Card Library. Open the folder “Tutorial 2, Digital Compass” and run the file titled “setup”. 3 Note:Running the “setup” file updates the “SWAT_pin.cfg” and “SWATctrl.cfg” files in the SD Card Library, using the files from the “Tutorial 2, Digital Compass” folder.

4 BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. Tutorial 2 > Step 1 Eject the SD Card from your computer and insert the SD Card into the WF32 board. 4 WF32 Board SD Card

5 BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. Attach the battery connector to the motor shield terminal J1. It is recommended to use a splitter cable to enable the battery to provide power to the shield and the ESC. 5 Splitter Cable To Motor Shield Terminal J1 Motor Shield Note:“J1” is written next to the terminal on the motor shield Tutorial 2 > Step 2

6 BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. On the WF32 board, ensure that jumper J15 is in the external (EXT) position to receive power from the battery. 6 Note:The UART position on jumper J15 is used when the WF32 board is connected to your computer WF32 Board EXT UART J15 Tutorial 2 > Step 3

7 BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. On the WF32 board, ensure that jumper JP4 and JP5 are in the I2C position. 7 WF32 Board JP4 JP5 JP4 JP5 I2C position Tutorial 2 > Step 4

8 BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. Physically attach the WF32 board underneath the motor shield using the connecting pins. 8 Tutorial 2 > Step 5 Note:Be careful not to bend any of the connecting pins. Motor Shield WF32

9 BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. Attach the power plug from the Splitter to the motor shield J1. Attach the ESC connector to 27 (Note Brown/Black pin towards GND) 9 Tutorial 2 > Step 6 Note: The following should be illuminated. LED D37 (11V Indicator) LED D36 (5V Indicator)

10 BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. DISCONNECT THE BATTERY BEFORE CONTINUING 10 Tutorial 2

11 BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. 11 Tutorial 2 > Step 7 Digital Compass Breadboard Tip:Use different coloured wires between the digital compass and the motor shield to distinguish connections easily. Red for Vin, Black for GND, Blue for SCL, Orange for SDA. To connect the digital compass to the motor shield, use a breadboard and wires. When mounting the compass, have x-axis forward, y-axis right and z-axis down. The compass is heavily affected by the magnetic field of the motor. Mount it as far away as possible.

12 BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. Connect “SDA” Orange Wire(digital compass) to “A4” on the motor shield. 12 Tutorial 2 > Step 8 Digital Compass Motor Shield A4 P5 SDA

13 BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. Connect “SCL” Blue Wire(digital compass) to “A5” on the motor shield. 13 Tutorial 2 > Step 9 Digital Compass Motor Shield A5 P5 SCL

14 BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. Connect “GND” (digital compass) to either the second or third pins on the single pin row of P3, on the motor shield (illustrated in the diagram below). 14 Tutorial 2 > Step 10 Digital Compass Note:This pin correlates to the GND pins in J3 of the WF32 board. Motor Shield GND

15 BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. Connect “VIN” (digital compass) to the fifth pin on the single pin row of P3, on the motor shield (illustrated in the diagram below). 15 Tutorial 2 > Step 11 Digital Compass Note:This pin correlates to the 3V3 (3.3V) pin in J3 of the WF32 board. Motor Shield VIN 3V3

16 BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. ENSURE ALL CONNECTIONS ARE COMPLETE BEFORE CONTINUING 16 Tutorial 2

17 BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. Attach the motor shield, using the splitter cable, to the battery, to power up the board. 17 Splitter Cable To Battery To Splitter Cable Battery Note:The battery is always the last component to connect. Tutorial 2 > Step 12a

18 BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. Attach the power plug from the Splitter to the motor shield J1. Attach the ESC connector to 27 (Note Brown/Black pin towards GND) The battery is always the last component to connect. 18 Tutorial 2 > Step 12b Note: The following should be illuminated. LED D37 (11V Indicator) LED D36 (5V Indicator)

19 BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. Turn on your Wi-Fi unit and connect your computer to this. Open the “SWAT Controller” on your computer (previously installed). 19 Tutorial 2 > Step 13 SWAT Controller

20 BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. Once the “SWAT Controller” has established a connection to the WF32, feedback can be seen for the Digital Compass (Bearing, Pitch and Roll). 20 Tutorial 2 > Step 14 SWAT Controller Digital Compass feedback

21 BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. Move the Digital Compass to view the feedback change on the SWAT Controller. The diagram below shows the directions of the Digital Compass. 21 Tutorial 2 > Step 15 Bearing Pitch Roll

22 BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. Once testing is complete, disconnect the battery first from the splitter cable. 22 Note:The battery is always the first component to connect. Splitter Cable From Battery From Splitter Cable Battery Tutorial 2 > Step 16

23 BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. Next Modules Please continue to: Tutorial 3, GPS.pptx (not compulsory) or Tutorial 4, Final.pptx (not compulsory) Please note, Tutorial 4, Final, combines the ESC, Servo, Digital Compass and GPS. 23


Download ppt "BAE SYSTEMS PROPRIETARY – Internal Use Only Unpublished Work Copyright 2014 BAE Systems. All rights reserved. BAE Systems C2C SWAT Project – WF32 Shield."

Similar presentations


Ads by Google