jtbarclay wrote:Are improvements to previous projects allowed? I hope so cause I already did the case for my crazy fan, and now I'm about to add one or maybe 2 1F 5.5v caps to yesterdays picaxe controlled zipzap car.
If I figure out what the current draw is at full speed, is there a way to calculate how long this thing will run on a fully charged 1f cap? Full speed is also way too fast for what I want to do with it anyways, so if I pwm control the speed I'm guessing the run time should increase?
Code: Select all
- Pin is a variable/constant (1-4) which specifies the i/o pin to use.
- Duty is a variable/constant (0-255) which specifies analog level.
- Cycles is a variable/constant (0-255) which specifies number of cycles. Each cycle takes about 5ms.
Output pwm then return pin to input.
This command is rarely used. For pwm control of motors etc. the pwmout command is recommended instead. This pwm command is used to provide ‘bursts’ of PWM output to generate a pseudo analogue output on the PICAXE-08/08M (pins 1, 2, 4). This is achieved with a resistor connected to a capacitor connected to ground; the resistor- capacitor junction being the analog output. PWM should be executed periodically to update/refresh the analog voltage.
pwm 4,150,20 ‘ send 20 pwm bursts out of pin 4
pause 20 ‘ pause 20 ms
goto main ‘ loop back to start
Users browsing this forum: No registered users and 1 guest