AA cells can be installed in a socket of larger diameter than itself, if you wrap it in several layers of paper, foam or any other available material suitable for this purpose. For example, a galvanic cell AAA can be installed in a standard socket AA.
If the length of the socket is greater than the length of a galvanic cell between their respective contacts should be inserted in a folded several times a piece of aluminum foil.
Recommend to read
PROGRAMMABLE CODE
In technical literature there are many publications on improvised electronic code locks — variety of complexity and management that is performed on chips as small and medium scale...
THE SWING OF THE EARTH… AND WATER
In any courtyard you can see the beds, the game elements of children's playgrounds made of old tires. On the river boats and the wharves they are used as fenders. But this is not all...