Does anybody know how to hook a POT. up to a PICAXE

Status
Not open for further replies.

rocket100

Member
Does anybody know how to hook a POT. up to a PICAXE 08-m?
I need to make a timer controlled by a POT.
can someone give me the code?
 
Last edited:
Because I am building a high speed photography controller that activates when a clap or other sound comes from the target object. And I need a variable timer between 0-10 milliseconds long so I can adjust the time that the circuit sets the flash off. And I need it to be a PICAXE chip. And it has to be controlled by a potentiometer.
 
Would this work ?:
Code:
main:
readadc 4,b1
if b1 = 3 then
high 2
pause 300
low 2
pause 300
{ else 
goto main}

goto main

And how is the POT. connected?
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…