relayEquipmentManager icon indicating copy to clipboard operation
relayEquipmentManager copied to clipboard

BUG - Relays are switched.

Open spifftek70 opened this issue 1 year ago • 10 comments

R6 and R7 are switched. When I use REM to turn on R6, the light for R7 comes on the Eight Relays 4A/120V 8-Layer Stackable HAT board. and vice-versa.

spifftek70 avatar Dec 29 '24 20:12 spifftek70

Can you confirm which version FW you have?

tagyoureit avatar Dec 30 '24 12:12 tagyoureit

Can you confirm which version FW you have?

megabas v1.2.6 Copyright (c) 2016 - 2023 Sequent Microsystems

This is free software with ABSOLUTELY NO WARRANTY.
For details type: megabas -warranty

and

8relind v1.1.1 Copyright (c) 2016 - 2020 Sequent Microsystems

This is free software with ABSOLUTELY NO WARRANTY.
For details type: 8relind -warranty

Running the DIY Nixie Pool Controller instructions to the letter.

Video of error

spifftek70 avatar Dec 30 '24 17:12 spifftek70

  1. What version hardware is the 8relind board? Looks like they are up to v6 per the picture on their website.
  2. Do you have the latest FW?
  3. If you use the [command line)[https://github.com/SequentMicrosystems/8relind-rpi/tree/main/python] and trigger the relays are they lighting up the correct leds?

Reason I specifically ask about the last one is Sequent has been known to either have leds swapped/reversed/incorrectly screen printed. They have also been known to swap registers between hardware versions.

tagyoureit avatar Dec 31 '24 01:12 tagyoureit

  1. the newest version from their site.
  2. yes... yes I do.
  3. You might be on to something. The relays for 6 & 7 were reversed when I tested them with this script:
import lib8relind
import time

# Stack level (0 by default)
stack_level = 0

# Number of relays on the board
num_relays = 8

# Iterate through each relay
for relay in range(1, num_relays + 1):
    # Turn the relay ON
    lib8relind.set(stack_level, relay, 1)
    print(f"Relay {relay} is ON")
    time.sleep(3)  # Wait for 3 seconds

    # Turn the relay OFF
    lib8relind.set(stack_level, relay, 0)
    print(f"Relay {relay} is OFF")

which resulted in this:

$ python relay_sequence.py
Relay 1 is ON
Relay 1 is OFF
Relay 2 is ON
Relay 2 is OFF
Relay 3 is ON
Relay 3 is OFF
Relay 4 is ON
Relay 4 is OFF
Relay 5 is ON
Relay 5 is OFF
Relay 6 is ON
Relay 6 is OFF
Relay 7 is ON
Relay 7 is OFF
Relay 8 is ON
Relay 8 is OFF

Here's a video of the process running. You'll noticed that the lights for 6 & 7 do NOT light up in the order of the python printout.

spifftek70 avatar Dec 31 '24 14:12 spifftek70

BTW, do you like my 3D printed DIN bracket for the Stack?

rbp_din_case2 rbp_din_case

spifftek70 avatar Dec 31 '24 14:12 spifftek70

It's a hardware error. The relays are correct, but the LEDs are lit wrong.

spifftek70 avatar Dec 31 '24 21:12 spifftek70

I was just taking a look at the registers. So you don't need anything changed? It all works except the wrong LED's light up for relay 6 & 7?

And just because it's fun to find more issues...

  1. The screening on the front indicates that all relays except 4 are 5A/48VAC/DC while relay 4 is 3A/48VAC/DC. However, the rear screen printing shows relays 1/3/6/8 as 5A/48V while 2/4/5/7 are 3A/48V.
  2. "oposite"

image

image

Also, nice job on the DIN rail bracket. My only comment is that the RPi stacks generally stay cool via passive heat distribution. I can't see the bottom, but I'd monitor the temps and if they start to crawl up you may want to add some more passages for air ventilation.

tagyoureit avatar Dec 31 '24 22:12 tagyoureit

I actually haven't plugged it in to the pool components yet. I'm waiting for someone with much more experience to find these types of important details. 😀

spifftek70 avatar Dec 31 '24 23:12 spifftek70

https://github.com/SequentMicrosystems/megabas-rpi/wiki/User's-guide-4.2#errata

"The silkscreen of the Version 4.2 of the Building Automation Card has an error on the function of the DIP switches for selecting the input type. The correct silkscreen is shown below. It applies to each of the eight analog/digital inputs on the left side of the board."

spifftek70 avatar Jan 08 '25 12:01 spifftek70

It's a hardware error. The relays are correct, but the LEDs are lit wrong.

I can confirm the same on my V6 HAT as well.

shinerblue avatar Jan 11 '25 23:01 shinerblue