Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
💡Ruby 川辺で灯すPicoRubyからの光
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
bash0C7
September 06, 2025
Technology
1.3k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
💡Ruby 川辺で灯すPicoRubyからの光
https://regional.rubykaigi.org/nagara01/
bash0C7
September 06, 2025
More Decks by bash0C7
See All by bash0C7
マイコン向けの軽量Ruby「PicoRuby」で各種デバイスを制御するネイティブアプリの実現手法
bash0c7
0
490
テックカンファレンス三大ステークホルダーの文化人類学 ─ 違いを認め合う関係性作り
bash0c7
5
4k
技術・能力を向上する原理原則 #きのこセッションa #きのこ2026
bash0c7
0
280
In Hakodate Hokkaido, 3.3-Foot Crafted Ruby Instrument plays ME!! #rubyilluminations #rubykaigi
bash0c7
0
150
ふつうの Rubyist、ちいさなデバイス、大きな一年
bash0c7
0
1.3k
Infroduction of Ruby WASM Sound Visualizer Presentation
bash0c7
0
65
Introduction to ESP32 PicoRuby development
bash0c7
0
210
2011年 「ぼっちが懇親会でするべき97のこと」 #97bocchi から積み重ねた【令和7年最新】技術コミュニティ交流戦略2025
bash0c7
1
1.3k
「笑顔」を伝える リモートMTG時代のコミュニケーション戦術
bash0c7
0
160
Other Decks in Technology
See All in Technology
3つのアプローチで目指す チームを強くするAI駆動開発
thkt
0
150
自主式軟體工廠
philipz
0
250
ファミコンでPHPを動かす / PHP on the Famicom side b
tomzoh
0
140
Essential architectural thinking (revised edition)
ufried
0
110
AIに攻撃される前に、AIに攻撃させる
tsuchikazu
0
170
自作バイナリを動かす「入口」8選
puhitaku
2
1.3k
しろおびから始める!ログ活用の第一歩
shumei_ito
0
860
会社説明資料
persolserverworks
0
9.7k
並行性の問題を防げ!実践トランザクション入門
occhi
0
280
[AWS 秋のクラウドオペレーション祭り 2026]AWS DevOps Agentで変わるリリースと運用対応 ~リリース管理機能と Directed actions のご紹介~
furuton
4
1.2k
DevelopersIO 2026 知識の地図を描く ─ オントロジーとは何か?
ishikawa_satoru
1
1.3k
スキルを作る、その前に!複数人で使われるスキルを 作るためのプロセス
junkifurukawa
2
370
Featured
See All Featured
Why You Should Never Use an ORM
jnunemaker
PRO
61
10k
BBQ
matthewcrist
90
10k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.7k
Discover your Explorer Soul
emna__ayadi
2
1.3k
Making Projects Easy
brettharned
120
6.8k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3.2k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3k
Design in an AI World
tapps
1
350
We Are The Robots
honzajavorek
0
390
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.2k
Become a Pro
speakerdeck
PRO
31
6.3k
GitHub's CSS Performance
jonrohan
1033
470k
Transcript
ลͰ౮͢PicoRuby͔Βͷޫ 💡Ruby 2025/09/06() bash ެ։൛
ޫɻ
༗࢙ҎདྷͷਓྨʹͱͬͯޫΛ౮͢͜ͱ େࣄͳӦΈͰ͋Γɺੜ׆ɺՊֶɺܳ ज़·Ͱ͞·͟·ͳͰऔΓ·Εͯ ͖·ͨ͠ɻ
RubyίϛϡχςΟͰɺΧϯϑΝϨϯ εͰࣗ࡞ΩʔϘʔυϚΠΫϩίϯτ ϩʔϥʔͷLED͕ඒ͘͠ޫΔ༷ࢠΛݟ ͨ͜ͱ͕͋Δਓଟ͍Ͱ͠ΐ͏ɻ
͜ͷηογϣϯͰɺ͜ͷʮޫʯʹண ͯ͠ɺ࠷ۙRubyίϛϡχςΟͰ໊ ͕ߴ·͍ͬͯΔΈࠐΈܥPicoRuby Λ༻͍ͯɺ
ΞτϓοτͰ͋Δޫͷ੍ޚͱ
ΠϯϓοτͱͳΔޫΒͤΔύϥϝʔλ ʔͷऔಘͷύλʔϯͷղઆͱ
۩ମతͳσϞΛͱʹɺ
ͻͱΓͻͱΓ͕࣮ફͰ͖Δ💡Ruby ஔ։ൃʹͯɺଟ͘ͷਓʹPicoRubyͷͨ ͷ͠͞ΛఏࣔͰ͖Εͱࢥ͍·͢ɻ
Կ͔ʹཱͭRubyͷར༻͚ͩͰͳ͍ɺ ҉ҋʹޫΛ౮͢ͱ͍͏ϓϦϛςΟϒͳ ਓྨͷ͍ͷͪͷتͼΛRubyͰ࣮ݱ͢Δ ――ͦͷͨͷ͠͞Λྑͷ΄ͱΓͰ ຯΘ͍͖͍ͬͯͨͩͨͱߟ͍͑ͯ· ͢ɻ
࣍ ΠϯτϩμΫγϣϯ ࠓ͏ػࡐͱΈࠐΈܥͷHello, World"LνΧ"ͷհ ػث୯ମͰͷޫ ଞσόΠε࿈ಈͰͷޫ ͜Ε͔Βଓ͚ΔͨΊͷॿ͚
࣍ ΠϯτϩμΫγϣϯ ࠓ͏ػࡐͱΈࠐΈܥͷHello, World"LνΧ"ͷհ ػث୯ମͰͷޫ ଞσόΠε࿈ಈͰͷޫ ͜Ε͔Βଓ͚ΔͨΊͷॿ͚
ػࡐ ిࢠ࡞ཁૉؚΊͯPicoRubyϑϧ׆༻ͳΒRaspberry Pi Pico ࠓATOM MatrixͰ"💡Ruby"͠·͢ https://www.switch-science.com/products/8170 https://www.switch-science.com/products/6260
Why ATOM Matrix? Pros: ୯ମͰ݁Ͱ͖Δ •5x5LEDଂͰϐΧϐΧ͍͚Δ •ଂՃηϯαʔͰಈ͖ΛऔΕΔ •ίϯύΫτʹύοέʔδϯά͞ΕͯΔ •ن֨Խ͞ΕͨࢠͰ֦ு͕Ͱ͖Δ Cons:
PicoRubyͰΦϧλφςΟϒͳଘࡏ •Raspberry Pi PicoͱผͷϚΠίϯࡌ •υΩϡϝϯτͷಡΈସ͕͑ඞཁ •ະPorting(Ҡ২)ػೳ͕͋Δ https://www.switch-science.com/products/6260
࣍ ΠϯτϩμΫγϣϯ ࠓ͏ػࡐͱΈࠐΈܥͷHello, World"LνΧ"ͷհ ػث୯ମͰͷޫ ଞσόΠε࿈ಈͰͷޫ ͜Ε͔Βଓ͚ΔͨΊͷॿ͚
ΈࠐΈܥͷHello, World"LνΧ" https://hasumikin.com/2023/06/04/reiwa5-picoruby-l-chika.html https://www.google.com/search?q=picoruby+LνΧ
ATOM MatrixͰεΩοϓ͢Δ https://hasumikin.com/2023/06/04/reiwa5-picoruby-l-chika.html ผํࣜ5x5 LED͕ࡌ pins.each {|pin| pin.write 1} ͱ͍͔ͳ͍
࣍ ΠϯτϩμΫγϣϯ ࠓ͏ػࡐͱΈࠐΈܥͷHello, World"LνΧ"ͷհ ػث୯ମͰͷޫ ଞσόΠε࿈ಈͰͷޫ ͜Ε͔Βଓ͚ΔͨΊͷॿ͚
جຊͷΞʔΩςΫνϟ Super Loop Architecture ແݶϧʔϓ ॳظԽ ϧʔϓ͝ͱͷॲཧ https://en.wikibooks.org/wiki/Embedded_Systems/Super_Loop_Architecture https://gist.github.com/bash0C7/553563a88942666fef27418b5f4aea6f
ATOM Matrix୯ମͰޫΒͤΔ ATOM Matrixͷଂ5x5LEDͲ͏ޫΒͤΔͷ͔ •GPIO27൪ʹWS2812CͷLED͕25ݸଓʁʁʁʁ •WS2812Cύϧε෯ͰϏοτΛදݱʁʁʁʁ
ksbmyk/picoruby-ws2812 ߴϨϕϧAPIΛఏڙ͢Δ֎෦gem ແݶϧʔϓ ॳظԽ = ඞཁͳgemͷrequire ϧʔϓ͝ͱͷॲཧ = ޫΒͤΔॲཧ
ksbmyk/picoruby-ws2812 R2P2-ESP32/components/picoruby-esp32/ picoruby/build_config/xtensa-esp.rbʹه github repoͷଞɺϩʔΧϧϑΥϧμɺ git URLΛࢦఆՄೳ
ݻఆͷ৭Ͱৗ࣌౮ ແݶϧʔϓ ॳظԽ require͢Δ led = WS2812.new͢Δ colorsྻͷੜ ϧʔϓ͝ͱͷॲཧ colorsྻͷݻఆઃఆ
led.show_rgb(*colors)
ݻఆͷ৭Ͱৗ࣌౮ ແݶϧʔϓ ॳظԽ require͢Δ led = WS2812.new͢Δ colorsྻͷੜ ϧʔϓ͝ͱͷॲཧ colorsྻͷݻఆઃఆ
led.show_rgb(*colors)
ϥϯμϜʹ৭͕มΘΔ ແݶϧʔϓ ॳظԽ require͢Δ led = WS2812.new͢Δ colorsྻͷੜ ϧʔϓ͝ͱͷॲཧ colorsྻͷϥϯμϜઃఆ
led.show_rgb(*colors)
ࣗͷಈ͖ʹ͋Θͤͯ৭͕มΘΔ ATOM MatrixʹՃηϯαʔmpu6886ೖ͍ͬͯΔ ߴϨϕϧAPIΛఏڙ͢Δgem bash0C7/picoruby-mpu6886͕͋Δ https://docs.m5stack.com/ja/unit/imu
ແݶϧʔϓ ॳظԽ require͢Δ led = WS2812.new͢Δ colorsྻͷੜ ϧʔϓ͝ͱͷॲཧ colorsྻͷಈ͖Ͱͷઃఆ led.show_rgb(*colors)
ࣗͷಈ͖ʹ͋Θͤͯ৭͕มΘΔ ൦ATOM Matrix + Mac + USBέʔϒϧͰ࣮ߦˍฤूͰ͖ΔΑ͏ʹͯ͠·͢ github: bash0C7/nagara01-atommatrix-ruby-gemstone-demo
࣍ ΠϯτϩμΫγϣϯ ࠓ͏ػࡐͱΈࠐΈܥͷHello, World"LνΧ"ͷհ ػث୯ମͰͷޫ ଞσόΠε࿈ಈͰͷޫ ͜Ε͔Βଓ͚ΔͨΊͷॿ͚
ແݶϧʔϓ Super Loop Architectureৄࡉ ॳظԽ ͷऔಘ https://en.wikibooks.org/wiki/Embedded_Systems/Super_Loop_Architecture औಘͨ͠ͷॲཧ ग़ྗͷ੍ޚ
֎෦LEDͷ੍ޚ ಉ੍͡ޚํࣜͷLED ଓઌ͕ҧ͏ LEDͷݸ͕ҧ͏ ύϥϝʔλʔ͚ͩม͑Δ
ڑηϯαʔͰͷ੍ޚ https://docs.m5stack.com/ja/unit/tof https://github.com/bash0C7/picoruby-vl53l0x bash0C7/picoruby-vl53l0x gem
ԻೝࣝηϯαʔͰͷ੍ޚ https://docs.m5stack.com/ja/unit/Unit%20ASR https://github.com/bash0C7/picoruby-unitasr bash0C7/picoruby-unitasr gem
MIDIγϯηαΠβʔͷ੍ޚ https://www.switch-science.com/products/9928 MIDI = 31.25kbpsγϦΞϧ௨৴
USBͰܨ͍ͩPCपลػث PC - PicoRubyؒͷγϦΞϧ௨৴ https://github.com/tenderlove/uart uart = UART.new(unit: :ESP32_UART0, baudrate:
115200)
ΩʔϘʔυͰ͍ͨͷΛPicoRubyʹ௨৴ͯ͠ MIDIγϯηαΠβʔΛૢ࡞ͭͭ͠ޫΒͤΔ PC: PicoRubyʹγϦΞϧ௨৴Ͱ৴߸ΛૹΔ PicoRuby: ड͚औͬͨ৴߸ΛMIDIγϯηαΠβʔʹૹΔˍޫΒͤΔ
MCP Server͔ΒPicoRubyૢ࡞
࣍ ΠϯτϩμΫγϣϯ ࠓ͏ػࡐͱΈࠐΈܥͷHello, World"LνΧ"ͷհ ػث୯ମͰͷޫ ଞσόΠε࿈ಈͰͷޫ ͜Ε͔Βଓ͚ΔͨΊͷॿ͚
Why ATOM Matrix? Pros: ୯ମͰ݁Ͱ͖Δ •5x5LEDଂͰϐΧϐΧ͍͚Δ •ଂՃηϯαʔͰಈ͖ΛऔΕΔ •ίϯύΫτʹύοέʔδϯά͞ΕͯΔ •ن֨Խ͞ΕͨࢠͰ֦ு͕Ͱ͖Δ Cons:
PicoRubyͰΦϧλφςΟϒͳଘࡏ •Raspberry Pi PicoͱผͷϚΠίϯࡌ •υΩϡϝϯτͷಡΈସ͕͑ඞཁ •ະPorting(Ҡ২)ػೳ͕͋Δ https://www.switch-science.com/products/6260
ࣗͷಈ͖ʹ͋Θͤͯ৭͕มΘΔ github: bash0C7/nagara01-atommatrix-ruby-gemstone-demo ATOM Matrix +USBέʔϒϧͱ MacͰࠓ͙͓͢ࢼ͠ՄೳͰ͢ • ATOM Matrix
࣮අ൦(3200ԁ)͕ ݸ͋Γ·͢
Ԡ༻ɿޫΔbashཧΞΠίϯ https://github.com/bash0C7/atommatrix-my-icon ͪ͜Βಉ༷ʹɺ ATOM Matrix +USBέʔϒϧͱ MacͰࠓ͙͓͢ࢼ͠ՄೳͰ͢ • ATOM Matrix
࣮අ൦(3200ԁ)͕ ݸ͋Γ·͢
ແݶϧʔϓ ଞσόΠε࿈ಈͰͷޫ ॳظԽ ͷऔಘ https://en.wikibooks.org/wiki/Embedded_Systems/Super_Loop_Architecture औಘͨ͠ͷॲཧ ग़ྗͷ੍ޚ
LED੍ޚΛ͖Ε͍ʹ͢Δ ΞϧΰϦζϜ •https://note.com/chobishiba/n/nc9e3c64a6c38 •https://techblog.kayac.com/tracking-calculation-of-homing-laser ϥϯμϜύϥϝʔλʔ "ίΫͷ͋Δཚ" •https://design-lab.tuqulore.com/mild-random/
ཧͷࢀߟॻ੶ https://www.ohmsha.co.jp/book/9784274227516/ https://www.oreilly.co.jp/books/9784814400492/
ͷऔಘͷσόΠε ֤छεΠον: https://note.com/chobishiba/n/n8598badbc0fd ηϯαʔ https://www.switch-science.com/search? filter.v.availability=1&q=%E3%82%BB%E3%83%B 3%E3%82%B5%E3%83%BC
ίϛϡχςΟʔ https://picopicoruby.connpass.com/
https://naniwarb.github.io/picorubyoverflowkaigi/
https://mrubygirls.connpass.com/event/363687/
1JDP3VCZJTUਓޱ ͬͱ૿͍͍͑ͯ
ʮՐΛೖΕΔʯ
໋Λਧ͖ࠐΉ
ࣗͷಈ͖ʹ͋ΘͤͯޫΔ3VCZஔ
ࣗͱ͍͏໋ͱͱʹ͋Δ
ลͰ౮͢PicoRuby͔Βͷޫ 💡Ruby 2025/09/06() bash