BUG - Relays are switched.
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.
Can you confirm which version FW you have?
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.
- What version hardware is the 8relind board? Looks like they are up to v6 per the picture on their website.
- Do you have the latest FW?
- 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.
- the newest version from their site.
- yes... yes I do.
- 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.
BTW, do you like my 3D printed DIN bracket for the Stack?
It's a hardware error. The relays are correct, but the LEDs are lit wrong.
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...
- 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.
- "oposite"
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.
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. 😀
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."
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.