STMicroelectronics AN4014 Adjustable LED Blinking Frequency Application Note

This application note introduces an application example that adjusts the blinking frequency of a string of 4 LEDs using a potentiometer.


STMicroelectronics AN4014 Adjustable LED Blinking Frequency Application Note - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
10
File format
PDF
File size
88 KB
Published
06 August, 2012
Updated
01 October, 2023
MD5 checksum
A5A34CAA5E6FAAEA20DE637BAB0F18F2

About this manual

This document introduces a simple application example for beginners to learn about the STM8SVLDISCOVERY evaluation board and its programming environment. The application adjusts the blinking frequency of a string of four LEDs by measuring the analog voltage from a potentiometer using the microcontroller's ADC.

What's inside

  • Application description
  • Hardware required
  • Application schematics
  • Application principle
  • Software description
  • Touch sensing library configuration
  • Standard firmware library configuration
  • Application software flowcharts
  • Revision history

Specifications

MicrocontrollerSTM8S003K3T6
ADC Resolution10-bit
ADC ChannelAIN2
LED Count4 LEDs
Potentiometer Value10 K
Resistor Value510 ohms

Frequently asked questions

What hardware is required to run this application?

The application requires an STM8SVLDISCOVERY board, a 10 K potentiometer, 4 LEDs, and 4 resistors of 510 ohms.

How is the blinking frequency controlled?

The blinking frequency is controlled by a potentiometer which adjusts the analog voltage measured by the ADC, thereby changing the delay time for each LED.

Does the application require manual firmware updates?

No, the application automatically starts as soon as the STM8SVLDISCOVERY is powered-up through a standard USB cable connected to the host PC.

Download PDF (88 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →