While the Raspberry Pi has very good support for an I2C bus, a lot of very cool chips – including the in system programmer for just about every ATtiny and ATmega microcontroller – use an SPI bus.
Raspberry Pi 4とモータードライブ基板を使ってステッピングモーターをPythonで操作する一連の手順をまとめます。 モータードライバ基板 ステッピングモーターはRaspberry Piから特殊な波形(PWM:パルス幅変調 Pluse Width Modulation)を受信する事により駆動します。