Firmware and circuit diagram