As @allObjects says, for mounting a circular hole to something with a flat, some kind of screw in the side, perpendicular to the shaft works really well.
I have a set of 'taps' and in the past I have just drilled and tapped a 3mm thread, then just screwed a 3mm bolt or grub screw into the side of the pulley.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
As @allObjects says, for mounting a circular hole to something with a flat, some kind of screw in the side, perpendicular to the shaft works really well.
I have a set of 'taps' and in the past I have just drilled and tapped a 3mm thread, then just screwed a 3mm bolt or grub screw into the side of the pulley.