da 24 volt AC a 5 volt DC, cosa usare?

puoi fare il tutto anche con un normale fotoaccoppiatore