Hi
I have shown the circuit i am using previously so if you want to see that then I can add the picture!
I am trying to run a computer fan/pump on PWM from a picaxe 08m ( for the moment I might need to expand) and im having problems figuring out the code and why the picaxe programming editor doesn't like the code.
I am using the "programming and customizing the picaxe micro controller" book and the picaxe manuals for my coding.
so far I have:
main:
readadc 1,b0
if b0 = 100 then top
if b0 = 200 then bot
if b0 = 256 then dot
goto main
top:
pwmout4 150, 100,
high 6
goto main
bot:
pwmout4 b0 100
high 7
goto main
dot:
pwmout4,b0,100
high 8
goto main
This is just testing i want to work out the correct values at the top through testing.
Unless any one has done this before and can tell me how they have done it and the code?
Thanks for any help
SKL BOI
I have shown the circuit i am using previously so if you want to see that then I can add the picture!
I am trying to run a computer fan/pump on PWM from a picaxe 08m ( for the moment I might need to expand) and im having problems figuring out the code and why the picaxe programming editor doesn't like the code.
I am using the "programming and customizing the picaxe micro controller" book and the picaxe manuals for my coding.
so far I have:
main:
readadc 1,b0
if b0 = 100 then top
if b0 = 200 then bot
if b0 = 256 then dot
goto main
top:
pwmout4 150, 100,
high 6
goto main
bot:
pwmout4 b0 100
high 7
goto main
dot:
pwmout4,b0,100
high 8
goto main
This is just testing i want to work out the correct values at the top through testing.
Unless any one has done this before and can tell me how they have done it and the code?
Thanks for any help
SKL BOI