filmov
tv
Beginners Guide to SPI on the Raspberry Pi Pico (BMP280 Example)
![preview_player](https://i.ytimg.com/vi/s7Lud1Gqrqw/maxresdefault.jpg)
Показать описание
This video covers the basics of the SPI communication protocol and how to use it on your Raspberry Pi Pico. We use a Visual Studio Code project to program the brand-new Raspberry Pi Pico microcontroller board in C. We created a project which uses the BMP280 temperature and pressure sensor to read values of temperature over SPI and print them to a serial monitor over a USB connection to a PC.
This video provides the fundamental background of the SPI communication protocol and explains how to correctly wire an SPI compatible device to the Pico. It explains which functions in the Pico SDK to use in order to communicate with this device. We also cover how to configure the Raspberry Pi Pico correctly, in both the CMakeLists file and the C file, in order to enable SPI communication.
As an example, the BMP280 breakout board from Adafruit is used to demonstrate writing to, and reading from, registers on a peripheral device. This video also shows you where to find the required information in your particular peripheral device’s datasheet in order to get your peripheral device functioning correctly.
BMP280 Breakout board is available at Amazon (Affiliate):
Timestamps
00:00 Introduction
00:53 SPI Basics
02:41 Pico Wiring
03:49 SPI Protocol
05:11 Pico SDK I2C Functions
06:12 Read/Write Operations
07:02 Programming Example
13:38 Conclusion
If this video helped you, please consider leaving a like and subscribing, thank you!
-- Equipment I use regularly --
The following links are affiliate links where I may make a small percentage on qualifying sales through these links. Use the respective UK or US links listed.
All videos and tutorials on this channel and mentioned websites are for educational purposes only.
This video provides the fundamental background of the SPI communication protocol and explains how to correctly wire an SPI compatible device to the Pico. It explains which functions in the Pico SDK to use in order to communicate with this device. We also cover how to configure the Raspberry Pi Pico correctly, in both the CMakeLists file and the C file, in order to enable SPI communication.
As an example, the BMP280 breakout board from Adafruit is used to demonstrate writing to, and reading from, registers on a peripheral device. This video also shows you where to find the required information in your particular peripheral device’s datasheet in order to get your peripheral device functioning correctly.
BMP280 Breakout board is available at Amazon (Affiliate):
Timestamps
00:00 Introduction
00:53 SPI Basics
02:41 Pico Wiring
03:49 SPI Protocol
05:11 Pico SDK I2C Functions
06:12 Read/Write Operations
07:02 Programming Example
13:38 Conclusion
If this video helped you, please consider leaving a like and subscribing, thank you!
-- Equipment I use regularly --
The following links are affiliate links where I may make a small percentage on qualifying sales through these links. Use the respective UK or US links listed.
All videos and tutorials on this channel and mentioned websites are for educational purposes only.
Комментарии