HighLevelHWv3

From Elcano Project Wiki
Revision as of 17:16, 28 June 2019 by Tfolsom (talk | contribs) (Reference Material)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


High-Level System v3 - Hardware

The HL PCB v3.0

%ATTACHURL%/System_with_labels.png

Acronyms and Abbreviations

EE: Electrical Engineering %BR% GPS: Global Positioning System %BR% HL: High-level %BR% HW: Hardware %BR% IC: Integrated Circuit %BR% INU: Inertial Navigation Unit %BR% LL: Low-level %BR% PCB: Printed Circuit Board %BR% SW: Software

Introduction

This page serves as the hardware documentation for the EE capstone project that took place over the quarters of Winter 2018 through Spring 2018. The goal of the capstone project was to redesign both the SW and HW portions of the HL system. This redesign allowed the C6, C4, and C3 processors to be combined into one processor to create a more efficient HL system overall. The main HW tasks included researching to accommodate legacy components of the present HL system, implementing future items such as CAN bus support and a gyroscope, creating a new HL circuit schematic, and designing a new PCB for the new HL system.


HL Features

Arduino Due

The main processor of the new HL system. It provides 32-bit processing with an 84 MHz clock speed. The Due has a 3.3V operating voltage, so care must be taken when interfacing with 5V systems.

Logic Level Shifter

A TXS0108E breakout was used as a general-purpose logic level shift to allow 5V systems to be safely connected to 3.3V systems.

CAN Bus Transceiver

The MCP2551 CAN transceiver by Microchip is needed to translate the signals from the Due’s CAN bus to a proper differential voltage.

C7 Vision Connector

The UART1 line allows for serial communication to a Raspberry Pi unit running as the C7 processor.

MicroSD Breakout

The Adafruit MicroSD breakout board allows a MicroSD card to be interfaced with the HL system. It is connected via the SPI protocol.

Optical Flow Sensor

The ADNS3080 optical flow sensor adds odometry through a visual technique like the method used in a computer optical mouse. The sensor is connected via the SPI protocol.

GPS Breakout

The Adafruit GPS breakout board provides the HL system with the current position information. An external antenna may be connected to allow better communication with the satellites. The GPS is connected via UART.

Compass Breakout

The Adafruit LSM303 compass breakout brings an accelerometer and magnetometer to the HL system. These components are used as the INU. It is connected via I2C.

Gyroscope Breakout

The Adafruit L3GD20H breakout board brings a triple-axis gyro to be implemented in the INU. It may be connected via I2C or SPI. The default connection in the HL PCB is set for I2C communication.

Audio Jack

A 2.5mm audio jack allows for a cyclometer input to the HL system. Future Elcano plans move the cyclometer input to the LL system.

C5 system

The sonar-based C5 system is on its way to becoming depreciated. Its SPI connection interferes with the main processor of the HL system since the C5 system expects to be the SPI master. A switch is used to toggle between the C5 being the SPI master or the HL main processor. The connection requires DS8921 differential line splitters.


Assembling the HL PCB v3

Solder the PCB to match the two images below. Add the three ICs, five header jumpers, and breakout boards afterward. The breakout boards have mounting holes to allow a screw, nut, and standoffs to secure them to the HL PCB.%BR% %ATTACHURL%/PCB_Top_view.png %ATTACHURL%/PCB_Bottom_view.png


Configuring the HL PCB v3

Sensor Power

The five header jumpers near the MicroSD, optical mouse, GPS, compass, and gyro are used to connect the breakouts to a power rail. Remove the jumpers to disable the breakout.

Click Source Selection

The S1 switch is used to select the source of the click signal either from the audio jack or the 25 pin D-Sub connector. Having S1 in the DOWN position connects the audio jack to the HL system. Having S1 in the UP position connects the signal from the D-Sub to the HL system.

C5 to HL SPI Master Selection

The S2 switch is used to select the SPI master for the connection between C5 and the HL system. Having S2 in the UP position connects the HL system as the master. Having the S2 in the DOWN position connects the C5 processor as the master.

Gyro Communication Method

The Adafruit L3GD20H gyro can be connected to the HL system via I2C or SPI. The communication interface is set by the JP1, JP6, JP8, and JP9 solder jumper pads on the schematic. By default, the HL PCB already has the I2C connections set and no further action is needed. If an SPI connection is desired, then cut the bridges on JP8 and JP9. Afterward, solder the other traces on JP8, JP9, JP1, and JP6. From the image below of the bottom of the PCB, the red traces are pads that need to be joined together and the blue traces need to be cut to establish SPI communication instead of I2C.%BR% %ATTACHURL%/Gyro_SPI_connection.PNG

CAN Bus Mode Selection

The CAN bus connection on the HL system has two modes: CAN Analyzer and OBDII. Solder the jumpers according to the images below. The red traces are pads that need to be joined together.%BR% %ATTACHURL%/CAN_Analyzer_Mode.PNG %ATTACHURL%/OBDII_Mode.PNG

Reference Material

Arduino Due – Product Link%BR% MicroSD Breakout – Product Link%BR% Optical Flow Sensor – Information Link%BR% GPS – Product Link%BR% Compass – Product Link%BR% Gyroscope – Product Link%BR% Logic Level Converter – Product Link%BR% CAN Transceiver – Product Link%BR% Differential Line Driver – Product Link%BR%


-- Main.WesleyLai - 2018-06-03

NEXT > RemoteControl