Skip to the content
2 layers116.8 × 84.8 mmCapstoneControllerBoardFINAL, the printed circuit board in 3D

CapstoneControllerBoardFINAL

UAlberta-EcoCar/AutomatedLoadBank1

Automated Resistive Load Bank for Fuel Cell Testing

Size
116.8 × 84.8 mm
Copper layers
2
Thickness
1.6 mm
Parts
48
Nets
42
Pads
209
Tracks, vias
400, 15
Pours
2
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
15 Nov 2019
Updated
11 Jan 2024

Overview

CapstoneControllerBoardFINAL is an open-source printed circuit board by UAlberta-EcoCar, from the UAlberta-EcoCar/AutomatedLoadBank repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 116.8 × 84.8 mm with 48 parts on 42 nets, routed with 400 tracks and 15 vias.

Its parts include 16 capacitors, 10 resistors, 3 crystals, 2 diodes and 2 fuses. It belongs with the AVR (ATmega, ATtiny) boards of this library.

README

README.md

AutomatedLoadBank

Python user interface for Raspberry Pi driven automated load bank

Project Abstract

An automated resistive load bank was created to test and optimize hydrogen fuel cells for the University of Alberta EcoCar team. The load bank utilizes a touchscreen graphical user interface to select automated testing cycles and pulse width modulation for a variable load. The load bank handles up to 60 A of current from the 46 V fuel cell with 1000 W of power dissipation capability. Furthermore, it is battery powered, portable, and weather resistant.

Software Overview

The automated load bank is managed primarily by a Raspberry Pi computer, and its I/O capabilities are extended using an Atmel ATMega328P. In this repository lies the software for the Raspberry Pi. The software is primarily written in Python and uses the TkInter graphics library to develop a touchscreen user interface.

Communication With Other Modules

ATMega328P via I2C

Raspberry Pi to ATMega328P

  • 0 -- Stop output
  • 1-120 -- Desired load in steps. Step size is 0.5 A, so a value of 64 would correspond to a 32 A load.
  • 121 -- Start an air starve cycle. Operating parameters are set in the ATMega328P.
  • 122 -- Data request for all inputs read by ATMega328P. (Fuel cell voltage, fuel cell current, battery voltage)
  • 123 -- Trigger to tell ATMega328P that fan speeds will be sent next.
  • WARNING: Sending values greater than 123 will be interpreted by the ATMega328P as desired current values of greater than 60 A which is outside the design parameters for the hardware.

ATMega328P to Raspberry Pi

Version History

Pi Configurations Necessary to Run this Software

Install Raspbian operating system using Etcher to put the latest image on an SD card
TUTORIAL

Set date for Wi-Fi access
sudo date -s "Dec 27 14:54"

Update software repositories & installed software
TUTORIAL
sudo apt-get update
sudo apt-get dist-upgrade

Install "Matchbox" on-screen software keyboard
sudo apt-get install matchbox-keyboard

Install TkInter and Python image library
sudo apt-get install tk
sudo apt-get install python-imaging
sudo apt-get install python-imaging-tk
sudo apt-get install python3-pil.imagetk

Set Python3 as default environment
Edit bash file: nano ~/.bashrc
Add at the end:

text
alias python='/usr/bin/python3'
alias pip=pip3

Run bash file: source ~/.bashrc

Enable I2C
sudo raspi-config -> 5 Interfacing Options -> P5 I2C -> yes -> Finish

Set I2C Speed
REFERENCE
sudo nano /boot/config.txt
dtparam=i2c_arm=on,i2c_arm_baudrate=15000 (for 15kHz baud rate)

Add Matplotlib dependencies

text
sudo apt-get install libatlas3-base libffi-dev at-spi2-core python3-gi-cairo
pip install cairocffi
pip install matplotlib

Handy Features/Resources

Display brightness
sudo bash -c "echo n > /sys/class/backlight/rpi_backlight/brightness"
where 0 < n < 255 (255 is maximum brightness)
Alternate Method

text
>>> import rpi_backlight as bl
>>> bl.set_brightness(255)
>>> bl.set_brightness(20, smooth=True, duration=3)
>>> bl.get_max_brightness()
255
>>> bl.get_actual_brightness()
20
>>> bl.get_power()
True
>>> bl.set_power(False)

Parts

48
QtyValueFootprintReferences
100.1uFCapstoneControllerBoardFINAL:0805C2, C3, C4, C5, C6, C7, C8, C10, C13, C14
4@HOLE0, @HOLE1, @HOLE2, @HOLE3
410uFCapstoneControllerBoardFINAL:C0603C9, C15, C16, C17
2CapstoneControllerBoardFINAL:1206F1, F5
2CapstoneControllerBoardFINAL:R0805R1, UNK415
20-5kCapstoneControllerBoardFINAL:TRIM_POTR4, R8
2110CapstoneControllerBoardFINAL:R0805UNK1, UNK2
222pFCapstoneControllerBoardFINAL:C0603C11, C12
23.3V ZenerCapstoneControllerBoardFINAL:DO41-7.6D3, D4
25555140-6CapstoneControllerBoardFINAL:1734723-1_RJ11TEMP_SENSOR_1, TEMP_SENSOR_2
25kCapstoneControllerBoardFINAL:0805R5, R9
2ETHERNETCapstoneControllerBoardFINAL:A122645-NDFANS0, POWER_BOARD0
1CapstoneControllerBoardFINAL:HC49USY2
1CapstoneControllerBoardFINAL:1X05J2
1057-040-1CapstoneControllerBoardFINAL:057-040-1X2
11.2kCapstoneControllerBoardFINAL:0805R3
11.3kCapstoneControllerBoardFINAL:0805R7
116kCapstoneControllerBoardFINAL:0805R6
12.4kCapstoneControllerBoardFINAL:0805R2
1ATmega328P PDIPCapstoneControllerBoardFINAL:PDIP-T28U3
1AVRISP-BOXCapstoneControllerBoardFINAL:AVRISP-BOXISP0
1DS18BCapstoneControllerBoardFINAL:TO92U$2
1FRAME-LETTERNO_PACKAGECapstoneControllerBoardFINAL:DUMMYFRAME2
1MSTBA3CapstoneControllerBoardFINAL:MSTBA3X1

More from UAlberta-EcoCar/AutomatedLoadBank

1
  • 2 layers41.3 × 19.9 mmTemp Sensor Board 1, the printed circuit board in 3D

    Temp Sensor Board 1

    UAlberta-EcoCar/AutomatedLoadBank

    Automated Resistive Load Bank for Fuel Cell Testing

    3 parts1GPL-3.0

Similar boards

  • 2 layersDemo, the printed circuit board in 3D

    Demo

    adamws/kicad-kbplacer

    KiCad plugin for automatic keyboard's key placement and routing

    48 parts547GPL-3.0
  • 2 layers18.8 × 18.1 mmAmoeba royale, the printed circuit board in 3D

    Amoeba royale

    mtl/keyboard-pcbs

    Keyboard PCBs

    48 parts485
  • 2 layers48.1 × 115.6 mmAPU ENG CRANK PANEL, the printed circuit board in 3D

    APU ENG CRANK PANEL

    jrsteensen/OpenHornet

    OpenHornet 1:1 F/A-18C Simulator Repository

    48 parts431
  • 2 layers106 × 55 mmEndcap, the printed circuit board in 3D

    Endcap

    softerhardware/Hermes-Lite2

    A second generation low-cost amateur HF software defined radio transceiver.

    48 parts384
  • 2 layers42.8 × 88 mm18650 pcb, the printed circuit board in 3D

    18650 pcb

    CRImier/MyKiCad

    My KiCad boards. Can't be bothered uploading individually anymore, so here you go.

    48 parts253GPL-3.0
  • 2 layers34 × 44 mmClk lo buffer, the printed circuit board in 3D

    Clk lo buffer

    loxodes/vna

    Under development open hardware microwave vector network analyzer

    48 parts205
  • 2 layers70.6 × 189.2 mmNano, the printed circuit board in 3D

    Nano

    fellesverkstedet/fabricatable-machines

    Motion systems for flexible digital fabrication and research. Easy to fabricate and customize. Documentation: https://github.com/fellesverkstedet/fabricatable-machines/wiki

    48 parts175

Questions

How big is the CapstoneControllerBoardFINAL PCB?

It measures 116.8 × 84.8 mm and has 2 copper layers, 1.6 mm thick.

What parts does the CapstoneControllerBoardFINAL use?

48 parts. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the CapstoneControllerBoardFINAL KiCad files?

From the UAlberta-EcoCar/AutomatedLoadBank repository on GitHub, at the commit this page was made from: the board is Hardware/Controller Board/CapstoneControllerBoardFINAL/CapstoneControllerBoardFINAL.kicad_pcb and its schematic Hardware/Controller Board/CapstoneControllerBoardFINAL/CapstoneControllerBoardFINAL.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the CapstoneControllerBoardFINAL design in my own project?

Its repository publishes it under the GPL-3.0 licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).