0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[構想編(妄想)]Arduino Modulino Buzzer(STM32C011)もどきを作って遊ぶ1

Last updated at Posted at 2025-10-24

目的

  • I2Cのブザーを作って自己満足する

仕様

  • STM32C011F4P6を使う
  • I2Cを使う
  • I2Cアドレスは、0x1e
  • I2Cスレーブ
  • データ長は、8バイト
  • 前半4バイトは、周波数:後半4バイトは、鳴る時間
  • int、2個の構造体を使う
  • PWM 50%:50%で周波数を作る
  • データを受信したら即時、割り込みでPWMに反映
  • 設定時間になったら鳴りやんで、無限ループ
  • 時間を比較して0または、マイナスになったら周波数をほぼ0にしてループ

そんな、かんじ?

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?