Embedded perfusion controller