Skip to the content
2 layers60 × 60 mmIr ball 16sensors, the printed circuit board in 3D

Code for custom IR ball sensors for reglament RJS lightweight

Size
60 × 60 mm
Copper layers
2
Thickness
1.6 mm
Parts
55
Nets
51
Pads
208
Tracks, vias
511, 111
Pours
1
Routed
Yes
KiCad
KiCad 6 (file 20211014)
Created
1 Oct 2025
Updated
29 Nov 2025

Overview

Ir ball 16sensors is an open-source printed circuit board by DiFir28, from the DiFir28/RJS-lightweight-360-IR-ball-sensor repository on GitHub. It is a 2-layer board of 60 × 60 mm with 55 parts on 51 nets, routed with 511 tracks and 111 vias.

It is built around the ATMEGA328P-MU, TSSP4038SS1XB and WS2812B. Its parts include 17 ICs, 17 diodes, 5 capacitors, 3 resistors and 3 connectors. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

3

README

README.md

RJS-lightweight-360-IR-ball-sensor

General view Top view

What is it for?

The RJS lightweight rules require the position of the ball emitting IR waves to be determined.

The ball's main emission period is 833 microseconds.

Top view

Learn more about IR ball.

Hardware solution

The sensor is a custom PCB. We use as main brain atmega2560. 24 TSSP4038 sensors are located around the circle to read the IR signal.

TSSP4038

Software solution

Due to the time limit of the ball study period and the need for uniform reading of the circle, at 833 microseconds, data is collected by bytes of pin registers and split into specific pins in a separate cycle. Vectors are constructed based on the sensors that receive the IR signal, with the beginning in the center of the board and the end in each sensor. We calculate a vector equal to the sum of all vectors constructed before the sensors, taking into account the vector on the sensor as many times as the IR signal was detected . The desired angle to the ball will be the angle of the final vector. The sensor readings are transmitted via the I2C protocol.

Parts

55
QtyValueFootprintReferences
16TSSP4038SS1XBOptoDevice:Vishay_MINICAST-3PinU2, U3, U4, U5, U6, U7, U8, U9, U10, U11, U12, U13, U14, U15, U16, U17
16WS2812BLED_SMD:WS2812D2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13, D14, D15, D16, D17
40.1uFCapacitor_SMD:C_0603_1608Metric_Pad1.08x0.95mm_HandSolderC1, C2, C4, C5
4TestPointTestPoint:TestPoint_Plated_Hole_D3.0mmTP1, TP2, TP3, TP4
3SolderJumper_2_OpenJumper:SolderJumper-2_P1.3mm_Open_TrianglePad1.0x1.5mmJP1, JP2, JP3
210kResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR2, R3
1330RResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR1
147uFCapacitor_Tantalum_SMD:CP_EIA-3216-18_Kemet-A_Pad1.58x1.35mm_HandSolderC3
1ATmega328P-MPackage_DFN_QFN:QFN-32-1EP_5x5mm_P0.5mm_EP3.1x3.1mmU1
1Conn_01x05_MaleConnector_PinHeader_2.54mm:PinHeader_1x05_P2.54mm_VerticalJ1
1Conn_02x03_Odd_EvenConnector_PinSocket_2.54mm:PinSocket_2x03_P2.54mm_VerticalJ2
1I2cConnector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ3
1LEDLED_SMD:LED_0603_1608Metric_Pad1.05x0.95mm_HandSolderD1
1ResonatorCrystal:Resonator_SMD_Murata_CSTxExxV-3Pin_3.0x1.1mm_HandSolderingY1
1SW_DIP_x02Button_Switch_SMD:SW_DIP_SPSTx02_Slide_KingTek_DSHP02TS_W7.62mm_P1.27mmSW1
1SW_SPSTButton_Switch_SMD:SW_SPST_PTS645SW2

Similar boards

  • 2 layers50 × 100 mmDigital clock, the printed circuit board in 3D

    Digital clock

    rmingon/digital-clock

    Digital clock with atmega and RTC MCP7940 with WS2812b for light

    36 parts
  • 2 layers85 × 17 mm3dsimo kit, the printed circuit board in 3D

    3dsimo kit

    3dsimo/3dsimo_kit

    Visit us at 3D simo pages for more information

    44 parts78
  • 2 layers148.1 × 37.1 mmNixie, the printed circuit board in 3D

    Nixie

    njeff/nixie-clock

    Nixie Clock PCB and Code

    41 parts7
  • 2 layers34.3 × 26.7 mmQuarterduino, the printed circuit board in 3D

    Quarterduino

    akita11/Quarterduino

    Half-size Arduino UNO compatible

    39 parts2MIT
  • 2 layers47 × 47 mmLoadcell PCB, the printed circuit board in 3D

    Loadcell PCB

    Jackiempty/DAQ_PCB

    NCKU ISP loadcell unit project

    57 parts2
  • 2 layers49.4 × 43.7 mmChaos papagali, the printed circuit board in 3D

    Chaos papagali

    Pakequis/Chaos_papagali

    A annoying device that imitates the vibration of a phone

    41 parts2MIT
  • 2 layersAnalogWatch, the printed circuit board in 3D

    AnalogWatch

    sulkith/BCDWristWatch

    WristWatch

    75 parts2MIT
  • 2 layersDrone ESC, the printed circuit board in 3D

    Drone ESC

    Arpit192005/Drone-ESC

    A custom 3-phase Brushless DC (BLDC) Electronic Speed Controller (ESC) designed in KiCad, intended for drone and robotics applications.

    31 parts1

Questions

How big is the Ir ball 16sensors PCB?

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

What parts does the Ir ball 16sensors use?

55 parts, built around the ATMEGA328P-MU, TSSP4038SS1XB 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 Ir ball 16sensors KiCad files?

From the DiFir28/RJS-lightweight-360-IR-ball-sensor repository on GitHub, at the commit this page was made from: the board is PCB/Ir_ball_16sensors/Ir_ball_16sensors/Ir_ball_16sensors.kicad_pcb and its schematic PCB/Ir_ball_16sensors/Ir_ball_16sensors/Ir_ball_16sensors.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Ir ball 16sensors design in my own project?

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