LED Board (Warthog) - norlab-ulaval/Norlab_wiki GitHub Wiki

Introduction

Here is an in-depth comprehension of the Warthog's LED Boards and their behavior. This page mainly focuses on the master iteration of the boards, as the slave is nothing but a shell incorporating only the LED control current sinks.

See the full pcb schematic here.

LED behavior

Priority ranked LED behavior

State Logic trigger Behavior
Charging BMS state 3 pulsing following soc color gradient
Charged BMS state 8 steady soc full color
Low battery BMS soc below 30 blinking rapidly soc empty color
E-stop Estop state low blinking current soc color
ROS ros message received solid color determined by user
Stand-by no higher priority behavior current soc color

BMS state of charge(soc) color gradient

Empty ---------------------------> Full

🟥 🟥 🟧 🟧 🟨 🟨 🟩 🟩 🟩 🟩

Photo Reference

View of the chip side of the boards and port side.

LED Board chip side
LED Board ports side

Official Warthog Reference

See the LED board's wiring configuration here, and below is a referenced photo of the MCU PCB.

pxl_20250318_150558543_720

PCB Details

An in-depth analysis of the physical characteristics of the PCB.

Port Details

An overview of each connection's use and interaction with the PCB.

Sevcon

The Sevcon only interacts with the K1 relays to complete its 48V loop. The CAN Bus data lines never impact the operation of the boards in any way.

Main

Loops back to the MCU to communicate the state of the connected security devices.

I²C/CAN

Linked to the embedded boards, this connection provides the differential I²C to be converted, as well as the CAN Bus data lines, which don't interact with any components as they are simply diverted to the Sevcon port.

Pump / E-Stop

These two ports each serve as an enable line to the Main connector when they are respectively enabled. As the pump activates, the 24V signal is read by the MCU, and when the E-Stop loop is opened by a user, the MCU can detect the change to cut the enable motor line to the K1 relay.

Rear

Links to the slave PCB on the back end of the robot to communicate its RGB state on three independent PWM lines, in addition to providing power and ground reference.

48V / GND

Power supply and earth reference.

Chip Details

The Clearpath LED boards' main chips and their datasheets are provided here:

Following are the details of each of the main chips' roles on the PCB.

G5LE-1-VDDC12

As seen in the PCB schematics here, this relay is necessary to complete the loop for the 48V supply to the Sevcon motor controller. Its enable pin is controlled by the motor's input signal linked to the Clearpath custom MCU-PCB, seen in the Warthog's official documentation here. Without this motor-enable 12V signal, the Sevcon's 48V CAN Bus isn't active, preventing the robot from moving.

PCA9615

The PCA9615 is widely used in differential I²C communication for its two-way conversion application. See below for the usual configuration. As seen in the detailed view of the PCB, the configuration used is of a receiver to convert the differential signal received from the MCU PCB.

PCA9685

The PCA9685 is a 16-channel I²C-addressed PWM controller. It serves here to control the intensity of each RGB component of the LED board on the front and rear of each side of the Warthog.

MPU9250

The MPU9250 is a 9-axis accelerometer. Further development could implement a transform link for the orientation of each rocker.

Logic Details

LED control

As seen in the PCB schematics here, the PWM controller can be controlled via differential I²C. It controls the MOSFETs' current sinks linked to each RGB component of every LED. This setup allows full control over the brightness and color for the front and back sides.

E-stop

The estop loop is directly linked to the breakout pcb in the warthog's center bay when it switches from state high to low the motor enable signal is cut which will in turn cut power to the sevcon canbus module and subsequently open the sevcon's main power relay.