'Gadget' is a small mechanical device or tool. Apparatus, utensil, and contrivance are all synonyms for devices/tools. 'Toy' while sometimes related, typically refers to a plaything rather than a practical device, making it the best non-synonym. However, this is slightly ambiguous as toys can be gadget-like.