Jump to content

Crown: Difference between revisions

From base48
Thebys1 (talk | contribs)
No edit summary
Thebys1 (talk | contribs)
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Category:Projects}}
{{Project
{{Project}}
|name=Crown
<noinclude>
|image=Crown front.jpg
{{:Skeleton}}
|founder=Thebys
</noinclude>
|homepage=
<includeonly>
|status=active
<!-- <div style="clear: right;"></div> -->
|tags=hw, vintage, gambling, AI embodyment,
<div style="display: block; float: right; margin-left: 10px; margin-bottom: 10px; margin-top: 10px; width: 300px; " class="catlinks">
|stale=false
  <!-- Project Header -->
|Photogallery=https://photos.iver.cz/s/crown}}
  <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>
 
  <!-- Project logo -->
== Overview ==
  <div style="width: 290px; text-align: center; margin: 5px;">[[File:{{#if: {{{image|}}}|{{{image}}}|Base-small.png}}|frameless|290px]]</div>
 
  <!-- Project Details -->
'''Crown''' is a restoration and modernization project of a 1980s German Thomas Bergmann Automatenbau Crown slot machine. The original Z80-based control system is being replaced with a modern dual-layer architecture while preserving the vintage mechanical hardware.
  <div style="border: 1px solid #CCC; margin: 5px; padding: 0.5em; background-color: #FFF;">
 
    {{ProjectInfoBoxItem|Founder|{{#replace:{{{founder}}}|#||<br/>}}|base48-wiki-users}} <!--
== Architecture ==
--> {{ProjectInfoBoxItem|Coops|{{#replace:{{{coops|}}}|#|, &#x200b;}}|base48-wiki-users}} <!-- uglyhack: MW parser ignores the trailing spaces of replacement, &#x200b; is 'zero-width' space
 
--> {{ProjectInfoBoxItem|Latest Version|{{{curr_version|}}}}} <!--
The system uses two controllers:
--> {{ProjectInfoBoxItem|Operating<br/>System(s)|{{{os|}}}}} <!--
 
--> {{ProjectInfoBoxItem|Architecture(s)|{{{arch|}}}}} <!--
* '''Crown32''' – ESP32-S3 microcontroller handling low-level hardware control (motors, brakes, sensors, lights)
--> {{ProjectInfoBoxItem|Programming<br/>Language(s)|{{{proglang|}}}}} <!--
* '''Raspberry Pi''' – high-level game logic, AI agents, and user interface
--> {{ProjectInfoBoxItem|SW License|{{{swlic|}}}}} <!--
 
--> {{ProjectInfoBoxItem|HW License|{{{hwlic|}}}}} <!--
Target communication latency between the two layers is under 20ms.
--> {{ProjectInfoBoxItem|github|{{#if:{{{github|}}}|[https://github.com/{{{github}}} github repository]|{{{github|}}}}}}} <!--
 
--> {{ProjectInfoBoxItem|Homepage|{{{homepage|}}}}} <!--
== Hardware ==
--> {{ProjectInfoBoxItem|Status|{{{status}}}}}
 
    <div style="clear: right; margin-top: 4px;"></div>
The machine's mechanical subsystems include:
  </div>
 
</div>
* '''Reel fortune disks''' - older design then "One Hand Bandit" - spins horizontal and clockwise rather then vertical!
{{#ifeq: {{{status|}}}
* '''Electromagnetic brakes''' – normally-engaged, unlock to allow disk spin. Heats up a lot at 24V from PSU.
      | template
* '''24V LEDs''' - Plenty of LEDs (30), originally it was bulbs, replaced with orange LEDs for extra vintage feel and lower heat, power consumption is the same.
      |<!--nothing-->|
* '''5 OG Buttons''' - Bottom part, to control the game.
      [[Category:Projects]] <!--
 
-->  {{ProjectCategoryTags|Software projects|sw|{{{tags|}}}}} <!--
== Tools & Stack ==
-->  {{ProjectCategoryTags|Hardware projects|hw|{{{tags|}}}}} <!--
 
-->  {{ProjectCategoryTags|Projects looking for participants|coops|{{{tags|}}}}} <!--
* '''CAD:''' FreeCAD 1.0 / OpenSCAD
-->  {{ProjectCategoryTags|Infrastructure projects|infrastructure|{{{tags|}}}}} <!--
* '''PCB:''' KiCad
-->  {{#ifeq:{{{stale|false}}}|true|[[Category:Stale projects]]||}} <!--
* '''3D printing:''' PETG
--> }} <!-- end of #ifeq status=template
 
--> </includeonly>
== Links and resources ==
 
* Fotodokumentace - [https://photos.iver.cz/s/crown Průběžná fotodokumentace]
* Projektová dokumentace - https://harbornote.iver.cz/s/CR/p/obecne-informace-a-odkazy-iKg7jxQgKu
* Github repo - https://github.com/Thebys/CrownPyBot
 
== 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
|-
|2026/03/03
|4
|Revize napájecího systému
|}

Latest revision as of 13:30, 4 March 2026


Overview

Crown is a restoration and modernization project of a 1980s German Thomas Bergmann Automatenbau 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 fortune disks - older design then "One Hand Bandit" - spins horizontal and clockwise rather then vertical!
  • Electromagnetic brakes – normally-engaged, unlock to allow disk spin. Heats up a lot at 24V from PSU.
  • 24V LEDs - Plenty of LEDs (30), originally it was bulbs, replaced with orange LEDs for extra vintage feel and lower heat, power consumption is the same.
  • 5 OG Buttons - Bottom part, to control the game.

Tools & Stack

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

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
2026/03/03 4 Revize napájecího systému