Microcontroller software for each capsule control PCB