You need to measure or estimate your circuit load, factor in converter efficiency (if using one), and get an idea of your AHr load requirements and your battery discharge rate. Take that info and compare to battery specifications at a site like:…
If I understand your question, you have nothing but your signal generator to drive (and power) the circuit.
There was a similar discusion here:
http://www.eeweb.com/electronics-forum/how-can-i-amplify-a-100khz-signal-to-drive-a-piezo
Following from my response in that thread, you may need a…
An integral is summation over some parameter, time in this case. Keep a running summation of your calculated error paying attention to the sign of the error. You may want to check for and limit saturation so your variable does not overflow.
So where you are stuck? Are you familiar with the instruction set of the microcontroller?
There was a great Nova 2 hour show on termperature and absolute zero. Very fascinating. You can buy a DVD from PBS or find it on youtube like I did.
http://www.pbs.org/wgbh/nova/zero/
Do you have a flowchart of the code you are trying to implement? That is where I would start.
There are a lot of code examples on Microchip’s website.
Batteries are rated in Watt-hours. Solar panels generate power in Watts, for so many hours. Your load in is Watts, so with some assumptions about generation hours and system losses, you can estimate how long your load will run, in hours.
See pages 7 and 10: http://www.cde.com/catalogs/AEappGUIDE.pdf
Being a swiching converter, you don’t really care about Vgs (you are not using the FET in an active mode) except that the control portion of the regulator has to be able to turn the FET completely on. Being a boost converter, your FET source will be at ground, making the task of driving the FET…
Wire-to-board interconnection options from Sullins feature a wide range of sizes and applications
MCC’s TVS series high-power suppressors protect sensitive components from voltage spikes and transients
Evaluation boards that streamline evaluating circuit protection on RS-485 serial device ports