Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

IR remote control (RC5)

Status
Not open for further replies.

Vermes

Advanced Member level 4
Joined
Aug 2, 2011
Messages
1,163
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,316
Activity points
22,318


It is a simple system based on Attiny2313 – remote controlled switch. Remote control from tuner was used for control (red button does not cause any reactions on the tuner).

Elements used:
  • double ARK connector x2
  • Attiny2313 + base
  • 7805
  • 470uF/16V
  • TSOP1736
  • BC547
  • 4,7k – transistor base
  • 0,33k – TSOP supply
  • relay with coil for 12V
  • rectifying diode – protection of transistor
  • 12V power supply

Code:
Code:
'wyłącznik RC5 by BM*
$crystal = 1000000*
$regfile "attiny2313.dat"*
Config Portb.0 = Output*
Portb.0 = 0*
Config Rc5 = Pind.6*
Dim Address As Byte , Command As Byte*
Enable Interrupts*
Do*
Getrc5(address , Command)*
Command = Command And &B01111111*
If Address = 10 And Command = 107 Then*
Toggle Portb.0*
Waitms 400*
End If*
Loop*
End

Link to original thread - Zdalne sterowanie na podczerwień (RC5)
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top