midi to cv project minor problem

Of course, sorry i started quick this is my first question in forum.
So these are the pictures of wiring the first one i annonated, the second one is the other end of the optocoupler. Pin 4 is connected to 5V rail with a 500Ohm resistor(two parallel 1K) and Pin3 is GND.