Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
A talk from RubyConfTH 2023, held in Bangkok, Thailand on October 6-7, 2023. Find out more and register for updates for our next conference at https://rubyconfth.com/
Date
Summarized using AI?
If this talk's summary was generated by AI, please check this box. A "Summarized using AI" badge will be displayed in the summary tab to indicate that the summary was generated using AI.
Show "Summarized using AI" badge on summary page
Summary
Markdown supported
In his talk 'A Beginner's Complete Guide to Microcontroller Programming with Ruby,' Hitoshi Hasumi introduces attendees at RubyConf TH 2023 to the fundamentals of programming microcontrollers using Ruby. Hasumi emphasizes the increasing importance of microcontrollers, which serve as the core of numerous electronic devices, and aims to provide a comprehensive starting point for beginners. He organizes the session into four main parts: - **Preparation**: The speaker identifies that only three items are needed to start: a Raspberry Pi Pico, a USB cable, and a terminal emulator. The Raspberry Pi Pico is highlighted for its specifications, featuring an RP2040 chip capable of running in a 'bare metal' mode without an operating system. - **Getting Started**: Hasumi walks through the setup process for initializing the Raspberry Pi Pico using a specific `.zip` file from GitHub, followed by connecting the device to a PC and using a terminal emulator, such as GTKTerm or TeraTerm. He explains the use of the R2P2 shell, which allows users to execute Ruby commands, effectively enabling programming through a UNIX-like environment. - **Exploring GPIO**: The speaker demonstrates how to control GPIO pins for basic operations, like blinking an LED. He explains the significance of GPIO in microcontroller applications, giving a hands-on example of how to write simple commands to control hardware. - **Understanding Sensors**: Expanding on practical applications, Hasumi introduces readers to the Analog-to-Digital Converter (ADC) feature of the RP2040. In a live demonstration, he shows how to read temperature using a thermistor and explains the underlying electrical principles such as Ohm's Law. Additionally, he discusses further applications of Pby, including R2P2 and PRK, a firmware for DIY keyboards, illustrating how Ruby can simplify microcontroller programming tasks. Hasumi concludes the session by inviting the audience to RubyKAG 2024 in Okinawa, Japan, and encouraging continued engagement with Ruby and microcontroller programming. The overall takeaway is an encouragement to leverage Ruby for creating microcontroller applications step-by-step, utilizing available libraries and tools for development, and fostering a community around this growing field.
Suggest modifications
Cancel