Controlling UM3561 siren module from Arduino UNO

Upload the following program to your Arduino board. While uploading, Arduino board should be disconnected from the power source. While operating the siren, Arduino UNO and siren module should be powered from the same power source.

#define ENABLE 5 // Control pin to BC847 base #define SEL1_TRANS_BASE 2 // (CTRL1) Base of transistor to which PIN 6 (SEL1) of UM3561 connected #define SEL2_TRANS_BASE 3 // (CTRL2) Base of transistor to which PIN 1 (SEL2) of UM3561 connected #define SEL1_BYPASS_GND 4 // (CTRL3) Base of transistor to which SEL1 connected for bypassing to GND // the setup function runs once when you press reset or power the board void setup() { // initialize digital pin LED_BUILTIN as an output.
Read More