
Deneme
g210101021/OpenStylophone-RP2040
Overview • Technical Summary • Architecture • Hardware Audit & Remediation • Schematic Subsystems • PCB Layout • Firmware Roadmap • Bill of Materials • Author

rp2040-plus and 1.3 inch LCD screen for pi pico by waveshare
Run3 is an open-source printed circuit board by John-ODell, from the John-ODell/pocket-chance repository on GitHub. It is a 4-layer board of 150 × 100 mm with 150 parts on 114 nets, routed with 1,318 tracks and 251 vias.
It is built around the RP2350A, PAM8302AADCR and APS6404L-3SQR-SN, with the BQ24074RGTR, DS3231MZ+ and DW01A among its other parts. Its parts include 43 capacitors, 43 resistors, 10 ICs, 10 switches and 8 connectors. It belongs with the lEDs and displays and keyboards and input boards and the RP2040 and RP2350 boards of this library.
Pocket Chance (J'Boy) - John O'Dell
A pocket casino for the Waveshare RP2040-Plus and the Waveshare 1.3" LCD HAT, written in MicroPython. It runs offline on the board. Three games: Blackjack, Ultimate Texas Hold'em and John's own Caribbean, a flop game with a low or high call.
The HAT plugs onto the board, so there is no wiring in this project. The pin map and everything we measured on a real board is in docs/HARDWARE.md.
This project was built with a small team of AI sessions (a PM, a developer and a hardware expert) directing one person. How that works, with role files and starter prompts you can reuse, is in docs/AI_TEAM.md.
Last updated: 2026-10-04
The full follow-along guide is SETUP.md. The short version:
.uf2 onto the RPI-RP2 drive.pip install mpremote pillowmpremote fs cp (exact commands in SETUP.md, Step 4).mpremote run pocket.pyYou should see the menu: "Pocket Chance", your chips, and the games.
If the screen stays dark, open pocket.py and set FAST_SPI = False. That is the only board-specific setting (see docs/HARDWARE.md, "The one trap").
Landscape, with USB-C and the joystick on the left and the buttons on the right.
| Where | Control | Does |
|---|---|---|
| Menu | Joystick up / down | Move the box (the list scrolls) |
| Menu | A | Pick a game. "Off" stops the program |
| Blackjack, betting | Joystick up / down | Change the bet (5 to 500, steps of 5) |
| Blackjack, betting | A deal, B back to menu | |
| Blackjack, playing | A hit, B stand, X double, Y split a pair | |
| Ultimate, betting | Joystick, A deal, X help, B menu | Blind equals the Ante |
| Ultimate, pre-flop / flop / river | A raise (4x / 2x / 1x), Y raise 3x pre-flop, B check (fold at the river) | The table cards turn as you go; the river prompt shows the dealer outs |
| Caribbean, betting | Joystick up / down, left / right | Change the Ante (5 to 50, capped at a fifth of your chips) |
| Caribbean, betting | A deal, X help, B menu | |
| Caribbean, flop | A call high (4x the Ante), Y call low (2x), B fold | The last two table cards turn, then the dealer's cards one by one |
| Game | Status | Rules | House edge |
|---|---|---|---|
| Blackjack | Playable | 6 decks, reshuffle at 75% dealt, dealer stands on all 17, blackjack pays 3:2, hit / stand / double, split pairs once (aces get one card each, double after split allowed) | about 0.55% |
| Ultimate Texas Hold'em ("Ultimate") | Playable | Equal Ante and Blind (5 to 50), two hole cards, five table cards; raise 4x or 3x pre-flop, 2x after the flop, 1x at the river or fold; dealer needs a pair for the Ante to count; Blind pays straight 1:1 up to royal 500:1. X teaches the full published simple strategy and the river prompt shows the dealer-outs count (UTH_HINT). Four other players sit at the sides as chip stacks (UTH_SEATS) | about 2.4% of the ante with the taught strategy, 2.2% optimal |
| Caribbean (John's flop game) | Playable | Ante 5 to 50, two cards each, the first three table cards turn, then call high (4x) or low (2x) or fold, the last two turn; best five of seven; the dealer needs a pair of fours or better, otherwise every bet pushes; a winning Ante pays by a table (flush 2:1, full house 3:1, quads 10:1, straight flush 20:1, royal 100:1, else 1:1), the call 1:1. When you and all four seats beat a dealer hand, a win on the next hand pays three times (Ante and call together). Four chip-stack seats (CAR_SEATS). The published game this is based on is Casino Hold'em (one call size, 2.16% optimal) | about 5% of the ante with the taught strategy (15% without the multiplier) |
| Caribbean Stud | Archived (John's ruling, 2026-10-06) | Was on the board as "Caribbean" until step 1n; code in archive/stud/ | 5.2% |
| Slots | Shelved | A 3-reel machine was built and tuned (93.84% return) then dropped: a classic multi-line machine does not fit the board's RAM. Code kept in archive/slots/ | n/a |
Chips: you start with 1000. If you go broke you get a free refill. Your chips are saved to the board after every round, with a backup copy and recovery if the save is damaged.
The house edges were measured by simulation (tools/bj_edge.py, tools/bj_split.py, tools/uth_edge.py, tools/casino_holdem_edge.py; archive/stud/stud_edge.py for the archived game) and the rules were checked against the public references on wizardofodds.com.
machine.freq call at the top of pocket.py, see docs/HARDWARE.md).Sizes, names, and where text sits on each screen are in assets/ASSETS.md. In short: draw one 24-bit BMP per picture, magenta (255, 0, 255) is transparent, run python3 tools/convert_assets.py, and copy the files it writes to /assets/ on the board. The menu background is a full-screen 240 x 240 image you supply yourself (assets/src/ui/menu_background.bmp). None is included.
pocket.py the game's start file on the board (menu)
lib/ shared modules for the board: screen, fonts, buttons, images, saving, cards, clock fix, poker
games/ one set of modules per game: rules, table logic, screens
archive/ shelved work (slots)
assets/ art spec and the converter's input and output folders
tools/ Mac-side tools: image converter, odds simulators, upload checker
tests/ automated tests (run on a computer, no board needed)
hw/ hwtest/ measured hardware budget, board notes, reviews, and the benchmark scripts
docs/ hardware reference sheet, the AI team guide, role files
pcb/ workspace for designing your own board from this hardware (first-timer guide, in progress)
pm/ decision requests, rulings, decision log, hand-off notes
SETUP.md follow-along install guide
UPLOAD.md exact file list for the board, checked by tools/check_upload.py
main_monolith.py the original single-file program this project replaced (read-only)python3 -m unittest discover -s testsThey run on a normal computer with stand-in modules for the board.
| What you see | What to do |
|---|---|
| The board does not show up | Use a data cable. Close Viper IDE and its tab: only one program can use the USB port at a time |
| Dark screen | FAST_SPI = False in pocket.py |
| "no module named ..." | A file is missing or in the wrong folder. Compare with SETUP.md, Step 4 |
| "could not enter raw repl" | The board is fine. Unplug it, or run hwtest/unwedge.py |
More in SETUP.md.
main_monolith.py, and the code adapted from it, started from Tony Goodhew's Waveshare 1.3" workout (August 2021).Open an issue with the step you were on, what you saw, and the full terminal output. Please do not post anything private.
| Qty | Value | Footprint | References |
|---|---|---|---|
| 21 | 100nF | Capacitor_SMD:C_0402_1005Metric | C1, C2, C3, C4, C10, C18, C19, C24, C27, C28, C34, C35, C36, C37, C39, C43 +5 |
| 13 | 10k | Resistor_SMD:R_0402_1005Metric | R4, R6, R7, R12, R13, R26, R27, R28, R29, R30, R34, R37, R42 |
| 6 | 10uF | Capacitor_SMD:C_0603_1608Metric | C11, C21, C22, C32, C33, C38 |
| 6 | 1k | Resistor_SMD:R_0402_1005Metric | R3, R5, R18, R25, R35, R43 |
| 6 | tie-down hole | H1, H2, MH1, MH2, MH3, MH4 | |
| 5 | 1uF | Capacitor_SMD:C_0603_1608Metric | C20, C30, C31, C41, C42 |
| 4 | 100k | Resistor_SMD:R_0402_1005Metric | R19, R23, R24, R39 |
| 4 | 4.7uF | Capacitor_SMD:C_0402_1005Metric | C13, C14, C15, C40 |
| 2 | 10uF 10V X5R | Capacitor_SMD:C_0805_2012Metric | C25, C26 |
| 2 | 15pF | Capacitor_SMD:C_0402_1005Metric | C16, C17 |
| 2 | 27R | Resistor_SMD:R_0402_1005Metric | R10, R11 |
| 2 | 4.7k | Resistor_SMD:R_0402_1005Metric | R31, R32 |
| 2 | 470R | Resistor_SMD:R_0402_1005Metric | R20, R33 |
| 2 | 5.1k | Resistor_SMD:R_0402_1005Metric | R8, R9 |
| 2 | GND | TestPoint:TestPoint_Pad_D1.5mm | TP5, TP6 |
| 1 | +3V3 | TestPoint:TestPoint_Pad_D1.5mm | TP3 |
| 1 | 0R | Resistor_SMD:R_0603_1608Metric | R22 |
| 1 | 0R | Resistor_SMD:R_0402_1005Metric | R49 |
| 1 | 1.8k | Resistor_SMD:R_0402_1005Metric | R14 |
| 1 | 100R | Resistor_SMD:R_0402_1005Metric | R50 |
| 1 | 10nF | Capacitor_SMD:C_0402_1005Metric | C29 |
| 1 | 10uF 16V X5R | Capacitor_SMD:C_0805_2012Metric | C23 |
| 1 | 12MHz ABM8-272-T3 | Crystal:Crystal_SMD_3225-4Pin_3.2x2.5mm | Y1 |
| 1 | 1V1 | TestPoint:TestPoint_Pad_D1.5mm | TP4 |
| 1 | 2.2uF | Capacitor_SMD:C_0603_1608Metric | C12 |
| 1 | 2.2uH ASPIAIG-F4020-2R2M | Inductor_SMD:L_Abracon_ASPIAIG-F4020 | L2 |
| 1 | 2.7k | Resistor_SMD:R_0402_1005Metric | R51 |
| 1 | 200R | Resistor_SMD:R_0402_1005Metric | R1 |
| 1 | 2k | Resistor_SMD:R_0402_1005Metric | R21 |
| 1 | 3.0k | Resistor_SMD:R_0402_1005Metric | R15 |
| 1 | 3.3uH AOTA-B201610S3R3-101-T | pcb_custom:AOTA-B201610S | L1 |
| 1 | 33R | Resistor_SMD:R_0402_1005Metric | R2 |
| 1 | 47k | Resistor_SMD:R_0402_1005Metric | R44 |
| 1 | 5.6k | Resistor_SMD:R_0402_1005Metric | R36 |
| 1 | 68k | Resistor_SMD:R_0402_1005Metric | R16 |
| 1 | A PTS125SM43SMTR2LFS | Button_Switch_SMD:SW_Push_1P1T_NO_CK_PTS125Sx43SMTR | SW4 |
| 1 | AO3400A | Package_TO_SOT_SMD:SOT-23 | Q3 |
| 1 | AO3401A | Package_TO_SOT_SMD:SOT-23 | Q4 |
| 1 | AO3401A (DNP: fit only for a direct-drive BL module) | Package_TO_SOT_SMD:SOT-23 | Q6 |
| 1 | APS6404L-3SQR-SN | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U3 |
| 1 | B PTS125SM43SMTR2LFS | Button_Switch_SMD:SW_Push_1P1T_NO_CK_PTS125Sx43SMTR | SW5 |
| 1 | BAT+ | TestPoint:TestPoint_Pad_D1.5mm | TP7 |
| 1 | BOOT | Button_Switch_SMD:SW_SPST_PTS645Sx43SMTR92 | SW1 |
| 1 | BQ24074RGTR | Package_DFN_QFN:VQFN-16-1EP_3x3mm_P0.5mm_EP1.68x1.68mm_ThermalVias | U5 |
| 1 | CELL_F | TestPoint:TestPoint_Pad_D1.5mm | TP10 |
| 1 | CELL_P | TestPoint:TestPoint_Pad_D1.5mm | TP9 |
| 1 | CHG | LED_SMD:LED_0603_1608Metric | D1 |
| 1 | CR1220 | Battery:BatteryHolder_Keystone_3001_1x12mm | BT2 |
| 1 | DPAD DOWN PTS645SM43SMTR92 | Button_Switch_SMD:SW_SPST_PTS645Sx43SMTR92 | SW9 |
| 1 | DPAD LEFT PTS645SM43SMTR92 | Button_Switch_SMD:SW_SPST_PTS645Sx43SMTR92 | SW10 |
| 1 | DPAD PRESS PTS645SM43SMTR92 | Button_Switch_SMD:SW_SPST_PTS645Sx43SMTR92 | SW12 |
| 1 | DPAD RIGHT PTS645SM43SMTR92 | Button_Switch_SMD:SW_SPST_PTS645Sx43SMTR92 | SW11 |
| 1 | DPAD UP PTS645SM43SMTR92 | Button_Switch_SMD:SW_SPST_PTS645Sx43SMTR92 | SW8 |
| 1 | DS3231MZ+ | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U9 |
| 1 | DW01A | Package_TO_SOT_SMD:SOT-23-6 | U7 |
| 1 | Expansion (6 = VBAT_SENSE ADC node, not free GPIO) | Connector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_Vertical | J8 |
| 1 | FS8205A | Package_SO:TSSOP-8_4.4x3mm_P0.65mm | Q1 |
| 1 | LCD 1.54in ST7789 module, JST-PH 8-pin | Connector_JST:JST_PH_S8B-PH-SM4-TB_1x08-1MP_P2.00mm_Horizontal | J4 |
| 1 | LCD header 2.54 mm (wire by name; one screen at a time) | Connector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_Vertical | J9 |
| 1 | LCD_SCK | TestPoint:TestPoint_Pad_D1.5mm | TP14 |
| 1 | LSM6DSOXTR | Package_LGA:LGA-14_3x2.5mm_P0.5mm_LayoutBorder3x4y | U10 |
| 1 | LiPo JST-PH 2.0mm (1 = + RED WIRE, 2 = -) | Connector_JST:JST_PH_S2B-PH-SM4-TB_1x02-1MP_P2.00mm_Horizontal | J3 |
| 1 | MF-MSMF150/16X-2 1.5A | pcb_custom:Fuse_Bourns_MF-MSMF_1812 | F1 |
| 1 | PAM8302AADCR | Package_SO:SOIC-8_3.9x4.9mm_P1.27mm | U8 |
| 1 | POWER PCM12 | Button_Switch_SMD:SW_SPDT_PCM12 | SW3 |
| 1 | RESET | Button_Switch_SMD:SW_SPST_PTS645Sx43SMTR92 | SW2 |
| 1 | RM2 | pcb_custom:RM2 | U11 |
| 1 | RP2350A | Package_DFN_QFN:QFN-60-1EP_7x7mm_P0.4mm_EP3.4x3.4mm | U1 |
| 1 | RTC INT to GP14 (open; close only after firmware sets IMU INT1 open-drain, active-low) | Jumper:SolderJumper-2_P1.3mm_Open_Pad1.0x1.5mm | JP2 |
| 1 | RUN | TestPoint:TestPoint_Pad_D1.5mm | TP8 |
| 1 | SCL | TestPoint:TestPoint_Pad_D1.5mm | TP12 |
| 1 | SDA | TestPoint:TestPoint_Pad_D1.5mm | TP11 |
| 1 | SD_SCK | TestPoint:TestPoint_Pad_D1.5mm | TP13 |
| 1 | STEMMA QT | Connector_JST:JST_SH_SM04B-SRSS-TB_1x04-1MP_P1.00mm_Horizontal | J7 |
| 1 | SWD | Connector_PinHeader_1.27mm:PinHeader_2x05_P1.27mm_Vertical_SMD | J1 |
| 1 | Speaker JST-PH | Connector_JST:JST_PH_S2B-PH-SM4-TB_1x02-1MP_P2.00mm_Horizontal | J5 |
| 1 | TPS63001DRCR | Package_SON:Texas_DRC0010J_ThermalVias | U6 |
| 1 | USB4085-GF-A | Connector_USB:USB_C_Receptacle_GCT_USB4085 | J2 |
| 1 | USBLC6-2SC6 | Package_TO_SOT_SMD:SOT-23-6 | U4 |
| 1 | USER | LED_SMD:LED_0603_1608Metric | D2 |
The 144 most common of 150 parts.

g210101021/OpenStylophone-RP2040
Overview • Technical Summary • Architecture • Hardware Audit & Remediation • Schematic Subsystems • PCB Layout • Firmware Roadmap • Bill of Materials • Author


ThVerstappen/AI-Fx580VNX
Revision mới nhất hoàn tất ngày 11/10/2026. Mở FX580MainEPDLAYOUTV8.kicadpro bằng KiCad 10.0.5; PCB và schematic cùng tên. Thư viện local dùng ${KIPRJMOD}/lib.

Projeto-Guarda-Rios/PCB
O repositório para a PCB do Projeto Guarda Rios! Inclui todos os ficheiros relacionados com a PCB!



rh1tech/frank-lab
FRANK Board Laboratory (work-in-progress board prototopyes)

It measures 150 × 100 mm and has 4 copper layers, 1.6 mm thick.
150 parts, built around the RP2350A, PAM8302AADCR, APS6404L-3SQR-SN and BQ24074RGTR. 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.
From the John-ODell/pocket-chance repository on GitHub, at the commit this page was made from: the board is pcb/kicad/routing/run3.kicad_pcb and its schematic pcb/kicad/pocket-chance-board.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository states no licence, so its author keeps all rights: ask John-ODell before reusing the design.