Decoding sony infrared remote codes (SIRC) with PIC12F675

Embedded Systems Topics
Post Reply
User avatar
Rksk
Major
Major
Posts: 730
Joined: Thu Jan 07, 2010 4:19 pm
Location: Rathnapura, Sri Lanka

Decoding sony infrared remote codes (SIRC) with PIC12F675

Post by Rksk » Wed Jan 23, 2013 4:19 pm

As I said in my last post, here is my 2nd post. No much words, just some images :D

First of all, you have to learn about, SIRC Protocol
SIRC.JPG
SIRC.JPG (43.86 KiB) Viewed 10031 times
Below two images were created from my own data. :yahoo:
key 0.JPG
key 0.JPG (33.36 KiB) Viewed 10031 times
IR data.JPG
IR data.JPG (82.42 KiB) Viewed 10031 times
Below is the mikroC code, I used...
(I switched to mikroC from hitechC, because of the lack of information and tutorial ;) )
mikroC code.JPG
mikroC code.JPG (177.21 KiB) Viewed 10031 times
schamatic.JPG
schamatic.JPG (20.77 KiB) Viewed 10031 times
Video
[media]http://www.youtube.com/watch?v=W1QXHrYTnL0[/media]
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Re: Decoding sony infrared remote codes (SIRC) with PIC12F675

Post by Neo » Thu Jan 24, 2013 12:50 am

Superb... This is a lesson to everyone :biggrin:
User avatar
SemiconductorCat
Major
Major
Posts: 455
Joined: Mon Aug 22, 2011 8:42 pm
Location: currently in hyperspace

Re: Decoding sony infrared remote codes (SIRC) with PIC12F675

Post by SemiconductorCat » Thu Jan 24, 2013 1:28 am

have you modeled your protocol with state machine model before start coding ?

However nice tutorial Risk. Teach me bro.

However , do not add labels like this when you drawing diagrams.

Image

Instead the professional way to do this is to use bellow format ,
you could add your copyright info at the bottom boxes.
Image

And I have revived your diagram too, Nothing much to fix I could see from here on it.
The only thing that I see is it's better to add a 10uF 10V capacitor near the PIC IC.
Because there may be current spikes when it receiving data. And your IR sensor not
just a sensor, so I think you are right we don't need a voltage follower circuit or schematic
trigger there.



and this is a question for you,
What software you used to draw the waveforms , I have asked this question on meta.electronics.stackexchange.com/
and according to them they use inkspace. Matlab is also a good choice if you got the money.I'm curious to know which
software is you using.
http://meta.electronics.stackexchange.c ... -waveforms

Thanks.
Good luck Risk , keep reading the source code and keep writing blogs.
User avatar
Rksk
Major
Major
Posts: 730
Joined: Thu Jan 07, 2010 4:19 pm
Location: Rathnapura, Sri Lanka

Re: Decoding sony infrared remote codes (SIRC) with PIC12F675

Post by Rksk » Thu Jan 24, 2013 1:55 am

SemiconductorCat wrote:do not add labels like this when you drawing diagrams.
Sorry for poor diagram. I just edited a simple diagram which was in my MCU downloads directory :D . Didn't thought to draw a professional diagram.
SemiconductorCat wrote: What software you used to draw the waveforms
No, I didn't draw this. It is the output of PICkit2's logic tool.

Thank you.
User avatar
SemiconductorCat
Major
Major
Posts: 455
Joined: Mon Aug 22, 2011 8:42 pm
Location: currently in hyperspace

Re: Decoding sony infrared remote codes (SIRC) with PIC12F675

Post by SemiconductorCat » Thu Jan 24, 2013 2:29 am

Sorry for poor diagram. I just edited a simple diagram which was in my MCU downloads directory . Didn't thought to draw a professional diagram.
No risk , I'm not ask you to say me sorry.
It's not the point, the point is this. See: http://electronics.stackexchange.com/qu ... schematics

Read the olin guidline.When it comes to an engineering drawing, it should be clear and neat. So other engineers who read
it will save their time too. You may think it's a simple thing. But avoid it is more better.
Reason why:
When you give someone a sloppy schematic (or any other work from you), the first thing they're going to think is "What a jerk". Everything else they think of you and your work will be colored by that initial impression. Don't be that loser.

--Olin lanthrop.
[/quote]

There are no rules here. And I'm not the admin. But why we need to be that loser?
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Re: Decoding sony infrared remote codes (SIRC) with PIC12F675

Post by Neo » Fri Feb 01, 2013 3:48 am

There are no rules here. And I'm not the admin. But why we need to be that loser?
I'm the admin here and there is only one rule. Just respect everyone, that's all :yahoo:

Rksk (it's not Risk Sandun BTW :) ) is doing very well with electronic and embedded. And as Semi stated, I agree it would be great to use a nice schematic tool which will produce a clear diagram for everyone's interest.

Here I have started a topic where you can contribute as well.
Best Online circuit diagram tools for free
Post Reply

Return to “Embedded Systems”