IR recoder topic

OP #6382002
Lesenswert?
• ▲
▼
Hello everyone,
I am try to make IR learning remote by using microcontroller ( my item 
is EFR32 of Silicon labs)
I used to refer IRMP_English and IRSND to decoder and encoder IR signal 
and I was successful with protocols which are available in the IRMP 
Protocols.
but it will not work with strange protocols.
Do we need to decode it to be able to save it and emit it?
Is there any way we could capture the infrared signal, then save it and 
emit it without encoding end decoding it? because if encoding and 
recording will not work if there is a strange protocol.
I searched a lot of information on various forums but couldn't find it.
#6382004
Lesenswert?
• ▲
▼
Lê Q. schrieb:
> Do we need to decode it to be able to save it and emit it?

Not necessarily. I'd use constant time interval sampling of the 
demodulated signal.

Good old Nyquist says if your sample distance t_s is less than twice the 
shortest distinguishable timespan t_d of the protocol, it should work.

N.b. the shortest distinguishable time span would be t_d=1msec if 4msec 
pulses and 5msec pulses must be distinct.

Lê Q. schrieb:
> because if encoding and recording will not work if there is a strange
> protocol.

Maybe you analyze the demodulated signal and compare to existing codes. 
If it partly fits, reuse some code from existing code implementation.

Is there a way for you to record the demodulated signal to a file? E.g. 
Logic analyzer? I suggest posting the file here.
#6382163
Lesenswert?
• ▲
▼
Lê Q. schrieb:
> I'd use constant time interval sampling

Recording
TSOP1136 -> MCU-pin -> sample with 10kHz task -> 10kHz bitstream

Replay
Timer 40kHz     -> MCU-Pin0
10kHz bitstream -> MCU-Pin1

(MCU-Pin0 & MCU-Pin1) -> IR-LED


By the way, the IRMP does allow for offline-Analysis.

Can you share some information about the device which you want to 
control?
Brand, type of device etc...?

br, mf
#6382172
Lesenswert?
• ▲
▼
PS "demodulated signal"

Most IR remote controls use a carrier about 40kHz, which is then 
modulated
1
IR    ____|||||____||||||____ ...
2
      ____     ____      ____
3
demod     |___|    |____|     ...
4

5
demod is inverted, because most receiver IC have open-collecor-output
Simple receiver IC like the TSOP1136 or more modern ones (no idea what's 
available in your country) will demodulate i.e. remove the 40kHz carrier

Antwort schreiben

Hinweis: der ursprüngliche Beitrag ist mehr als 6 Monate alt. Bitte hier nur auf die ursprüngliche Frage antworten, für neue Fragen einen neuen Beitrag erstellen.

Formatierung
  • [c]C-Code[/c]
  • [code]Code in anderen Sprachen, ASCII-Zeichnungen[/code]
  • [math]Formel in LaTeX-Syntax[/math]
  • [[Titel]] – Link zu einem Artikel
  • Verweis auf einen anderen Beitrag: Rechtsklick auf dessen Beitrags-ID (#8078628), „Adresse kopieren“, in den Text einfügen

Mehr zur Formatierung

Längeren Sourcecode als Anhang, nicht in den Text. JPG nur für Fotos und Scans; Zeichnungen und Screenshots als PNG oder GIF. Siehe Bildformate.

Schon registriert? Anmelden

Wird nicht angezeigt. Wir schicken dir einen Link; sobald du damit bestätigst, erscheint dein Beitrag.

Mit dem Abschicken legst du einen kostenlosen Account an und erkennst die Nutzungsbedingungen und die Datenschutzerklärung an.