Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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?
:confused:
 
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.

New Articles From Microcontroller Tips

Back
Top