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
670
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
770
カメラ切替器ATEM Miniをobnizで操作してみた / Controlling ATEM Mini with obniz
magicpocket
0
570
obnizOSプラグインを試してみた / obnizOS Plugin
magicpocket
0
690
CactusphereでAzure Sphereを体験 / First impression of Cactusphere and Azure Sphere
magicpocket
0
340
M5Stackファミリーで赤外線学習リモコンを作った話 / Making IR learning remote control with M5Stack family
magicpocket
0
1.3k
重症先延ばし案件を片付けた話 / got done long procrastinated projects
magicpocket
0
740
本「Jetson Nano超入門」の見取り図 / Contents map of Jetson Nano book
magicpocket
0
390
本「NoodlとNode-REDではじめるフローベースドプロトタイピング」の見取り図 / contents map of Noodl and Node-Red book
magicpocket
0
420
「IoT入門」の見取り図 / Contents Map for IoT
magicpocket
0
770
Other Decks in Programming
See All in Programming
エラーレスポンス設計から考える、0→1開発におけるGraphQLへの向き合い方
bicstone
5
1.5k
LangChainの現在とv0.3にむけて
os1ma
4
890
How to Break into Reading Open Source
kaspth
1
210
Using Livebook to build and deploy internal tools @ ElixirConf 2024
hugobarauna
0
240
Scala アプリケーションのビルドを改善してデプロイ時間を 1/4 にした話 | How I improved the build of my Scala application and reduced deployment time by 4x
nomadblacky
1
170
Prompt Cachingは本当に効果的なのか検証してみた.pdf
ttnyt8701
0
530
Some more adventure of Happy Eyeballs
coe401_
2
180
1人で挑むSwiftコンパイラ 〜型システム入門編〜
s_shimotori
0
340
いまから追い上げる、Jetpack Compose トレーニング
nyafunta9858
0
300
月間4.5億回再生を超える大規模サービス TVer iOSアプリのリアーキテクチャ戦略 - iOSDC2024
techtver
PRO
1
820
サーバーレスで負荷試験!Step Functions + Lambdaを使ったk6の分散実行
shuntakahashi
6
1.5k
Why Prism?
kddnewton
4
1.7k
Featured
See All Featured
A Modern Web Designer's Workflow
chriscoyier
691
190k
jQuery: Nuts, Bolts and Bling
dougneiner
61
7.4k
Fireside Chat
paigeccino
31
2.9k
In The Pink: A Labor of Love
frogandcode
139
22k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
43
2k
Build The Right Thing And Hit Your Dates
maggiecrowley
30
2.3k
Learning to Love Humans: Emotional Interface Design
aarron
270
40k
Gamification - CAS2011
davidbonilla
79
4.9k
Docker and Python
trallard
39
3k
What's new in Ruby 2.0
geeforr
340
31k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
246
1.3M
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.2k
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