axe040

Bond

New Member
Just purchased the infrared upgrade kit wired it up as per manual, to a PICAXE-08M & program is

main:

infrain2
debug b1
if infra =1 then swon1
if infra =4 then swoff1
goto main


swon1:
high 1
goto main

swoff1:
low 1
goto main

but I get nothing on the debug command as it appears to see nothing from the handset

am I doing something wrong or is it a duff hand set or sensor
 

hippy

Ex-Staff (retired)
It could be any number of things -

PICAXE not powered up / batteries flat
LED not working
LED on different pin
IR receiver connected to correct pins
IR receiver not powered correctly
IR control handset not giving Sony IR codes
IR control handset not working / batteries flat

Start by running a short test program to check the LED works ...

Code:
Do
  Toggle 1
  Pause 250
Loop
Then try the following program ...

Code:
Symbol IR_PIN  = pin3
Do
  If IR_PIN = 0 Then
    High 1
    Pause 250
    Low 1
  End If
Loop
This should flash the LED whenever the remote control is used. It may also work with other TV, Hi-Fi etc remote controls.
 

eclectic

Moderator
AAA.

I can't see your wiring, so I can't comment, but

1. Fresh AAA

2. Have you keyed in the RESET code C212

3. Got a digital camera? Look at the transmitter.

4. DO not use debug. Change the line to

Sertxd (#infra, cr,lf)

e.
 

Bond

New Member
The wiring is as the manual showes, the handset is from AXE040 upgrade kit so should be correct & all the batties are new
I will try the above suggestion
 

Bond

New Member
Code:
Symbol IR_PIN  = pin3
Do
  If IR_PIN = 0 Then
    High 1
    Pause 250
    Low 1
  End If
Loop
LED test worked fine
& also the above code also works as you say
when I try this :-
main:

infrain2
Sertxd (#infra, cr,lf)
if infra =1 then swon1
if infra =4 then swoff1
goto main


swon1:
high 1
goto main

swoff1:
low 1
goto main

i get nothing in the terminal window it's as if the "infrain2" command is not working
 

Bond

New Member
"2. Have you keyed in the RESET code C212"



Please Explain this as having pressed C212 on the handset it now appears to be working

where does this "C212" come from & are there any other code I should know about

Many thanks for your help anyway
 

eclectic

Moderator
AAA

The DATASHEET that came with the AXE040

http://www.rev-ed.co.uk/docs/axe040.pdf

Page 1 (of 2)

Programming the transmitter

Before use, the transmitter must be programmed
with ‘Sony’ codes as follows:

1. Insert 3 AAA size batteries, preferably alkaline.
2. Press ‘C’. The LED should light.
3. Press ‘2’. The LED should flash.
4. Press ‘1’. The LED should flash.
5. Press ‘2’. The LED should flash and then go out.

e.
 
Top