Through anodically etching p-type Silicon in an ethanoic solution of HF, we prepared several porous samples whose physical properties have been investigated by different techniques, including photoluminescence, Raman scattering, Auger spectroscopy, secondary ion mass spectrometry, scanning electron microscopy and transmission electron microscopy. Schottky contacts on the porous surfaces have been deposited using different metals (Au, W, Ti and Al). In this way light emitting diodes have been obtained in the visible region. The performance and stability of the structures as well as the changes in the physical properties after the operation of the devices have been investigated. From the characterization of the physical properties and the behavior of the light emitting diodes a schematic band diagram of metal-p-Si structure is proposed and discussed. A tentative explanation of the different luminescence quantum efficiencies observed in p-Si for different excitation mechanism is given.