Submit Search
Upload
Raspberry piでpwmを使ってみる
•
3 likes
•
13,332 views
Yukiyoshi Yoshimoto
Follow
Raspberry piでpwmを使ってみたときのメモ
Read less
Read more
Devices & Hardware
Report
Share
Report
Share
1 of 16
Download now
Download to read offline
Recommended
OSC2020 Online/Spring 運営スタッフの手引き
OSC2020 Online/Spring 運営スタッフの手引き
VirtualTech Japan Inc./Begi.net Inc.
OSC2020 Online/Spring 講師の手引き
OSC2020 Online/Spring 講師の手引き
VirtualTech Japan Inc./Begi.net Inc.
7
7
Shiho Sue
OSCオンライン北海道 講師の手引き 暫定版
OSCオンライン北海道 講師の手引き 暫定版
VirtualTech Japan Inc./Begi.net Inc.
Windows Home Server リモート接続 環境設定
Windows Home Server リモート接続 環境設定
hirookun
OSC2020オンライン 運営スタッフの手引き
OSC2020オンライン 運営スタッフの手引き
VirtualTech Japan Inc./Begi.net Inc.
無印Pentium debian install memo
無印Pentium debian install memo
Yukiyoshi Yoshimoto
ADS-B on raspberry pi
ADS-B on raspberry pi
Yukiyoshi Yoshimoto
Recommended
OSC2020 Online/Spring 運営スタッフの手引き
OSC2020 Online/Spring 運営スタッフの手引き
VirtualTech Japan Inc./Begi.net Inc.
OSC2020 Online/Spring 講師の手引き
OSC2020 Online/Spring 講師の手引き
VirtualTech Japan Inc./Begi.net Inc.
7
7
Shiho Sue
OSCオンライン北海道 講師の手引き 暫定版
OSCオンライン北海道 講師の手引き 暫定版
VirtualTech Japan Inc./Begi.net Inc.
Windows Home Server リモート接続 環境設定
Windows Home Server リモート接続 環境設定
hirookun
OSC2020オンライン 運営スタッフの手引き
OSC2020オンライン 運営スタッフの手引き
VirtualTech Japan Inc./Begi.net Inc.
無印Pentium debian install memo
無印Pentium debian install memo
Yukiyoshi Yoshimoto
ADS-B on raspberry pi
ADS-B on raspberry pi
Yukiyoshi Yoshimoto
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
More Related Content
Featured
2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
Marius Sescu
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
marketingartwork
Skeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
Introduction to Data Science
Introduction to Data Science
Christy Abraham Joy
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
Vit Horky
The six step guide to practical project management
The six step guide to practical project management
MindGenius
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
Featured
(20)
2024 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 ChatGPT
Product 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 Health
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
Skeleton Culture Code
Skeleton Culture Code
PEPSICO 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)
How 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 Insights
Trends 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 summary
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
Google'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
Introduction to Data Science
Introduction to Data Science
Time Management & Productivity - Best Practices
Time Management & Productivity - Best Practices
The 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...
Raspberry piでpwmを使ってみる
1.
Raspberry Piで PWMを使ってみる!
オープンソースアンカンファレンス 鹿児島 2014/11/24(Mon) 2014/11/24 1
2.
なぜPWM • なぜなら
– 金魚の水槽にLED光源を取り付ける! – 手動でON/OFFは情けない・・・ – ならば、手持ちのラズパイでON/OFFする – せっかくなのでPWMで調光制御 (日の出・日の入り時はフェードイン・フェードアウト) そんなこと、何の意味があるの? 売ってるん じゃない? 2014/11/24 2
3.
出展:wikimedia 2014/11/24 3
4.
必要機材 ON/OFF基板 (パワーMOSが載ってるだけ)
Raspberry PI 2014/11/24 4
5.
環境 2014/11/24 5
6.
さてソフトは・・・ • Facebookで相談し
たところ「wiringPi」 がいいらしいことを 教えてもらう。 • GPIOの制御以外に I2CやPWMなんか も、コマンドラインか ら操作可能! http://wiringpi.com/ 2014/11/24 6
7.
ソフトの準備 ★参考にしたblogの内容を基にソフトの準備を行う。 ■関連パッケージのインストール出典:https://projects.drogon.net/raspberry-pi/wiringpi/download-and-install/
sudo apt-get install git-core sudo apt-get update sudo apt-get upgrade git clone git://git.drogon.net/wiringPi cd wiringPi git pull origin cd wiringPi ./build ■I2Cを使う場合はこちら出典:https://projects.drogon.net/raspberry-pi/wiringpi/download-and-install/ sudo apt-get install git-core Sudo apt-get install libi2c-dev sudo apt-get update sudo apt-get upgrade git clone git://git.drogon.net/wiringPi cd wiringPi git pull origin cd wiringPi ./build 2014/11/24 7
8.
やってみる ■実行 gpio
mode 1 pwm gpio pwm 1 512 GPIO-1をPWMモードにする Dutyを50%に設定(設定値の範囲ははデフォルト0-1023) この値を変化させれば調光できるはず! 2014/11/24 8
9.
ちょっと調べる • manpageにこんなオプションが!!
– gpio pwm-bal – gpio pwm-ms pwm-bal/pwm-ms Change the PWM mode to balanced (the default) or mark:space ratio (traditional) 2014/11/24 9
10.
実験!! 2014/11/24 10
11.
実験方法 • pwm-balとpwm-ms時それぞれ設定値を変化
させ、出力パルスの周波数とDutyを計測す る。 • 設定値は0~1023まで10ステップで増加させ る。 • 周波数とDutyはオシロスコープの演算機能で 測定する。 2014/11/24 11
12.
結果(pwm-bal) 2014/11/24 12
13.
結果(pwm-ms) 2014/11/24 13
14.
つまりこうか・・・ 出展:wikimedia 2014/11/24
14
15.
まとめ(恐らくこうだろう・・・) • pwm-balオプション
– 周波数可変 – モータ制御などのインバータ用途や アナログ値を得たい人向け(DAC?) • pwm-msオプション – 周波数一定 – 昔ながらのDuty制御 2014/11/24 15
16.
最後に 慌てて書いているので、言葉足らずや誤りなどあるかも知れません。 気づいた人は教えて頂けると幸いです。
m(_ _)m 2014/11/24 16
Download now