The electronic device according to claim 12, wherein, in a case where said determining device determines that said different types of batteries are accommodated in said battery chamber, said different types of batteries are prohibited from being used as a power source.