Apple II smartport emulator, sketch works only when usb powered.

Solved myself, reading other post about powering issue: i didn't connect togheter the SDCard and Apple II grounds!
i thought that all arduino's gnd was wired togheter, so i just grounded each one to arduino, but it's not the same thingh, as seems..
Hope this may be a lesson for someone else... as for me. Thank you everybody