Jump to content

Crown: Difference between revisions

From base48
Thebys1 (talk | contribs)
No edit summary
Thebys1 (talk | contribs)
No edit summary
Line 1: Line 1:
{{Category:Projects}}
{{Category:Projects}}
{{Project}}
{{Project
<noinclude>
|name=Crown
{{:Skeleton}}
|image=Crown-slot-machine.jpg
</noinclude>
|founder=Thebys
<includeonly>
|coops=
<!-- <div style="clear: right;"></div> -->
|curr_version=
<div style="display: block; float: right; margin-left: 10px; margin-bottom: 10px; margin-top: 10px; width: 300px; " class="catlinks">
|os=Linux / ESP IDF
  <!-- Project Header -->
|arch=ESP32-S3 / ARM (Raspberry Pi)
  <div style="margin-top: 0.3em; margin-bottom: 0.3em; width: 290px; font-weight: bolder; font-size: 1.4em; text-align: center;  color: #333;">{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}</div>
|proglang=C#C++#Python
  <!-- Project logo -->
|swlic=
  <div style="width: 290px; text-align: center; margin: 5px;">[[File:{{#if: {{{image|}}}|{{{image}}}|Base-small.png}}|frameless|290px]]</div>
|hwlic=
  <!-- Project Details -->
|github=
  <div style="border: 1px solid #CCC; margin: 5px; padding: 0.5em; background-color: #FFF;">
|homepage=https://harbornote.iver.cz/s/CR/p/obecne-informace-a-odkazy-iKg7jxQgKu
    {{ProjectInfoBoxItem|Founder|{{#replace:{{{founder}}}|#||<br/>}}|base48-wiki-users}} <!--
|status=active
--> {{ProjectInfoBoxItem|Coops|{{#replace:{{{coops|}}}|#|, &#x200b;}}|base48-wiki-users}} <!-- uglyhack: MW parser ignores the trailing spaces of replacement, &#x200b; is 'zero-width' space
|tags=hw
--> {{ProjectInfoBoxItem|Latest Version|{{{curr_version|}}}}} <!--
|stale=false
--> {{ProjectInfoBoxItem|Operating<br/>System(s)|{{{os|}}}}} <!--
}}
--> {{ProjectInfoBoxItem|Architecture(s)|{{{arch|}}}}} <!--
 
--> {{ProjectInfoBoxItem|Programming<br/>Language(s)|{{{proglang|}}}}} <!--
== Overview ==
--> {{ProjectInfoBoxItem|SW License|{{{swlic|}}}}} <!--
 
--> {{ProjectInfoBoxItem|HW License|{{{hwlic|}}}}} <!--
'''Crown''' is a restoration and modernization project of a 1980s German Th. Bergmann Crown slot machine. The original Z80-based control system is being replaced with a modern dual-layer architecture while preserving the vintage mechanical hardware.
--> {{ProjectInfoBoxItem|github|{{#if:{{{github|}}}|[https://github.com/{{{github}}} github repository]|{{{github|}}}}}}} <!--
 
--> {{ProjectInfoBoxItem|Homepage|{{{homepage|}}}}} <!--
== Architecture ==
--> {{ProjectInfoBoxItem|Status|{{{status}}}}}
 
    <div style="clear: right; margin-top: 4px;"></div>
The system uses two controllers:
  </div>
 
</div>
* '''Crown32''' – ESP32-S3 microcontroller handling low-level hardware control (motors, brakes, sensors, lights)
{{#ifeq: {{{status|}}}
* '''Raspberry Pi''' – high-level game logic, AI agents, and user interface
      | template
 
      |<!--nothing-->|
Target communication latency between the two layers is under 20ms.
      [[Category:Projects]] <!--
 
-->  {{ProjectCategoryTags|Software projects|sw|{{{tags|}}}}} <!--
== Hardware ==
-->  {{ProjectCategoryTags|Hardware projects|hw|{{{tags|}}}}} <!--
 
-->  {{ProjectCategoryTags|Projects looking for participants|coops|{{{tags|}}}}} <!--
The machine's mechanical subsystems include:
-->  {{ProjectCategoryTags|Infrastructure projects|infrastructure|{{{tags|}}}}} <!--
 
-->  {{#ifeq:{{{stale|false}}}|true|[[Category:Stale projects]]||}} <!--
* '''Reel motors''' with worm gear assemblies (operating temp ~40°C)
--> }} <!-- end of #ifeq status=template
* '''Electromagnetic brakes''' – normally-engaged, 4-wire position-lock mechanism on gear wheels, driven by BD675 Darlington transistors at 24V (~545mA per coil, 44Ω, 80% duty cycle)
--> </includeonly>
* '''Sonderspiele'''
 
== Tools & Stack ==
 
* '''CAD:''' FreeCAD 1.0 / OpenSCAD
* '''PCB:''' KiCad
* '''3D printing:''' PETG
 
== Photo Gallery ==
 
[https://photos.iver.cz/s/crown Průběžná fotodokumentace]
 
== Changelog ==
 
{| class="wikitable sortable"
! Datum !! Hodiny !! Událost / změna
|-
| 2023/02/04 || 2 || Získání automatu Th. Bergmann Crown
|-
| 2023/02/18 || 16 || TFM – stroj provizorně opraven a otestován
|-
| 2023/03 || 16 || První experimenty s high level systémem: [https://github.com/Thebys/CrownPyBot CrownPyBot]
|-
| 2023/06 || 6 || Výměna 50 žárovek za oranžové LED typ T10 W5W (~420 Kč)
|-
| 2024/08 || 4 || Aktualizace [https://github.com/Thebys/CrownPyBot CrownPyBot] systému
|-
| 2024/12 || 5 || Převoz automatu do Brna
|-
| 2025/04 || 2 || Umístění automatu v [https://base48.cz Base48]
|-
| 2025/04 || 4 || Vyčištění zadní stěny a příprava na nový power delivery systém
|-
| 2025/05 || 16 || Reverse engineering ovládání pravých 10× LED (Risiko Platine)
|-
| 2025/05/14 || 2 || Nákup náhradního tranzistoru, barevných vodičů (PNLY), propojovací vodiče dupont, level shifter 3↔5 ×3, … (~400 Kč)
|-
| 2025/06/06 || 2 || Rozhodnutí nahradit sedmisegmentovky maticovými display 2×8×8 vlevo a 3×8×8 vpravo
|-
| 2025/06/11 || 4 || Demontáž zářivky podsvícení CROWN, testování 5V 144/m LED pásku, návrh nového podsvětlení, testování s ATX zdrojem (5V 15A). RGB LED pásek WS2812B 144/m 5V × 1m (~500 Kč)
|-
| 2025/06/25 || 2 || Aktualizace dokumentace, sken manuálu do PDF, dump pamětí
|-
| 2025/09/09 || 8 || Výměna motoru z 220 VAC na 24 VDC, příprava převodovky, testování. Tranzistory + IDC konektory (~600 Kč), nový motor (~350 Kč), beefier motor driver (~300 Kč)
|-
| 2025/09/15 || 2 || Výměna vypálených tranzistorů světelného panelu z BD675 na STX112AP
|-
| 2025/09/25 || 4 || Příprava nového řízení motoru
|-
| 2025/11/08 || 4 || Příprava nového řízení motoru
|-
| 2026/02/15 || 16 || Tisk držáku motoru, test elektromagnetických brzd, test motoru a řízení motoru
|-
! colspan="1" | '''Celkem''' !! '''113''' !!
|}
 
== Status ==
 
See changelog.

Revision as of 14:08, 2 March 2026


Overview

Crown is a restoration and modernization project of a 1980s German Th. Bergmann Crown slot machine. The original Z80-based control system is being replaced with a modern dual-layer architecture while preserving the vintage mechanical hardware.

Architecture

The system uses two controllers:

  • Crown32 – ESP32-S3 microcontroller handling low-level hardware control (motors, brakes, sensors, lights)
  • Raspberry Pi – high-level game logic, AI agents, and user interface

Target communication latency between the two layers is under 20ms.

Hardware

The machine's mechanical subsystems include:

  • Reel motors with worm gear assemblies (operating temp ~40°C)
  • Electromagnetic brakes – normally-engaged, 4-wire position-lock mechanism on gear wheels, driven by BD675 Darlington transistors at 24V (~545mA per coil, 44Ω, 80% duty cycle)
  • Sonderspiele

Tools & Stack

  • CAD: FreeCAD 1.0 / OpenSCAD
  • PCB: KiCad
  • 3D printing: PETG

Průběžná fotodokumentace

Changelog

Datum Hodiny Událost / změna
2023/02/04 2 Získání automatu Th. Bergmann Crown
2023/02/18 16 TFM – stroj provizorně opraven a otestován
2023/03 16 První experimenty s high level systémem: CrownPyBot
2023/06 6 Výměna 50 žárovek za oranžové LED typ T10 W5W (~420 Kč)
2024/08 4 Aktualizace CrownPyBot systému
2024/12 5 Převoz automatu do Brna
2025/04 2 Umístění automatu v Base48
2025/04 4 Vyčištění zadní stěny a příprava na nový power delivery systém
2025/05 16 Reverse engineering ovládání pravých 10× LED (Risiko Platine)
2025/05/14 2 Nákup náhradního tranzistoru, barevných vodičů (PNLY), propojovací vodiče dupont, level shifter 3↔5 ×3, … (~400 Kč)
2025/06/06 2 Rozhodnutí nahradit sedmisegmentovky maticovými display 2×8×8 vlevo a 3×8×8 vpravo
2025/06/11 4 Demontáž zářivky podsvícení CROWN, testování 5V 144/m LED pásku, návrh nového podsvětlení, testování s ATX zdrojem (5V 15A). RGB LED pásek WS2812B 144/m 5V × 1m (~500 Kč)
2025/06/25 2 Aktualizace dokumentace, sken manuálu do PDF, dump pamětí
2025/09/09 8 Výměna motoru z 220 VAC na 24 VDC, příprava převodovky, testování. Tranzistory + IDC konektory (~600 Kč), nový motor (~350 Kč), beefier motor driver (~300 Kč)
2025/09/15 2 Výměna vypálených tranzistorů světelného panelu z BD675 na STX112AP
2025/09/25 4 Příprava nového řízení motoru
2025/11/08 4 Příprava nového řízení motoru
2026/02/15 16 Tisk držáku motoru, test elektromagnetických brzd, test motoru a řízení motoru
Celkem 113

Status

See changelog.