free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes :: Forums :: Discuss and Learn :: General help Guidance and Discussion
 
<< Previous thread | Next thread >>
IR based home automation HOW TO COUNT THE PULSE CODE MODULATION OUTPUT
Go to page  [1] 2
Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
electronicfreak
Mon Jul 07 2008, 09:24PM
 User Offline
Registered Member #7958
Joined: Tue May 20 2008, 04:48PM

Posts: 19
Thanked 0 times in 0 posts
HI GUYS,
I m facing a problem how to count the pulse codes given by the IR sensor TSOP1738...
i want program on the basis of which key is pressed in the remote...
I m working on a home automation( IR) project, and i m using the PIC16F72 mcu.
already i was enable the counter read the o/p of the IR sensor, but i don't know how to read the codes according to the key pressed......
please help me, and send me some example codes.........
ITS VERY URGENT......... this PROJECT DEAD LINE is on 18th july....
help me................



SACHIN
http://belgaum.myminicity.com/
Back to top


Ajay
Tue Jul 08 2008, 08:19AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 4035
Thanked 751 times in 710 posts
I hope you have read how RC5 remote works.. so the time for every bit is defined and fixed. After you sense the first low at pin where IR receiver is connected, you wait for fixed amount of time to read bits coming on the way with IR signal.

You may need to do lot of testing as timing is always a problem.
Try to start with something. Use my 8051 IR project as reference. It will help you.

use 1736 for reception not 1738.

PS: moving this post to PIC Discussion section.

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top



This post has been thanked 1 time
electronicfreak
Wed Jul 09 2008, 03:05AM
 User Offline
Registered Member #7958
Joined: Tue May 20 2008, 04:48PM

Posts: 19
Thanked 0 times in 0 posts
what is the difference between 1738 and 1736,what is the problem with 1738....
ur code is in C or it is in assembly language......
thanx for ur suggetion..........
may i know at what time u will be online......

SACHIN
http://belgaum.myminicity.com/
Back to top


Ajay
Thu Jul 10 2008, 07:12AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 4035
Thanked 751 times in 710 posts
TSOP series is represented as TSOP17XX
where XX means the modulating frequency.
if you are modulating data to be sent at 38khz then you have to use TSOP1738 so that you can demodulate the signal successfully.

RC5 remote use 36khz carrier frequency so you have to use TSOP1736 to demodulate the remote signal successfully.

I dont have a fixed time for being online

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top



This post has been thanked 1 time
sashijoseph
Thu Jul 10 2008, 11:16AM

 User Offline
Registered Member #5870
Joined: Mon Feb 04 2008, 06:26PM

Posts: 647
Thanked 137 times in 130 posts
Read this for RC5 ... http://www.ustr.net/infrared/infrared1.shtml
And here's Ajay's code in asm ... http://www.8051projects.net/downloads185.html

Let there be music........
Back to top



This post has been thanked 1 time
electronicfreak
Thu Jul 10 2008, 10:39PM
 User Offline
Registered Member #7958
Joined: Tue May 20 2008, 04:48PM

Posts: 19
Thanked 0 times in 0 posts
i m using the counter in microcontroller, it it increments the register when rising pulse occurs... is it a right right way to read the rc5 code...
in ur prooject you r using the INT1 pin?
it makes any difference

SACHIN
http://belgaum.myminicity.com/
Back to top


umibond
Thu Jul 10 2008, 11:01PM
 User Offline
Registered Member #8952
Joined: Thu Jul 10 2008, 10:55PM

Posts: 2
Thanked 1 time in 1 posts
hi u can use interrupts pins...it ill be easy way i think write ur counting program inside interrupt service routine......



Back to top



This post has been thanked 1 time
electronicfreak
Fri Jul 11 2008, 12:33AM
 User Offline
Registered Member #7958
Joined: Tue May 20 2008, 04:48PM

Posts: 19
Thanked 0 times in 0 posts
i dont know how to count a signal which connected to intrupt pin....
please can u send me anyexample code......
is it works like inbuilt counter as mentioned in my previous reply..


SACHIN
http://belgaum.myminicity.com/
Back to top


electronicfreak
Fri Jul 11 2008, 09:17PM
 User Offline
Registered Member #7958
Joined: Tue May 20 2008, 04:48PM

Posts: 19
Thanked 0 times in 0 posts
thanx every one, i m using the PIC16F72 for this project ,and i m using synchronus counter on pin PC1...... there are 2 counter input pins , can i short them as u made it in above ckt............

SACHIN
http://belgaum.myminicity.com/
Back to top


Ajay
Sat Jul 12 2008, 07:11AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 4035
Thanked 751 times in 710 posts
just use the timer in counter mode and i think you dont even need to use interrupt pin.

whenever a the input signal complete its cycle counter will be incremented by one. Hence your pulses will get counted automatically.

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top



This post has been thanked 1 time
Go to page  [1] 2  

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems