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
カンタン楽しいマイコンの世界
Search
kumaGoro95
December 05, 2020
Programming
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
カンタン楽しいマイコンの世界
kumaGoro95
December 05, 2020
More Decks by kumaGoro95
See All by kumaGoro95
アジャイルの名を捨ててアジャイルをやる ─アジャイルに忌避感のある現場での“困りごと駆動”の実践─
kumagoro95
0
530
昭和の職場からアジャイルの世界へ
kumagoro95
1
820
DDDやってみたら 実装以前の領域での学びが深かった話
kumagoro95
13
8.8k
要件定義で得た学び・気づき
kumagoro95
4
2.7k
メンバーのわかりませんはチームが成長するチャンス.pdf
kumagoro95
1
460
ふりかえりでふりかえることしかできなかったジュニアチームが、次の打ち手を出せるチームになるのにやったこと
kumagoro95
3
1.6k
Githubのアクティビティ履歴からチームの健康状態を知る(Findy Teams使ってみた)
kumagoro95
0
670
プログラミングで小数計算すると なんで誤差が発生するのか?
kumagoro95
0
320
導入事例を通じて理解するドメイン駆動設計
kumagoro95
0
540
Other Decks in Programming
See All in Programming
個人開発者よ、Honoを使え(おじさんver)
tanahiro2010
2
300
3回つくってわかった、 定期実行ジョブ基盤の本質情報
takai
4
3.5k
AIが生成したコードは読むべきか?抽象化設計とコードの品質保証 / abstraction-design-and-quality
minodriven
14
8k
動画プレイヤーはなぜカクつくのか 〜Flutterのレンダリングとネイティブの境界を解剖する〜
naruogram
0
320
S3 TablesのIcebergデータに、AIエージェントからアクセスしてみた / 20261016developersio2026joetsu-accessing-iceberg-in-s3tables-via-agent
kasacchiful
PRO
0
250
Vapor Mode でアクセシビリティは 壊れないか検証した話
fuqda
1
300
社内AIエージェント「Askワンバン」における コストチューニングの取り組み
t0yohei
0
120
そのデザイントークン、Flutterでも同じ見た目になりますか?
nakamizu
0
220
Python Lambdaにおけるテストしやすい設計とAI支援の活用 / Designing Testable Python Lambda Functions with AI
kitano_yuichi
1
270
オーケストレーション記述言語 Katari
yukikurage
0
220
Enforcing Your Architecture with Unit Tests in the AI Era (Swift Connection X)
steliosf
PRO
1
110
Kotlinの15年とServer-Side Kotlin
n_takehata
1
190
Featured
See All Featured
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
500
Embracing the Ebb and Flow
colly
88
5.2k
From π to Pie charts
rasagy
1
430
Building AI with AI
inesmontani
PRO
1
1.3k
Designing Powerful Visuals for Engaging Learning
tmiket
1
630
Facilitating Awesome Meetings
lara
57
7.2k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2.1k
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
970
Designing for humans not robots
tammielis
254
26k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
570
BBQ
matthewcrist
90
10k
Transcript
カンタン楽しい マイコンの世界 くまごろー
マイコンとは? ・マイクロコンピュータ(microcomputer)の略 ・CPU、メモリ、出入力ポート、USBポート、電源ポートのみ搭載 ・装置(ハードウェア)を自分で作成し、 出入力ポートに直接つないで動かす ↓こんなやつ
マイコンに出会ったきっかけ ・今年の8月頃 『コンピュータはなぜ動くのか』の一節が目に入る・・・ >『学習用マイコンの製作キットも市販されています』 → 買うしかない!
今回購入したのは ・『Arduino』 ・使用言語はC ・これ以外だと、ラズベリーパイという機種が有名(言語:Python)
想像以上のパーツ
主なパーツ 他には ・「光センサー」 ・「温度センサー」等々
早速挑戦してみる。
光センサーを使って光感知装置を作る。 ・光センサーを使用して光量を感知 ・三色のLEDライトを用意 ・光の強弱で点灯するライトが変わる(青>緑>赤)
光センサーで使って光感知装置を作る。
回路図で示すとこんな感じ
実際の動き
光センサーを軽く遮ると緑ランプが点灯
完全に遮ると赤色ランプが点灯する
今回のコード void loop() { /*略*/ if(ledVal < 50){ //入力値が50以下の時 analogWrite(3,255);
//青色が点灯 analogWrite(4,0); analogWrite(5,0); }else if(ledVal < 100){ // 入力値が51~99の時 analogWrite(3,0); analogWrite(4,255); //緑色が点灯 analogWrite(5,0); }else { //入力値が100以上の時 /*以下略*/ → やってることは単純
マイコンに挑戦して得られること ・「パソコンの仕組み」を肌で感じられる ・「自分のコードで物が動いてる」実感がすごい ・ハードも自分で作るので、組み込みの知識もつく(かも?)
マイコンはIoTの入口 ・温湿度センサーで室内の温度を読み取り、エアコンを操作する ・郵便受けに手紙が届いたらスマホにお知らせ ・Linux系OSを入れて普通のパソコンとして使用 などなど・・・
ご清聴ありがとうございました!