Save this video free

CE351 lec19 IR transmitter/receiver (no ISR)

Yiyan Li · 43:12 · Watch on YouTube

Part of Fort Lewis College CE351. See all 21 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Yiyan Li explains how to transmit UART-formatted data over an infrared link by combining a 38 kHz carrier with a slower data envelope. The design uses Timer 5 PWM on OC5B, with ICR5 setting the carrier period and OCR5B setting its 10% duty cycle, while Timer 3 is polled without an ISR to time the 1200-bit/s envelope; the lecture also covers receiver polarity, LED current limits, pin mapping, and timer-register configuration.

Key takeaways

Chapters

0:00 38 kHz IR Carrier and Active-Low Receiver Output
5:50 UART Framing Separates Data Rate from IR Carrier Frequency
9:30 Reading the IR LED's Pulsed-Current Rating
15:00 Duty Cycle, Resistor Selection, and LED Heating
20:20 IR Beam Direction and the Arduino OC5B Pin
23:10 Timer 3 Polling Creates the Data Envelope Without an ISR
29:00 Timer 5 PWM Control Using ICR5 and OCR5B
37:50 Timer Count Setup and WGM Bits for the Quiz

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:04 So, O C N X is a pin, right? I see R what? N is a top and O C R N X is what is a compare match, right? So these are registers and this is a pin. Okay, these are two registers. The pin. Uh if I have 38 kHz for IR, right? So I'm expecting

1:00 This part here is going to be 38 kHz and this part will be a different frequency. Right? So, but we are not looking at the whole period here. We're only looking at every single block over here. So, this is going to be a frequency. So when how often this happens right will determine uh a parameter in the in application and what is that parameter remember? So what happens is you have your skyboard and here's your uh little IR and here's a

1:47 receiver and receives. So it bounce bounces back to the receiver. Um so whenever this is high so IR emitter if IR emitter is giving you a high or oscillation or on right or on your um IR receiver it's outputting what zero Okay. Well, just doing a review. I know you guys ready to forget everything after the weekend. So, just review things a little bit. Okay.

2:41 We're getting older. Your memor is getting really bad. So whenever the PWM is active, okay, it's in the air. So it act activates the light. The air light blinks and sending out light pulses and that reach and being sent into the air and it's just bounce bouncing back and forth everywhere and so the receiver on the board will will receive it. Okay, whenever this is being received, it responds uh the response u at the output is going to be zero. If there are pulses and there's no nothing happening,

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Yiyan Li.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.