Connecting LEDs to Arduino via optocoupler

Hello, I have a problem with my Arduino project.
I did this circuit. Arduino is powered by 18650 battery and LED is powered by three 18650 battery. The problem is that when I connect everything Arduino turns off, but I assume it doesn't burn up, because when I disconnect LED part, the green diode of Arduino is on. I use this optocopler:
image
and IRF530 N-MOSFET.

I will be greatful for any advice.

the arduino does not have any power in your circuit ?

It has, It is powered via usb cabel from power bank with battery.


Some of those lipo made for charging phones go off if the current draw is not high enough (assuming the phone is charged).

The Arduino draws 50mA max, it might not be high enough for your system. have you tried powering the Arduino with USB from your computer?

Can I assume the GND of your optocouplers are correctly connected to the Arduino GND and not the GND of the other battery?

(I've not checked the mosfet part)

Yes, GND of optocouplers are correctly connected to the Arduino GND.
The thing is, overall I want i to work without being connected to the computer, so maybe I should charge Arduino via Vin pin with 8 Vand it would make it work?

@ggregg
Your schematic shows IRLML6344 not IRF530 and IL10 and not 816B
Which is correct?

the question is more about your lipo
image
➜ can it reliably output 5V x 50mA or will it shut off quickly ?

If it's the IRLML6344, you are very close the exceeding the maximum Vgs
Maybe you burned out all three MOSFETS

IRF530 and 816B, in schematic I only wanted to have proper symbols

Well if you are using 816B optocouplers, then your schematic is wrong.
The 816 only has 4 pins, labeled 1,2,3,4
And if that is wrong maybe the connections to the MOSFETs is also wrong

Do you have a schematic that shows how you actually have things connected?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.