A drug delivery device includes a housing, a drug delivery assembly disposed within the housing along a longitudinal axis, and a cap defining a shell. At least one electronic component, a power source, and a switch assembly are at least partially disposed in and coupled to the cap. The switch assembly is movable along a plane orthogonal to the longitudinal axis of the drug delivery assembly to cause the power source to provide power to the electronic component. The device further includes an activation mechanism at least partially disposed in the cap. Upon urging the cap along the longitudinal axis in a direction away from the housing, the activation mechanism engages the switch assembly and causes the switch assembly to move, thereby causing the power source to provide power to the at least one electronic component.