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:
and IRF530 N-MOSFET.
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?
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?