# 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:

#### rocket100

##### Member
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.

#### rocket100

##### Member
Would this work ?:
Code:
main:
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.

Replies
6
Views
494
Replies
4
Views
1K
Replies
3
Views
1K
Replies
5
Views
714
Replies
20
Views
2K