Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Tips for ESP32 board beginners
Search
Shingo Fukui
November 27, 2018
Programming
0
720
Tips for ESP32 board beginners
obniz×M5Stack×NefryBT三つ巴Meetup!【ESP32開発ボードLT祭】
の発表資料
Shingo Fukui
November 27, 2018
Tweet
Share
More Decks by Shingo Fukui
See All by Shingo Fukui
IoTのリモートプレゼンで使い易い俯瞰カメラを模索 / Overhead camera settings for IoT presentation
magicpocket
0
820
カメラ切替器ATEM Miniをobnizで操作してみた / Controlling ATEM Mini with obniz
magicpocket
0
600
obnizOSプラグインを試してみた / obnizOS Plugin
magicpocket
0
730
CactusphereでAzure Sphereを体験 / First impression of Cactusphere and Azure Sphere
magicpocket
0
370
M5Stackファミリーで赤外線学習リモコンを作った話 / Making IR learning remote control with M5Stack family
magicpocket
0
1.4k
重症先延ばし案件を片付けた話 / got done long procrastinated projects
magicpocket
0
780
本「Jetson Nano超入門」の見取り図 / Contents map of Jetson Nano book
magicpocket
0
410
本「NoodlとNode-REDではじめるフローベースドプロトタイピング」の見取り図 / contents map of Noodl and Node-Red book
magicpocket
0
450
「IoT入門」の見取り図 / Contents Map for IoT
magicpocket
0
790
Other Decks in Programming
See All in Programming
どうして手を動かすよりもチーム内のコードレビューを優先するべきなのか
okashoi
3
940
Flatt Security XSS Challenge 解答・解説
flatt_security
0
790
盆栽転じて家具となる / Bonsai and Furnitures
aereal
0
2.1k
はてなにおけるfujiwara-wareの活用やecspressoのCI/CD構成 / Fujiwara Tech Conference 2025
cohalz
3
3k
2,500万ユーザーを支えるSREチームの6年間のスクラムのカイゼン
honmarkhunt
6
3.3k
PHPUnitしか使ってこなかった 一般PHPerがPestに乗り換えた実録
mashirou1234
0
450
SwiftUIで単方向アーキテクチャを導入して得られた成果
takuyaosawa
0
110
Fixstars高速化コンテスト2024準優勝解法
eijirou
0
190
React 19でお手軽にCSS-in-JSを自作する
yukukotani
5
590
.NETでOBS Studio操作してみたけど…… / Operating OBS Studio by .NET
skasweb
0
130
선언형 UI에서의 상태관리
l2hyunwoo
0
270
PHPで学ぶプログラミングの教訓 / Lessons in Programming Learned through PHP
nrslib
4
1.1k
Featured
See All Featured
Making Projects Easy
brettharned
116
6k
Documentation Writing (for coders)
carmenintech
67
4.6k
Become a Pro
speakerdeck
PRO
26
5.1k
Fireside Chat
paigeccino
34
3.2k
Agile that works and the tools we love
rasmusluckow
328
21k
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.3k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
7k
Into the Great Unknown - MozCon
thekraken
34
1.6k
Code Review Best Practice
trishagee
65
17k
YesSQL, Process and Tooling at Scale
rocio
170
14k
How STYLIGHT went responsive
nonsquared
96
5.3k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
248
1.3M
Transcript
COPYRIGHT ©2018 SHINGO FUKUI ʮΘʔ͍ɺαϯϓϧϓϩάϥϜ͕ಈ͍ͨʂʯ ͷ࣍ʹਐΉͨΊͷ౾ࣝ 201811݄27 obniz×M5Stack×NefryBTࡾͭMeetup! ʲESP32։ൃϘʔυLTࡇʳ Ҫ
ᚸޗ
COPYRIGHT ©2018 SHINGO FUKUI ࣗݾհ Ҫᚸޗ @SilkAndTikit ιϑτΣΞΤϯδχΞʢJava, JavaScript, …ʣ
IoTͷษڧΛ࢝Ίͯ̏ܦա 2 IoTϋϯζΦϯ։࠵ ࣗಈਫΓػ৬ਓ https://iot-gym.connpass.com
COPYRIGHT ©2018 SHINGO FUKUI αϯϓϧϓϩάϥϜΛಈ͔͢ͷ؆୯ʂ ྫɿM5GO IoT Starter Kit ίωΫλʔͷ৭Λ߹Θͤͯܨ͙͚ͩ
3
COPYRIGHT ©2018 SHINGO FUKUI ެࣜҎ֎ͷ෦Λܨ͝͏ͱ͢Δͱ ྫɿGroveαʔϘϞʔλΛM5GOʹܨ͙ 4 A,B,CͷͲ͜ʹܨ͙ʁ ͳͥͦ͜ͳͷʁ ଞμϝͳͷʁ
ϓϩάϥϜͰͷPIN൪߸ ԿΛࢦఆ͢Δʁ
COPYRIGHT ©2018 SHINGO FUKUI ϐϯ൪߸ͱػೳͷؔ 5
COPYRIGHT ©2018 SHINGO FUKUI υΩϡϝϯτΛݟͯΈΔͱ M5GOͷ߹ 6
COPYRIGHT ©2018 SHINGO FUKUI υΩϡϝϯτΛݟͯΈΔͱ Nefry-BTͷ߹ 7 ɿ্ਤҪ͕࡞ͨ͠ਤͰ͢ɻNefry-BT R3ͷใͰ͢
COPYRIGHT ©2018 SHINGO FUKUI ESP32͕࣋ͭػೳͱGroveϐϯͷؔ σδλϧೖྗɾग़ྗ Ξφϩάೖྗɾग़ྗ PWM(Pulse Width Modulation)
I2C SPI UART ɹɹɾɾɾ 8 ICνοϓͷϐϯ Groveϐϯ ػೳׂΓͯʢՄมʣ ݻఆଓ G21
COPYRIGHT ©2018 SHINGO FUKUI ESP32ͷϐϯͷػೳׂΓͯ 9 http://wiki.ai-thinker.com/_media/esp32/docs/esp32_chip_pin_list_en.pdf
COPYRIGHT ©2018 SHINGO FUKUI ྫ͑ 10 PORT໊ PIN൪߸ ೖग़ྗ σϑΥϧτػೳ
PORT A 21 ೖྗɾग़ྗ I2C SDA 22 ೖྗɾग़ྗ I2C SCL PORT B 26 ೖྗɾग़ྗ 36 ೖྗͷΈ PORT C 16 ೖྗɾग़ྗ UART RXD ? 17 ೖྗɾग़ྗ UART TXD ?
COPYRIGHT ©2018 SHINGO FUKUI σόΠεͷΈΛཧղ͢Δ 11
COPYRIGHT ©2018 SHINGO FUKUI ྫɿobnizͷαʔϘϞʔλʔϥΠϒϥϦ ճస֯Λࢦఆ͢Δؔ ύϥϝʔλઃఆ༻ม 12 ɾͱΓ͋͑ͣಈ࡞ͤ͞Δ͚ͩͳΒangle( )ͰOK
ɾಈ࡞ͷਫ਼Λ্͛ΔʹrangeͷΛมߋ ɾͦͷҙຯΛཧղ͢ΔʹαʔϘϞʔλͷ੍ޚํࣜͷཧղ͕ඞཁ
COPYRIGHT ©2018 SHINGO FUKUI αʔϘϞʔλͷ੍ޚํࣜ ճసൣғ180 पظ 50Hzʢ20msʣ ύϧε෯ 0°:
600μs 90°: 1,500μs 180°: 2,400μs Tower Pro SG92Rͷ߹ ύϧε෯ͷͰճస֯Λ੍ޚ͢Δ
COPYRIGHT ©2018 SHINGO FUKUI ใೖखઌ 14
COPYRIGHT ©2018 SHINGO FUKUI ESP32 ݩͷυΩϡϝϯτ https://www.espressif.com/en/support/download/ documents?keys=ESP32 εΠοναΠΤϯεͷղઆϖʔδ(WROOM-32ͷใ?ʣ https://trac.switch-science.com/wiki/esp32_tips
ଞʹɺάάΔͱ͍ͬͺ͍ग़ͯ͘Δ ɹݕࡧϫʔυɿESP32, WROOM-32ͳͲ 15
COPYRIGHT ©2018 SHINGO FUKUI Facebookάϧʔϓ obniz: obnizϑΝϯɹ https://www.facebook.com/groups/515801048886860/ M5Stack M5Stack
User Group Japan https://www.facebook.com/groups/154504605228235/ Nefry NefryϢʔβάϧʔϓ https://www.facebook.com/groups/nefry/ 16
COPYRIGHT ©2018 SHINGO FUKUI obnizͷใ ൢചݩɿ CambrianRobotics inc. https://obniz.io ϑΥʔϥϜɿ
https://forum.obniz.io FacebookΞΧϯτɹObniz https://www.facebook.com/obniz.io/ connpassάϧʔϓɹobniz.ioɹhttps://obniz.connpass.com FacebookάϧʔϓɹobnizϑΝϯɹ https://www.facebook.com/groups/515801048886860/ 17
COPYRIGHT ©2018 SHINGO FUKUI M5Stackͷใ ൢചݩɹM5Stack Inc. http://m5stack.com/ ຊࠃൢചཧళɹεΠοναΠΤϯε https://www.switch-science.com
Facebookάϧʔϓ M5Stack User Group Japan https://www.facebook.com/groups/154504605228235/ connpasάϧʔϓɹM5Stack User Group Japan https://m5stack.connpass.com ͦͷଞ ࣾͷJimmy Lai͞Μ͕Facebookάϧʔϓtwitterʹසൟʹߘͯ͠ ͍Δɻ24࣌ؒಇ͍͍ͯΔʁɹӨऀ͕ࡾਓ͙Β͍͍Δʁ 18
COPYRIGHT ©2018 SHINGO FUKUI Nefryͷใ ൢചݩɹdotstudio,inc https://dotstud.io Facebookάϧʔϓ ɹNefryϢʔβάϧʔϓ https://www.facebook.com/groups/nefry/
connpassάϧʔϓɹNefryUserMeetup https://nefry.connpass.com ͦͷଞ twitterͰnefryͱ͍͏จࣈྻΛೖΕͯʮಈ͔ͳ͍ʯʮࠔͬ ͨʯͱঢ়گΛͭͿ͘ͱɺ࡞ऀ͕ϔϧϓͯ͘͠ΕΔʢ ߹͕ଟ͍ʣɻ 19