Getting Started With STM32 and Nucleo Part 2: How to Use I2C to Read Temperature Sensor TMP102
Let’s take our STM32 to the next level and communicate with a sensor. We’ll use the I2C protocol to send and receive messages with a TI TMP102.
In this video, we’ll show you how to use the STM32CubeIDE to create a new project and write a few simple STM32 HAL commands to transmit messages across the I2C bus. We’ll read temperature data from a TMP102 sensor and then calculate a readable temperature in Celsius from that information. Finally, we’ll use the STM32’s UART peripheral to transmit that temperature data back to our computer to read on a serial console.
The STM32 series is based on the ARM Cortex architectures. Specifically, we’ll be looking at the STM32 Arm Cortex-M microcontrollers. To make life easier, we’ll be using STMicroelectronics’ official Nucleo development boards (the Nucleo-L476RG in particular).
WRITTEN TUTORIAL
If you would like to see the steps performed in this video in written form, please see the tutorial here: https://www.digikey.com/en/maker/projects/getting-started-with-stm32-i2c-example/ba8c2bfef2024654b5dd10012425fa23
Wishlist (shared cart): https://www.digikey.com/short/p59jrr
ADDITIONAL RESOURCES
Related Projects https://www.digikey.com/maker/search-results?&k=Getting%20Started%20with%20STM32%20and%20Nucleo
Download STM32CubeIDE: https://www.st.com/en/development-tools/stm32cubeide.html
STM32 HAL documentation (click on family from graphic and then Resources tab) : https://www.st.com/en/embedded-software/stm32cube-mcu-mpu-packages.html
SparkFun I2C Tutorial: https://learn.sparkfun.com/tutorials/i2c/all
Maker.io: https://www.digikey.com/en/maker
Digi-Key’s Blog - TheCircuit: https://www.digikey.com/en/blog
Connect with Digi-Key on Facebook: https://www.facebook.com/digikey.electronics/
And follow us on Twitter: https://twitter.com/digikey
Видео Getting Started With STM32 and Nucleo Part 2: How to Use I2C to Read Temperature Sensor TMP102 канала Digi-Key
In this video, we’ll show you how to use the STM32CubeIDE to create a new project and write a few simple STM32 HAL commands to transmit messages across the I2C bus. We’ll read temperature data from a TMP102 sensor and then calculate a readable temperature in Celsius from that information. Finally, we’ll use the STM32’s UART peripheral to transmit that temperature data back to our computer to read on a serial console.
The STM32 series is based on the ARM Cortex architectures. Specifically, we’ll be looking at the STM32 Arm Cortex-M microcontrollers. To make life easier, we’ll be using STMicroelectronics’ official Nucleo development boards (the Nucleo-L476RG in particular).
WRITTEN TUTORIAL
If you would like to see the steps performed in this video in written form, please see the tutorial here: https://www.digikey.com/en/maker/projects/getting-started-with-stm32-i2c-example/ba8c2bfef2024654b5dd10012425fa23
Wishlist (shared cart): https://www.digikey.com/short/p59jrr
ADDITIONAL RESOURCES
Related Projects https://www.digikey.com/maker/search-results?&k=Getting%20Started%20with%20STM32%20and%20Nucleo
Download STM32CubeIDE: https://www.st.com/en/development-tools/stm32cubeide.html
STM32 HAL documentation (click on family from graphic and then Resources tab) : https://www.st.com/en/embedded-software/stm32cube-mcu-mpu-packages.html
SparkFun I2C Tutorial: https://learn.sparkfun.com/tutorials/i2c/all
Maker.io: https://www.digikey.com/en/maker
Digi-Key’s Blog - TheCircuit: https://www.digikey.com/en/blog
Connect with Digi-Key on Facebook: https://www.facebook.com/digikey.electronics/
And follow us on Twitter: https://twitter.com/digikey
Видео Getting Started With STM32 and Nucleo Part 2: How to Use I2C to Read Temperature Sensor TMP102 канала Digi-Key
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
Getting Started With STM32 and Nucleo Part 3: FreeRTOS - How To Run Multiple Threads w/ CMSIS-RTOSGetting Started with STM32 and Nucleo Part 1: Introduction to STM32CubeIDE and Blinky – Digi-KeyGetting Started with STM32 and Nucleo Part 5: How to Use SPI | Digi-Key ElectronicsSTM32 Guide #2: Registers + HAL (Blink example)Getting Started with STM32 and Nucleo Part 6: Timers and Timer Interrupts | Digi-Key Electronics20.- 🚀UART 🔥 HAL - STM32 🤖How I2C Communication Works and How To Use It with ArduinoWhat is I2C, Basics for BeginnersUsing I2C for any device on STM32 with HAL | VIDEO 26Interface BMP180 Pressure Sensor with STM32 || Temperature || Altitude || CubeIDEPROTOCOLS: UART - I2C - SPI - Serial communications #001STM32F4 Nucleo - Keil 5 IDE with CubeMX: Tutorial 37 - HC-SR05 Ultrasonic SensorEasy & Powerful Arduino Alternative? STM32 Beginner's GuideLCD via I2C in STM32 || CUBEIDE || PCF8574DHT11 || DHT22 || DS18B20 with STM32 using TIMER DelaySTM32 Guide #1: Your first STM32 dev boardGetting Started With STM32 & Nucleo Part 4: Working with ADC and DMA - Maker.ioSTM32 Programming Tutorial for Custom Hardware | SWD, PWM, USB, SPIInterface LCD 1602 with STM32 || Parallel Connection || 4 bit mode || noI2C