A modular electronic device is provided in a tubular form having a male bayonet connector at one end and a female bayonet connector at the other. A power and communications bus interconnects the connectors. An electronic circuit is located within the device in communication with the bus. Modular devices including an electronic timer, a printer module and a digital camera are provided. A number of the devices can be connected end-to-end to share different functionalities by means of the bus.