Connect with us

PICAXE questions

Discussion in 'Electronic Design' started by [email protected], Dec 7, 2004.

Scroll to continue with content
  1. Guest

    Hi,
    I have 2 questions about PICAXE:

    1) my program run executing a loop that do some operations; at the
    same time I would like to detect data from infrared sensor by INFRAIN
    command. I thought to do this: program run into main loop (not stand
    by on IFRAIN) and interrupt is set to pin 0 high (pin enabled to
    receive data from infrared sensor). When program detect high level on
    pin 0 (begin trasmission) execute interrupt sobroutine (interrupt
    detected); here, INFRAIN command decode data received. Otherwise I
    could detect interrupt on other pin, connected, anyway, to infrared
    sensor.
    Do you think it will work?
    2) I have to detect if button on IR remote control is held. After each
    operation following valid data on infrared pin, before execute next
    INFRAIN command, I call a subroutine like this: check pin 0 (infrared)
    for high level continuosly (approx. 45 ms). If high level is detected
    then button is held. Now execute INFRAIN command again.
    Do you think it will work?

    Thank you
     
  2. CFoley1064

    CFoley1064 Guest

    Subject: PICAXE questions
    You'll probably get a good response to your question at the
    manufacturer-sponsored PICAXE forum:

    http://www.rev-ed.co.uk/picaxe/forum/

    and also, reread the software manual.

    Good luck
    Chris
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-