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.

infrared signal encoding

Status
Not open for further replies.

david90

Advanced Member level 1
Joined
May 5, 2004
Messages
423
Helped
9
Reputation
18
Reaction score
4
Trophy points
1,298
Activity points
3,611
My IR transmitter transmit a burst of oscillation at a certain frequency to represent a 1 and a burst of osc. at a different frequency to represent a 0.

What are some ways I can program my at90s2313 MCU to recognize the bursts to recognize the 1s and 0s?

Also, how much can ambient light affect the signal outputted by the photodiode?
 

There are hardware options such as a DTMF decoder chip or ne567 pll chips.

Considering software;

I suspect your uC dosn't have enough memory for an FFT but it might be possible
to squeeze something like a Goertzel DFT into it.

Here is a circuit cellar project doing tone detection in a micro.
**broken link removed**

There are various ways of doing tone detection. There is lots of signal processing
literature if you care to wade through the horrible maths.

It will help if your transmitter is crystal controlled so you can rely on the
tone frequency being very close to what you expect.

You can measure the period between transitions, take an average over a period
and look it it to be 1/f for several periods. You could do correlation by looking
for some edges to get in phase then correlating having a value starting at zero,
using a timer to work out if you expect the tone to be above zero or below zero at
that moment in time, if the input matches what you expect add one to the count,
if it dosn't subtract one. After a suitable period of time a high value indicates
a high correlation.

>Also, how much can ambient light affect the signal outputted by the photodiode?

You probably want a filter in front of the receiver.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top