Sign in

Not a member? | Forgot your Password?

Search basicx

Search tips

Subscribe to basicx

Free PDF Downloads

Advanced Linux Programming

What Every Programmer Should Know About Memory

Introduction to Embedded Systems

C++ Tutorial

Embedded Systems - Theory and Design Methodology

Microcontroller Programming and Interfacing

Introduction to Microcontrollers


More Free PDF Downloads

Discussion Groups

See Also

ElectronicsDSPFPGA

Discussion Groups | BasicX | Generating a 38kHz Freqout IR signal for the PNA4602M (38.0kHz)

Discussion forum for the BasicX family of microcontroller chips.

Generating a 38kHz Freqout IR signal for the PNA4602M (38.0kHz) - august161616 - Jan 7 12:28:00 2005


Hi,
I am stumped with a simple problem. I am tring to generate a IR
signal using the FREQOUT command that will be detected by the
Panasonic PNA4602M (38.0kHz) IR reciever. I cannot get the
system/code to work. Can someone tell how I can generate a 38kHZ
signal. Not sure if my code is wrong or hardware has been fried...

The Freqout command requires an integer frequency (max 32767)?? Is
there a work around with the BX24 like the BS2 by Parallax?

Thanks.






Re: Generating a 38kHz Freqout IR signal for the PNA4602M (38.0kHz) - Mike Perks - Jan 7 13:45:00 2005

I don't think Freqout() willl do the job.

I am also working on IR distance and object detection using a Vishay
38MHz device. For the detector to work correctly you need to modulate
your own signal (simple 1 and 0's will do about 1ms apart) on top of the
38MHz carrier (26.3 us).

In any case I have used two different external oscillators, one based on
555 timer and the other on some NAND gates (74HC00). Here are some links
that might help
http://www.robotstore.com/download/3-573_IRPD_specs.pdf
http://www.robotroom.com/InfraredTransmitter.html
http://www.robotroom.com/Infrared555.html I also created a simple subroutine to measure the frequency of my
oscillator to make sure it is correct. One day I will buy a
oscilloscope:) See message 17530
http://groups.yahoo.com/group/basicx/message/17530

Mike

>Hi,
>I am stumped with a simple problem. I am tring to generate a IR
>signal using the FREQOUT command that will be detected by the
>Panasonic PNA4602M (38.0kHz) IR reciever. I cannot get the
>system/code to work. Can someone tell how I can generate a 38kHZ
>signal. Not sure if my code is wrong or hardware has been fried...
>
>The Freqout command requires an integer frequency (max 32767)?? Is
>there a work around with the BX24 like the BS2 by Parallax?
>
>Thanks. >





Re: Generating a 38kHz Freqout IR signal for the PNA4602M (38.0kHz) - C Wyke - Sep 7 16:16:00 2002

Thanks for the info Mike,

I have no idea what is going on - my design was working flawlessly for months!!! I was using the following code:

Const Freq as integer = 19000
Freqout(pin#, Freq*2, Freq*2, 2ms) 'trying to fool the freqout command???

But stopped working yesterday. I put a scope on the output and realized the signal did not look much like a 38kHz signal. I have scratched my brain for two days trying to figure out what changed.

I guess I will go back to the drawing board with the info you provided.

Thanks again.
----- Original Message -----
From: Mike Perks
To:
Sent: Friday, January 07, 2005 2:45 PM
Subject: Re: [BasicX] Generating a 38kHz Freqout IR signal for the PNA4602M (38.0kHz) I don't think Freqout() willl do the job.

I am also working on IR distance and object detection using a Vishay
38MHz device. For the detector to work correctly you need to modulate
your own signal (simple 1 and 0's will do about 1ms apart) on top of the
38MHz carrier (26.3 us).

In any case I have used two different external oscillators, one based on
555 timer and the other on some NAND gates (74HC00). Here are some links
that might help
http://www.robotstore.com/download/3-573_IRPD_specs.pdf
http://www.robotroom.com/InfraredTransmitter.html
http://www.robotroom.com/Infrared555.html I also created a simple subroutine to measure the frequency of my
oscillator to make sure it is correct. One day I will buy a
oscilloscope:) See message 17530
http://groups.yahoo.com/group/basicx/message/17530

Mike

>Hi,
>I am stumped with a simple problem. I am tring to generate a IR
>signal using the FREQOUT command that will be detected by the
>Panasonic PNA4602M (38.0kHz) IR reciever. I cannot get the
>system/code to work. Can someone tell how I can generate a 38kHZ
>signal. Not sure if my code is wrong or hardware has been fried...
>
>The Freqout command requires an integer frequency (max 32767)?? Is
>there a work around with the BX24 like the BS2 by Parallax?
>
>Thanks. >


------
Yahoo! Groups Links

a.. To




_____________________________
 Free pdf download: Advanced Linux Programming.


Re: Generating a 38kHz Freqout IR signal for the PNA4602M (38.0kHz) - eykwek - Jan 16 2:59:00 2005


Hi,
we succeeded by using a 555 timer chip to generate the IR signal.

Connect pin 27 of the bx to pin 4 of the 555 timer. Use bx's
outputcapture procedure to send out the IR signal. The pulse
durations are stored in an array that the outputcapture procedure
uses.

The 555 timer will generate square wave pulses at 36 kHz. This site
teaches you how to set up the 555 to generate square pulses:

http://www.uoguelph.ca/~antoon/gadgets/555/555.html

Look under 'astable multivibrator' section.

The IR signal comes out from the bx's pin 27 and switches the 555 on
and off. In so doing, the IR signal gets modulated with.

The modulated signal comes out through pin 3 of the 555 timer. Just
connect an IR diode to pin 3 of 555 timer, and it will emit the
required IR light to control your aircon.

--- In , "august161616" <c.wyke@c...> wrote:
>
> Hi,
> I am stumped with a simple problem. I am tring to generate a IR
> signal using the FREQOUT command that will be detected by the
> Panasonic PNA4602M (38.0kHz) IR reciever. I cannot get the
> system/code to work. Can someone tell how I can generate a 38kHZ
> signal. Not sure if my code is wrong or hardware has been fried...
>
> The Freqout command requires an integer frequency (max 32767)??
Is
> there a work around with the BX24 like the BS2 by Parallax?
>
> Thanks.






Re: Generating a 38kHz Freqout IR signal for the PNA4602M (38.0kHz) - pha555 - Jan 16 11:48:00 2005



At http://www.phanderson.com/picaxe/ir_trans.html I have an 8-pin PIC
which generates most common frequencies. It is $3.00 plus shipping.

PHAnderson, http://www.phanderson.com

--- In , "eykwek" <eykwek@h...> wrote:
>
> Hi,
> we succeeded by using a 555 timer chip to generate the IR signal.
>
> Connect pin 27 of the bx to pin 4 of the 555 timer. Use bx's
> outputcapture procedure to send out the IR signal. The pulse
> durations are stored in an array that the outputcapture procedure
> uses.
>
> The 555 timer will generate square wave pulses at 36 kHz. This site
> teaches you how to set up the 555 to generate square pulses:
>
> http://www.uoguelph.ca/~antoon/gadgets/555/555.html
>
> Look under 'astable multivibrator' section.
>
> The IR signal comes out from the bx's pin 27 and switches the 555 on
> and off. In so doing, the IR signal gets modulated with.
>
> The modulated signal comes out through pin 3 of the 555 timer. Just
> connect an IR diode to pin 3 of 555 timer, and it will emit the
> required IR light to control your aircon.
>
> --- In , "august161616" <c.wyke@c...> wrote:
> >
> > Hi,
> > I am stumped with a simple problem. I am tring to generate a IR
> > signal using the FREQOUT command that will be detected by the
> > Panasonic PNA4602M (38.0kHz) IR reciever. I cannot get the
> > system/code to work. Can someone tell how I can generate a 38kHZ
> > signal. Not sure if my code is wrong or hardware has been fried...
> >
> > The Freqout command requires an integer frequency (max 32767)??
> Is
> > there a work around with the BX24 like the BS2 by Parallax?
> >
> > Thanks.