Regular ADC

<< Click to Display Table of Contents >>

Navigation:  STM32F4 Target > Demos > Standard Peripherals Demos > ADC >

Regular ADC

Previous pageReturn to chapter overviewNext page

Demo File: stm32f4_adc_demo.mdl

adc_demo

Description

This example model showing how to read ADC value and process data to control 4 LEDs.

Hardware Setup

Connect variable resistance output to AN5 (pin A5) of STM32F4DISCOVERY board.

What should be happening?

During slow adjust the variable resistance output from 0V to 3.3V, LED1 (PD12) start turn on at output is 0.5V. LED2 (PD13) start turn on at 1V, LED3 start turn on at 1.5V and LED4 start turn on at 2V.