Swift to Hack Hardware
summary
Swift runs on Raspberry Pi to read sensors, identify coins by weight and post deposits to a server. The build uses Swift on Raspberry Pi, a Swift package plus GPIO bindings to bit‑bang a 24‑bit two’s‑complement stream from an HX711 load cell amplifier, and drives an HD44780 LCD for status. Code converts raw weight deltas to coin values, wraps them in a Codable deposit struct, and posts them to a Swift server so mobile clients see live balances.
AI-written summary · about
chapters (12)
- 0:00Intro
- 1:06What we build
- 4:06Installing Swift
- 9:40Calculate Coin Value
- 10:45Load Cell
- 12:20Data Sheets
- 13:16Raspberry Pi
- 14:54C Code
- 18:08Overview
- 19:38Example
- 20:20Integration
- 21:20Diversity








