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
Transcript
17 slides
カンタン楽しい マイコンの世界 くまごろー
マイコンとは? ・マイクロコンピュータ(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を入れて普通のパソコンとして使用 などなど・・・
ご清聴ありがとうございました!
More Decks by kumaGoro95
See All by kumaGoro95
アジャイルの名を捨ててアジャイルをやる ─アジャイルに忌避感のある現場での“困りごと駆動”の実践─
kumagoro95
0
530
昭和の職場からアジャイルの世界へ
kumagoro95
1
830
DDDやってみたら 実装以前の領域での学びが深かった話
kumagoro95
13
8.8k
要件定義で得た学び・気づき
kumagoro95
4
2.7k
メンバーのわかりませんはチームが成長するチャンス.pdf
kumagoro95
1
470
ふりかえりでふりかえることしかできなかったジュニアチームが、次の打ち手を出せるチームになるのにやったこと
kumagoro95
3
1.6k
Githubのアクティビティ履歴からチームの健康状態を知る(Findy Teams使ってみた)
kumagoro95
0
680
プログラミングで小数計算すると なんで誤差が発生するのか?
kumagoro95
0
320
導入事例を通じて理解するドメイン駆動設計
kumagoro95
0
550
Other Decks in Programming
See All in Programming
Performance Optimization With LLMs
xleitix
0
250
React Native에 현대적인 빌드 도구 더하기: Rollipop 구현기
leegeunhyeok
0
180
느린 네트워크와 저사양 디바이스 사용자를 위한 웹뷰 로딩 시간 개선기
kmkim
1
220
動画プレイヤーはなぜカクつくのか 〜Flutterのレンダリングとネイティブの境界を解剖する〜
naruogram
0
330
Zero-Tap Sign-In対応、結局何をすればいいの?
mitohato14
0
2k
Snowflake Openflow Connector利用の勘所 / 20261024developersio2026tokyo-snowflake-openflow
kasacchiful
PRO
0
330
学びを記事・スライド・Xへ高速展開する― AI-assisted Learning Loopで回すコンテンツ生成術
ochtum
0
200
Modernizing iOS Apps
seyfoyun
0
150
Web3Dライブラリを作ってVue Custom Rendererの仕組みを理解しよう / lets learn vue custom renderer by making 3d library
drumath2237
1
130
우리의 Nitro Modules는 당신의 Turbo Modules보다 아름답다
l2hyunwoo
0
260
Coding with AI: How to trust the storyteller (AWS Community Day Adria, Ljubljana 2026)
slobodan
0
140
Spec-Driven Development - Why Vaadin Is the Perfect Fit
simas
PRO
0
240
Featured
See All Featured
技術選定の審美眼(2025年版) / Understanding the Spiral of Technologies 2025 edition
twada
PRO
121
130k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3.1k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
780
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.7k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
590
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
560
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
430
The Invisible Side of Design
smashingmag
301
52k
Building Better People: How to give real-time feedback that sticks.
wjessup
371
20k
Digital Ethics as a Driver of Design Innovation
axbom
PRO
2
520
The Language of Interfaces
destraynor
162
27k