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
710
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
810
カメラ切替器ATEM Miniをobnizで操作してみた / Controlling ATEM Mini with obniz
magicpocket
0
590
obnizOSプラグインを試してみた / obnizOS Plugin
magicpocket
0
720
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
770
本「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
790
Other Decks in Programming
See All in Programming
Mermaid x AST x 生成AI = コードとドキュメントの完全同期への道
shibuyamizuho
0
160
ブラウザ単体でmp4書き出すまで - muddy-web - 2024-12
yue4u
2
460
フロントエンドのディレクトリ構成どうしてる? Feature-Sliced Design 導入体験談
osakatechlab
8
4.1k
The rollercoaster of releasing an Android, iOS, and macOS app with Kotlin Multiplatform | droidcon Italy
prof18
0
150
Criando Commits Incríveis no Git
marcelgsantos
2
170
14 Years of iOS: Lessons and Key Points
seyfoyun
1
770
42 best practices for Symfony, a decade later
tucksaun
1
180
Cloudflare MCP ServerでClaude Desktop からWeb APIを構築
kutakutat
1
530
range over funcの使い道と非同期N+1リゾルバーの夢 / about a range over func
mackee
0
110
Keeping it Ruby: Why Your Product Needs a Ruby SDK - RubyWorld 2024
envek
0
180
CSC305 Lecture 25
javiergs
PRO
0
130
CSC305 Lecture 26
javiergs
PRO
0
140
Featured
See All Featured
Chrome DevTools: State of the Union 2024 - Debugging React & Beyond
addyosmani
2
170
Music & Morning Musume
bryan
46
6.2k
Making the Leap to Tech Lead
cromwellryan
133
9k
Done Done
chrislema
181
16k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
6.9k
We Have a Design System, Now What?
morganepeng
51
7.3k
How To Stay Up To Date on Web Technology
chriscoyier
789
250k
Reflections from 52 weeks, 52 projects
jeffersonlam
347
20k
How to Think Like a Performance Engineer
csswizardry
22
1.2k
Build your cross-platform service in a week with App Engine
jlugia
229
18k
Building a Scalable Design System with Sketch
lauravandoore
460
33k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
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