Help me achieving this effect through pinout

Hello
Post your sketch well formated, with comments and in code tags "</>" to see how we can help.