CONTENTS

Home
Projects
  Electronics
  Graphics
  Java
  Java Mobile
  Android
  Other Stuff
Resume
Music
Pictures
Contact



Sony SIRC Infrared Communication

More electronics projects on mikekohn.net here.

Posted: January 12, 2010
Updated: September 24, 2011

Introduction

This page now serves as the home of two separate SIRC projects. The first I did back in January of 2010 where using an Atmel ATtiny2313, I created a bi-directional IR communcation using Sony's SIRC IR protocol. The second I did in September of 2011 with an MSP430G2231 and a microSD with voice sound samples so that when a remote control is pointed at the circuit, the circuit will speak the key that is being pressed.

Atmel ATtiny2313 Project

This project serves two purposes. First is to be just a simple IR receiver for Sony remote controls. I used an old Sony RM-D190 remote control from an old CD player I threw out long ago to test. When the receiver gets data over the IR, it sends it as 2 bytes over RS232 to a computer. The data will be (in 11 bit mode) from MSb to LSb: 5 bits of 0, 3 bits of device, 8 bits of data packet. Or something like that. The second part of the project is to make an IR emitter transmit data when it receives information over the RS232 line.

I got most of my info on Sony SIRC from this page: http://www.sbprojects.com/knowledge/ir/sirc.php.

TI MSP430 Project

I threw this one together really quick just for the heck of it. I used the microSD sound / hardware from my talking clock thermometer project. The rest was as simple as creating an interrupt routine that counts when the input to P1.0 is low so the main routine can see how long each pulse is. The main routine reads the command bits and the address bits separately into two different memory locations, checks to make the address bits are 0x11 (audio remote control.. maybe TV too?), adds 1 to the command byte so that pushing "5" on the keypad makes the voice say "5" instead of the command code of 4, and then calls the "say" routine to speak it.

The source code below can be assembled with my naken430asm assembler.

Pictures
Here is an example of what the output of the chip looks like. This crappy 486 laptop is running Procomm Plus in FreeDOS and is hooked up to the circuit. When I push buttons on the remote, they are printed as hex chars (for debugging). The # marks indicated IR errors.
Here is the final two circuits. Using terminal programs (Picocom on Linux and Procomm Plus on FreeDOS) I can communicate between the two computers with 2 way communication over IR using these circuits.

This schematic leaves out the RS232 part since it should be straight forward to add it in. I normally use DS275's to do RS232 since it's simpler, but on this circuit I used a MAX232.

The MSP430G2231 SIRC sircuit.

Schematic for the MSP430G2231 circuit.

Source code
ir_comm.asm (Atmel ATtiny2313 source code)
msp430_sirc.asm (MSP430G2231 source code)



Copyright 1997-2012 - Michael Kohn

This page was designed to work with all standard HTML compatible web browsers including Firefox, IE, Safari, and Links.