← Home ← Back to /diy/

Thread 2932625

69 posts 18 images /diy/
Anonymous No.2932625 >>2932644 >>2932655 >>2933025 >>2934347
Anons, I'd like to build a small smart power strip controlled by a small ESP32 where I can use a special sketch to "time" the various Schuko sockets. Basically, it's all relatively simple. The ESP runs a tiny web server that allows you to monitor, turn on/off, and time the various sockets. Obviously, I can't run 230AC at 16A on the ESP, so I was thinking of using relays, but I hate the fact that they consume current to stay energized and then close the contact (which also consumes energy). So I was thinking of bistable relays, perhaps step-by-step ones that open or close the contacts with each incoming pulse, effectively consuming energy only when needed.

On paper, it should sound good. Let's also consider the fact that I'd like to power the ESP32 and the various relays with a battery pack (or a power bank) that can be recharged when the batteries run out, so as not to further impact consumption.

I can't find any Arduino-powered relays online right now, and I don't know if they exist. Any suggestions?
Anonymous No.2932644 >>2932645 >>2932661
>>2932625 (OP)
This is a basic bitch project, use your LLM of choice to walk you through it or find one of the million "how to relay with arduino/esp32" tutorials. There are tons of logic level controlled relays on the market.
>bistable relay to save power
You're on AC, this is pointless. If we assume that the bistable relay costs just $1 more than the regular relay, you can run the regular relay for at least 1000 hours on that $1. With a bistable relay you also don't necessarily know what the state is on startup, further complicating the project.
>I want to run an AC-coupled esp32 that does one thing, turn AC relays on and off, on a battery pack
???
>to save power
??????
Anonymous No.2932645 >>2932673
>>2932644
ChatGPT suggests the G5RL-K1-E DC5...

My goal is to not keep the relay constantly energized!
Anonymous No.2932655
>>2932625 (OP)
I dunno, but my old clutch relays are running 24vdc, to keep the amperage down, so they must consume a fair bit, to change states. Don't remember how much. They're rated at 20 amps/277 volts. Hit up Mouser and check specs.
Anonymous No.2932661
>>2932644
Basic project my ass kiddo, OP don't trust this phaggot.

Search something like "latch relay 230AC 16A 5V coil then use a transistor to pilot
Anonymous No.2932662
Anonymous No.2932673 >>2932783
>>2932645
The one ChatGPT gave you seems fine, just consider that you still need a transistor to drive it from the ESP32, since the ESP32 doesn't have enough current on its pins.
Anonymous No.2932783 >>2932784
>>2932673
But how it works? Datasheets doen't evene has a pin out or an example
Anonymous No.2932784 >>2932785
>>2932783
No way datasheet doesn't have pinout, you're looking at the wrong thing then. Here's the pinout: https://www.mouser.com/datasheet/2/307/en_g5rl_uk-1061771.pdf
Anonymous No.2932785 >>2932786 >>2932798
>>2932784
Yeah, but that's the footprint, i do not know what pin is (cause i'm an idiot dick sucker who's a software guy not an hw one, so sotty guys for my faggottry), anyway thanks for the help
Anonymous No.2932786 >>2932910
>>2932785
maybe this?
Anonymous No.2932798 >>2932799
>>2932785
The pins on the right half are the switching outputs. You'd put AC live on 6 or 3 or both, AC live out on 4 or 5, or 2,7.
>In these relays, the input pulse of the set coil causes the operating condition to be maintained ... whereas input pulse to the reset coil side puts the relay into the reset condition
so if you give DC5V to the R-side - and +, it switches to one position, if you give DC5V to the S-side + and - (+ is common) it switches to the other position. So you need two NPN transistors to drive pin 1 and 8 respectively, and the esp32 gives a signal to one or the other to switch the position of the relay, while a common + is always connected.
Anonymous No.2932799 >>2932851
>>2932798
Actually AC live in on 4/5 and AC live out on 3/6, so you don't energize the other side unnecessarily.
Anonymous No.2932851 >>2932852
>>2932799
WTF? Explain pls
Anonymous No.2932852
>>2932851
If you put AC live input on 3/6, then either 2/7 or 4/5 will always be live. But you only want an on-off switch, so having 2/7 live when there's nothing connected to it is pointless (and possibly dangerous if you have the terminals dangling around), so it's better to have AC live input on 4/5, that way only 3/6 and 4/5 can ever be energized and 2/7 are safe to dangle. If you design your PCBs well, this is a non-issue either way, but it's maybe better to err on the side of caution.
Anonymous No.2932910
>>2932786
I didn’t check the transistors or resistors but yes that’s the idea. IIRC for this purpose the arduino folks use 817C or PS2705 optocouplers these days instead of transistors
Anonymous No.2933025 >>2933070 >>2933269
>>2932625 (OP)
A few pointers:
>hate the fact that they consume
Always look at those things in relation to the bigger picture. You're not building an ALU out of relays. You're looking to switch kWs. A relays power draw is negligible.
Also there is not a single electronic switch technology that does not consume any power to be on, latching relays might be the closes you'll get to that.
Bipolar devices will have a voltage drop. Any may need base current.
Unipolar devices have rds_on.
Relays need the coil energized.
Such is life.
Do not fall for cheap chinese SSR. The construction is always ass, the nameplate fraudulent and they will draw alot of power from probably every terminal they have and may try to kill you.
So:
Get a power strip,
crack the fucker open,
chuck some 230V relays rated for the amperage in for every socket, chuck a buck converter followed by a linear 5V reg in there. ESP32 and a 2N7000 or similar for every relay. Done.
Anonymous No.2933070 >>2933075
>>2933025
He want the fucking omron anon...
Anonymous No.2933075 >>2933113
>>2933070
Im just saying it doesnt make sense.
You know switch kW and worry about 'lost' mW
Anonymous No.2933113 >>2933136
>>2933075
Well if you got 4 sockets and you keep them on more often than not, it's like 20kWh a year, so bistable latching relays are a fine choice if you want to make anything half-decent. But if it's one's first electronics project, then maybe better just go with the aliexpress $2 relays that don't require you to build circuits.
Anonymous No.2933136
>>2933113
Well, I'd have zero issues walking OP through kicad, pcbway, components, soldering it etc
so why not
Anonymous No.2933245 >>2933261 >>2933282
What do you mean by AC LIVE IN and AC LIVE OUT? I'm asking because I'm Italian and we have "fase," "terra," and "neutro," so I don't know which ones correspond to which.

I'm posting from work
Anonymous No.2933261 >>2933272 >>2933282
>>2933245
well fase will be in and neutro out, nah?
Anonymous No.2933269 >>2933272
>>2933025
OP wants to keep the 5V draw low because he runs it from battery. He just needs to let the relays energise from the 230 once they’re switched on
Anonymous No.2933272 >>2934377
>>2933261
And terra? Is it common or ground?

>>2933269
I do not want to conusme energy for costantly energizing coils
Anonymous No.2933282 >>2933286 >>2933299
>>2933245
Nigga you might be better off not messing with AC electricity if this is holding you back. Maybe make some 5VDC circuits with motors and shit and learn how switching works.
>>2933261
And you should very much never touch any AC wiring
Anonymous No.2933286
>>2933282
So, can you help me out figuring out the omron pinout with phase, neutral andd ground?
Anonymous No.2933299 >>2933649
>>2933282
LMAO
this nigger tells an electrical engineer to not touch AC
Anonymous No.2933318 >>2933478 >>2933496
What about that, is it okay? :/
Anonymous No.2933478
>>2933318
Umh

Muriatic acid?
Anonymous No.2933496 >>2933507 >>2933630
>>2933318
Dude WTF? How do you expect there to ever be a voltage drop across any of the coils?
The opto isolators are ISOLATORS. The ground on the LED side is only connrcted to the LED.
Also I am assuming your logic voltage is 5V? Is 2 mA really enough to make the opto change state?
Anonymous No.2933507 >>2933630
>>2933496
Actually it's true, the GND is practically not connected to the coils, what a fucking mistake I made... However, I have another doubt about the Omron, given that in the diagrams it seems that pins 2 and 7 are also getting energized with the phase, or am I wrong?
Anonymous No.2933630 >>2933768 >>2933894 >>2938208
>>2933496
>>2933507
BETTER?
Anonymous No.2933649 >>2933889
>>2933299
>electrical engineer
>phase will be in, neutral will be out
>in a relay
>literally a short circuit switch
>electrical engineer
Anonymous No.2933768 >>2933878
>>2933630
bump
Anonymous No.2933878
>>2933768
bump
Anonymous No.2933889 >>2933891
>>2933649
can you read you disgusting retarded abomination of a dysgenic nigger?!
Some pastanigger asked about the equivalency of english terms and pasta terms for the lines.
Go die you retarded piece of shit.
Anonymous No.2933891 >>2933895
>>2933889
>"can you read you disgusting retarded abomination of a dysgenic nigger?!"
>t. person who misread a post
>also electrical engineer that made a dead short
Anonymous No.2933894 >>2933903
>>2933630
Better dude. I'm not going to read your datasheets for you. But you should read your datasheets.
Place your freewheeling diodes in a neater fashion maybe. In a way that reflects their function. Like from pins 1 to 9 and from 8 to 9.
Since terminals 2&7, 3&6 and 4&5 are connected internally consider tying them both to the same net.
Did you consider relays that have one input for a SR flop?
Anonymous No.2933895 >>2933902
>>2933891
>What do you mean by AC LIVE IN and AC LIVE OUT? I'm asking because I'm Italian and we have "fase," "terra," and "neutro," so I don't know which ones correspond to which.
YOU FUCKING NIGGER
Anonymous No.2933902
>>2933895
We hate them, and you
Anonymous No.2933903 >>2933924
>>2933894
Ty for the advice anon, in these days i will buy the omron and play with it witho DC voltage only
Anonymous No.2933924 >>2934308
>>2933903
You're welcome.
Sinxe you'll be ordering anyways:
Get a simple 1/4W resistor kit. Axial with leads. Whenevet you're unsure about something: Comsult datasheet and if still unsure chuck a resistor in there just to be sure. You can always go down in resistance when things don't react but you can't put the smoke back in when things react.
I hope you have a multimeter or a LED and some wire at least.
Get the diodes, if the relays have no internal protection, the transients can be nasty. Consider getting stuff to build an RC snubber with. Diodes generally are slow to react. Snubbers are not.
Anonymous No.2934308 >>2934317
>>2933924
>1/4W resistor kiT
NGMI
Anonymous No.2934315 >>2934317
M
U
R
I
ACID
T
I
C
Anonymous No.2934317 >>2934327
>>2934308
>>2934315
go fuck yourselves degenerates
Anonymous No.2934327 >>2934337
>>2934317
WHY ME? JUST MURIATIC ACID FAG
Anonymous No.2934337
>>2934327
because I believe OP is actually interested, wamts to learn sk. ethkng and has a non zero chance to actually follow through. Rare quality thread. Do not shit it up with negro behaviour.
Anonymous No.2934347 >>2934363
>>2932625 (OP)
>I can't find any Arduino-powered relays online right now, and I don't know if they exist.
I use 3.5-5v relays all the time. What part of your question am I missing?
Anonymous No.2934363 >>2934381
>>2934347
he means latching
Anonymous No.2934377
>>2933272
>And terra? Is it common or ground?
From your posts it sounds like you're Italian and you clearly speak English, so it really seems like you should be able to answer this question yourself.
Anonymous No.2934381 >>2936264
>>2934363
>he means latching
And?
For starters, he's probably dramatically overthinking his project. Second of all, the relay suggested by ChatGPT is technically what he is asking for. I suspect a simpler solution will work just the same without worrying about the minuscule parasitic draw.
But if he insists on going bistable, those relays also exist. It just seems more problematic with no immediate payoff.
Anonymous No.2936264 >>2938187
>>2934381
if you read the fucking thread you'd know that alternatives were suggested but OP insists to have latching relays because aparently OCD, autismo, and maybe unfortunate duty cycle of 50%
Anonymous No.2938187 >>2938191
>>2936264
>duty cycle of 50%
wdym?
Anonymous No.2938191 >>2938206
>>2938187
I mean that OP is worried about getting latchibg relays because of some meme current draw, which would be even more inconsequential if the duty cycle of the switched aplliance was either very high or low because you'd just invert the logic as needed to produce the scenario where the coil is onky rarely energized. In other words: Worst case the coil is energized 50% of times on average or youre a retard and no safe failure modes do not apply here for several reasons.
But anyways OP hasnt been doing shit on this.
Anonymous No.2938206 >>2938428
>>2938191
>latchibg
ngmi, fucking nigger... Anyway

>But anyways OP hasnt been doing shit on this
Let's be clear, he highlighted that there are none or too few that can be controlled with an MCU and not with AC impulses
Anonymous No.2938208 >>2938209
>>2933630
It's completely wrong, since if your goal is to avoid phantom consumption, the way you positioned the diodes will always have the coil energized (in both directions, so the circuit never closes u dumb nigga) because the 5VDC will never go to ground. I'm an electrical engineer, and if you don't even know how diodes work, you deserve to shit yourself in front of your slutty mother...
Anonymous No.2938209
>>2938208
you're a bit stupid for an engineer
his diodes might be pointless, perhaps the intention is to cap transients to 5V -+ 1 diode drop
either way his coil is obviously fed through the center tap and he sinks it on the nodes with the anodes. OP is dumb and makes fuck ugly schematics but still smarter than you
Anonymous No.2938212 >>2938213 >>2938216 >>2938230
This was yesterday’s project….
It’s ok you jelly, not everyone can be a real man
Anonymous No.2938213 >>2938258
>>2938212
Did you do this before or after your manicure?
Anonymous No.2938216 >>2938258
>>2938212
>engineer
turns out to be a technician
KEK! like clockwork
also snowman
Anonymous No.2938230 >>2938258
>>2938212
They pay you to make ai sloppa?
Anonymous No.2938258 >>2938261
>>2938213
>>2938216
>>2938230
M
U
R
ACID
T
I
C
Anonymous No.2938261 >>2938291
>>2938258
M
I
S
S
P
E
LIGMA
L
E
D
Anonymous No.2938291
>>2938261
Why don’t you LIGMA me again and I’ll owe you two LIGMAS
Welcome New Friend No.2938292
M
U
R
ACID
T
I
C
Anonymous No.2938428 >>2939663 >>2939672
>>2938206
>Let's be clear, he highlighted that there are none or too few that can be controlled with an MCU and not with AC impulses
Sources? The G5RL-K1-E DC5 may be one of them
Anonymous No.2939663
>>2938428
ARE U SURE?
Anonymous No.2939672
>>2938428
OP isnt gonna do shit. When you realise that. Trying to help OP was all futile. OP is a faggot. Who would have known.