Giter VIP home page Giter VIP logo

stm32-example-codes's Introduction

STM32-example-codes

Libraries and examples

This project contains various example codes and custom libraries created for STM32 micronctrollers (L1, F4 and F7 variants). The L1 and F4 examples use the Standard Peripheral Library, whereas the F7 examples use the Hardware Abstraction Layer (HAL) drivers.

  1. TC74 Temperature Measurement
    This program reads the temperature of a TC74 connected to an STM32L152 discovery board. The sensor is connected on the I2C1 pins (SCL: PB6, SDA: PB7). It returns the value to a variable named temperature which then can be sent via UART, shown on a display or through a debug session.

  2. TC74 with error handling
    This program reads the temperature of a TC74 connected to an STM32L152 discovery board. The sensor is connected on the I2C1 pins (SCL: PB6, SDA: PB7). It returns the value to a variable named temperature which then can be sent via UART, shown on a display or through a debug session. In case of a timeout or an acknowledge failure, the program returns the error code and continues normal execution.

  3. TC74 with low power
    This program reads the temperature of a TC74 connected to an STM32L152 discovery board. The sensor is connected on the I2C1 pins (SCL: PB6, SDA: PB7). It returns the value to a variable named temperature which then can be sent via UART, shown on a display or through a debug session. The temperature is sampled every 5 seconds, via TIM6. After that the TC74 enters standby mode until the next read.

  4. I2C EEPROM with error handling
    Library and example in order to read and write data to an EEPROM chip via I2C. It uses I2C3 (PA8 for SCL, PC9 for SDA) with a 24LC01B chip.

  5. SPI Potentiometer
    Library and example to operate a Microchip MCP41XXX potentiometer.

  6. INA226
    Library and example for the I2C INA226 in order to configure the monitor and read the bus voltage via I2C. It uses I2C1 (PB8 for SCL, PB9 for SDA).

  7. L152 Disco PWM Generator
    This program output a PWM signal to PB7, with variable frequency and duty cycle. The values are set using the Discovery's touch sensor and are displayed on the embedded LCD. The user button is pressed to change between setting the frequency and the duty cycle.

  8. F4 Dot Matrix Controller
    This example shows how to drive an 64x32 Dot Matrix Display using an STM32F429 Discovery board. It uses UART to get new frames and stores them in two different memory banks.

stm32-example-codes's People

Contributors

macgeorge avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.