tworkshyd / DisplayBoard-MCU2

Arduino code to drive the Display, Config, DAQ and Commands to the RelayModule.
MIT License
1 stars 5 forks source link

High/Low values show in TVi/TVe #28

Closed kumarvbharath closed 4 years ago

kumarvbharath commented 4 years ago

1) start timer and stop timer in read sensor data causing the timer to fire during different intervals and making the flow accumulation logic go bad. So removed it. 2) Added more precision to sensor data store and read from EEPROM. Storing 4 byte data with 100000 precision. 3) Removed the hack to show 1.085 times the TVe value in display 4) Reduced the number of samples read for each timer interrupt from 3 to 1 5) Increased the display refresh time from 20 to 50ms 6) Reduced the I2C timeout value from 12ms to 6ms. And removed the sleep with-in the while loop where we wait for the interrupt. 7) Removed debug logs in pressure sensors 8) Modified the global debug level from HIGH to ERR. 9) Fixed the pressure sensor <-> ads mapping in sensormanager.h. 10) Removed the logic for averaging the prev and curr pressure and measuring pressure based on current pressure. 11) Cosmetic changes - Formatted the code and updated few comments.

Co-Authored-By: Kishore P anandpkishore@users.noreply.github.com