i just made my first PIC project. it is a pic controlerd power supply. it can vary the PWM of a mosfet to limit the current. the output is probably a square wave because i have no peak smoothing capacitor or inductor. i just increased the frequency of the switching so high that it read like DC on my multimeter. right now i have it controlling the brightnes of a 20w light bulb but i could easily reprogram it could be control the current draw from a solar panel. it wasn't too complicated but i made lots of mistakes and it has taken me about 3 full days to get it working. i'm so chuffed that i can program pics now

