Hi. How can i add PI controller on this circuit? btw this circuit works on Proteus but doesn't work in real life i don't know why, could you help me please?
thank you.
Proteus https://imgur.com/n1MAmAf
[Mod edit: changed to CODE]
void main()
{
set_tris_a(0xFF);
set_tris_c(0x01)...