

MainBoard Rev2
AVR-Based easily modifyable DIY Lasertag!
- Size
- 57.2 × 35.1 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 70
- Nets
- 84
- Pads
- 270
- Tracks, vias
- 520, 63
- Pours
- 3
- Routed
- Yes
- KiCad
- KiCad 5 (file 20171130)
- Created
- 20 Feb 2016
- Updated
- 2 Jan 2023
Overview
MainBoard Rev2 is an open-source printed circuit board by lzrtag, from the lzrtag/LZRTag repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 57.2 × 35.1 mm with 70 parts on 84 nets, routed with 520 tracks and 63 vias.
It is built around the ESP32-WROOM-32, FT231XS-R and LSM6DS3, with the WS2812B, PMBT2222A and IRLML6402 among its other parts. Its parts include 18 resistors, 12 capacitors, 11 diodes, 5 ICs and 5 connectors. It belongs with the computers and single-board computers boards and the ESP32 boards of this library.
Main components
6ESP32-WROOM-32
SMD,18x25.5mm-40℃~+85℃ -98dBm 2.4GHz 2.7V~3.6V 20dBm Bluetooth4.2 ESP32-DOWDQ6 UART、SDIO、SPI、I2C、GPIO、PWM、ADC、DAC SMD,25.5x18mm WiFi Modules ROHSEspressif SystemsWiFi ModulesFT231XS-R
SSOP-20-150mil-40℃~+85℃ 125uA 5V 8.4mA USB 2.0 USB to UART SSOP-20-150mil USB Converters ROHSFTDIUSB ConvertersLSM6DS3
LGA-14(2.5x3)-40℃~+85℃ 1.71V~3.6V 8KB Accelerometer Gyroscope SPI、I2C X,Y,Z X,Y,Z ±16g ±2000dps LGA-14(2.5x3) Accelerometers ROHSSTMicroelectronicsAccelerometersWS2812B
5mm X 5mm Surface Mount RGB LED with Intelligent ControlWorldsemiUncategorisedPMBT2222A
SOT-231 NPN 10nA 1V 200mW 300 300MHz 40V 600mA 6V NPN SOT-23 Bipolar (BJT) ROHSPAKERBipolar (BJT)IRLML6402
SOT-23-55℃~+150℃ 1 P-Channel 1.3W 110pF 12nC 145pF 20V 3.7A 400mV 633pF 65mΩ@4.5V P-Channel SOT-23 MOSFETs ROHSGuangdong HottechMOSFETs
README
README.mdLZRTag
ESP32-Based Lasertag
Ever wanted to set up your own system of Lasertag? Interested in having an easily modifiable system to create your own gamemodes and styles with? Or just looking for a cool project to try out? Well, why not take a spin at this!
Note: This project is not in serious development. I (Xasin) take no responsibility for what is done with this code, and I can't guarantee it'll do exactly what I tell it to (even if I try to give it treats >:c) However, it is a fully functional system, if you know how to use it, and it has proven itself to be pretty reliable and useful!
The components
In order to have a functional game, you will need at least the following:
- Two or more soldered Lasertag Sets
- A WiFi access point or a newtwork of points throughout the arena.
- A MQTT Server, preferrably in the local network, to reduce ping.
- And a system running Ruby 2.4 or better, to run the Lasertag Backend and your gamemodes
The Electronics
Attention: The electronics aren't necessarily beginner-friendly. I've designed them with components no smaller than a TSOP package or a 0805 resistor, but the newer versions of the hardware do include two QFN Packages - one for a optional IMU, so it can be left out, and one for a standard I2S audio chip, for which you can use any breakout board that supports 44100Hz, 16 bit playback. If you have a hot air gun, definitely make use of it!
The electronics are based around the ESP32, a fairly cheap, powerful, WiFi and Bluetooth capable chip. The PCB includes all necessary support structures, including a battery charge circuit and a USB to UART converter to reprogram and debug the ESP. It comes with the following hardware:
- The ESP32 plus beefy voltage regulation, ESD protection, etc. It ain't gonna break!
- A MAX I2S decoder + amplifier, for on-board, high quality audio.
- A LSM6D IMU, to detect movement, collisions, gestures, etc.
- Peripherals to receive and send IR Signals (documented here: TODO)
- Feedback in the shape of WS2812 LEDs and a vibration motor
- Trigger, Gun Select and Reload buttons.
The vest connection is exposed with a D-SUB connector, and I2C lines are available to make more complex add-ons easier to achieve. There's also a I2C breakout connection on the PCB itself!
The Vest itself can be as simple as a couple of Vishay 40kHz IR receivers and WS2812 LEDs, but there is a connection for vest-specific haptic feedback, and via the I2C connection it's easy to add more complex features.
To solder one, check out the Aisler project here: https://aisler.net/p/QLILZEMV Or head to the "Electronics" folder and generate your own Gerber files!
The Casing
The 3D printed casing I designed is totally optional - the electronics can be easily fitted into any other casing, provided it has space for a switch, a speaker and a couple of LEDs! However, if you do want to print it out, there's the Fusion360 page here: https://a360.co/2Lbm2zJ
Parts
70| Qty | Value | Footprint | References |
|---|---|---|---|
| 7 | 220 | Resistor_SMD:R_0805_2012Metric | R1, R4, R7, R8, R9, R12, R30 |
| 4 | 10uF | Capacitor_SMD:C_0805_2012Metric | C4, C9, C52, C53 |
| 4 | WS2812B | LED_SMD:LED_WS2812B_PLCC4_5.0x5.0mm_P3.2mm | D2, D3, D4, D5 |
| 3 | 150nF | Capacitor_SMD:C_0805_2012Metric | C2, C8, C31 |
| 3 | 2.2k | Resistor_SMD:R_0805_2012Metric | R5, R6, R35 |
| 3 | R_Small | Resistor_SMD:R_0805_2012Metric | R13, R14, R15 |
| 3 | TestPoint | TestPoint:TestPoint_Pad_2.0x2.0mm | TP1, TP2, TP3 |
| 2 | 1uF | Capacitor_SMD:C_0805_2012Metric | C50, C54 |
| 2 | 220R | Resistor_SMD:R_0805_2012Metric | R2, R3 |
| 2 | D_Schottky | Diode_SMD:D_0603_1608Metric | D35, DPWR1 |
| 2 | MountingHole | MountingHole:MountingHole_3.2mm_M3_DIN965 | H1, H2 |
| 2 | PMBT2222A | Package_TO_SOT_SMD:SOT-23 | Q30, Q35 |
| 2 | Q_NPN_BEC | Package_TO_SOT_SMD:SOT-23 | Q5, Q6 |
| 1 | 0.1uF | Capacitor_SMD:C_0805_2012Metric | C3 |
| 1 | 100k | Resistor_SMD:R_0805_2012Metric | R55 |
| 1 | 100nF | Capacitor_SMD:C_0805_2012Metric | C19 |
| 1 | 10k | Resistor_SMD:R_0805_2012Metric | R52 |
| 1 | 200k | Resistor_SMD:R_0805_2012Metric | R56 |
| 1 | 47uF | Capacitor_SMD:C_1206_3216Metric | C5 |
| 1 | AP2114H-3_3TRG1 | digikey-footprints:SOT-223 | U50 |
| 1 | Battery_Cell | Connector_JST:JST_PH_S2B-PH-SM4-TB_1x02-1MP_P2.00mm_Horizontal | BT1 |
| 1 | COM-12999 | digikey-footprints:LED_RGB_WP154A4SUREQBFZGC | D1 |
| 1 | Conn_01x02_Male | Connector_PinHeader_2.00mm:PinHeader_1x02_P2.00mm_Vertical | J5 |
| 1 | Conn_01x04_Female | Connector_PinSocket_2.54mm:PinSocket_1x04_P2.54mm_Vertical | J1 |
| 1 | Conn_01x04_Male | MainBoard_Rev2:nav_switch_COM_08184 | J4 |
| 1 | DB9_Female | Connector_Dsub:DSUB-9_Female_Horizontal_P2.77x2.84mm_EdgePinOffset4.94mm_Housed_MountingHolesOffset7.48mm | J2 |
| 1 | D_Zener_ALT | Diode_SMD:D_SOD-123F | D8 |
| 1 | ESP32-WROOM-32 | RF_Module:ESP32-WROOM-32 | U1 |
| 1 | FT231XS | Package_SO:SSOP-20_3.9x8.7mm_P0.635mm | U13 |
| 1 | IRLML6402 | Package_TO_SOT_SMD:SOT-23 | QPWR1 |
| 1 | LED | LED_SMD:LED_0603_1608Metric | D7 |
| 1 | LED | LED_SMD:LED_0805_2012Metric | DUSB1 |
| 1 | LED_Dual_AACC | LED_SMD:LED_RGB_1210 | D6 |
| 1 | LSM6DS3 | Package_LGA:LGA-14_3x2.5mm_P0.5mm_LayoutBorder3x4y | U3 |
| 1 | MAX1555EZK_T | digikey-footprints:SOT-753 | U4 |
| 1 | MAX98357A | Package_DFN_QFN:QFN-16-1EP_3x3mm_P0.5mm_EP2.7x2.7mm_ThermalVias | AMP1 |
| 1 | Motor_DC_ALT | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | VBR1 |
| 1 | MountingHole | Symbol:OSHW-Logo_5.7x6mm_SilkScreen | H4 |
| 1 | MountingHole | Symbol:KiCad-Logo_5mm_SolderMask | H3 |
| 1 | MountingHole | MainBoard_Rev2:DragonIcon | H6 |
| 1 | SFH4346 | LED_THT:LED_D3.0mm_IRBlack | D30 |
| 1 | SW_Push | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | TRGR1 |
| 1 | SW_SPST | Connector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_Vertical | SWPWR1 |
| 1 | USB_B_Micro | Connector_USB:USB_Micro-B_Wuerth_629105150521 | J3 |
More from lzrtag/LZRTag
3- 2 layers57.8 × 31.1 mm

- 2 layers

- 2 layers28.4 × 21.3 mm

Similar boards
- 4 layers322.5 × 183.5 mm

Dancing forest
sequoia-hope/dancing-forest-pcb
The PCB design for the Dancing Forest art project
239 parts1 - 4 layers156.5 × 85.4 mm

P2 Kevinbot Board
meowmeowahr/KevinbotV3-KiCAD
Kevinbot Core - Parallax Propeller 2 Robot Controller
166 parts7CERN-OHL-S-2.0 - 2 layers107 × 107 mm

F450
Icarus-Quadro/esp32-flight-controller-pcb
PCB designs for esp32 based flight controller and power distribution
62 parts3 - 4 layers68.8 × 90.3 mm

Horizon
Horizon-Avionics/Horizon-H1
Building a fully open-source flight computer for amateur rocketry!
173 parts17 - 4 layers75.6 × 100 mm

Flight log
knivier/SkyCell
The telecommunications solution on a balloon...for broke people alike.
208 partsMIT - 2 layers83.3 × 76.1 mm

Srom
derekfountain/zx-spectrum-pico-rom
A Raspberry Pi Pico based device to emulate a ROM on a ZX Spectrum
31 parts44GPL-2.0 - 4 layers100 × 99.9 mm

Srom
derekfountain/zx-spectrum-pico-interface-one
A recreation of the ZX Spectrum Expansion System, a hardware Microdrive emulator
43 parts42GPL-2.0 - 6 layers95.9 × 90.2 mm

Cpb
OakwoodEngineering/ObiWanKomputer
The Obi Wan Komputer and Combined Payload Boards from the NyanSat project.
251 parts10
Questions
How big is the MainBoard Rev2 PCB?
It measures 57.2 × 35.1 mm and has 2 copper layers, 1.6 mm thick.
What parts does the MainBoard Rev2 use?
70 parts, built around the ESP32-WROOM-32, FT231XS-R, LSM6DS3 and WS2812B. 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 MainBoard Rev2 KiCad files?
From the lzrtag/LZRTag repository on GitHub, at the commit this page was made from: the board is Electronics/MainBoard_Rev2/MainBoard.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Can I use the MainBoard Rev2 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).