Help with relay board project

Hello, I seem to be struggling with what should be a simple project. I am new to Arduino and programming; just a hobbyist trying to get started. Please be gentle with me ;).

I have an Arduino Uno R4 WiFi. I am trying to control some relays on an 8-channel Eegloo relay board, a 5V active low board (Amazon.com: ELEGOO 8 Channel DC 5V Relay Module with Optocoupler for Arduino Projects | Compatible with Arduino UNO R3 MEGA 1280 DSP ARM PIC AVR STM32, Active-low Inputs, NO/NC Terminals, Status LEDs : Industrial & Scientific). I have my boards wired as follows:

D8 of Arduino.......IN1 of relay board
Relay board GND......Arduino GND
VCC relay board.......Arduino 5V
Relay board JD-VCC......Seperate 5V supply (Amazon.com: HJ Garden Electronic Component Power Supply Module Assorted Kit for Arduino, Raspberry Pi, STM32, UNO, MEGA2560 830P Breadboard + Power Module + Jumper + 12V 1A Adaptor : Electronics)

The problem I am having is when my relay board activates, the contact does not engage either the NO or NC contacts. I can move the D8 signal to any channel on my relay board and the fault follows the enable signal. I have tried using a different identical relay board; no change. I have loaded the same program on a second Arduino board; no change. I've tried powering the coil from the Arduino itself, utilizing the jumper on the relay board between VCC & JD-VCC; no change. I can only conclude the issue is with my code. I have posted it below. Admittedly, I do not know how to program. I used AI to generate this code. If anyone has any insight what my problem is, please help!! I have been stuck on this for a few days. Thank you.

`#define RELAY1 8



// Active-low relay

#define RELAY_ON LOW

#define RELAY_OFF HIGH



void setup()

{

  // Set Relay 1 as an output

pinMode(RELAY1, OUTPUT);



  // Make sure the relay starts OFF

digitalWrite(RELAY1, RELAY_OFF);



  // Wait 3 seconds

delay(3000);



  // Turn Relay 1 ON

  // It will remain ON continuously.

digitalWrite(RELAY1, RELAY_ON);

}



void loop()

{

  // Nothing happens here.

  //

  // Relay 1 remains ON continuously.

}`

Does the LED on the relay board light up when you activate a relay?

The relay board "NC" most definitely connects, even without power. Verify you are measuring correctly.

The "logic" of HIGH and LOW might be inverted by an optocoupler at the logic input.

Yes

The the signal is going to the board OK.
Do you have your power supply connectd to the JD-VCC pin and the GND pin.

Yes

When the relay is energized, I have no continuity between the common and the NO, nor the common and NC. Its as if the common is getting stuck. Once I deenergize the board, I get continuity between the common and NC again. Again, I have tried another identical relay board and same behavior.

Then as @xfpd pointed you are measuring incorrectly.
Are you measuring resistance with a meter between COM and NO or NC?

Yes, I am using a meter to measure continuity between the common and the NO, and common and NC. Please don't think me arrogant for saying, but, although I am new to Arduino and coding, I have worked with electronics for 20 years. I am confident that I am using my meter correctly and am checking the relays correctly.

From the Elegoo Datasheet, found here with schematics and code (link at bottom of page): ELEGOO DC 5V Relay Module Datasheet – ELEGOO Official

We've all had moments (in our 20 to 60 years) when a second set of eyes was all that was needed after staring at the same "simple" problem all day. At least I have. No one is questioning your ability. The questions are to deduce the error from what exists and what does not. It could be the relay board, but that is to be discovered.

With the relay board disconnected from power and microcontroller... does each RELAY COM and RELAY NC have continuity?

Understood, thank you for your guidance!

Yes, when I disconnect power to the relay board, RELAY COM and RELAY NC have continuity.

And if you just connect GND and VCC to (depending on your JD-VCC jumper) to the board, do you hear the relays energize in any form (normal "clack" or quiet "click" sound)?

Yes, I can hear the relay's click when I apply power to the coil side. I have powered the coil both with jumpering between VCC/JD-VCC, and have also tried by removing the jumper and applying 5V directly to JD-VCC & taking 5V from the Arduino board to VCC. The LED on the relay board lights as well.

Well, nothing wrong with the code and you have done all the diagnostics you probably could do, so what is your conclusion?

The link to your AC/DC adapter in post #1 is for a 12V adapter.
Are you sure your adapter is 5V?

That is the input power. The output power is 5V.

From the product description-
" * Power Module: MB-102 breadboard DC voltage-stabilized source module, compatible with 5V, 3.3V; Input Voltage: DC 6.5-12V or USB power supply, Output 700 ma (MAX), two way independent control, can switch 0V / 3.3V / 5V."

It's pretty close to what 8ch relay board draws when all relays are energized.

Seems like other people have also had problems with that board and if it is built according to the schematics I can see why.

If the linear regulator on the MB102 is dropping 12V to 5V (7V), it may be able to supply only about 160mA before overheating, each relay coil draws 72mA.