This weekend I was trying to mount a USDigital optical encoder (E3 model) to a S28 magmotor DC motor. As the motor axis sticks out on both sides, I was trying to mount it to the top of the motor. As expected, there is no mounting hole on the motor, so before I do something bad to the motor, what do you think is a good way to mount it?
Should I drill the motor? I don't really know how thick is the metal on the top of the motor. Or should I glue it? The encoder is made of plastic (black policarbonate I believe) and the motor is metal (maybe aluminum?), so what type of glue should I use? It would be nice if I could remove it later on if I wanted.