Bridge the Physical World: Kotlin/Native on Raspberry Pi
summary
Compiles Kotlin/Native for Raspberry Pi, cross‑compiles from macOS and runs a working rock‑paper‑scissors robot that blinks LEDs, reads buttons and drives servos via PiGPIO and an I2C PCA9685 driver; uses generated C bindings, CValuesRef and memScoped for arrays and staticCFunction for callbacks, automates build and SCP with Gradle tasks, and captures images by execing camera tools. TensorFlow C API builds mostly fail so prebuilt Raspberry Pi binaries are used; basic tensor ops load but full image inference is not completed.
AI-written summary · about
chapters (8)
- 0:00BRIDGE THE PHYSICAL WORLD: KOTLIN/NATIVE ON RASPBERRY PI OIAN JIN
- 4:54Kotlin/Native is an LLVM based backend for the Kotlin compiler and native implementation of the Kotlin standard library. It compiles kotlin code to native binaries
- 10:45My Setup Macbook + Raspberry Pi 3 (Model B)
- 13:37Basic GPIO (General Purpose Input/Output)
- 19:59Deploy on Pi with Gradle SSH plugin
- 20:35Step 2: Button Callback (Mapping Function Pointer from C)
- 23:13Control Servomotors
- 28:33Capture Image with Pi Camera
related talks
36mBridge the physical world: Kotlin/Native on Raspberry Pi
38mKotlin/Native
43mKotlinbots: Building Your Own Personal Robot Army
46mMaking Noise with Kotlin Native
43mThe Triumphs and Tribulations of Kotlin-Native in Practice
40mKotlin & Implications in an IoT project
40mKMP with non-Kotlin languages
44mDeep Dive into Kotlin/Native
