can i program a PIC to run my servo and act as amp and diodes? so i can minimize the amount of components?