Connecting Arduino to PIC

im really confused now, can you show me a schematic of the wiring on how i can connect the output from arduino to the input of the pic?..
it tried connecting it directly and it doesnt work.. can you please show me how.. do i need a transistor?..

will something like this work:
or