Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic 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.

Register Log in

Help me with PWM decoder of a RF remote control for PIC

Status
Not open for further replies.

schmitt

Junior Member level 3
Joined
May 15, 2001
Messages
28
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
211
Hi ,

Does anybody have any code written in C to decode the PWM output of a RF remote control (from a car alarm) . Doesn't have to be code hopping just read the code so that I can display it .

Thanks in advance

Schmitt

:lol: :lol: :lol:
 

bunalmis

Full Member level 5
Joined
Jan 3, 2003
Messages
268
Helped
19
Reputation
38
Reaction score
11
Trophy points
1,298
Location
Ireland
Activity points
2,147
pwm decoder ic

Car alarm's transmitter units usualy uses coder IC.
This IC's output signals not PWM.

All ICs uses different codes.
 

schmitt

Junior Member level 3
Joined
May 15, 2001
Messages
28
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
211
remote control+pic+pwm

Hi bunalmis, :lol:

The transmitters that I have use a PIC and definatley you PWM as an out put .

They transmit a 25bit signal (3 * 8bit + a "0" at the start for preamble)

A "0" is 300uS high then 600uS low , a "1" is 600uS high then 300uS low.

I was going to sample the data every 300uS to calculate the data but I thought I would ask first . why reinvent the wheel.

The decoder chip in the reciever is also a PIC

Thanks

Schmitt :lol: :lol:
 

bunalmis

Full Member level 5
Joined
Jan 3, 2003
Messages
268
Helped
19
Reputation
38
Reaction score
11
Trophy points
1,298
Location
Ireland
Activity points
2,147
pwm pic decode

Ok you can this coding. But this coding name is it pwm ?

You use fix on and off time.
 

Nick C.

Full Member level 5
Joined
Dec 19, 2002
Messages
281
Helped
33
Reputation
66
Reaction score
25
Trophy points
1,308
Activity points
2,213
pwm decode pic

Do you have physical access to the receiving
hardware?

Nick C.
 

petarpav

Full Member level 5
Joined
Mar 25, 2002
Messages
301
Helped
13
Reputation
26
Reaction score
5
Trophy points
1,298
Activity points
2,172
pwm forpic

I've interested too.
:)
 

schmitt

Junior Member level 3
Joined
May 15, 2001
Messages
28
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
211
pic pwm decoding

Yes , i have access to the reciever.

The transmitters have two buttons . the first arms the car alarm , the second activates a panic alarm when the alarm is disabled . The alarm has a LED "ARMED" output so I wired a SSR to that and I use it to remote turn on some lights in my garden . I bought several reciever hybrids and I am going to attach them to a PIC so that I can use both buttons to control 2 items rather than just the one.

Thanks

Schmitt :lol: :lol: :lol:
 

stefk

Member level 2
Joined
Jul 15, 2001
Messages
42
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
293
pic pwm decoder

Hi Schmitt,
You can use a sample code how to read remote control's data from here:
http://www.microchip.com/1010/suppdoc/appnote/product/keeloq/decodrs/index.htm
There are samples in assembler and C.
This programmes implement reading of Microchip's code hoping encoders based on KEELOQ technology and they are too complex, but you can get just the part responsible for receiving the code. The format of the data is a little diferent from your case , but it is easy to make some corrections in the program to satisfy your needs.
 

schmitt

Junior Member level 3
Joined
May 15, 2001
Messages
28
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
211
decoder pwm

Thanks Stefk,

I will have a look and see.


Schmitt :lol: :lol: :lol:
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top