RemotePLATFORM

The RemotePLATFORM features four push button switches that can be tied to any IO pin on the Microcontroller. There is a Ir LED and an indicator LED that can be used to send Ir signals to many Ir devices. It can be used with the IrPLATFORM or easily used with any device that uses the Sony Ir Protocol (SIRC).

See Picaxe command irout for details http://www.picaxe.com/BASIC-Commands/Digital-InputOutput/irout/

Example Code Transmitter:

' Pinout for PicaxeProtoPlatform using PICAXE 14M2 Microcontroller. 
' "P#" can be replaced with a descriptive word for the input/output pin.
' For example P19 Could be replaced with "GLED" to represent the connected Green LED
 
#PICAXE 14M2
 
'SYMBOL P1	 = +V			SYMBOL P20 	 = 0V
 SYMBOL P2	 = C.5		SYMBOL IRTx	 = B.0
 SYMBOL Up	 = pinC.4		SYMBOL P18	 = B.1
 SYMBOL P4	 = C.3		SYMBOL Right = pinB.2
 SYMBOL Left = pinC.2		SYMBOL P16	 = B.3
 SYMBOL P6	 = C.1		SYMBOL Down	 = pinB.4
 SYMBOL P7	 = C.0		SYMBOL P14	 = B.5
 
 
main:
pause 50
 
	if up = 1 then gosub movefwd
	if down = 1 then gosub moveback
	if right = 1 then gosub moveright
	if left = 1 then gosub moveleft
 
goto main
 
 
movefwd:
	irout IRTx, 1,1
return
 
moveback:
	irout IRTx, 1,2
return
 
moveleft:
	irout IRTx, 1,3
return
 
moveright:
	irout IRTx, 1,4
return
 
Goto main

 

Order RemotePLATFORM