Pre-class Assignment

Read through section 6.1 and complete the participation activities.

Announcements

Learning Objectives and Outcomes

In this lecture, you will...

By the end of this lecture, you should be able to...

Lecture Content

Analog to Digital Conversion

Analog to Digital Conversion is essential for interfacing with the “real world.”

[Source](https://prod-files-secure.s3.us-west-2.amazonaws.com/25a26768-7005-47a0-9fe2-af1d3ae27b96/e79e5e85-3465-493e-95cd-b54e5791e405/0418_adc_signal_2.avif)

Source

AnalogIn

For lab 2, we’ll be designing a heart rate monitor. In order to help debug our heart rate monitor, we’re going to design a basic digital oscilloscope. This oscilloscope will sample our signal at a fixed frequency (e.g. 100 Hz), and then print the results to the serial monitor. In order to design our scope, we need to make sure that the serial monitor can support the amount of information that we’d like to transfer. To understand this, we need to know how the serial monitor works.

The serial monitor uses a protocol called Universal Asynchronous Receiver-Transmitter (UART). UART uses bits (0 or 1s) to communicate data between devices. Each device has its own line for transmission, for two total lines.

<aside> 💡 On the NUCLEO board, the UART lines are D0 and D1, also known as USBRX and USBTX, respectively. This is why we connected our keypad to D2 to D9.

</aside>