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
700
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
800
カメラ切替器ATEM Miniをobnizで操作してみた / Controlling ATEM Mini with obniz
magicpocket
0
590
obnizOSプラグインを試してみた / obnizOS Plugin
magicpocket
0
710
CactusphereでAzure Sphereを体験 / First impression of Cactusphere and Azure Sphere
magicpocket
0
360
M5Stackファミリーで赤外線学習リモコンを作った話 / Making IR learning remote control with M5Stack family
magicpocket
0
1.4k
重症先延ばし案件を片付けた話 / got done long procrastinated projects
magicpocket
0
760
本「Jetson Nano超入門」の見取り図 / Contents map of Jetson Nano book
magicpocket
0
400
本「NoodlとNode-REDではじめるフローベースドプロトタイピング」の見取り図 / contents map of Noodl and Node-Red book
magicpocket
0
440
「IoT入門」の見取り図 / Contents Map for IoT
magicpocket
0
780
Other Decks in Programming
See All in Programming
3 Effective Rules for Using Signals in Angular
manfredsteyer
PRO
0
110
ローコードSaaSのUXを向上させるためのTypeScript
taro28
1
610
レガシーシステムにどう立ち向かうか 複雑さと理想と現実/vs-legacy
suzukihoge
14
2.2k
CSC509 Lecture 11
javiergs
PRO
0
180
Snowflake x dbtで作るセキュアでアジャイルなデータ基盤
tsoshiro
2
520
Jakarta Concurrencyによる並行処理プログラミングの始め方 (JJUG CCC 2024 Fall)
tnagao7
1
290
Hotwire or React? ~アフタートーク・本編に含めなかった話~ / Hotwire or React? after talk
harunatsujita
1
120
Jakarta EE meets AI
ivargrimstad
0
140
リアーキテクチャxDDD 1年間の取り組みと進化
hsawaji
1
220
Amazon Qを使ってIaCを触ろう!
maruto
0
400
Compose 1.7のTextFieldはPOBox Plusで日本語変換できない
tomoya0x00
0
190
よくできたテンプレート言語として TypeScript + JSX を利用する試み / Using TypeScript + JSX outside of Web Frontend #TSKaigiKansai
izumin5210
6
1.7k
Featured
See All Featured
Fashionably flexible responsive web design (full day workshop)
malarkey
405
65k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
109
49k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Typedesign – Prime Four
hannesfritz
40
2.4k
[RailsConf 2023] Rails as a piece of cake
palkan
52
4.9k
Git: the NoSQL Database
bkeepers
PRO
427
64k
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
Happy Clients
brianwarren
98
6.7k
It's Worth the Effort
3n
183
27k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
27
4.3k
Put a Button on it: Removing Barriers to Going Fast.
kastner
59
3.5k
StorybookのUI Testing Handbookを読んだ
zakiyama
27
5.3k
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