Hello together ![]()
i have a problem to supply my Relay Modul with external power.
here is my setup:
the black cable from the right is connected to the electricity of the house (230V germany).
between I have a power supply to get from 230V to 5V. (TSP-05) this will go to the relay module.
the arduino gets power from the blue USB cable connected to my macbook.
it has configured pin 4 to trigger relay.
int relay = 4;
void setup() {
 pinMode(relay, OUTPUT);
}
void loop() {
 digitalWrite(relay, HIGH);
 delay(2000);
}
To debug this i tried two things:
supply the relay from the arduino. then the relay works as expexted
hang an LED to power adapter to proove that the adapter is working correctly
i am using a arduino ATmega328
can anyone help me please with this? ![]()





