Question to PICAXE forum
I'm trying to connect an electrical motor to a solarcell, as seen on the Schematics.
Problem: When the suns intnesity degrades we need to aditionally control a mosfet by PWM to reduce the current draw on the solarcell. (DIP Regulating), and it almost works!
Schenatic:
www.sunwind.dk/projekt/Schematic.jpg
Flowchart:
www.sunwind.dk/projekt/Flowdiagram.pdf
Many of these codes works OK, but I'm having trouble making it work well all the way down through the codes, please help.
When going through the codes it's obvious that I've tried to make them step by step, in order to make it look like small individual 'chapters' working with each voltage setting one by one.
Starting with 20Volt going down to 15Volt accordingly reducing the PWM mode from 100% to 10%.
Perhaps one of you have some experience regarding the possibility to make the flow run even smother, eventually with a code example.
Would it be an advantage to use the comand 'Case' here?
Codes can be viewed on the atached file.
With all best regards to all of you
I hope that one here will help me out.
Monie
I'm trying to connect an electrical motor to a solarcell, as seen on the Schematics.
Problem: When the suns intnesity degrades we need to aditionally control a mosfet by PWM to reduce the current draw on the solarcell. (DIP Regulating), and it almost works!
Schenatic:
www.sunwind.dk/projekt/Schematic.jpg
Flowchart:
www.sunwind.dk/projekt/Flowdiagram.pdf
Many of these codes works OK, but I'm having trouble making it work well all the way down through the codes, please help.
When going through the codes it's obvious that I've tried to make them step by step, in order to make it look like small individual 'chapters' working with each voltage setting one by one.
Starting with 20Volt going down to 15Volt accordingly reducing the PWM mode from 100% to 10%.
Perhaps one of you have some experience regarding the possibility to make the flow run even smother, eventually with a code example.
Would it be an advantage to use the comand 'Case' here?
Codes can be viewed on the atached file.
With all best regards to all of you
I hope that one here will help me out.
Monie
Attachments
-
1.1 KB Views: 11