Skip to content

Commit 20e2d32

Browse files
authored
Merge pull request #18 from PaulThbt/main
Chirp project improvements and Initial weather station project
2 parents 74b91b3 + d8edb0f commit 20e2d32

36 files changed

Lines changed: 2688 additions & 107 deletions

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ In the `projects/` directory, you will find several complete projects designed f
7272
* **Chirp Signal Generation**
7373
* **FMCW Radar** (in progress)
7474
* **Ultrasonic FSK Communication** *(coming soon)*
75-
* **Weather Station** *(coming soon)*
75+
* **Weather Station** (in progress)
7676
* **WiFi MATLAB Communication** *(coming soon)*
7777

7878
Detailed explanations for each project are available in the "Projects" section of the <a href="https://shiegechan.github.io/SensEdu/projects/" target="_blank">Documentation</a>.
@@ -83,7 +83,28 @@ Detailed explanations for each project are available in the "Projects" section o
8383
If you would like to contribute, please open a pull request!
8484
You can also suggest improvements or check already opened <a href="https://github.com/ShiegeChan/SensEdu/issues" target="_blank">issues</a> to help fix bugs or add new features.
8585

86+
## Acknowledgments
87+
88+
SensEdu was made possible thanks to these freely available tools:
89+
90+
* [Arduino] and [Arduino IDE 2.x]
91+
* [XENSIV™ Digital Pressure Sensor Arduino Library]
92+
* [STM32H747 Documentation] and [STM32CubeMX]
93+
* [Jekyll] and [Just the Docs] template
94+
* [KiCAD]
95+
8696

8797
## License
8898

8999
* [**GPL-3.0 license**](https://github.com/ShiegeChan/SensEdu/blob/main/LICENSE)
100+
101+
[Arduino IDE 2.x]: https://github.com/arduino/arduino-ide
102+
[Arduino]: https://www.arduino.cc/
103+
[XENSIV™ Digital Pressure Sensor Arduino Library]: https://github.com/Infineon/arduino-xensiv-dps3xx
104+
[STM32H747 Documentation]: https://www.st.com/en/microcontrollers-microprocessors/stm32h747-757/documentation.html
105+
[STM32CubeMX]: https://www.st.com/en/development-tools/stm32cubemx.html
106+
[Jekyll]: https://jekyllrb.com/
107+
[Just the Docs]: https://github.com/just-the-docs/just-the-docs/tree/main
108+
[STM32H747]: https://www.st.com/en/microcontrollers-microprocessors/stm32h747-757.html
109+
[Arduino GIGA R1 WiFi]: https://docs.arduino.cc/hardware/giga-r1-wifi/
110+
[KiCad]: https://www.kicad.org/

docs/Library/DAC.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,20 @@ Each of the methods are useful for different applications.
2929

3030
## Errors
3131

32-
Main DAC error code is `0x30xx`. Find the way to display errors in your Arduino sketch [here]({% link Library/index.md %}#error-handling).
32+
Main DAC error code is `0x40xx`. Find the way to display errors in your Arduino sketch [here]({% link Library/index.md %}#error-handling).
3333

3434
An overview of possible errors for DAC:
3535

36-
* `0x3000`: No Errors
37-
* `0x3001`: DAC was initialized before initialization
38-
* `0x3002`: Passed DAC channel is not either `DAC_CH1` nor `DAC_CH2`
39-
* `0x3003`: Selected sampling frequency is too high. Maximum is around 15MHz
40-
* `0x3004`: Unexpected address or memory size for DMA
41-
* `0x3005`: In `SENSEDU_DAC_MODE_BURST_WAVE` expected `burst_num` is at least 1
36+
* `0x4000`: No Errors
37+
* `0x4001`: DAC was initialized before initialization
38+
* `0x4002`: Passed DAC channel is not either `DAC_CH1` nor `DAC_CH2`
39+
* `0x4003`: Selected sampling frequency is too high. Maximum is around 15MHz
40+
* `0x4004`: Unexpected address or memory size for DMA
41+
* `0x4005`: In `SENSEDU_DAC_MODE_BURST_WAVE` expected `burst_num` is at least 1
4242

4343
An overview of critical errors. They shouldn’t happen in normal user case and indicate some problems in library code:
4444

45-
* `0x30A0`: DMA Underrun interrupt flag was raised: currently selected trigger is driving DAC channel conversion at a frequency higher than the DMA service capability rate (read more in section 27.4.8 of [Reference Manual])
45+
* `0x40A0`: DMA Underrun interrupt flag was raised: currently selected trigger is driving DAC channel conversion at a frequency higher than the DMA service capability rate (read more in section 27.4.8 of [Reference Manual])
4646

4747
## Structs
4848

docs/Projects/Chirp.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,6 @@ Keep in mind this sampling frequency will also be the DAC's output frequency in
137137

138138
The `samples_int` is an integer representing the amount of samples for one period of the chirp signal. This value also represents the memory size in the `SENSEDU_DAC_BUFFER` and `SensEdu_DAC_Settings` functions.
139139

140-
{: .IMPORTANT }
141-
In this implementation, the size of the chirp array cannot exceed 7688 (array size = `samples_int` for sawtooth modulation & `samples_int*2` for triangular modulation).
142-
143140
The values of the chirp are printed in the serial monitor.
144141
```c
145142
// Print the chirp signal LUT

docs/Projects/FMCWRadar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ $$y_{mix}$$ is the product of $$T_x$$ and $$R_x$$
107107

108108
### Distance Resolution & Max Range
109109

110-
Distance resolution and max range are two critical parameters regarding radar performance. Distance resolution defines the smallest distance at which a radar can separate two objects. The distance resolution $$\Delta d$$ is defined by
110+
Distance resolution and max range are two critical parameters regarding radar performance. Distance resolution defines the smallest distance between two objects that the radar can detect as distinct targets. The distance resolution $$\Delta d$$ is defined by
111111

112112
<div id="eq5" class="fs-5 text-center">
113113
$$\fcolorbox{red}{}{$\displaystyle \Delta d = \frac{c}{2B}$} \tag{5}$$

docs/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Each part is thoroughly documented in this wiki, allowing you to modify both sof
5757
SensEdu was made possible thanks to these freely available tools:
5858
{: .mb-1}
5959
* [Arduino] and [Arduino IDE 2.x]
60+
* [XENSIV™ Digital Pressure Sensor Arduino Library]
6061
* [STM32H747 Documentation] and [STM32CubeMX]
6162
* [Jekyll] and [Just the Docs] template
6263
* [KiCAD]
@@ -74,6 +75,7 @@ Thank You to All Contributors!
7475

7576
[Arduino IDE 2.x]: https://github.com/arduino/arduino-ide
7677
[Arduino]: https://www.arduino.cc/
78+
[XENSIV™ Digital Pressure Sensor Arduino Library]: https://github.com/Infineon/arduino-xensiv-dps3xx
7779
[STM32H747 Documentation]: https://www.st.com/en/microcontrollers-microprocessors/stm32h747-757/documentation.html
7880
[STM32CubeMX]: https://www.st.com/en/development-tools/stm32cubemx.html
7981
[Jekyll]: https://jekyllrb.com/
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 Infineon Technologies AG
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# XENSIV™ Digital Pressure Sensor Arduino Library
2+
3+
Arduino library of Infineon's [**XENSIV™ Digital Pressure Sensors (DPS3xx)**](https://www.infineon.com/cms/en/product/sensor/pressure-sensors/pressure-sensors-for-iot/).
4+
5+
<img src="https://www.infineon.com/export/sites/default/media/products/Small_Signal_Discretes/lowres-DPS368_VLGA-8-2_Combi.tif.png_1864837327.png" width=200>
6+
7+
## Supported Products
8+
9+
<table>
10+
<tr>
11+
<td rowspan=2>Products</td>
12+
<td><img src="docs/img/dps310.png" height="80"></td>
13+
<td><img src="docs/img/dps368.png" height="80"></td>
14+
</tr>
15+
<tr>
16+
<td style="test-align : center"><a href="https://www.infineon.com/cms/de/product/sensor/pressure-sensors/pressure-sensors-for-iot/dps310/">XENSIV™ DPS310</a></td>
17+
<td style="test-align : center"><a href="https://www.infineon.com/cms/de/product/sensor/pressure-sensors/pressure-sensors-for-iot/dps368/">XENSIV™ DPS368</a></td>
18+
</tr>
19+
<tr>
20+
<td rowspan=2>Shield2Go</td>
21+
<td><img src="docs/img/dps310-shield2go.png" height="80"></td>
22+
<td><img src="docs/img/dps368-shield2go.png" height="80"></td>
23+
</tr>
24+
<tr>
25+
<td style="test-align : center"><a href="https://www.infineon.com/cms/en/product/evaluation-boards/s2go-pressure-dps310/">XENSIV™ DPS310 Shield2Go</a></td>
26+
<td style="test-align : center"><a href="https://www.infineon.com/cms/en/product/evaluation-boards/s2go-pressure-dps368/">XENSIV™ DPS368 Shield2Go</a></td>
27+
</tr>
28+
<tr>
29+
<td rowspan=2>Kit 2Go</td>
30+
<td><img src="docs/img/dps310-kit2go.png" height="80"></td>
31+
<td><img src="docs/img/dps368-kit2go.png" height="80"></td>
32+
</tr>
33+
<tr>
34+
<td style="test-align : center"><a href="https://www.infineon.com/cms/en/product/evaluation-boards/kit_dps310_2go/">XENSIV™ DPS310 Kit 2Go</a></td>
35+
<td style="test-align : center"><a href="https://www.infineon.com/cms/en/product/evaluation-boards/kit_dps368_2go/">XENSIV™ DPS368 Kit 2Go</a></td>
36+
</tr>
37+
</table>
38+
39+
## Getting Started
40+
41+
### Installation
42+
To install this library in the Arduino IDE, please go to **Sketch** > **Include Library** > **Manage Libraries...** and search for the `XENSIV Digital Pressure Sensor` library by `Infineon Technologies` in the Arduino library manager.
43+
44+
### Usage
45+
Please see the example sketches in the `/examples` directory in this repository to learn more about the usage of the library. Especially, take care of the respective SPI and I²C configuration of the sensor. You can find more information in the [Wiki](https://github.com/Infineon/arduino-xensiv-dps3xx/wiki).
46+
47+
## License
48+
See the [LICENSE](LICENSE.md) file for more details.
840 KB
Loading
3.35 MB
Loading
3.39 MB
Loading

0 commit comments

Comments
 (0)