Relay not running

June 3, 2024, 21:12

darthcheadle

I am trying to use a relay to turn a vacuum pump off an on but it is not working properly

darthcheadle


darthcheadle

apologies fro the current hodge-podgeish set up

darthcheadle

the power indicator light is on, and the IN2 light does change according to my python code

darthcheadle

but the component doesn't turn on and off 🤔

dariodaf

Can you show a small drawing of the connections and components?

darthcheadle

I think this is right?

darthcheadle


darthcheadle

I didn't draw the bread board though

dariodaf

No problem with that the connections from the relay board are marked as you wrote on paper? So it's not opto isolated?

darthcheadle

wdym?

darthcheadle

does that have something to do with an octocoupler

darthcheadle

I remember something like that being said when I was watching a video about them

dariodaf

I'm just trying to understand why the brown wire goes also to the raspberry

darthcheadle

i just know that its a 2 channel but I just drew one for the picture

darthcheadle


dariodaf

Can you show a photo where the markings/text on the relay boards is visible

darthcheadle

this was a circuit I found from an Instructables

darthcheadle

ye

dariodaf

Yes this should be more or less correct, nothing of the pump should be connected to the raspberry

darthcheadle

right

darthcheadle

idk why its not working

darthcheadle


darthcheadle

another digram from a different video I was watching

darthcheadle

though he didn't use the exact relay

dariodaf

The fact that it's not even clicking when you turn on or off makes me think that you are not bringing 5V maybe

dariodaf

If you have a seller link for the relay board or something I can look into it

darthcheadle

oh wiat

darthcheadle

💀

darthcheadle


darthcheadle

<@727760346387054623> would this be why?

dariodaf

Well this is 12V relay so with 5V or 3.3V (depending on what wire you brought) it's normal it didn't turn on

darthcheadle

<@727760346387054623> is it possible to use signal from raspberry pi but different power source?

darthcheadle

like use that same 12 volt power source for the dc in and out

dariodaf

Yes with a level converter tho not directly

dariodaf

It's a small board for converting logic signals to different voltages

darthcheadle

or I could just get 5 volt relays?

dariodaf

That in theory is probably simpler yeah, even tho raspberry has 3.3V power so some sort of conversion is probably already being done on the board

dariodaf

If you send me the link I can look at the circuit

darthcheadle

dariodaf

They are pretty vague cause they specify Arduino signals are not for the board, but like, 3 lines above they say it's Arduino compatible 🤣

darthcheadle

🤷 lol

darthcheadle

only 2 ratings too lol

darthcheadle

darthcheadle

would these work?

darthcheadle

<@727760346387054623>

dariodaf

These probably not, from the specs:
Trigger Voltage(LOW): 0 - 4V
Trigger Voltage(HIGH): 4.5 - 12V
So since raspberry sends 0 to 3.3V it's probably always count as low

dariodaf

Idk if it's wrong the specs tho maybe, cause it says 12V instead of 5 there

darthcheadle

raspberry pi has two 5 volt though

darthcheadle

does it not?

darthcheadle


darthcheadle

or is the signal pins max of 3.3volt?

darthcheadle

and thats just for constant power

darthcheadle

im dumb lol

dariodaf

Yes pins signals are 3.3, but I found this:

dariodaf


dariodaf

If this is indeed the schematic for the board you have you can use it with raspberry, you need to remove the jumpers with H and L written and connect

dariodaf

3.3V to the middle wire, 12V on the DC + and - and the pin on the channel input

darthcheadle

I think I'd rather use 3.3 volt relays 😅

dariodaf

Can't guarantee 100% tho this is the schema of your board even tho it seems like it

darthcheadle

but thank yoiu

dariodaf

Or you can use a level converter, it's hard to find 3.3V relay

darthcheadle

darthcheadle

<@727760346387054623>

dariodaf

Uh yeah they seem ok, otherwise my link above is for a level shifter in case you need it for other boards and stuff

darthcheadle

aight bet, thank you a lot