@ Moppi
Mach dir mal über das Relaismodul keine Gedanken es schaltet einfach auf HIGH sobald an Pin IN1 / IN2 ein LOW Signal anliegt ( Optokoppler getrennt)
https://www.ebay.de/itm/2-Kanal-Rela...oAAOSw5LZctG1Z
Werbung
@ Moppi
Mach dir mal über das Relaismodul keine Gedanken es schaltet einfach auf HIGH sobald an Pin IN1 / IN2 ein LOW Signal anliegt ( Optokoppler getrennt)
https://www.ebay.de/itm/2-Kanal-Rela...oAAOSw5LZctG1Z
const int buttonPin = 0; // the number of the pushbutton pin
const int Rel1 = 1; // the number of the Relais1 pin
const int Rel2 = 2; // the number of the Relais2 pin
das ist aber seltsam:
Pins 0+1 werden üblicherweise für Serial (UART) verwendet - das würde ich also nicht verwenden....
besser du nimmst z.B. Pins 2,3 und 4.
Oder z.B. 10, 11 und 12 ...
außerdem brauchst du keine const int verwenden, int oder byte reicht.
Lesezeichen