An ingestible electronic capsule (100) for introduction into the bodily lumen comprises a circuit board with at least one electronic component (4, 5, 7, 8, 9, 11, 12, 13, 14). The circuit board is formed from a flex foil (10), thereby reducing the number of components and improving the robustness and reliability of the ingestible electronic capsule (100).