I might suggest looking into the BM1397 out of the S17. Those chips are very cheap these days. BM1397 is 3x the efficiency of the BM1387 and almost 6x the hashrate per chip. It has the same footprint as the BM1387 (much different pinout) and you can see all the details from the open source bitaxeMax design and esp-miner firmware...