とりあえずサーボモーターとAmazon Dash Buttonは結束バンドで固定しています。 Arduinoでサーボモーターを動かす Raspberry PiのGPIOに接続するための部材が足りなかったので、少々面倒くさいですがArduino経由でサーボモーターを操作するようにしました。 ちゃんと準備していればArduinoは不要です。 シリアル通信でAを受信したときにサーボモーターを少し動かしAmazon Dash Buttonを押すようにしています。 #include <Servo.h> const int pin = 8; Servo myservo; void setup() { myservo.attach(pin); Serial.begin(9600); } void loop() { if (Serial.available() > 0) { byte res = Seri