Skip to the content
2 layers40 × 60 mmLichtschranke M tube, the printed circuit board in 3D

Open sensor for use with any standard light barrier on a Mobile Cassy

Size
40 × 60 mm
Copper layers
2
Thickness
1.6 mm
Parts
12
Nets
12
Pads
37
Tracks, vias
89, 0
Pours
2
Routed
Yes
KiCad
KiCad 8.0 (file 20240108)
Created
9 Aug 2024
Updated
13 Sep 2024

Overview

Lichtschranke M tube is an open-source printed circuit board by REcassy, from the REcassy/Lichtschrankenadapter-M repository on GitHub, published under the GPL-3.0 licence. It is a 2-layer board of 40 × 60 mm with 12 parts on 12 nets, routed with 89 tracks and 0 vias.

It is built around the ATTINY25-20PU and USBLC6-4. Its parts include 5 connectors, 3 capacitors, 2 resistors and 2 ICs. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

2

README

README.md

Lichtschrankenadapter-M

Open sensor for use with any standard light barrier on a Mobile Cassy.

This repo is under active development, so schematic and pcb files may not match always. Use the current release for production: https://github.com/REcassy/Lichtschranke-M/releases/tag/v1.0

Compatible barriers

The Mobile Cassy pulls J2 to 5V (barrier 1) and J3 to 3.7V (barrier 2). Your light barrier needs to pull that down to less than 2V to register an event. A photo-transistor is optimal for that. You barrier can make use of +5V / GND jacks to power the light source. You should try to use as little current as possible to not put a strain on the Mobile Cassy's batteries, but anything up to 100mA seems to be acceptable.

Use at your own risk - especially drawing power. There is no public information on current limiting or fuses inside the Mobile Cassy. Always prefer LED to incandescent bulbs.

Testing

For testing I included an Arduino simulator code. For this you need to connect the I2C pins of your Arduino (e.g. on a Uno Pins the upper right ones) to the I2C pins of the Cassy Mini-DIN interface (SDA: 1 and SCK: 5) as well as pin 7 of the Arduino (change this, if this is no digital out on your Arduino) to Mini-DIN pin 2.

Programming your ATtiny25

The included ino file is intended for use with the Arduino IDE and any Arduino as an ISP Programmer. You need to:

  • load the ISP sketch from the Arduino IDE (File->Examples->11. ArduinoISP) onto your Arduino Uno
  • install ATTinyCore (https://github.com/SpenceKonde/ATTinyCore) as a board manager into your Arduino IDE
  • connect the Arduino to the ATTiny according to this graphic:

Untitled Sketch_Steckplatine

  • when using other ATTiny chips check the datasheet or the ATtinyCore repo
  • set Tools->Board to ATtinyCore-> "ATtiny25/45/85 (no bootloader)"
  • set Tools->Chip to ATtiny25
  • set Tools->Programmer to "Arduino as ISP"
  • use Tools->Burn Bootloader to set the appropriate E-Fuses in your ATtiny (only necessary with a brand new ATtiny)
  • use Sketch->Upload Using Programmer

There are of course countless other ways to program your ATtiny. You can find the .hex file in the ATtiny directory.

Schematic and PCB

The schematic and PCB files were created with KiCAD.

Be aware that earlier photos on my blog show a switched J4/J5 label (GND and 5V) as well as an incorrectly polarized C2.

The PCB file ending in "-tube" is used with brass tubes (see BOM) as connectors the one ending in "-jack" with ready made 4mm jacks.

Below you can see both boards fully populated:

grafik

BOM

You need the following (given in brackets are Reichelt ordering numbers for reference):

Part LabelDescriptionForm factorReichelt number
U1ATiny25DIP-8ATTINY 25-20 PU
U2USBLC6SOT-23-6USBLC6-2SC6
C1, C350V 100nF ceramic cap1206WAL 1206B104K500
C250V 10µF electrolytic capRM2,5SU-A 10U 50
R1, R20,25W 5K1 resistor02071/4W 5,1K
J1Mini-Din 6 connectorN/AEB-DIOS M06
J2-J54mm ID, 5mm OD brass tubeN/AN/A
J2-J54mm laboratory jacksN/ASEP 2610 F48

choose either J2-J5 option and the appropriate PCB design.

Gerber and drill files

The gerber and drill files were exported from KiCAD and are ready to be sent to any PCB manufacturer of your choice. The PCB design features no vias. Any standard double sided process will suffice. Please choose the correct set of files for your desired jacks.

Below are the renderings for both variants:

3D-printed case

A 3D printable case is currently in development.

Parts

12
QtyValueFootprintReferences
4Conn_01x01_SocketLibrary2:Banana-SlotJ2, J3, J4, J5
2CCapacitor_SMD:C_1206_3216MetricC1, C3
2RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_HorizontalR1, R2
1ATtiny25-20PPackage_DIP:DIP-8_W7.62mmU1
1C_PolarizedCapacitor_THT:CP_Radial_D4.0mm_P2.00mmC2
1Mini-DIN-6Library:Connector_Mini-DIN_Female_6Pin_2rowsJ1
1USBLC6Library2:USBLC6U2

Similar boards

  • 2 layers10.7 × 20.7 mmUltraCIC III, the printed circuit board in 3D

    UltraCIC III

    ManCloud/UltraCIC-III

    N64 CIC replacement

    4 parts54GPL-3.0
  • 4 layers243.8 × 204.5 mmA1 micro atx, the printed circuit board in 3D

    A1 micro atx

    andrastantos/anachron

    243 parts1MIT
  • 2 layers22.4 × 53.3 mmOpip2e fan, the printed circuit board in 3D

    Opip2e fan

    mjbogusz/opip2e_fan_pcb

    PWM fan controller board for OrangePi Plus 2E

    10 partsMIT
  • 2 layers97 × 60 mmSimon says, the printed circuit board in 3D

    Simon says

    pvar/pcb_simon_says

    24 partsGPL-3.0
  • 2 layers60 × 50 mmRelais M, the printed circuit board in 3D

    Relais M

    REcassy/Relais-M

    This repo contains the schematics (KiCad + symbols/footprints), pcb (gerber + drill) files necessary to build a clone Relais M adapter for the Cassy Mobile as described here…

    13 parts
  • 2 layers41.9 × 15.2 mmFake xenon4, the printed circuit board in 3D

    Fake xenon4

    tomaskovacik/hw

    HW (pcb, schematics etc) for my projects

    24 parts27
  • 2 layers60 × 39 mmMagnetometer, the printed circuit board in 3D

    Magnetometer

    mjmorano/Magnetometer-System

    36 parts1
  • 2 layers43.2 × 17.6 mmOtterPill, the printed circuit board in 3D

    OtterPill

    Jana-Marie/OtterPill

    stm32f072 dev board with arduino nano alike pinout

    37 parts162

Questions

How big is the Lichtschranke M tube PCB?

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

What parts does the Lichtschranke M tube use?

12 parts, built around the ATTINY25-20PU and USBLC6-4. 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 Lichtschranke M tube KiCad files?

From the REcassy/Lichtschrankenadapter-M repository on GitHub, at the commit this page was made from: the board is KiCad/Lichtschranke-M-tube.kicad_pcb and its schematic KiCad/Lichtschranke-M.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Lichtschranke M tube 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).