i dont want to ruin your project, but is almost impossible to earn money this way. Maybe mining other altcoins but mining bitcoin is ALMOST impossible, search a little about ASIC's and hashpower and you will understand.
and the reason i say almost is because even with low hash you can still find a block but the odds are very small..