Skip to the content
2 layersSensor module, the printed circuit board in 3D

Caustic project is a full-featured indoor and outdoor lasertag system

Copper layers
2
Thickness
1.6 mm
Parts
15
Nets
15
Pads
46
Tracks, vias
105, 13
Routed
Yes
KiCad
KiCad 3
Created
18 Jul 2016
Updated
12 Jan 2018

Overview

Sensor module is an open-source printed circuit board by DAlexis, from the DAlexis/caustic-lasertag-system repository on GitHub. It is a 2-layer board with 15 parts on 15 nets, routed with 105 tracks and 13 vias.

It is built around the TSOP4856. Its parts include 7 resistors, 4 ICs and 2 connectors. It belongs with the radio and wireless and sensors and measurement boards and the STM32 boards of this library.

Main components

1

README

README.md

Caustic Lasertag System

For Russian description scroll down the page.

Описание на русском --- внизу страницы.

Overview

Caustic project is a full-featured outdoor and indoor wireless lasertag system. It consists of principial schemes, PCBs and firmware for devices used in lasertag game. For now, system consists of:

  • Player's gun
  • Player's sensor to detect shoots
  • Smart control point for 'capture the point' game and some other things
  • Bluetooth bridge that provide interconnection between your smartphone and all the devices in game near bridge
  • Android application (currently alpha state) to control the game and change settings

Caustic Lasertag System licensed under GPLv3. Third party code used in project may be licensed under other licences, see corresponding files and comments in the sources. Copyright 2016, see AUTHORS file.

Project structure

Here is a directories description:

  • Android/ --- Android application to control the game and change settings
  • cpp-sources/ --- MCU firmware. Here:
    • bootloader-usb/ is a reference to https://github.com/DAlexis/stm32-usb-bootloader --- bootloader that supports cardreader functionality and flash controller from file flash.bin
    • universal-device/ --- universal firmware for any Caustic LTS device.
  • Docs/ --- some datasheets and useful documents for project
  • media/ --- sounds and its raws. Most of them were get from https://www.freesound.org/
  • schematic/ --- electic schemes, PCBs and gerbers made with KiCad
  • tools/ --- some scripts to simplify primitive jobs
  • sdcards/ --- samples of devices' SD cards containment

How to build firmware

Now only Linux OS supported to build Caustic LTS firmware, but I use CMake so add Windows support should not be a very complicated task.

You need to install cmake, arm-none-eabi-gcc compiler with arm-none-eabi-newlib and arm-none-eabi-binutils installed, and installation dirs should be in $PATH. Simply installation from your distro's repository usually enough. To flash the MCU with ST-link programmer you should install stlink utility. Then:

  • Clone this repository:

    git clone https://github.com/DAlexis/caustic-lasertag-system.git

  • Go to cpp-sources directory:

    cd caustic-lasertag-system/cpp-sources

  • Download git submodule containing bootloader:

    git submodule init && git submodule update

  • Run build.sh for debug build and build.sh release for release one

Then, to program the board:

  • Connect ST-link programmer to the board and to yout PC's USB

  • To flash main firmware run

    flash-universal-device.sh

  • To flash bootloader run

    flash-bootloader.sh To flash release version add release parameter to both scripts

    NOTE: flashing bootloader means removing previous firmware. To flash main program after flashing bootloader you should rename universal-device.bin to flash.bin and copy it to sd-card's root, then reboot device.

  • Then, copy proper sh-card containment to your device's sd-card. For example, for gun you should copy all files and dirs from sdcards/rifle to gun's sd-card.

Лазертаг-система Caustic

Caustic --- это полноценная беспроводная система для внеаренного и аренного лазертага. Проект содержит принципиальные схемы, печатные платы, прошивки микроконтроллера и другой необходимый код. На данный момент, система включает:

  • Оружие игрока
  • Датчики попадания ("головная повязка") для игрока
  • Умная контрольная точка для игры в "захват точки", поддерживающая другие вспомогательные функции
  • Bluetooth-мост, позволяющий подключать смартфон одновременно к любому количеству устройств системы
  • Приложение для Android (на данный момент в альфа-версии) для управления игрой и настройки игровых устройств

Система Caustic лицензирована под GPLv3. Система включает код тертьих лиц, который может быть лицензирован под другими лицензиями. Copyright 2016, Алексей Булатов.

Структура проекта

Проект устроен следующим образом:

  • Android/ --- Приложение для Android
  • cpp-sources/ --- Прошивка для контроллера
    • bootloader-usb/ --- ссылка на https://github.com/DAlexis/stm32-usb-bootloader --- загрузчик, превращающий устройство в кардридер, если при запуске оно подключено к компьютеру по USB. Прошивает контроллер из файла flash.bin
    • universal-device/ --- универсальная прошивка для любого устройства системы Caustic
  • Docs/ --- даташиты, документация и некоторые полезные документы
  • media/ --- звуки и их исходники. по большей части, взяты с https://www.freesound.org/
  • schematic/ --- схемы, печатные платы, герберы, сделанные в KiCad
  • tools/ --- некоторые скрипты, упрощающие некоторые простые действия
  • sdcards/ --- содержимое SD-карт для устройств разных типов

Как собрать прошивку и загрузчик

На данный момент поддерживается сборка только из-под Linux, однако проект использует CMake, так что добавить поддержку Windows не составит труда.

У вас дожен быть установлен cmake, компилятор arm-none-eabi-gcc, включая arm-none-eabi-newlib и arm-none-eabi-binutils. Компилятор должен быть доступен в $PATH. Обычно, достаточно просто установить соответствующие пакеты из репозитория вашего дистрибутива. Для прошивки нужен программатор ST-link и соответствующая утилита stlink.

Загрузчик не является обязательным.

Итак, для установки:

  • Склонируйте этот репозиторий:

    git clone https://github.com/DAlexis/caustic-lasertag-system.git

  • Перейдите в папку cpp-sources:

    cd caustic-lasertag-system/cpp-sources

  • Инициализируйте и загрузите подмодуль, содержащий загрузчик:

    git submodule init && git submodule update

  • Запустите build.sh для сборки в режиме build, или build.sh release для сборки в release

Теперь, чтобы запрограммировать устройство:

  • Подключите программатор к плате устройства и к компьютеру. Включите питание устройства

  • Чтобы прошить основную программу, наберите

    flash-universal-device.sh

  • Чтобы прошить загрузчик:

    flash-bootloader.sh Чтобы прошить программу, собранную в release, добавьте параметр release к каждому из скриптов.

    ВАЖНО: При прошивке загрузчика стирается всё, что до этого было зашито в контроллер. Поэтому после прошивки загрузчика нужно сделать следующее: переименовать universal-device.bin в flash.bin и положить в корень sd-карты (это можно сделать, просто подключив устройство по USB к компьютеру). После перезагрузки устройства загрузчик автоматически зальет прошивку в контроллер. Вообще говоря, можно вообще не использовать загрузчик.

  • Скопируйте необходимое содержимое на sd-карту. Например, если устройство --- это оружие игрока, скопируйте всё содержимое sdcards/rifle на карту устройства. Именно так прошивка поймёт, "кем быть".

Parts

15
QtyValueFootprintReferences
7RSM0805R1, R2, R3, R4, R5, R6, R7
2P***1pin1PIN, 1PIN
2RGB-LEDRGB-ledU1, U2
2TSOP4856PIN_ARRAY_LARGE_PADS_2.54mm_3X1U3, U4
1SENSOR_CONNECTORPIN_ARRAY_5x2_SOCKETP1
1VibroEnginePIN_ARRAY_LARGE_PADS_2.54mm_2X1P2

More from DAlexis/caustic-lasertag-system

12
  • 2 layers92.5 × 82.8 mmRifle and sensors, the printed circuit board in 3D

    Rifle and sensors

    DAlexis/caustic-lasertag-system

    Caustic project is a full-featured indoor and outdoor lasertag system

    268 parts16
  • 2 layers77.5 × 97.1 mmRifle mono v1-panelized, the printed circuit board in 3D

    Rifle mono v1-panelized

    DAlexis/caustic-lasertag-system

    Caustic project is a full-featured indoor and outdoor lasertag system

    237 parts16
  • 2 layers92.5 × 96 mm10x10, the printed circuit board in 3D

    10x10

    DAlexis/caustic-lasertag-system

    Caustic project is a full-featured indoor and outdoor lasertag system

    176 parts16
  • 2 layers267.7 × 109.1 mmUniversal dev v1-r1-append, the printed circuit board in 3D

    Universal dev v1-r1-append

    DAlexis/caustic-lasertag-system

    Caustic project is a full-featured indoor and outdoor lasertag system

    165 parts16
  • 2 layers90.4 × 95.5 mmHead rifle round sensors, the printed circuit board in 3D

    Head rifle round sensors

    DAlexis/caustic-lasertag-system

    Caustic project is a full-featured indoor and outdoor lasertag system

    149 parts16
  • 2 layers92.4 × 98.9 mmFixed hs g431-tube sensors, the printed circuit board in 3D

    Fixed hs g431-tube sensors

    DAlexis/caustic-lasertag-system

    Caustic project is a full-featured indoor and outdoor lasertag system

    149 parts16
  • 2 layers78.1 × 85.7 mmHs mono g431-panelized, the printed circuit board in 3D

    Hs mono g431-panelized

    DAlexis/caustic-lasertag-system

    Caustic project is a full-featured indoor and outdoor lasertag system

    112 parts16
  • 2 layers92.8 × 58.1 mmRound sensors usb, the printed circuit board in 3D

    Round sensors usb

    DAlexis/caustic-lasertag-system

    Caustic project is a full-featured indoor and outdoor lasertag system

    102 parts16
  • 2 layers88.8 × 30 mmRifle mono v1, the printed circuit board in 3D

    Rifle mono v1

    DAlexis/caustic-lasertag-system

    Caustic project is a full-featured indoor and outdoor lasertag system

    88 parts16
  • 2 layers50 × 50 mmSensor module, the printed circuit board in 3D

    Sensor module

    DAlexis/caustic-lasertag-system

    Caustic project is a full-featured indoor and outdoor lasertag system

    80 parts16
  • 2 layers61.3 × 34.3 mmRifle shield, the printed circuit board in 3D

    Rifle shield

    DAlexis/caustic-lasertag-system

    Caustic project is a full-featured indoor and outdoor lasertag system

    62 parts16
  • 2 layers61.3 × 34.3 mmUniversal dev v1-r1, the printed circuit board in 3D

    Universal dev v1-r1

    DAlexis/caustic-lasertag-system

    Caustic project is a full-featured indoor and outdoor lasertag system

    60 parts16

Similar boards

  • 4 layers49.6 × 49 mmIR PCB, the printed circuit board in 3D

    IR PCB

    Kreyl/IR_PCB

    IR TX/RX PCB for competitions

    128 parts
  • 4 layers53.2 × 138.8 mmSndLocket, the printed circuit board in 3D

    SndLocket

    Kreyl/LocketSound

    226 parts
  • 2 layers19 × 76 mmSub, the printed circuit board in 3D

    Sub

    google/mozc-devices

    Circuit diagrams and firmware source code for Gboard DIY keyboards

    15 parts3kApache-2.0
  • 2 layers26.7 × 62.2 mmDeniseadapter, the printed circuit board in 3D

    Deniseadapter

    hoglet67/RGBtoHDMI

    Bare-metal Raspberry Pi project that provides pixel-perfect sampling of Retro Computer RGB/YUV video and conversion to HDMI

    15 parts1kGPL-3.0
  • 2 layers100 × 44 mmVideoslot, the printed circuit board in 3D

    Videoslot

    mntmn/amiga2000-gfxcard

    MNT VA2000, an Open Source Amiga 2/3/4000 Graphics Card (Zorro II/III), written in Verilog

    15 parts1k
  • 2 layers91 × 51 mmBusinessCard, the printed circuit board in 3D

    BusinessCard

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    15 parts915
  • 2 layers24.3 × 57.9 mmFlosspods pro flex, the printed circuit board in 3D

    Flosspods pro flex

    kenp-io/not-for-airpods-repairs

    The content of this repository is licensed under the WTFPL License. Please have a close look at the terms before using this material.

    15 parts609WTFPL
  • 2 layers20.3 × 15.2 mmL0 Load, the printed circuit board in 3D

    L0 Load

    Luos-io/luos_engine

    Open-source and real-time orchestrator for cyber-physical-systems, to easily design, test and deploy embedded applications and digital twins.

    15 parts546MIT

Questions

What parts does the Sensor module use?

15 parts, built around the TSOP4856. 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 Sensor module KiCad files?

From the DAlexis/caustic-lasertag-system repository on GitHub, at the commit this page was made from: the board is schematic/sensor-module/sensor-module-idc-circle-lw/sensor-module.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Sensor module design in my own project?

Its repository states no licence, so its author keeps all rights: ask DAlexis before reusing the design.