CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Infrared data transfer

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
attabros



Joined: 28 Jul 2008
Posts: 35

View user's profile Send private message

Infrared data transfer
PostPosted: Fri Oct 24, 2008 8:06 am     Reply with quote

Hi all,
I want to transfer a continous data through IR. What frequency
should I select to transfer the data ? Should I use the same as in
remote control applications which is 38KHz or some other frequency ?
Ttelmah
Guest







PostPosted: Fri Oct 24, 2008 8:56 am     Reply with quote

Depends totally on what you want to do.
Basically, the faster you work, the more complex the drive circuitry needs to be for a given range. At low speeds you have increased risk of picking up other sources. 38K, was fast enough to make it unlikely to pick up flicker from the TV itself (when this was first used, under 20K), or other 'household' sources, and gave a fast enough data rate for the simple commands needed. It is also slow enough to be directly decoded and generated by a fairly simple microprocessor, without involving external complex hardware.
However if you need higher tansmission speeds, then consider IRDA, or going completely 'DIY', for really fast links. Depending on the reliability needed, and the enviroment involved (can you 'aim' the receiver/transmitter - rain or fog, likely objects to break the link, etc. etc.), you will need to consider methods of error correction or recovery.
Depending on the range, and likely power needed, you then may run into 'regulatory' requirements.
For higher data rates, you would probably want to consider a link that doesn't use a 'carrier' as such, but instead codes the data so that the the transmission frequency can be recovered using a PLL from the data stream itself.
IR, covers a whole 'suite' of technologies, giving link rates from a few Hz, to hundreds of MHz.

Best Wishes
Rohit de Sa



Joined: 09 Nov 2007
Posts: 282
Location: India

View user's profile Send private message Visit poster's website

PostPosted: Fri Oct 24, 2008 10:15 pm     Reply with quote

This thread has some information that you may find useful.

http://www.ccsinfo.com/forum/viewtopic.php?p=104270

Rohit
attabros



Joined: 28 Jul 2008
Posts: 35

View user's profile Send private message

PostPosted: Fri Oct 31, 2008 6:31 am     Reply with quote

The IR receiver range is more than 10 metre which is enough for
my requirement i have checked it with test circuit now i m going to test it
sending PIC 16F877A can any one provide me simple program for both IR transmitter & receiver side if i just send a data to blink an LED on the receiver side so that i can understand how the IR devices configured with
PIC controller. How to use PWM why we use it what is the purpose of PINS CCP1 & CCP2.
Kindly help me out.
Thanks
Rohit de Sa



Joined: 09 Nov 2007
Posts: 282
Location: India

View user's profile Send private message Visit poster's website

PostPosted: Fri Oct 31, 2008 7:18 am     Reply with quote

Quote:
The IR receiver range is more than 10 metre
Usually, the 'range' of the complete system is specified; not just of the receiver. The range depends on both the receiver and the output power of the IRLED. If you only want to talk about the receiver you would talk about its 'sensitivity'.
Quote:
i have checked it with test circuit now i m going to test it
Since you've already checked it, I'm sure you understand something about it. Please write a few lines of code yourself first. We will certainly help you out if the code is wrong. See, its your project, and a little effort on your part is expected.

You haven't mentioned the IR sensor that you are using, but if it's the TSOP series, remember that the sensor will only respond to data modulated at a particular frequency. For the TSOP1738 this frequency is 38kHz. The TSOP output pulls low when 38kHz IR light hits it. If you simply want to turn an LED on and off use a PIC to output a 38kHz square wave (this can also be done with a 555 timer) to an IRLED. Connect an indicator LED to the TSOP output. Beaming IR light at the TSOP will cause its output to swing low. You will need to connect the LED appropriately to see an active low or active high output.

Rohit
attabros



Joined: 28 Jul 2008
Posts: 35

View user's profile Send private message

PostPosted: Sat Nov 08, 2008 9:14 am     Reply with quote

Hi

I have built an IR transmitter on vero board & configure the PWM mode at 38KHZ & 50% duty cycle but slightly confused how I will send data
on the CCP pin which is C2. Lets suppose I send two bits 1 & then 0
with delay. How it will be possible ?

Thanks
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group