thierryneuch
Member level 2
![Member level 2](/styles/images/ranks/dlevel2.gif)
I want to make an electronic device that Measures the wind speed in Beaufort. The definition of the Beaufort scale requires the calculation of an average over a period of 10 minutes. We choose to do this using the following principle (average with forgetfulness):
![filtre-passe-bas2.gif filtre-passe-bas2.gif](https://www.edaboard.com/data/attachments/53/53690-25a49129cb1fcc10e89684345ad25e49.jpg)
For economical and space reasons, we choose to realize the RC filter by numerical simulation in the microcontroller.
Power supply: 3V analog output voltage proportional to the Beaufort scale with 0 corresponding to 0V Beaufort, 3V corresponding to 9 Beaufort (it will not show values above 9 Beaufort)
Interface to the LCD module: SPI (SPIdatas and SPI clk) Wind speed encoded in 8 bits
:bang: I expected to find some help here because I have almost no idea how to program in assembly language.
I have difficulties and problems understanding the management and integration of SPI communication and problems And difficulty as the exact conversion speed => Beaufort and how to use it, and to make a sliding average
:bang: The code is highly optimized That's why I come to ask your help :fs: and knowledge. Any ideas is welcome!
Thanks
![filtre-passe-bas2.gif filtre-passe-bas2.gif](https://www.edaboard.com/data/attachments/53/53690-25a49129cb1fcc10e89684345ad25e49.jpg)
For economical and space reasons, we choose to realize the RC filter by numerical simulation in the microcontroller.
Power supply: 3V analog output voltage proportional to the Beaufort scale with 0 corresponding to 0V Beaufort, 3V corresponding to 9 Beaufort (it will not show values above 9 Beaufort)
Interface to the LCD module: SPI (SPIdatas and SPI clk) Wind speed encoded in 8 bits
:bang: I expected to find some help here because I have almost no idea how to program in assembly language.
I have difficulties and problems understanding the management and integration of SPI communication and problems And difficulty as the exact conversion speed => Beaufort and how to use it, and to make a sliding average
:bang: The code is highly optimized That's why I come to ask your help :fs: and knowledge. Any ideas is welcome!
Thanks