![]() ![]() Second, if you are you want to graph data over UART, it has a really nice and easy-to-configure setup. First is that you can skip many of those instructions for other tools, especially in Mac and Linux systems. I personally came across Serial Studio recently and found it to be awesome for two main reasons. Some recommendations include:Īpart from Serial Studio, some detailed instructions for the different operating systems are available in the Discovery Book.įor me, Serial Studio comes highly recommended. In addition to the above, you would need to install some sort of serial communication terminal on your host PC. ![]() Note that if the code on the git repo is slightly different then it means that it was modified to enhance the code quality or accommodate any HAL/Rust updates. To understand the content of this post, you need the following:įamiliarity with the basic template for creating embedded applications in Rust.įamiliarity with I2C communication basics.įamiliarity with UART communication basics.Īll the code presented in this post in addition to instructions for the environment and toolchain setup are available on the apollolabsdev Nucleo-F401RE git repo. I probably will be expanding the code anyway to create a BMP180 device driver at a later time. However, the provided code can be easily expanded to collect and convert pressure data as well. My target in this blog post is to focus on operating I2C more than the features of the BMP180 itself. I elected to collect only temperature data since the conversion equations are less. The BMP180 provides both temperature and pressure sensor data which are collected in a very similar manner. This means that I will be leveraging only the embassy HAL without the executor or the async framework. This code will be built without using any interrupts. Temperature measurements will be continuously collected and sent to a PC terminal over UART. ![]() Note that the BMP180 provides both pressure and temperature data but I will only be collecting the latter. In this post, I will be configuring an STM32 I2C peripheral using the embassy HAL to collect ambient temperature measurement data from the BMP180 Digital Pressure Sensor. Please be aware that certain concepts in newer posts could depend on concepts in prior posts. This post is going to explore communicating over I2C using the embassy HAL. This blog post is the fourth of a multi-part series of posts about Rust embassy for the STM32. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |