Average and Standard Deviation of Temperature Sensor Readings
During my EE465 class “Digital Design” at the end of the class I worked with two of my
classmates to implement Average and Standard Deviation of temperature Sensor Reading In this
project we are implementing a temperature sensor to monitor the temperature level for a plant on
behalf of the USDA. The main focus of the project is take temperature readings from sensors and
then find its moving average or its standard deviation depending on the device mode.
Thus, we are using the equation (1) to calculate the temperature average and the equation ( 2) to
find the standard deviation.
Design Description
This design begins by addressing the reset condition. If not in a reset condition, the logic will
address what state the machine should be in based on inputs, and behaves according to that state.
For example, depending on the mode selected, the device will either compute moving average or
standard deviation of the input TN.
The code is written to be used in reusable, modular chunks to make future projects easier and
save future design time. This code was written in 3 scripts plus the testbench. define.v handles
resets and loading in new states, sample.v handles reading in new values for TN, and calculate.v
handles the math for the two modes. With this approach, the device could be easily modified to
take in a TN with more bits or a different math calculation.
We used Candance software to implement this project. And my role was to crate the layout of
this device we wanted.
The Layout: