SlideShare a Scribd company logo
1 of 18
Download to read offline
マイコン講習
ー第4回ー
K.Miyauchi
2021.12.07
目次
・ステッピングモータの基礎
・ステッピングモータの速度制御(1相励磁)
・ステッピングモータの速度制御(2相励磁)
(c) K.Miyauchi 2
本講習で使用するもの
パソコン:Windows, Mac
開発環境:Arduino IDE
マイコン:Arduino Leonardo
その他,回路周りの物品
(c) K.Miyauchi 3
回路図
(c) K.Miyauchi 4
ステッピングモータの基礎
ステッピングモータとは,
各相にパルスを送ることによって
回転させることのできるモータ.
ステッピングモータには構造の違いから,
・バイポーラ型
・ユニポーラ型
がある.
今回はバイポーラ型について説明する.
(c) K.Miyauchi 5
ステッピングモータの基礎
(c) K.Miyauchi 6
制御端子
バイポーラ:4ピン
ユニポーラ:5~6ピン
モータ本体
ステッピングモータの外観
ステッピングモータの基礎
(c) K.Miyauchi 7
N
S
ロータ
ステータ
コイルがまかれている
ステータ
コイルがまかれている
ステッピングモータの概略図
ステッピングモータの基礎
(c) K.Miyauchi 8
外観 内部
ロータ
(中心のギザギザしたもの)
ステータ
(まわりのコイル)
ステッピングモータの基礎
ステッピングモータには,
いくつかのコイル(ステータコイル)が入っている.
出力軸(ロータ)には、永久磁石が取り付けられている.
なかに入っているステータコイルに
順序よく電流を流して、順番に電磁石にする.
そのときに
ステータコイルにロータの永久磁石がひきつけられ,
ロータが順序よく回転する.
(c) K.Miyauchi 9
ステッピングモータの基礎
ステッピングモータの回転速度は,
ステップ時間(パルスの送信間隔)と
ステータコイルにどの順番にパルスを送るかで決まる.
ステッピングモータの制御方法は,
・1相励磁方式
・2相励磁方式
・1-2相励磁方式
・バーニア駆動(今回は省略)
がある.
(c) K.Miyauchi 10
ステッピングモータの基礎
(c) K.Miyauchi 11
N
S
A
A
B
ഥ
A
ഥ
B
1相励磁の方式のイメージ
ഥ
A
ഥ
B
B
ステッピングモータの基礎
(c) K.Miyauchi 12
N
S
A
B
A
B
2相励磁の方式のイメージ
ഥ
A
ഥ
B
ഥ
A
ഥ
B
ステッピングモータの基礎
(c) K.Miyauchi 13
N
S
A
B
A
B
1-2相励磁の方式のイメージ
ഥ
A
ഥ
B
ഥ
A
ഥ
B
ステッピングモータの基礎
1相励磁方式、2相励磁方式については、
ステッピングモータがもつ1ステップ角度そのまま使用できる
1-2相励磁方式については、
ステッピングモータがもつ1ステップ角度が半分になる
(c) K.Miyauchi 14
1相励磁 2相励磁 1-2相励磁
消費電力 〇 △ △
トルク △ 〇 △
ステッピングモータの速度制御(1相励磁)
(c) K.Miyauchi 15
この部分は
実装しなくてよい
以下の回路を実装して,1相励磁させてみましょう.
ステッピングモータの速度制御(1相励磁)
以下のプログラムを書いて1相励磁をさせてみましょう.
(c) K.Miyauchi 16
ステッピングモータの速度制御(2相励磁)
以下のプログラムを書いて2相励磁をさせてみましょう.また,1相
励磁の時と回転の様子を比較してみましょう.
(c) K.Miyauchi 17
演習
・ステッピングモータを1-2相励磁で駆動させよ.
・ボタンを1回押すごと(ON-OFF)に90度ずつ正転させよ.また,回
転中の入力は受け付けるものとする.
・PCからステッピングモータの制御を行いたい.制御コードを各ス
テップ時間[ms]とステップ数をスペース区切りで送信するとした.な
お,ステップ数が正のときは正転,負のときは,反転するもとする.
さらに回転終了時には,”complete”という文字を送信せよ.
例) 10 120 ⇒ステップ時間10ms 120ステップ正転 ⇒ complete
20 -720⇒ステップ時間20ms 720ステップ反転 ⇒ complete
(c) K.Miyauchi 18

More Related Content

Recently uploaded

Recently uploaded (11)

LoRaWAN無位置ロープ式水漏れセンサーWL03A 日本語マニュアル
LoRaWAN無位置ロープ式水漏れセンサーWL03A 日本語マニュアルLoRaWAN無位置ロープ式水漏れセンサーWL03A 日本語マニュアル
LoRaWAN無位置ロープ式水漏れセンサーWL03A 日本語マニュアル
 
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
 
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
LoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイスLoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイス
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
 
LoRaWAN無位置ロープ型水漏れセンサー WL03A-LB/LSカタログ ファイル
LoRaWAN無位置ロープ型水漏れセンサー WL03A-LB/LSカタログ ファイルLoRaWAN無位置ロープ型水漏れセンサー WL03A-LB/LSカタログ ファイル
LoRaWAN無位置ロープ型水漏れセンサー WL03A-LB/LSカタログ ファイル
 
新人研修 後半 2024/04/26の勉強会で発表されたものです。
新人研修 後半        2024/04/26の勉強会で発表されたものです。新人研修 後半        2024/04/26の勉強会で発表されたものです。
新人研修 後半 2024/04/26の勉強会で発表されたものです。
 
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
 
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
 
Utilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native IntegrationsUtilizing Ballerina for Cloud Native Integrations
Utilizing Ballerina for Cloud Native Integrations
 
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
 
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
 
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
知識ゼロの営業マンでもできた!超速で初心者を脱する、悪魔的学習ステップ3選.pptx
 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

第4回電子制御講習