MENU

Fun & Interesting

FreeRTOS on the Raspberry Pi Pico (RP2040) Part 2: Tasks and Queues

Learn Embedded Systems 31,619 3 years ago
Video Not Working? Fix It Now

FreeRTOS is an open source Real Time OS available for a wide range of microcontrollers and this video is part 2 in a series on using FreeRTOS on RP2040 based boards such as the Raspberry Pi Pico. In this video we show you how to set up tasks in FreeRTOS. We also cover how to communicate between tasks with queues. By the end of this tutorial you will have a project where one task will flash the LED on the Raspberry Pi Pico on and off and the other task will print the state of the LED over USB serial. The written version of this tutorial and the code used is available: https://learnembeddedsystems.co.uk/freertos-part-2-tasks-and-queues-tutorial Template Project Repo: https://github.com/LearnEmbeddedSystems/rp2040-freertos-project GitHub Command: "git clone --recurse-submodules https://github.com/LearnEmbeddedSystems/rp2040-freertos-project" In this tutorial we create a simple "blinky" program where a Raspberry Pi Pico toggles its onboard LED on and off and communicated this over USB serial interface using two FreeRTOS tasks. Timestamps 00:00 Introduction 00:45 What is a Real Time OS? 04:24 Tasks 05:23 Queues 07:44 Implementation 12:50 Conclusions If this video helped you, please consider leaving a like and subscribing, thank you! To see our videos on the Raspberry Pi Pico, check out the playlist here: https://www.youtube.com/playlist?list=PLEB5F4gTNK68IlRIJtcJ_2cW4dSdmreTw You can find more embedded systems tutorials and projects on our website https://learnembeddedsystems.co.uk -- Equipment we 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. Budget Soldering Iron: UK: https://amzn.to/3pQpvUu US: https://amzn.to/3bBawIJ Breadboards: UK: https://amzn.to/3solZCe US: https://amzn.to/3dGsHiS Jumper Cables: UK: https://amzn.to/37JfToi US: https://amzn.to/3r384S9 Camera: UK: https://amzn.to/3qKLwFr US: https://amzn.to/3pK0V7C Lens: UK: https://amzn.to/380lQxp US: https://amzn.to/3knH3WL Tripod: UK: https://amzn.to/37H0Nzw US: https://amzn.to/3byKHsV All videos and tutorials on this channel and mentioned websites are for educational purposes only.

Comment