What is the part number of your optocoupler?
There are optos out there that only need 1.6V, so a current limit resistor on the input will drive the input LED.
Look at the datasheet.
In this case you only need one way shift.
So if you really want to shift from 3V3 to 5V, you could just use a transistor, BJT or MOSFET.
Even going form 24V to 3v3 or 5V an OptoCoupler will do the trick.
In your case going from industrial 24V to microcontroller 3V3, use OptoCouplers, just look them up.
Thanks.. Tom..
PS. Are you over thinking the situation?
Thankyou for your explanation. I can see why it wouldnt work with the optocoupler. Ill see how I will solve that problem later.
As for the LLC-test:
The left and right groundrails are connected, and there is no gaps in the rails on my board. Powering the power-rails with an Arduino Uno. 3.3v on the right rail and 5v to the left rail.
I just tried to ground HV1 and HV2 as you explained in the picture. I still have 3.3v out from LV1 and LV2. Maybe hard to see in the picture but I include it just to make an understanding on how I am connected.
Either that board is bad or one of the ground connecions isn't actually connected.
Sometimes the pins on those little boards are too short to make good contact with a breadboard.
Try touchong a ground wire directly to the top of the pin on the board itself
I have double checked and tested all connections. Everything seems fine. I have also tested with 3 different boards with same results. Maybe a bad batch? I am quite puzzled...
One thing I have noticed is that all the logic level shifters I see on Amazon and Aliexpress have the 10K pull-up resistors on either side of the board whereas your board has them all on one side.
I wonder if that is actually a logic level shifter.
A batch of fake boards.
It does, picture for explanation.
Resistors in blue box go to the top row of pads.
MOSFETs in blue box turn 90 degrees.
Then all will resemble the amazon picture(and hopefully work)!
Some joker built this on a budget leading to no silkscreen markings for where components go, then did some guess work to the layout!
Just wanted to say thank you for all inputs on my problem. The boards were totally faulty like @theeccentricgenius pointed out. Now I received new ones and they work exactly like expected.