Uiua, 66 4 bytes
↯:0°⋯⇌⊚°⋯⇌
Convert from binary, reshape scalar 0use ⊚ where to itchange this to an array of N 0s.
Before I knew about °⋯:
Uiua, 13 bytes
×0⇡/+×ⁿ:2⇌⇡⧻.
Multiply by powers of 2, sum, range, multiply each by 0.