Save this video free

CE351 lec20 IR transmitter and receiver task 1 and task 2

Yiyan Li · 54: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

CE351 lecture 20 explains how an Arduino Mega transmits one byte over infrared using UART framing, a 38 kHz PWM carrier, and an IR receiver connected to Serial1. It contrasts Task 1’s polling-based timing with Task 2’s Timer 3 interrupt state machine, showing how an LSB-first bit mask selects each data bit and how PWM on/off represents zero/one at the receiver.

Key takeaways

Chapters

0:00 Task 1 Byte Transmission: Send and Receive an ASCII Character
5:00 Serial1 UART Reception and the One-Byte Buffer
10:00 UART Baud Rate Configuration and Timer Registers
13:00 Timer 5 PWM Carrier and Timer 3 Polling Delay
20:00 Task 1 Frame Construction with an LSB-First Mask
31:00 Polling Completion and the Task 2 Interrupt Approach
37:00 Task 2 ISR Idle and Start-Bit States
40:30 Cadence Memory Compiler Setup and AI Troubleshooting Aside
44:00 Eight ISR Data-Bit Interrupts and Persistent Mask State
48:00 ISR Stop Bit, Idle Return, and Friday Quiz Preparation

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

Transcript excerpt

0:01 All right, it's been several lectures on our transmission. So what are we really trying to do here? For the task one, task two, there are two different methods of transmitting one character which is one bite. And for task three is to transmit a string, several characters at the same time. So that involves different techniques to handle that. Right? So for the for the one bite one u and that in mind that I didn't give you guys the solution directly uh instead I do have a lot of examples to get you start with so please follow this format make sure that you're not creating totally new thing so there will be many ways to do this to get the job done but you have to follow this format make sure we it's consist what you

0:50 learned is being used in for your assignment. Okay. So the result for task one, let's take a quick look at it. So I press S enter five was just and so 35 here is hex number of ask code five and I do another. So I'm going to receive it. Press R here and enter. So five was just received by 01. Okay. S one more time. >> Even though the the font size is really small, but you can tell that what I'm trying to do is I press S to transmit it and then I press the R to receive it. So that's very first example seem like to be it's really simple. So how that works

1:39 in physics? You press S. Okay, press S. It's a bite and that bite has uh eight bits and you are using the UR IR to transmit every single bit by either turn on the PWM or turn it off. So you can send the one

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.