Struggling with Ppm

It's the custom here to post a detailed, if hand-drawn schematic showing all connections including the power stage of your circuit, as well as listing all your components (you mentioned switches - what switches, for example).

Also, posting your complete code using code tags is important as well, in order to give the most complete information to helpers here, many of whom with a high level of expertise, will simply pass your request for help by if you don't supply everything I've mentioned.

Any questions about what's required and why are well documented here: