How to I set the relays to low level trigger?
Also reef-pi has an invert feature built in when setting up outlets
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
How to I set the relays to low level trigger?
8 Channels 5V Relay Module Australia - Little BirdDo you have a link or a pic of the relays? Mine had jumpers
Don't have your relay board, but will try to help.I posted this in my build thread but I am just going to post it here for more visibility.
I am testing out my 8 channel 5v relay boards.
First I tested with just the raspberry pi by connecting up the 5v, ground and an outlet GPIO and it worked as expected.
Next I tried with the pi-HAT but it is not activating the relay. The input of the ULN2803 is receiving 3.25v. The ULN2803 is outputting only 0.6v to the relay board.
I tried a different GPIO on the second ULN2803 on the pi-HAT with the exact same result.
The VCC light is on when I connect the relay board to the 5v and GND on the 10pin connector on the pi-HAT.
The ULN inputs have continuity with the GPIO outlets. The ULN outlets also have continuity with the 10pin connector.
The ULN's are also grounded on their number 9 pin and have 5v on their number 10 pin. Measuring the voltage on pin 9 and 10 gives 5v.
Can anyone help me figure out why the ULN2803 output is so low and not activating the relay?
This is good to know. In order to replicate, can you share which GPIO port you used? What were the values of the GPIO port switching ON/OFF?First I tested with just the raspberry pi by connecting up the 5v, ground and an outlet GPIO and it worked as expected
In order for me to replicate (without relay board), can you share which pins (relay ports) you measured? Is the behavior the same with and without relay board? (Power consumption?)Next I tried with the pi-HAT but it is not activating the relay. The input of the ULN2803 is receiving 3.25v. The ULN2803 is outputting only 0.6v to the relay board.
I tried a different GPIO on the second ULN2803 on the pi-HAT with the exact same result.
If I understand correctly, wiring between GPIO/ULN/10 pin connector and power to the ULN chips are all ok. Just to be sure (don't measure voltage, measure ohm), is there a connection between pin 6 of the I2C interface on the Reef-PI_HAT and GND (pin 39 on GPIO)? This has been a failure in the initial design but should be ok on your board. [Edit]should be ok as you're measuring +5V on the ULN power pins[/Edit]The ULN inputs have continuity with the GPIO outlets. The ULN outlets also have continuity with the 10pin connector.
The ULN's are also grounded on their number 9 pin and have 5v on their number 10 pin. Measuring the voltage on pin 9 and 10 gives 5v.
Yes I was referring to thatThe american DJ board power strip may use 12v relays instead of 5V
What error you are getting in the lighting tab? You are not able to see these jacks in drop down menu when you are creating light?@Ranjib I am trying to test out a system with the Adafruit Stepper Motor Hat.
Is there anything special that we would need to be able to interact with reef-pi, or should it function just as a regular PCA9685 board?
I was able to assign pins 0-15 as jacks, but I am unable to assign the jacks in the lighting tab.
![]()
But I am unable to assign those pins in the lighting tab, though now that I go back in, I see a light set up in there from before I deleted the DB to reconfigure the system.
When I try to delete it I get a 404 error.
Thoughts?
This is on a pi zero running as a test system on the bench, so no big issues if I need to test/break something.
The jacks are all showing up, but it looks like the error stems from the "test" that is already configured.What error you are getting in the lighting tab? You are not able to see these jacks in drop down menu when you are creating light?
Delete that light and create a new oneThe jacks are all showing up, but it looks like the error stems from the "test" that is already configured.
It will not let me delete it.
![]()
If this is left over, then it was configured as pin0 for direct pi PWM
I am unable to delete it.Delete that light and create a new one
Let me cross check. Meanwhile, can you create a new light and assign one of the jacks ?I am unable to delete it.
Is there any way to remove it on the back-end without having to delete the DB?
Not a problem if I need to, since I dont have much. But just wondering so it can help others.
Nope, I get the 404 error every time I try.Let me cross check. Meanwhile, can you create a new light and assign one of the jacks ?
@Ranjib looks like running a reload fixed it. It did revert one of the pin settings back to a previous name. But seems better now.Nope, I get the 404 error every time I try.
Not that something comes to my mind, Im curious about the 404s. I suspect it was a UI issue. The light was deleted on the first go, but UI didn't reflect it, hence when you deleted again you got 404 (which stands for resource not found), since its already gone. I'll check if I can reproduce it,@Ranjib looks like running a reload fixed it. It did revert one of the pin settings back to a previous name. But seems better now.
Let me know if you need me to try to recreate anything.
You have pca9685 configured with a different address, here is what mine looks like:I have gone through raspi-config to enable it, but is there any way to test and make sure?
![]()