LoginSignup
0
0

More than 3 years have passed since last update.

(作成中)【RaspberryPi】WiringPiでPWM

Posted at

概要

自走式カメラのための覚え書き
本記事ではカメラのチルト用サーボモータの制御について記載。

実行環境

MCU:Raspberry Pi Zero W
OS:Raspberry Pi OS(buster)
サーボモータ:SG-90

SG-90の使い方

データシート
https://akizukidenshi.com/download/ds/towerpro/SG90_a.pdf
※データシート抜粋
image.png
・PWM周波数は50Hz
・0.5ms → Duty 2.5%
・2.4ms → Duty 12.5%

RPi.GPIOGPIO.PWM で制御したところ、出力されるDutyの精度が低く、Dutyを変えていないのにカメラが上下にピクピク動き続ける現象が発生

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0