Hats and other items that use electronics